Spaces:
Paused
Paused
Download packages/db/src/schema/instance_settings.ts from GraziePrego/agent: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/GraziePrego/agent/resolve/main/packages/db/src/schema/instance_settings.ts
- Command line
-
hf download hf://spaces/GraziePrego/agent/packages/db/src/schema/instance_settings.ts
-
curl -L -o instance_settings.ts https://huggingface.co/spaces/GraziePrego/agent/resolve/main/packages/db/src/schema/instance_settings.ts
760 Bytes
| import { pgTable, uuid, text, timestamp, jsonb, uniqueIndex } from "drizzle-orm/pg-core"; | |
| export const instanceSettings = pgTable( | |
| "instance_settings", | |
| { | |
| id: uuid("id").primaryKey().defaultRandom(), | |
| singletonKey: text("singleton_key").notNull().default("default"), | |
| general: jsonb("general").$type<Record<string, unknown>>().notNull().default({}), | |
| experimental: jsonb("experimental").$type<Record<string, unknown>>().notNull().default({}), | |
| createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(), | |
| updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(), | |
| }, | |
| (table) => ({ | |
| singletonKeyIdx: uniqueIndex("instance_settings_singleton_key_idx").on(table.singletonKey), | |
| }), | |
| ); | |