Files
StopShopping/StopShopping.EF/Models/Address.cs
2026-03-25 14:55:34 +08:00

68 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
namespace StopShopping.EF.Models;
/// <summary>
/// 收货地址
/// </summary>
public partial class Address
{
/// <summary>
/// 主键
/// </summary>
public int Id { get; set; }
/// <summary>
/// 用户表id
/// </summary>
public int UserId { get; set; }
/// <summary>
/// 收货人地址
/// </summary>
public string Name { get; set; } = null!;
/// <summary>
/// 联系电话
/// </summary>
public string Telephone { get; set; } = null!;
/// <summary>
/// 自定义标签:学校、家等
/// </summary>
public string? Tag { get; set; }
/// <summary>
/// 是否默认地址
/// </summary>
public bool Default { get; set; }
/// <summary>
/// 行政区域id表示省/直辖市
/// </summary>
public int DistrictLevel1Id { get; set; }
/// <summary>
/// 行政区域id表示市/直辖市为空
/// </summary>
public int? DistrictLevel2Id { get; set; }
/// <summary>
/// 行政区域id表示区
/// </summary>
public int DistrictLevel3Id { get; set; }
/// <summary>
/// 详细地址
/// </summary>
public string? Detail { get; set; }
/// <summary>
/// 行政区域id表示街道/镇
/// </summary>
public int DistrictLevel4Id { get; set; }
public virtual User User { get; set; } = null!;
}