@coursebuilder/adapter-drizzle
Version:
Drizzle adapter for Course Builder.
38 lines (36 loc) • 960 B
JavaScript
import {
__name
} from "./chunk-H736K5TN.js";
// src/lib/mysql/schemas/commerce/merchant-session.ts
import { index, primaryKey, varchar } from "drizzle-orm/mysql-core";
function getMerchantSessionSchema(mysqlTable) {
return mysqlTable("MerchantSession", {
id: varchar("id", {
length: 191
}).notNull(),
organizationId: varchar("organizationId", {
length: 191
}),
identifier: varchar("identifier", {
length: 191
}).notNull(),
merchantAccountId: varchar("merchantAccountId", {
length: 191
}).notNull()
}, (table) => {
return {
merchantSessionId: primaryKey({
columns: [
table.id
],
name: "MerchantSession_id"
}),
organizationIdIdx: index("organizationId_idx").on(table.organizationId)
};
});
}
__name(getMerchantSessionSchema, "getMerchantSessionSchema");
export {
getMerchantSessionSchema
};
//# sourceMappingURL=chunk-BLDW3QUS.js.map