feat: Refactor DTOs to use types.ULID and update companyId fields to be optional

This commit is contained in:
2025-03-12 09:32:29 +00:00
parent 233f3cdb5c
commit 4170eb5fbd
21 changed files with 269 additions and 264 deletions
+6 -4
View File
@@ -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 {