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 | c84faf2b8f5a55ae170e92ead6516e573a318e65 (patch) | |
tree | a63911cb371b8ca01370e9c0d2aceb1811d00a8e /Timeline/Models/DatabaseContext.cs | |
parent | 79d4c444ace7cb10fbd638936c2e47a6314d2758 (diff) | |
download | timeline-c84faf2b8f5a55ae170e92ead6516e573a318e65.tar.gz timeline-c84faf2b8f5a55ae170e92ead6516e573a318e65.tar.bz2 timeline-c84faf2b8f5a55ae170e92ead6516e573a318e65.zip |
WIP: Change UserController.
Diffstat (limited to 'Timeline/Models/DatabaseContext.cs')
-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 { |