Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

608 B
Raw Blame
import { integer, pgSchema, serial, timestamp, varchar } from "drizzle-orm/pg-core";
import { UsersSchema } from "./users.schema";

export const AccountDeletionSchema = pgSchema('tv_auth').table('account_deletion', {
    id: serial().notNull(),
    code: varchar(),
    userId: integer('user_id').references(() => UsersSchema.id, { onDelete: 'cascade' }),
    createdAt: timestamp('created_at').notNull().defaultNow(),
});

export type AccountDeletionSchemaTypeForSelect = typeof AccountDeletionSchema.$inferSelect;
export type AccountDeletionSchemaTypeForInsert = typeof AccountDeletionSchema.$inferInsert;