Files

29 lines
703 B
C#

using SqlSugar;
using System;
namespace RIZO_Application.Models
{
// Core/Entities/User.cs
[SugarTable("Users")]
public class User
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
[SugarColumn(Length = 100)]
public string Name { get; set; }
[SugarColumn(Length = 100, IsNullable = false)]
public string Email { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? LastLoginDate { get; set; }
[SugarColumn]
public bool IsActive { get; set; } = true;
[SugarColumn(IsIgnore = true)]
public string DisplayName => $"{Name} ({Email})";
}
}