aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 00:06:11 +0800
committercrupest <crupest@outlook.com>2020-08-11 00:06:11 +0800
commit49e464705c7dbd33feff3facbc17aae3a8cb1b53 (patch)
treece379e47f2160ea66fff88e3040c3b562a955798 /Timeline/Entities/UserEntity.cs
parent0024672d75d061167fb9de67629cc796a52861e6 (diff)
downloadtimeline-49e464705c7dbd33feff3facbc17aae3a8cb1b53.tar.gz
timeline-49e464705c7dbd33feff3facbc17aae3a8cb1b53.tar.bz2
timeline-49e464705c7dbd33feff3facbc17aae3a8cb1b53.zip
Add time columns to user in database.
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!;