aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Models
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-23 18:01:04 +0800
committer杨宇千 <crupest@outlook.com>2019-07-23 18:01:04 +0800
commite34873c8cec905cd38c754d8968e848c9d0db5c2 (patch)
treea63911cb371b8ca01370e9c0d2aceb1811d00a8e /Timeline/Models
parent1e5ac670386614b2d88da0af198a6b3df004f1dd (diff)
downloadtimeline-e34873c8cec905cd38c754d8968e848c9d0db5c2.tar.gz
timeline-e34873c8cec905cd38c754d8968e848c9d0db5c2.tar.bz2
timeline-e34873c8cec905cd38c754d8968e848c9d0db5c2.zip
WIP: Change UserController.
Diffstat (limited to 'Timeline/Models')
-rw-r--r--Timeline/Models/DatabaseContext.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/Timeline/Models/DatabaseContext.cs b/Timeline/Models/DatabaseContext.cs
index 87c0fd17..afd5a333 100644
--- a/Timeline/Models/DatabaseContext.cs
+++ b/Timeline/Models/DatabaseContext.cs
@@ -4,6 +4,12 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Timeline.Models
{
+ public static class UserRoles
+ {
+ public const string Admin = "admin";
+ public const string User = "user";
+ }
+
[Table("user")]
public class User
{