Clean up duplicate schema definition

- Remove duplicate companyReminders table definition
- Add company isActive status feature
- Add company reminders feature

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
richardtekula
2025-11-25 10:37:42 +01:00
parent d791de3834
commit f4397bc0de

View File

@@ -117,16 +117,6 @@ export const companies = pgTable('companies', {
updatedAt: timestamp('updated_at').defaultNow().notNull(), 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 // Projects table - projekty
export const projects = pgTable('projects', { export const projects = pgTable('projects', {
id: uuid('id').primaryKey().defaultRandom(), id: uuid('id').primaryKey().defaultRandom(),