Files
web-alterflixhub/app/server/db.ts
T
Bkk1234 92a2adad6a refactor: split repo into docs/ mockup/ app/
- move static mockups from resource/ui to mockup/
- move React app scaffold from resource/ui to app/
- move prome.md + images to docs/
- drop empty resource/jsonfile and resource/
- add root .gitignore
- rewrite README for new layout
- fix paths in mockup/index.html (resource/ui -> mockup, docs/prome.md)
2026-10-27 00:55:32 +07:00

31 lines
1.1 KiB
TypeScript

// App data layer — the DB client lives here.
//
// This starter ships without any tables, so the wiring is stubbed out. `getDb()`
// returns a Drizzle client bound to the app's `schema`. Enable it when you add
// your first table (see `drizzle/START_HERE.md`):
//
// 1. Define tables in `drizzle/schema.ts`.
// 2. Uncomment the lines below, run `pnpm db:generate`, then `pnpm db:migrate`
// to apply the new migration. (drizzle-orm, drizzle-kit, drizzle.config.ts,
// and the db:generate/db:migrate scripts already ship.)
//
// import { createGetDb } from "@agent-native/core/db";
// import { registerShareableResource } from "@agent-native/core/sharing";
// import * as schema from "../drizzle/schema";
//
// export const getDb = createGetDb(schema);
// export { schema };
//
// // Lets accessFilter/assertAccess and the share actions resolve "note" rows.
// registerShareableResource({
// type: "note",
// resourceTable: schema.notes,
// sharesTable: schema.noteShares,
// displayName: "Note",
// titleColumn: "title",
// getResourcePath: (note) => `/notes/${note.id}`,
// getDb,
// });
export {};