Spaces:
Sleeping
Sleeping
Download lib/db/src/schema/index.ts from Tahasaif3/DataExtract: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/spaces/Tahasaif3/DataExtract/resolve/main/lib/db/src/schema/index.ts
- Command line
-
hf download hf://spaces/Tahasaif3/DataExtract/lib/db/src/schema/index.ts
-
curl -L -o index.ts https://huggingface.co/spaces/Tahasaif3/DataExtract/resolve/main/lib/db/src/schema/index.ts
761 Bytes
| // Export your models here. Add one export per file | |
| // export * from "./posts"; | |
| // | |
| // Each model/table should ideally be split into different files. | |
| // Each model/table should define a Drizzle table, insert schema, and types: | |
| // | |
| // import { pgTable, text, serial } from "drizzle-orm/pg-core"; | |
| // import { createInsertSchema } from "drizzle-zod"; | |
| // import { z } from "zod/v4"; | |
| // | |
| // export const postsTable = pgTable("posts", { | |
| // id: serial("id").primaryKey(), | |
| // title: text("title").notNull(), | |
| // }); | |
| // | |
| // export const insertPostSchema = createInsertSchema(postsTable).omit({ id: true }); | |
| // export type InsertPost = z.infer<typeof insertPostSchema>; | |
| // export type Post = typeof postsTable.$inferSelect; | |
| export * from './articles'; |