summaryrefslogtreecommitdiffstats
path: root/api/WhatApi/Tables/Content.cs
diff options
context:
space:
mode:
Diffstat (limited to 'api/WhatApi/Tables/Content.cs')
-rw-r--r--api/WhatApi/Tables/Content.cs24
1 files changed, 0 insertions, 24 deletions
diff --git a/api/WhatApi/Tables/Content.cs b/api/WhatApi/Tables/Content.cs
deleted file mode 100644
index 0b26b82..0000000
--- a/api/WhatApi/Tables/Content.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System.Net;
-
-namespace WhatApi.Tables;
-
-public class Content : IAuditableEntity
-{
- public Guid Id { get; set; }
- public required string Mime { get; set; }
- public Guid BlobId { get; set; }
- public required IPAddress Ip { get; set; }
- public DateTimeOffset CreatedAtUtc { get; set; }
- public DateTimeOffset? UpdatedAtUtc { get; set; }
- public Guid CreatedBy { get; set; }
- public Guid? UpdatedBy { get; set; }
-}
-
-public class ContentConfiguration : IEntityTypeConfiguration<Content>
-{
- public void Configure(EntityTypeBuilder<Content> builder) {
- builder.HasKey(x => x.Id);
- builder.Property(x => x.Mime).HasMaxLength(100).IsRequired();
- builder.ToTable("content");
- }
-} \ No newline at end of file