123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using Admin.Core.Common.BaseModel;
- using FreeSql;
- using FreeSql.DataAnnotations;
- namespace Admin.Core.Model.Admin
- {
-
-
-
- [Table(Name = "ad_tenant")]
- [Index("idx_{tablename}_01", nameof(Name), true)]
- [Index("idx_{tablename}_02", nameof(Code), true)]
- public class TenantEntity : EntityFull
- {
-
-
-
- [Column(StringLength = 50)]
- public string Code { get; set; }
-
-
-
- [Column(StringLength = 50)]
- public string Name { get; set; }
-
-
-
- [Column(MapType = typeof(int))]
- public DataType? DbType { get; set; }
-
-
-
- [Column(StringLength = 500)]
- public string ConnectionString { get; set; }
-
-
-
- public int? IdleTime { get; set; } = 10;
-
-
-
- public bool Enabled { get; set; } = true;
-
-
-
- [Column(StringLength = 500)]
- public string Description { get; set; }
- }
- }
|