Initial Argus web catalog
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
namespace Argus.Domain;
|
||||
|
||||
public sealed class AppRelease
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public Guid CatalogAppId { get; set; }
|
||||
|
||||
public CatalogApp CatalogApp { get; set; } = null!;
|
||||
|
||||
public string Version { get; set; } = string.Empty;
|
||||
|
||||
public string Channel { get; set; } = "stable";
|
||||
|
||||
public string Platform { get; set; } = "generic";
|
||||
|
||||
public string PackageKind { get; set; } = "binary";
|
||||
|
||||
public string OriginalFileName { get; set; } = string.Empty;
|
||||
|
||||
public string StoredRelativePath { get; set; } = string.Empty;
|
||||
|
||||
public string ContentType { get; set; } = "application/octet-stream";
|
||||
|
||||
public long PackageSizeBytes { get; set; }
|
||||
|
||||
public string Sha256 { get; set; } = string.Empty;
|
||||
|
||||
public string? Notes { get; set; }
|
||||
|
||||
public DateTimeOffset PublishedAt { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
namespace Argus.Domain;
|
||||
|
||||
public sealed class CatalogApp
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public string Slug { get; set; } = string.Empty;
|
||||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public string Summary { get; set; } = string.Empty;
|
||||
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
public string? RepositoryUrl { get; set; }
|
||||
|
||||
public string? HomepageUrl { get; set; }
|
||||
|
||||
public bool IsListed { get; set; } = true;
|
||||
|
||||
public DateTimeOffset CreatedAt { get; set; }
|
||||
|
||||
public DateTimeOffset UpdatedAt { get; set; }
|
||||
|
||||
public ICollection<AppRelease> Releases { get; set; } = new List<AppRelease>();
|
||||
}
|
||||
Reference in New Issue
Block a user