update
This commit is contained in:
@@ -63,7 +63,6 @@ export interface MitgliederProfile {
|
||||
id: string;
|
||||
user_id: string;
|
||||
|
||||
mitglieds_nr: string | null;
|
||||
fdisk_standesbuch_nr: string | null;
|
||||
dienstgrad: DienstgradEnum | null;
|
||||
dienstgrad_seit: Date | null;
|
||||
@@ -86,6 +85,13 @@ export interface MitgliederProfile {
|
||||
bemerkungen: string | null;
|
||||
bild_url: string | null;
|
||||
|
||||
// FDISK-synced extended profile fields
|
||||
geburtsort: string | null;
|
||||
geschlecht: string | null;
|
||||
beruf: string | null;
|
||||
wohnort: string | null;
|
||||
plz: string | null;
|
||||
|
||||
created_at: Date;
|
||||
updated_at: Date;
|
||||
}
|
||||
@@ -143,7 +149,6 @@ export interface MemberListItem {
|
||||
|
||||
// profile fields (null when no profile exists)
|
||||
profile_id: string | null;
|
||||
mitglieds_nr: string | null;
|
||||
fdisk_standesbuch_nr: string | null;
|
||||
dienstgrad: DienstgradEnum | null;
|
||||
funktion: FunktionEnum[];
|
||||
@@ -156,7 +161,7 @@ export interface MemberListItem {
|
||||
// Filter parameters for getAllMembers()
|
||||
// ============================================================
|
||||
export interface MemberFilters {
|
||||
search?: string; // matches name, email, mitglieds_nr
|
||||
search?: string; // matches name, email, fdisk_standesbuch_nr
|
||||
status?: StatusEnum[];
|
||||
dienstgrad?: DienstgradEnum[];
|
||||
page?: number; // 1-based
|
||||
@@ -173,7 +178,6 @@ export interface MemberFilters {
|
||||
* status has a default; every other field may be omitted.
|
||||
*/
|
||||
export const CreateMemberProfileSchema = z.object({
|
||||
mitglieds_nr: z.string().max(32).optional(),
|
||||
fdisk_standesbuch_nr: z.string().max(32).optional(),
|
||||
dienstgrad: z.enum(DIENSTGRAD_VALUES).optional(),
|
||||
dienstgrad_seit: z.coerce.date().optional(),
|
||||
|
||||
Reference in New Issue
Block a user