Added EF and DB to the core, crude demo in the UI

This commit is contained in:
2026-08-23 20:42:42 +03:00 Unverified
parent db368674d4
commit fb8427bd0e
20 changed files with 285 additions and 36 deletions
+22
View File
@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace WinWARP.Core.Models.Entities;
public class Server
{
[Key]
public int Id
{
get; set;
}
public int SubscriptionId
{
get; set;
}
}
@@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
namespace WinWARP.Core.Models.Entities;
public class Subscription
{
[Key]
public int Id
{
get; set;
}
[Required]
[StringLength(100)]
public string Link
{
get; set;
}
[StringLength(100)]
public string WebPage
{
get; set;
} = string.Empty;
[StringLength(100)]
public string DefaultTitle
{
get; set;
} = string.Empty;
public int DefaultUpdateInterval
{
get; set;
} = 1;
[StringLength(100)]
public string Title
{
get; set;
} = string.Empty;
public int UpdateInterval
{
get; set;
} = 1;
[StringLength(100)]
public string SupportURL
{
get; set;
} = string.Empty;
}