feat: Enhance condo and family data models
Adds new fields for detailed address information and notes to the Condo and Family types. Updates database schema and server API endpoints to support these new fields, improving data richness for location and specific family/condo details.
This commit is contained in:
10
types.ts
10
types.ts
@@ -3,6 +3,11 @@ export interface Condo {
|
||||
id: string;
|
||||
name: string;
|
||||
address?: string;
|
||||
streetNumber?: string; // Civico
|
||||
city?: string; // Città
|
||||
province?: string; // Provincia
|
||||
zipCode?: string; // CAP
|
||||
notes?: string; // Note
|
||||
iban?: string;
|
||||
defaultMonthlyQuota: number;
|
||||
image?: string; // Optional placeholder for logo
|
||||
@@ -12,7 +17,10 @@ export interface Family {
|
||||
id: string;
|
||||
condoId: string; // Link to specific condo
|
||||
name: string;
|
||||
unitNumber: string; // Internal apartment number
|
||||
unitNumber: string; // Internal apartment number (Interno)
|
||||
stair?: string; // Scala
|
||||
floor?: string; // Piano
|
||||
notes?: string; // Note
|
||||
contactEmail?: string;
|
||||
balance: number; // Calculated balance (positive = credit, negative = debt)
|
||||
customMonthlyQuota?: number; // Optional override for default quota
|
||||
|
||||
Reference in New Issue
Block a user