Updated the register to allow the difference between a individual and corporate

This commit is contained in:
Tiago Ribeiro
2023-10-27 15:50:02 +01:00
parent 0aefbb85ec
commit 6e31a05f21
8 changed files with 364 additions and 176 deletions

View File

@@ -14,13 +14,25 @@ export interface User {
bio: string;
isVerified: boolean;
demographicInformation?: DemographicInformation;
companyInformation?: CompanyInformation;
corporateInformation?: CorporateInformation;
subscriptionExpirationDate?: null | Date;
isDisabled?: boolean;
registrationDate?: Date;
}
export interface CompanyInformation {}
export interface CorporateInformation {
companyInformation: CompanyInformation;
payment?: {
value: number;
currency: string;
};
allowedUserAmount?: number;
}
export interface CompanyInformation {
name: string;
userAmount: number;
}
export interface DemographicInformation {
country: string;