Files
2026-03-25 14:55:34 +08:00

62 lines
1.4 KiB
C#
Raw Permalink 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 User
{
/// <summary>
/// 主键
/// </summary>
public int Id { get; set; }
/// <summary>
/// 登录账号
/// </summary>
public string Account { get; set; } = null!;
/// <summary>
/// 昵称
/// </summary>
public string NickName { get; set; } = null!;
/// <summary>
/// 头像图片名,后台生成链接
/// </summary>
public string? Avatar { get; set; }
/// <summary>
/// 当前角色c-买家s-卖家
/// </summary>
public char CurrentRole { get; set; }
/// <summary>
/// 电话
/// </summary>
public string? Telephone { get; set; }
/// <summary>
/// 密码(已加密)
/// </summary>
public string Password { get; set; } = null!;
/// <summary>
/// 创建时间
/// </summary>
public DateTime CreateTime { get; set; }
/// <summary>
/// 最后登录时间
/// </summary>
public DateTime? LastLoginTime { get; set; }
public virtual ICollection<Address> Addresses { get; set; } = new List<Address>();
public virtual ICollection<Reply> Replies { get; set; } = new List<Reply>();
public virtual ICollection<Request> Requests { get; set; } = new List<Request>();
}