feat: Refactor DTOs to use types.ULID and update companyId fields to be optional
This commit is contained in:
@@ -73,11 +73,12 @@ export interface CustomerDto {
|
||||
updatedAt: string;
|
||||
lastEditorID: string;
|
||||
name: string;
|
||||
companyId: string;
|
||||
companyId?: string;
|
||||
owningUserID?: string;
|
||||
}
|
||||
export interface CustomerCreateDto {
|
||||
name: string;
|
||||
companyId: string;
|
||||
companyId?: string;
|
||||
}
|
||||
export interface CustomerUpdateDto {
|
||||
id: string;
|
||||
@@ -85,7 +86,8 @@ export interface CustomerUpdateDto {
|
||||
updatedAt?: string;
|
||||
lastEditorID?: string;
|
||||
name?: string;
|
||||
companyId?: string;
|
||||
companyId?: Nullable<string>;
|
||||
owningUserID?: Nullable<string>;
|
||||
}
|
||||
|
||||
//////////
|
||||
@@ -168,7 +170,7 @@ export interface UserCreateDto {
|
||||
email: string;
|
||||
password: string;
|
||||
role: string;
|
||||
companyId?: Nullable<string>;
|
||||
companyId?: string;
|
||||
hourlyRate: number /* float64 */;
|
||||
}
|
||||
export interface UserUpdateDto {
|
||||
|
||||
Reference in New Issue
Block a user