- Add preload relationships to address-related models - Rename postalCode to postalCode_code for consistency - Simplify location type handling with hidden fields - Update validation schemas and form components - Improve address display in patient preview
21 lines
352 B
TypeScript
21 lines
352 B
TypeScript
import { type Base, genBase } from './_base'
|
|
import type { Regency } from './regency'
|
|
|
|
export interface District extends Base {
|
|
regency_code: string
|
|
code: string
|
|
name: string
|
|
|
|
// preload
|
|
regency?: Regency | null
|
|
}
|
|
|
|
export function genDistrict(): District {
|
|
return {
|
|
...genBase(),
|
|
regency_code: '',
|
|
name: '',
|
|
code: '',
|
|
}
|
|
}
|