- disabled boolean on components table (default false) - Component list filters out disabled components - Component detail returns 404 for disabled - Delete button with confirmation on component detail page - Installation form filters out instances of disabled components Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -138,6 +138,7 @@ export const components = pgTable(
|
||||
defaultCondition: text('default_condition').notNull().default('Working'),
|
||||
defaultFirmwareVersion: text('default_firmware_version'),
|
||||
defaultLocationId: uuid('default_location_id').references(() => locations.id),
|
||||
disabled: boolean('disabled').default(false).notNull(),
|
||||
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
updatedAt: timestamp('updated_at', { withTimezone: true }).defaultNow().notNull()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user