20 lines
635 B
C#
20 lines
635 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class Admin
|
|
{
|
|
[Key]
|
|
public Guid AdminId { get; set; }
|
|
public string AdminName { get; set; }
|
|
public Guid FKUserId { get; set; }
|
|
[ForeignKey("FKUserId")]
|
|
public virtual User User { get; set; }
|
|
public string PhoneNumber { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime CreateDate { get; set; } = DateTime.UtcNow;
|
|
public virtual ICollection<Ticket> AssignedTickets { get; set; }
|
|
}
|
|
}
|