feat: add module schema discovery and validation
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { createModuleTable, defineModuleSchema } from "@ekklesia/module-sdk";
|
||||
import { text, uuid } from "drizzle-orm/pg-core";
|
||||
|
||||
const moduleTable = createModuleTable("example");
|
||||
|
||||
export const records = moduleTable("records", {
|
||||
id: uuid("id").primaryKey(),
|
||||
value: text("value").notNull(),
|
||||
});
|
||||
|
||||
export default defineModuleSchema({
|
||||
moduleId: "example",
|
||||
tables: { records },
|
||||
});
|
||||
Reference in New Issue
Block a user