Keep cabinet data private per patient, email new accounts after a request, and store gallery photos as files.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -40,6 +40,20 @@ export async function ensureInquiriesSchema(payload: Payload) {
|
||||
`,
|
||||
)
|
||||
|
||||
await exec(
|
||||
payload,
|
||||
sql`
|
||||
ALTER TABLE inquiries
|
||||
ADD COLUMN IF NOT EXISTS patient_id integer
|
||||
`,
|
||||
)
|
||||
await exec(
|
||||
payload,
|
||||
sql`
|
||||
CREATE INDEX IF NOT EXISTS inquiries_patient_idx ON inquiries (patient_id)
|
||||
`,
|
||||
)
|
||||
|
||||
await exec(
|
||||
payload,
|
||||
sql`
|
||||
|
||||
Reference in New Issue
Block a user