using DAL.Models.Audits; using Microsoft.EntityFrameworkCore; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DAL.Models { [Table("colors")] [Index("updater", Name = "colors_users_id_fk")] public class Color : Model { [Column("red")] public byte red { get; set; } [Column("blue")] public byte blue { get; set; } [Column("green")] public byte green { get; set; } [Column("name")] [MaxLength(64)] public string name { get; set; } = null!; public User updaterRelation { get; set; } = null!; public ICollection audits { get; set; } = new List(); public override AuditColor adaptToAudit() { throw new NotImplementedException(); } } }