aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserDetail.cs
blob: bc14dbe66df860f1431b735838044d461402a4b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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; }
    }
}