14 lines
434 B
TypeScript
14 lines
434 B
TypeScript
import z from "zod";
|
|
|
|
/**
|
|
* Uninstall data-handling policy. `archive` moves rows to a prefixed
|
|
* table so they survive plugin removal; `drop` destroys the schema;
|
|
* `keep` leaves data in place for a later reinstall.
|
|
*/
|
|
export const uninstallSchema = z.object({
|
|
dataPolicy: z.enum(["archive", "drop", "keep"]),
|
|
archiveTablePrefix: z.string().min(1).optional(),
|
|
});
|
|
|
|
export type Uninstall = z.infer<typeof uninstallSchema>;
|