init: me-api 个人简历后台
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
import { getDb } from "../api/queries/connection";
|
||||
// TODO: import tables from "./schema"
|
||||
|
||||
async function seed() {
|
||||
const db = getDb();
|
||||
console.log("Seeding database...");
|
||||
|
||||
// TODO: insert seed data, e.g.
|
||||
// await db.insert(schema.posts).values([
|
||||
// { title: "First post", content: "Hello world" },
|
||||
// ]);
|
||||
|
||||
console.log("Done.");
|
||||
process.exit(0); // close MySQL connection pool
|
||||
}
|
||||
|
||||
seed();
|
||||
Reference in New Issue
Block a user