diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-20 17:52:30 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-20 17:52:30 +0800 |
commit | 8ff8e6b6fa823ea79ec30a4b62736fe0fb3e5b53 (patch) | |
tree | be100242d13e0745f01a77b59cacca1025814f84 /Timeline/Models | |
parent | 3de4179449a209646e0e5a967d270f7fa0878c03 (diff) | |
download | timeline-8ff8e6b6fa823ea79ec30a4b62736fe0fb3e5b53.tar.gz timeline-8ff8e6b6fa823ea79ec30a4b62736fe0fb3e5b53.tar.bz2 timeline-8ff8e6b6fa823ea79ec30a4b62736fe0fb3e5b53.zip |
Add version column in user database.
Diffstat (limited to 'Timeline/Models')
-rw-r--r-- | Timeline/Models/DatabaseContext.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Models/DatabaseContext.cs b/Timeline/Models/DatabaseContext.cs index 1e89ea82..87c0fd17 100644 --- a/Timeline/Models/DatabaseContext.cs +++ b/Timeline/Models/DatabaseContext.cs @@ -18,6 +18,9 @@ namespace Timeline.Models [Column("roles"), Required] public string RoleString { get; set; } + + [Column("version"), Required] + public long Version { get; set; } } public class DatabaseContext : DbContext |