feat(09-01): add property_address column to clients — schema, migration, server actions

- Add propertyAddress: text("property_address") nullable column to clients pgTable
- Generate migration drizzle/0007_equal_nekra.sql: ALTER TABLE "clients" ADD COLUMN "property_address" text
- Apply migration successfully to local postgres database
- Extend clientSchema Zod schema with propertyAddress: z.string().optional()
- createClient: persist propertyAddress || null to coerce empty string to NULL
- updateClient: persist propertyAddress || null alongside name, email, updatedAt
This commit is contained in:
Chandler Copeland
2026-03-21 12:13:55 -06:00
parent 569dc0fc97
commit baa1c785a5
5 changed files with 474 additions and 1 deletions

View File

@@ -50,6 +50,13 @@
"when": 1774115178000,
"tag": "0006_type_discriminant",
"breakpoints": true
},
{
"idx": 7,
"version": "7",
"when": 1774116777513,
"tag": "0007_equal_nekra",
"breakpoints": true
}
]
}