Split Json data models coming from REST Api, from the Database models storing them in a SQLite database. Work to re-engineer endpoints to use Database objects, and copy/update data from the json objects. More work is needed.
13 lines
No EOL
403 B
C#
13 lines
No EOL
403 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace FreeTubeSync.Model.Database;
|
|
|
|
public class Profile
|
|
{
|
|
[Key]
|
|
public string _id { get; set; } = string.Empty;
|
|
public string name { get; set; } = string.Empty;
|
|
public string bgColor { get; set; } = string.Empty;
|
|
public string textColor { get; set; } = string.Empty;
|
|
public List<Subscription> subscriptions { get; set; } = [];
|
|
} |