Spaces:
Running
Running
| { | |
| "id": "1feb2775-4867-48f4-a901-d1f0746a5531", | |
| "prevId": "00000000-0000-0000-0000-000000000000", | |
| "version": "7", | |
| "dialect": "postgresql", | |
| "tables": { | |
| "public.conversations": { | |
| "name": "conversations", | |
| "schema": "", | |
| "columns": { | |
| "id": { | |
| "name": "id", | |
| "type": "text", | |
| "primaryKey": true, | |
| "notNull": true | |
| }, | |
| "title": { | |
| "name": "title", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true | |
| }, | |
| "created_at": { | |
| "name": "created_at", | |
| "type": "timestamp", | |
| "primaryKey": false, | |
| "notNull": true, | |
| "default": "now()" | |
| }, | |
| "personality": { | |
| "name": "personality", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true, | |
| "default": "'default'" | |
| }, | |
| "user_id": { | |
| "name": "user_id", | |
| "type": "integer", | |
| "primaryKey": false, | |
| "notNull": false | |
| } | |
| }, | |
| "indexes": {}, | |
| "foreignKeys": { | |
| "conversations_user_id_users_id_fk": { | |
| "name": "conversations_user_id_users_id_fk", | |
| "tableFrom": "conversations", | |
| "tableTo": "users", | |
| "columnsFrom": [ | |
| "user_id" | |
| ], | |
| "columnsTo": [ | |
| "id" | |
| ], | |
| "onDelete": "no action", | |
| "onUpdate": "no action" | |
| } | |
| }, | |
| "compositePrimaryKeys": {}, | |
| "uniqueConstraints": {}, | |
| "policies": {}, | |
| "checkConstraints": {}, | |
| "isRLSEnabled": false | |
| }, | |
| "public.messages": { | |
| "name": "messages", | |
| "schema": "", | |
| "columns": { | |
| "id": { | |
| "name": "id", | |
| "type": "serial", | |
| "primaryKey": true, | |
| "notNull": true | |
| }, | |
| "content": { | |
| "name": "content", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true | |
| }, | |
| "role": { | |
| "name": "role", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true | |
| }, | |
| "conversation_id": { | |
| "name": "conversation_id", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true | |
| }, | |
| "created_at": { | |
| "name": "created_at", | |
| "type": "timestamp", | |
| "primaryKey": false, | |
| "notNull": true, | |
| "default": "now()" | |
| } | |
| }, | |
| "indexes": {}, | |
| "foreignKeys": {}, | |
| "compositePrimaryKeys": {}, | |
| "uniqueConstraints": {}, | |
| "policies": {}, | |
| "checkConstraints": {}, | |
| "isRLSEnabled": false | |
| }, | |
| "public.users": { | |
| "name": "users", | |
| "schema": "", | |
| "columns": { | |
| "id": { | |
| "name": "id", | |
| "type": "serial", | |
| "primaryKey": true, | |
| "notNull": true | |
| }, | |
| "username": { | |
| "name": "username", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true | |
| }, | |
| "password": { | |
| "name": "password", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": true | |
| }, | |
| "full_name": { | |
| "name": "full_name", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": false | |
| }, | |
| "location": { | |
| "name": "location", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": false | |
| }, | |
| "interests": { | |
| "name": "interests", | |
| "type": "text[]", | |
| "primaryKey": false, | |
| "notNull": false | |
| }, | |
| "profession": { | |
| "name": "profession", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": false | |
| }, | |
| "pets": { | |
| "name": "pets", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": false | |
| }, | |
| "system_context": { | |
| "name": "system_context", | |
| "type": "text", | |
| "primaryKey": false, | |
| "notNull": false | |
| } | |
| }, | |
| "indexes": {}, | |
| "foreignKeys": {}, | |
| "compositePrimaryKeys": {}, | |
| "uniqueConstraints": { | |
| "users_username_unique": { | |
| "name": "users_username_unique", | |
| "nullsNotDistinct": false, | |
| "columns": [ | |
| "username" | |
| ] | |
| } | |
| }, | |
| "policies": {}, | |
| "checkConstraints": {}, | |
| "isRLSEnabled": false | |
| } | |
| }, | |
| "enums": {}, | |
| "schemas": {}, | |
| "sequences": {}, | |
| "roles": {}, | |
| "policies": {}, | |
| "views": {}, | |
| "_meta": { | |
| "columns": {}, | |
| "schemas": {}, | |
| "tables": {} | |
| } | |
| } |