renis-backend/Database/Models/Car.cs

20 lines
470 B
C#

using System.ComponentModel.DataAnnotations;
namespace Renis.Database.Models;
public class Car
{
[Key]
public long Id { get; set; }
[Required]
public string Number { get; set; } = null!;
[Required]
public Polis Polis { get; set; } = null!;
[Required]
public long PolisId { get; set; }
[Required]
public User Resp { get; set; } = null!;
[Required]
public long RespId { get; set; }
public bool Verified { get; set; }
}