import { pgTable, uuid, varchar, text, timestamp, boolean } from 'drizzle-orm/pg-core' export const moduleConfig = pgTable('module_config', { id: uuid('id').primaryKey().defaultRandom(), slug: varchar('slug', { length: 50 }).notNull().unique(), name: varchar('name', { length: 100 }).notNull(), description: text('description'), licensed: boolean('licensed').notNull().default(true), enabled: boolean('enabled').notNull().default(false), createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(), updatedAt: timestamp('updated_at', { withTimezone: true }).notNull().defaultNow(), }) export type ModuleConfig = typeof moduleConfig.$inferSelect