Files
ls/src/server/db/schema/create-table.ts
2024-11-22 23:26:19 -06:00

10 lines
342 B
TypeScript

import { pgTableCreator } from "drizzle-orm/pg-core";
/**
* This is an example of how to use the multi-project schema feature of Drizzle ORM. Use the same
* database instance for multiple projects.
*
* @see https://orm.drizzle.team/docs/goodies#multi-project-schema
*/
export const createTable = pgTableCreator((name) => `ls_${name}`);