- 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
20 lines
342 B
TypeScript
20 lines
342 B
TypeScript
import { type Base, genBase } from './_base'
|
|
import type { Province } from './province'
|
|
|
|
export interface Regency extends Base {
|
|
code: string
|
|
name: string
|
|
province_code: string
|
|
|
|
province?: Province | null
|
|
}
|
|
|
|
export function genRegency(): Regency {
|
|
return {
|
|
...genBase(),
|
|
code: '',
|
|
name: '',
|
|
province_code: '',
|
|
}
|
|
}
|