yeah idk, basic form of reg, auth, upload, whitelist. lots of stuff.

This commit is contained in:
Stanley Dimant 2022-06-17 23:49:08 +02:00
parent 0a4ee136bc
commit f6fbb4c862
20 changed files with 673 additions and 0 deletions

View file

@ -0,0 +1,17 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace MareSynchronosServer.Models
{
public class FileCache
{
[Key]
public string Hash { get; set; }
public User Uploader { get; set; }
public bool Uploaded { get; set; }
public DateTime LastAccessTime { get; set; }
[Timestamp]
public byte[] Timestamp { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace MareSynchronosServer.Models
{
public class User
{
[Key]
public string UID { get; set; }
public string SecretKey { get; set; }
public string CharacterIdentification { get; set; }
[Timestamp]
public byte[] Timestamp { get; set; }
}
}

View file

@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace MareSynchronosServer.Models
{
public class Whitelist
{
public int Id { get; set; }
public User User { get; set; }
public User OtherUser { get; set; }
public bool IsPaused { get; set; }
[Timestamp]
public byte[] Timestamp { get; set; }
}
}