Customer.cs 837 字节
Newer Older
麦壳饼's avatar
麦壳饼 已提交
1 2 3 4 5 6 7 8 9 10 11 12
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace IoTSharp.Hub.Data
{
    public class Customer
    {
        [Key]
        public Guid Id { get; set; } = Guid.NewGuid();
麦壳饼's avatar
麦壳饼 已提交
13

麦壳饼's avatar
麦壳饼 已提交
14 15 16 17 18 19 20 21 22
        public string Name { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public string Country { get; set; }
        public string Province { get; set; }
        public string City { get; set; }
        public string Street { get; set; }
        public string Address { get; set; }
        public int ZipCode { get; set; }
麦壳饼's avatar
麦壳饼 已提交
23 24

        [Newtonsoft.Json.JsonIgnore]
麦壳饼's avatar
麦壳饼 已提交
25
        public Tenant Tenant { get; set; }
麦壳饼's avatar
麦壳饼 已提交
26

麦壳饼's avatar
麦壳饼 已提交
27
        [Newtonsoft.Json.JsonIgnore]
麦壳饼's avatar
麦壳饼 已提交
28 29
        public List<Device> Devices { get; set; }
    }
麦壳饼's avatar
麦壳饼 已提交
30
}