-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
621 additions
and
633 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Address | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string City { get; set; } = null!; | ||
|
||
public string Country { get; set; } = null!; | ||
|
||
public string Street { get; set; } = null!; | ||
|
||
public string State { get; set; } = null!; | ||
|
||
public string? ZipCode { get; set; } | ||
|
||
public virtual ICollection<Event> Events { get; set; } = new List<Event>(); | ||
|
||
public virtual ICollection<User> Users { get; set; } = new List<User>(); | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Address | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string City { get; set; } = null!; | ||
|
||
public string Country { get; set; } = null!; | ||
|
||
public string Street { get; set; } = null!; | ||
|
||
public string State { get; set; } = null!; | ||
|
||
public string? ZipCode { get; set; } | ||
|
||
public virtual ICollection<Event> Events { get; set; } = new List<Event>(); | ||
|
||
public virtual ICollection<User> Users { get; set; } = new List<User>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Comment | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public string Content { get; set; } = null!; | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public int UserId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual User User { get; set; } = null!; | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Comment | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public string Content { get; set; } = null!; | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public int UserId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual User User { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,43 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Event | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public int AddressId { get; set; } | ||
|
||
public string Description { get; set; } = null!; | ||
|
||
public int OrganizerId { get; set; } | ||
|
||
public DateTime StartAt { get; set; } | ||
|
||
public DateTime EndAt { get; set; } | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public DateTime UpdatedAt { get; set; } | ||
|
||
public string Slug { get; set; } = null!; | ||
|
||
public int StatusId { get; set; } | ||
|
||
public virtual Address Address { get; set; } = null!; | ||
|
||
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>(); | ||
|
||
public virtual User Organizer { get; set; } = null!; | ||
|
||
public virtual ICollection<Participant> Participants { get; set; } = new List<Participant>(); | ||
|
||
public virtual Status Status { get; set; } = null!; | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Event | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public int AddressId { get; set; } | ||
|
||
public string Description { get; set; } = null!; | ||
|
||
public int OrganizerId { get; set; } | ||
|
||
public DateTime StartAt { get; set; } | ||
|
||
public DateTime EndAt { get; set; } | ||
|
||
public DateTime CreatedAt { get; set; } | ||
|
||
public DateTime UpdatedAt { get; set; } | ||
|
||
public string Slug { get; set; } = null!; | ||
|
||
public int StatusId { get; set; } | ||
|
||
public virtual Address Address { get; set; } = null!; | ||
|
||
public virtual ICollection<Comment> Comments { get; set; } = new List<Comment>(); | ||
|
||
public virtual User Organizer { get; set; } = null!; | ||
|
||
public virtual ICollection<Participant> Participants { get; set; } = new List<Participant>(); | ||
|
||
public virtual Status Status { get; set; } = null!; | ||
|
||
public virtual ICollection<Parameter> Parameters { get; set; } = new List<Parameter>(); | ||
|
||
public virtual ICollection<Tag> Tags { get; set; } = new List<Tag>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Image | ||
{ | ||
public int Id { get; set; } | ||
|
||
public byte[] ImageData { get; set; } = null!; | ||
|
||
public int ObjectTypeId { get; set; } | ||
|
||
public int ObjectId { get; set; } | ||
|
||
public virtual ObjectType ObjectType { get; set; } = null!; | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Image | ||
{ | ||
public int Id { get; set; } | ||
|
||
public byte[] ImageData { get; set; } = null!; | ||
|
||
public int ObjectTypeId { get; set; } | ||
|
||
public int ObjectId { get; set; } | ||
|
||
public virtual ObjectType ObjectType { get; set; } = null!; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Interest | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public int Level { get; set; } | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Interest | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public virtual ICollection<UserInterest> UserInterests { get; set; } = new List<UserInterest>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class ObjectType | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public virtual ICollection<Image> Images { get; set; } = new List<Image>(); | ||
|
||
public virtual ICollection<Status> Statuses { get; set; } = new List<Status>(); | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class ObjectType | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Name { get; set; } = null!; | ||
|
||
public virtual ICollection<Image> Images { get; set; } = new List<Image>(); | ||
|
||
public virtual ICollection<Status> Statuses { get; set; } = new List<Status>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Parameter | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Key { get; set; } = null!; | ||
|
||
public string Value { get; set; } = null!; | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Parameter | ||
{ | ||
public int Id { get; set; } | ||
|
||
public string Key { get; set; } = null!; | ||
|
||
public string Value { get; set; } = null!; | ||
|
||
public virtual ICollection<Event> Events { get; set; } = new List<Event>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Participant | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public int UserId { get; set; } | ||
|
||
public int StatusId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual Status Status { get; set; } = null!; | ||
|
||
public virtual User User { get; set; } = null!; | ||
} | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ReasnAPI.Models.Database; | ||
|
||
public partial class Participant | ||
{ | ||
public int Id { get; set; } | ||
|
||
public int EventId { get; set; } | ||
|
||
public int UserId { get; set; } | ||
|
||
public int StatusId { get; set; } | ||
|
||
public virtual Event Event { get; set; } = null!; | ||
|
||
public virtual Status Status { get; set; } = null!; | ||
|
||
public virtual User User { get; set; } = null!; | ||
} |
Oops, something went wrong.