aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 00:47:00 +0800
committerGitHub <noreply@github.com>2020-08-11 00:47:00 +0800
commit06e79c99bbc810f16058b35f1c88c23148bf8e57 (patch)
tree515c13c3f44c1963cd462b2c82ce34416f49b5f3 /Timeline/Entities/UserEntity.cs
parent9bd53ad844b66f14080f3a142a419fed1d8bd491 (diff)
parent536dba83194800befce9357bc1cffbed4bb47728 (diff)
downloadtimeline-06e79c99bbc810f16058b35f1c88c23148bf8e57.tar.gz
timeline-06e79c99bbc810f16058b35f1c88c23148bf8e57.tar.bz2
timeline-06e79c99bbc810f16058b35f1c88c23148bf8e57.zip
Merge pull request #144 from crupest/user-time
Add time info to user.
Diffstat (limited to 'Timeline/Entities/UserEntity.cs')
-rw-r--r--Timeline/Entities/UserEntity.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/Timeline/Entities/UserEntity.cs b/Timeline/Entities/UserEntity.cs
index 07b19d62..d6b55ab6 100644
--- a/Timeline/Entities/UserEntity.cs
+++ b/Timeline/Entities/UserEntity.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -23,6 +24,9 @@ namespace Timeline.Entities
[Column("username"), Required]
public string Username { get; set; } = default!;
+ [Column("username_change_time")]
+ public DateTimeOffset UsernameChangeTime { get; set; }
+
[Column("password"), Required]
public string Password { get; set; } = default!;
@@ -35,6 +39,12 @@ namespace Timeline.Entities
[Column("nickname")]
public string? Nickname { get; set; }
+ [Column("create_time")]
+ public DateTimeOffset CreateTime { get; set; }
+
+ [Column("last_modified")]
+ public DateTimeOffset LastModified { get; set; }
+
public UserAvatarEntity? Avatar { get; set; }
public List<TimelineEntity> Timelines { get; set; } = default!;