mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-29 04:09:17 +01:00
yeah idk, basic form of reg, auth, upload, whitelist. lots of stuff.
This commit is contained in:
parent
0a4ee136bc
commit
f6fbb4c862
20 changed files with 673 additions and 0 deletions
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
15
MareSynchronosServer/MareSynchronosServer/Models/User.cs
Normal file
15
MareSynchronosServer/MareSynchronosServer/Models/User.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue