using Admin.Core.Common.BaseModel; using FreeSql.DataAnnotations; namespace Admin.Core.Model.Admin { /// /// 文档图片 /// [Table(Name = "ad_document_image")] [Index("idx_{tablename}_01", nameof(DocumentId) + "," + nameof(Url) + "," + nameof(TenantId), true)] public class DocumentImageEntity: EntityAdd, ITenant { /// /// 租户Id /// [Column(Position = -10, CanUpdate = false)] public long? TenantId { get; set; } /// /// 用户Id /// public long DocumentId { get; set; } public DocumentEntity Document { get; set; } /// /// 请求路径 /// public string Url { get; set; } } }