Add project
This commit is contained in:
24
Api/Database/Entities/Student.cs
Normal file
24
Api/Database/Entities/Student.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Api.Database.Entities;
|
||||
|
||||
[Table("Students")]
|
||||
public class Student : BaseEntityGuid
|
||||
{
|
||||
[Column("FirstName")]
|
||||
[NotNull]
|
||||
[MaxLength(50)]
|
||||
public string? FirstName { get; set; }
|
||||
|
||||
[Column("LastName")]
|
||||
[NotNull]
|
||||
[MaxLength(50)]
|
||||
public string? LastName { get; set; }
|
||||
|
||||
[Column("AlbumNumber")]
|
||||
[NotNull]
|
||||
[MaxLength(6)]
|
||||
public string? AlbumNumber { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user