49 lines
1.3 KiB
C#
Raw Normal View History

2025-06-06 14:57:20 +08:00
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YD_WeChatApplet.Api.SmartSportsEntitys
{
/// <summary>
/// 场馆资源表
/// </summary>
[Table("Y_StadiumResource")]
public class Y_StadiumResource
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Display(Description = "主键Id")]
[Comment("Id")]
public int Id { get; set; }
/// <summary>
///场馆Id
/// </summary>
[Display(Name = "场馆Id")]
[Comment("场馆Id")]
[Column(TypeName = "int")]
public int Y_StadiumResourceId { get; set; }
/// <summary>
///资源类型[1:图片/2:视频]
/// </summary>
[Display(Name = "资源类型[1:图片/2:视频]")]
[Comment("资源类型[1:图片/2:视频]")]
[Column(TypeName = "int")]
public int Type { get; set; }
/// <summary>
/// 资源地址
/// </summary>
[Display(Name = "资源地址")]
[Comment("资源地址")]
[Column(TypeName = "nvarchar(2000)")]
public string Url { get; set; }
public Y_Stadium Stadium { get; set; }
}
}