fix(starter): updated table variable names in schema.ts to match actual supabase table names

This commit is contained in:
Waleed Latif
2025-02-19 12:59:35 -08:00
parent d5f102d419
commit 384b79ef8d
4 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
import { boolean, integer, json, pgTable, text, timestamp, unique } from 'drizzle-orm/pg-core'
import { boolean, json, pgTable, text, timestamp } from 'drizzle-orm/pg-core'
export const user = pgTable('user', {
id: text('id').primaryKey(),
@@ -71,7 +71,7 @@ export const waitlist = pgTable('waitlist', {
updatedAt: timestamp('updated_at').notNull().defaultNow(),
})
export const consoleLog = pgTable('workflow_logs', {
export const workflowLogs = pgTable('workflow_logs', {
id: text('id').primaryKey(),
workflowId: text('workflow_id')
.notNull()
@@ -82,7 +82,7 @@ export const consoleLog = pgTable('workflow_logs', {
createdAt: timestamp('created_at').notNull().defaultNow(),
})
export const userEnvironment = pgTable('environment', {
export const environment = pgTable('environment', {
id: text('id').primaryKey(), // Use the user id as the key
userId: text('user_id')
.notNull()