xonecas.io
53129
Pa

PAT / files

PAT / drizzle / meta / 0006_snapshot.json

3.8 KB
1{
2  "id": "58baed47-8a10-4003-81cf-3cc9854ac3cb",
3  "prevId": "c986ec80-6630-4a52-97f2-3df6e02ca96b",
4  "version": "7",
5  "dialect": "postgresql",
6  "tables": {
7    "public.messages": {
8      "name": "messages",
9      "schema": "",
10      "columns": {
11        "id": {
12          "name": "id",
13          "type": "serial",
14          "primaryKey": true,
15          "notNull": true
16        },
17        "thread_id": {
18          "name": "thread_id",
19          "type": "integer",
20          "primaryKey": false,
21          "notNull": true
22        },
23        "role": {
24          "name": "role",
25          "type": "text",
26          "primaryKey": false,
27          "notNull": true
28        },
29        "content": {
30          "name": "content",
31          "type": "text",
32          "primaryKey": false,
33          "notNull": true
34        },
35        "model": {
36          "name": "model",
37          "type": "text",
38          "primaryKey": false,
39          "notNull": false
40        },
41        "max_prompt_length": {
42          "name": "max_prompt_length",
43          "type": "integer",
44          "primaryKey": false,
45          "notNull": false
46        },
47        "created_at": {
48          "name": "created_at",
49          "type": "timestamp with time zone",
50          "primaryKey": false,
51          "notNull": true,
52          "default": "now()"
53        },
54        "generation_time_ms": {
55          "name": "generation_time_ms",
56          "type": "integer",
57          "primaryKey": false,
58          "notNull": false
59        },
60        "tool_call_counts": {
61          "name": "tool_call_counts",
62          "type": "text",
63          "primaryKey": false,
64          "notNull": false
65        }
66      },
67      "indexes": {},
68      "foreignKeys": {
69        "messages_thread_id_threads_id_fk": {
70          "name": "messages_thread_id_threads_id_fk",
71          "tableFrom": "messages",
72          "tableTo": "threads",
73          "columnsFrom": [
74            "thread_id"
75          ],
76          "columnsTo": [
77            "id"
78          ],
79          "onDelete": "cascade",
80          "onUpdate": "no action"
81        }
82      },
83      "compositePrimaryKeys": {},
84      "uniqueConstraints": {},
85      "policies": {},
86      "checkConstraints": {},
87      "isRLSEnabled": false
88    },
89    "public.threads": {
90      "name": "threads",
91      "schema": "",
92      "columns": {
93        "id": {
94          "name": "id",
95          "type": "serial",
96          "primaryKey": true,
97          "notNull": true
98        },
99        "title": {
100          "name": "title",
101          "type": "text",
102          "primaryKey": false,
103          "notNull": false
104        },
105        "model": {
106          "name": "model",
107          "type": "text",
108          "primaryKey": false,
109          "notNull": true,
110          "default": "'gpt-oss'"
111        },
112        "max_prompt_length": {
113          "name": "max_prompt_length",
114          "type": "integer",
115          "primaryKey": false,
116          "notNull": false
117        },
118        "user_prompt": {
119          "name": "user_prompt",
120          "type": "text",
121          "primaryKey": false,
122          "notNull": false
123        },
124        "created_at": {
125          "name": "created_at",
126          "type": "timestamp with time zone",
127          "primaryKey": false,
128          "notNull": true,
129          "default": "now()"
130        },
131        "updated_at": {
132          "name": "updated_at",
133          "type": "timestamp with time zone",
134          "primaryKey": false,
135          "notNull": true,
136          "default": "now()"
137        }
138      },
139      "indexes": {},
140      "foreignKeys": {},
141      "compositePrimaryKeys": {},
142      "uniqueConstraints": {},
143      "policies": {},
144      "checkConstraints": {},
145      "isRLSEnabled": false
146    }
147  },
148  "enums": {},
149  "schemas": {},
150  "sequences": {},
151  "roles": {},
152  "policies": {},
153  "views": {},
154  "_meta": {
155    "columns": {},
156    "schemas": {},
157    "tables": {}
158  }
159}