@coursebuilder/adapter-drizzle
Version:
Drizzle adapter for Course Builder.
39 lines (37 loc) • 1.06 kB
JavaScript
import {
__name
} from "./chunk-H736K5TN.js";
// src/lib/mysql/schemas/communication/communication-preference-types.ts
import { boolean, text, timestamp, varchar } from "drizzle-orm/mysql-core";
function getCommunicationPreferenceTypesSchema(mysqlTable) {
return mysqlTable("CommunicationPreferenceType", {
id: varchar("id", {
length: 255
}).notNull().primaryKey(),
organizationId: varchar("organizationId", {
length: 191
}),
name: varchar("name", {
length: 255
}).notNull(),
description: text("description"),
active: boolean("active").notNull().default(true),
createdAt: timestamp("createdAt", {
mode: "date",
fsp: 3
}).defaultNow(),
updatedAt: timestamp("updatedAt", {
mode: "date",
fsp: 3
}),
deletedAt: timestamp("deletedAt", {
mode: "date",
fsp: 3
})
});
}
__name(getCommunicationPreferenceTypesSchema, "getCommunicationPreferenceTypesSchema");
export {
getCommunicationPreferenceTypesSchema
};
//# sourceMappingURL=chunk-EHRARBRS.js.map