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, jsonb, pgSchema, timestamp } from 'drizzle-orm/pg-core'
import { TimeEntriesSchema } from './time-entries.schema'
export const TimeEntriesHistorySchema = pgSchema('history').table('time_entries', {
id: integer().primaryKey().generatedAlwaysAsIdentity(),
entryId: integer('entry_id').notNull().references(() => TimeEntriesSchema.id, { onDelete: 'cascade' }),
editDate: timestamp('edit_date').notNull().defaultNow(),
entry: jsonb().notNull(),
})
export type TimeEntriesHistorySchemaTypeForSelect = typeof TimeEntriesHistorySchema.$inferSelect
export type TimeEntriesHistorySchemaTypeForInsert = typeof TimeEntriesHistorySchema.$inferInsert