aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserDetail.cs
blob: ee829717579b3590adf08553810699413094483b (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
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("qq"), MaxLength(15)]
        public string QQ { get; set; }

        [Column("email"), MaxLength(30)]
        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; }
    }
}