DocSpace-client/common/ASC.Core.Common/EF/Model/Tenant/DbQuota.cs

37 lines
998 B
C#
Raw Normal View History

2019-12-02 09:12:16 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ASC.Core.Common.EF
{
[Table("tenants_quota")]
2019-12-17 13:01:59 +00:00
public class DbQuota : BaseEntity
2019-12-02 09:12:16 +00:00
{
[Key]
public int Tenant { get; set; }
public string Name { get; set; }
public string Description { get; set; }
[Column("max_file_size")]
public long MaxFileSize { get; set; }
[Column("max_total_size")]
public long MaxTotalSize { get; set; }
[Column("active_users")]
public int ActiveUsers { get; set; }
public string Features { get; set; }
public decimal Price { get; set; }
public decimal Price2 { get; set; }
[Column("avangate_id")]
public string AvangateId { get; set; }
public bool Visible { get; set; }
2019-12-17 13:01:59 +00:00
2020-02-21 12:38:04 +00:00
public override object[] GetKeys()
2019-12-17 13:01:59 +00:00
{
return new object[] { Tenant };
}
2019-12-02 09:12:16 +00:00
}
}