Add project
This commit is contained in:
22
Api/Database/Entities/Season.cs
Normal file
22
Api/Database/Entities/Season.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Api.Database.Entities;
|
||||
|
||||
[Table("Seasons")]
|
||||
public class Season : BaseEntity
|
||||
{
|
||||
[Column("Name")]
|
||||
[NotNull]
|
||||
[MaxLength(20)]
|
||||
public string? Name { get; set; }
|
||||
|
||||
[Column("StartDate")]
|
||||
[NotNull]
|
||||
public DateOnly StartDate { get; set; }
|
||||
|
||||
[Column("EndDate")]
|
||||
[NotNull]
|
||||
public DateOnly EndDate { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user