chore(db): remove unused table and unused route (#2342)

This commit is contained in:
Waleed
2025-12-12 16:58:38 -08:00
committed by GitHub
parent dda44f7382
commit deb085881f
7 changed files with 7725 additions and 90 deletions

View File

@@ -0,0 +1 @@
DROP TABLE "marketplace" CASCADE;

File diff suppressed because it is too large Load Diff

View File

@@ -848,6 +848,13 @@
"when": 1765434895472,
"tag": "0121_new_mantis",
"breakpoints": true
},
{
"idx": 122,
"version": "7",
"when": 1765587157593,
"tag": "0122_pale_absorbing_man",
"breakpoints": true
}
]
}

View File

@@ -621,24 +621,6 @@ export const apiKey = pgTable(
})
)
export const marketplace = pgTable('marketplace', {
id: text('id').primaryKey(),
workflowId: text('workflow_id')
.notNull()
.references(() => workflow.id, { onDelete: 'cascade' }),
state: json('state').notNull(),
name: text('name').notNull(),
description: text('description'),
authorId: text('author_id')
.notNull()
.references(() => user.id),
authorName: text('author_name').notNull(),
views: integer('views').notNull().default(0),
category: text('category'),
createdAt: timestamp('created_at').notNull().defaultNow(),
updatedAt: timestamp('updated_at').notNull().defaultNow(),
})
export const billingBlockedReasonEnum = pgEnum('billing_blocked_reason', [
'payment_failed',
'dispute',