Database
This commit is contained in:
17
KTUSAPS.Data/Model/Admin.cs
Normal file
17
KTUSAPS.Data/Model/Admin.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KTUSAPS.Data.Model
|
||||
{
|
||||
public class Admin
|
||||
{
|
||||
[Key, MaxLength(64)]
|
||||
public string UserId { get; set; }
|
||||
[MaxLength(256)]
|
||||
public string Comment { get; set; }
|
||||
}
|
||||
}
|
@@ -14,8 +14,8 @@ namespace KTUSAPS.Data.Model
|
||||
public int Id { get; set; }
|
||||
[MaxLength(64)]
|
||||
public string UserID { get; set; }
|
||||
[MaxLength(320)]
|
||||
public string Email { get; set; }
|
||||
public bool Anonimous { get; set; }
|
||||
public bool Publishable { get; set; }
|
||||
public bool Solved { get; set; } = false;
|
||||
public DateTime Created { get; set; }
|
||||
|
@@ -1,18 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ClassDiagram MajorVersion="1" MinorVersion="1">
|
||||
<Class Name="KTUSAPS.Data.Model.Issue">
|
||||
<Position X="0.75" Y="1.25" Width="1.5" />
|
||||
<Position X="0.5" Y="0.75" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAACAAJAACAgAAAAAAACAAgIAAEAAAQAAAAAAAAAAAA=</HashCode>
|
||||
<HashCode>AAACAAJAACAgAAAAAAACAAgIAAAAAAQAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Issue.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<ShowAsAssociation>
|
||||
<Property Name="Feedback" />
|
||||
<Property Name="Problem" />
|
||||
<Property Name="Feedback" />
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.PublishedFeedback">
|
||||
<Position X="3.75" Y="3.75" Width="1.5" />
|
||||
<Position X="2.75" Y="3.75" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAECAAAAAAAAAAAACAIAAAAAAAAAAAQAEAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\PublishedFeedback.cs</FileName>
|
||||
@@ -22,21 +22,21 @@
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.PublishedProblem">
|
||||
<Position X="3.75" Y="0.5" Width="1.5" />
|
||||
<Position X="2.75" Y="0.75" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>ACECABAAAAEAAAgAAAABAAAAEAAAQAQAEAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\PublishedProblem.cs</FileName>
|
||||
</TypeIdentifier>
|
||||
<ShowAsAssociation>
|
||||
<Property Name="Solution" />
|
||||
<Property Name="Issue" />
|
||||
<Property Name="Solution" />
|
||||
</ShowAsAssociation>
|
||||
<ShowAsCollectionAssociation>
|
||||
<Property Name="Votes" />
|
||||
</ShowAsCollectionAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.Solution">
|
||||
<Position X="6.5" Y="0.5" Width="1.5" />
|
||||
<Position X="6" Y="0.5" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAACAAIABAAAAQAAAAAAAAAAAAAAAAQAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Solution.cs</FileName>
|
||||
@@ -46,7 +46,7 @@
|
||||
</ShowAsAssociation>
|
||||
</Class>
|
||||
<Class Name="KTUSAPS.Data.Model.Vote">
|
||||
<Position X="6.5" Y="2.25" Width="1.5" />
|
||||
<Position X="6" Y="2.5" Width="1.5" />
|
||||
<TypeIdentifier>
|
||||
<HashCode>AAAAAAIAAAAAEAAAAAAAAAgAAAAAAAAAAAAAAAAAAAA=</HashCode>
|
||||
<FileName>Model\Vote.cs</FileName>
|
Reference in New Issue
Block a user