diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-25 23:03:36 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-25 23:03:36 +0800 |
commit | 4e5ba11efa3d2dd1e2d3a31ec5bbdc820219c63b (patch) | |
tree | 5315d3339e3fcb43c22b0e39c761ab46d45f9b9c /Timeline/Entities/UserDetail.cs | |
parent | f08f53d6fcd9baf9dd3b95209f7c7448ae8168d4 (diff) | |
download | timeline-4e5ba11efa3d2dd1e2d3a31ec5bbdc820219c63b.tar.gz timeline-4e5ba11efa3d2dd1e2d3a31ec5bbdc820219c63b.tar.bz2 timeline-4e5ba11efa3d2dd1e2d3a31ec5bbdc820219c63b.zip |
Add user detail service.
Diffstat (limited to 'Timeline/Entities/UserDetail.cs')
-rw-r--r-- | Timeline/Entities/UserDetail.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Timeline/Entities/UserDetail.cs b/Timeline/Entities/UserDetail.cs new file mode 100644 index 00000000..45f87e2b --- /dev/null +++ b/Timeline/Entities/UserDetail.cs @@ -0,0 +1,21 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.Linq;
+using System.Threading.Tasks;
+
+namespace Timeline.Entities
+{
+ [Table("user_details")]
+ public class UserDetail
+ {
+ [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public long Id { get; set; }
+
+ [Column("nickname"), MaxLength(26)]
+ public string? Nickname { get; set; }
+
+ public long UserId { get; set; }
+ }
+}
|