diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2023-01-13 20:21:20 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2023-01-13 20:21:20 +0100 |
| commit | 0ae5a68a9d81547bb9b741458d94b5f1b7374027 (patch) | |
| tree | 485384d892cdfe4dc6af79f3cf0abe11d2e552b1 /BlobBin/DB.cs | |
| parent | 971c00b8f5977db9422eeafa47b262c1030bd4af (diff) | |
| download | blob-bin-0ae5a68a9d81547bb9b741458d94b5f1b7374027.tar.xz blob-bin-0ae5a68a9d81547bb9b741458d94b5f1b7374027.zip | |
feat: First dev release
Diffstat (limited to 'BlobBin/DB.cs')
| -rw-r--r-- | BlobBin/DB.cs | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/BlobBin/DB.cs b/BlobBin/DB.cs deleted file mode 100644 index a736dc2..0000000 --- a/BlobBin/DB.cs +++ /dev/null @@ -1,42 +0,0 @@ -using Microsoft.EntityFrameworkCore; - -namespace BlobBin; - -public class DB : DbContext -{ - public DB(DbContextOptions<DB> options) : base(options) { } - - public DbSet<File> Files { get; set; } - public DbSet<Paste> Pastes { get; set; } -} - -public class UploadEntityBase -{ - public UploadEntityBase() { - Id = Guid.NewGuid(); - CreatedAt = DateTime.UtcNow; - } - - public Guid Id { get; set; } - public string PublicId { get; set; } - public DateTime CreatedAt { get; set; } - public string CreatedBy { get; set; } - public DateTime? DeletedAt { get; set; } - public string? PasswordHash { get; set; } - public bool Singleton { get; set; } - public string? AutoDeleteAfter { get; set; } - public string? MimeType { get; set; } -} - -public class File : UploadEntityBase -{ - public string? Name { get; set; } - public long Length { get; set; } -} - -public class Paste : UploadEntityBase -{ - public string? Name { get; set; } - public string? Content { get; set; } - public long Length { get; set; } -}
\ No newline at end of file |
