aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserDetail.cs
blob: e02d15c40324a70bc9fa86abcb2d932d0da2d4b9 (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; }
    }
}