diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-23 18:01:04 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-23 18:01:04 +0800 |
commit | e34873c8cec905cd38c754d8968e848c9d0db5c2 (patch) | |
tree | a63911cb371b8ca01370e9c0d2aceb1811d00a8e /Timeline/Models | |
parent | 1e5ac670386614b2d88da0af198a6b3df004f1dd (diff) | |
download | timeline-e34873c8cec905cd38c754d8968e848c9d0db5c2.tar.gz timeline-e34873c8cec905cd38c754d8968e848c9d0db5c2.tar.bz2 timeline-e34873c8cec905cd38c754d8968e848c9d0db5c2.zip |
WIP: Change UserController.
Diffstat (limited to 'Timeline/Models')
-rw-r--r-- | Timeline/Models/DatabaseContext.cs | 6 |
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 { |