27 lines
739 B
C#
27 lines
739 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Entities.ServiceProviders;
|
|
using Mango.Entities.Profiles;
|
|
using Mango.Entities.Users;
|
|
using Mango.Interfaces.Companies;
|
|
|
|
namespace Mango.Entities.Companies;
|
|
|
|
[Table("ServiceProviders")]
|
|
public class Company : AcCompany<User, UserToCompany, Profile>, ICompany<User, UserToCompany, Profile>, ICompanyBase
|
|
{
|
|
public Company()
|
|
{
|
|
}
|
|
|
|
public Company(string name, Guid ownerId) : this(Guid.NewGuid(), name, ownerId)
|
|
{
|
|
}
|
|
|
|
public Company(Guid id, string name, Guid ownerId) : this(id, name, ownerId, Guid.NewGuid())
|
|
{
|
|
}
|
|
|
|
public Company(Guid id, string name, Guid ownerId, Guid affiliateId) : base(id, name, ownerId, affiliateId)
|
|
{
|
|
}
|
|
} |