Merge branch 'notif' - add company reminders feature
This commit is contained in:
@@ -117,6 +117,16 @@ export const companies = pgTable('companies', {
|
||||
updatedAt: timestamp('updated_at').defaultNow().notNull(),
|
||||
});
|
||||
|
||||
// Company reminders table - jednoduché pripomienky naviazané na firmu
|
||||
export const companyReminders = pgTable('company_remind', {
|
||||
id: uuid('id').primaryKey().defaultRandom(),
|
||||
companyId: uuid('company_id').references(() => companies.id, { onDelete: 'cascade' }).notNull(),
|
||||
description: text('description').notNull(),
|
||||
isChecked: boolean('is_checked').default(false).notNull(),
|
||||
createdAt: timestamp('created_at').defaultNow().notNull(),
|
||||
updatedAt: timestamp('updated_at').defaultNow().notNull(),
|
||||
});
|
||||
|
||||
// Projects table - projekty
|
||||
export const projects = pgTable('projects', {
|
||||
id: uuid('id').primaryKey().defaultRandom(),
|
||||
|
||||
Reference in New Issue
Block a user