From 24dd109a210d630349547c0ed51ea92ce47353b8 Mon Sep 17 00:00:00 2001 From: Blake Matthes Date: Fri, 13 Feb 2026 16:08:23 -0600 Subject: [PATCH] fix(commandlog): changes to the log table --- lstV2/database/schema/commandLog.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lstV2/database/schema/commandLog.ts b/lstV2/database/schema/commandLog.ts index a212494..b593191 100644 --- a/lstV2/database/schema/commandLog.ts +++ b/lstV2/database/schema/commandLog.ts @@ -1,20 +1,20 @@ -import { text, pgTable, timestamp, uuid, jsonb } from "drizzle-orm/pg-core"; +import { jsonb, pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core"; import { createInsertSchema, createSelectSchema } from "drizzle-zod"; import { z } from "zod"; export const commandLog = pgTable( - "commandLog", - { - commandLog_id: uuid("commandLog_id").defaultRandom().primaryKey(), - commandUsed: text("commandUsed").notNull(), - bodySent: jsonb("bodySent").default([]), - reasonUsed: text("reasonUsed"), - add_at: timestamp("add_Date").defaultNow(), - }, - (table) => [ - // uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`), - // uniqueIndex("role_name").on(table.name), - ] + "commandLog", + { + commandLog_id: uuid("commandLog_id").defaultRandom().primaryKey(), + commandUsed: text("commandUsed").notNull(), + bodySent: jsonb("bodySent").default([]), + reasonUsed: text("reasonUsed"), + addDate: timestamp("add_Date").defaultNow(), + }, + (table) => [ + // uniqueIndex('emailUniqueIndex').on(sql`lower(${table.email})`), + // uniqueIndex("role_name").on(table.name), + ], ); // Schema for inserting a user - can be used to validate API requests