modeling 241004

main
Peace 7 months ago
parent bd40fad473
commit d7f6994b45
  1. 15
      PeacePDS/PeacePDS/Models/Entities/Affirmation.cs
  2. 17
      PeacePDS/PeacePDS/Models/Entities/Product.cs
  3. 2
      PeacePDS/PeacePDS/Models/Entities/User.cs

@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace PeacePDS.Models.Entities
{
public class Affirmation
{
public int Id { get; set; }
public int UserId { get; set; }
public DateTime Month { get; set; }
public string AffirmationWord { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.Now;
public User User { get; set; }
}
}

@ -1,17 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace PeacePDS.Models.Entities
{
public class Product
{
public int Id { get; set; }
[MaxLength(100)]
public string Code { get; set; }
[MaxLength(100)]
public string Name { get; set; }
public int? Price { get; set; }
}
}

@ -11,5 +11,7 @@ namespace PeacePDS.Models.Entities
[MaxLength(100)]
public string Password { get; set; }
public DateTime CreatedAt { get; set; }
}
}

Loading…
Cancel
Save