MediaRecord.cs 424 B

1234567891011121314151617
  1. using PCC2.Data.Enums;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace PCC2.Data.Entity;
  5. public class MediaRecord
  6. {
  7. [Key]
  8. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  9. public int Id { get; set; }
  10. [Required] public MediaRecordKind Kind { get; set; }
  11. public byte[]? Preview { get; set; }
  12. public byte[]? MediaData { get; set; }
  13. }