diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-22 15:29:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-22 15:29:03 +0800 |
commit | 3716d2431de08194d3a107ef640febc47c3ee72a (patch) | |
tree | af83f8596b4fa78713733c0db6b4b6d1695d0ff0 /Timeline/Entities/UserDetail.cs | |
parent | a585c6e35829e9f2b4b0b8ce8c6b395e5ea84f2c (diff) | |
parent | 968f9688dd3ff7cae6f66af0e69bb03392311c88 (diff) | |
download | timeline-3716d2431de08194d3a107ef640febc47c3ee72a.tar.gz timeline-3716d2431de08194d3a107ef640febc47c3ee72a.tar.bz2 timeline-3716d2431de08194d3a107ef640febc47c3ee72a.zip |
Merge pull request #48 from crupest/user-details
Add user details.
Diffstat (limited to 'Timeline/Entities/UserDetail.cs')
-rw-r--r-- | Timeline/Entities/UserDetail.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Timeline/Entities/UserDetail.cs b/Timeline/Entities/UserDetail.cs new file mode 100644 index 00000000..6e582234 --- /dev/null +++ b/Timeline/Entities/UserDetail.cs @@ -0,0 +1,29 @@ +using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Timeline.Entities
+{
+ [Table("user_details")]
+ public class UserDetailEntity
+ {
+ [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public long Id { get; set; }
+
+ [Column("nickname"), MaxLength(15)]
+ public string Nickname { get; set; }
+
+ [Column("qq"), MaxLength(15)]
+ public string QQ { get; set; }
+
+ [Column("email"), MaxLength(50)]
+ public string EMail { get; set; }
+
+ [Column("phone_number"), MaxLength(15)]
+ public string PhoneNumber { get; set; }
+
+ [Column("description")]
+ public string Description { get; set; }
+
+ public long UserId { get; set; }
+ }
+}
|