@coursebuilder/adapter-drizzle
Version:
Drizzle adapter for Course Builder.
25 lines (23 loc) • 677 B
JavaScript
import {
__name
} from "./chunk-H736K5TN.js";
// src/lib/mysql/schemas/entitlements/entitlement-type.ts
import { text, uniqueIndex, varchar } from "drizzle-orm/mysql-core";
function getEntitlementTypesSchema(mysqlTable) {
return mysqlTable("EntitlementType", {
id: varchar("id", {
length: 191
}).notNull().primaryKey(),
name: varchar("name", {
length: 255
}).notNull(),
description: text("description")
}, (table) => ({
uniqueName: uniqueIndex("unique_name_idx").on(table.name)
}));
}
__name(getEntitlementTypesSchema, "getEntitlementTypesSchema");
export {
getEntitlementTypesSchema
};
//# sourceMappingURL=chunk-ORRM7KVW.js.map