Added more database fields for contacts. Worked on popovers in customers view. #3

This commit is contained in:
2025-11-04 15:17:23 +01:00
parent d222b4c10d
commit b27a1bd66d
5 changed files with 139 additions and 20 deletions
+19 -5
View File
@@ -70,16 +70,26 @@ export function newAddress(): Address {
}
}
export interface OnlineAccount {
platform: string;
userName: string;
url: string;
}
export interface Contact {
id: number;
isPrimary?: boolean;
salutation: string;
academicTitle?: string;
firstName: string;
lastName: string;
jobTitle?: string;
email?: string;
phone?: string;
position?: string;
isPrimary?: boolean;
mobilePhone?: string;
avatar?: string;
notes?: string;
onlineAccounts?: OnlineAccount[];
}
export type ContactType = Contact
@@ -87,14 +97,18 @@ export type ContactType = Contact
export function newContact(): Contact {
return {
id: 0,
isPrimary: false,
salutation: '',
academicTitle: null,
firstName: '',
lastName: '',
jobTitle: '',
email: '',
phone: '',
position: '',
isPrimary: false,
avatar: ''
mobilePhone: '',
avatar: '',
notes: '',
onlineAccounts: []
}
}