Files
EpicNext-Cms/src/db/catalog-packages.ts
T
Simo 047cd9f3dd
CI / check (push) Successful in 52s
CI / deploy (push) Successful in 1m23s
CI / publish-container (push) Failing after 27s
feat(catalog): add saved packages, preview and bulk price editing
2026-09-09 20:04:10 +02:00

17 lines
531 B
TypeScript

import {
int,
longtext,
mysqlTable,
timestamp,
varchar,
} from "drizzle-orm/mysql-core";
export const CatalogPackages = mysqlTable("website_catalog_packages", {
id: varchar("id", { length: 36 }).primaryKey(),
name: varchar("name", { length: 128 }).notNull(),
version: int("version", { unsigned: true }).notNull(),
status: varchar("status", { length: 16 }).notNull(),
mode: varchar("mode", { length: 16 }).notNull(),
payload: longtext("payload").notNull(),
updatedAt: timestamp("updated_at").notNull().defaultNow(),
});