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.
TypeScript graphviewkanban-boardnodejsproductivityproject-managementself-hostedtasktask-managementtask-managertodoapp
import { integer, pgSchema, timestamp } from "drizzle-orm/pg-core";
import { UsersSchema } from "./users.schema";
export const LoginCodeRequestsSchema = pgSchema('tv_auth').table('login_code_requests', {
id: integer().primaryKey().generatedAlwaysAsIdentity(),
userId: integer('user_id').notNull().references(() => UsersSchema.id, { onDelete: 'cascade' }),
requestedAt: timestamp('requested_at').notNull().defaultNow(),
});
export type LoginCodeRequestsSchemaTypeForSelect = typeof LoginCodeRequestsSchema.$inferSelect;
export type LoginCodeRequestsSchemaTypeForInsert = typeof LoginCodeRequestsSchema.$inferInsert;