From f4397bc0ded687a82c7240881c190de0c6357bb7 Mon Sep 17 00:00:00 2001 From: richardtekula Date: Tue, 25 Nov 2025 10:37:42 +0100 Subject: [PATCH] Clean up duplicate schema definition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/db/schema.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/db/schema.js b/src/db/schema.js index af40bfb..b6ca7c5 100644 --- a/src/db/schema.js +++ b/src/db/schema.js @@ -117,16 +117,6 @@ 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(),