1339 lines
35 KiB
JSON
1339 lines
35 KiB
JSON
{
|
|
"id": "6099e3d7-80f3-4741-94ae-a274aeb80b42",
|
|
"prevId": "7e0d3770-ff4c-487e-a642-37c0b5ee54a8",
|
|
"version": "7",
|
|
"dialect": "postgresql",
|
|
"tables": {
|
|
"public.chat_completions_history": {
|
|
"name": "chat_completions_history",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"prompt": {
|
|
"name": "prompt",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"response": {
|
|
"name": "response",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"task": {
|
|
"name": "task",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.chat_messages": {
|
|
"name": "chat_messages",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"platform": {
|
|
"name": "platform",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"platform_message_id": {
|
|
"name": "platform_message_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"from_id": {
|
|
"name": "from_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"from_name": {
|
|
"name": "from_name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"in_chat_id": {
|
|
"name": "in_chat_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"is_reply": {
|
|
"name": "is_reply",
|
|
"type": "boolean",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": false
|
|
},
|
|
"reply_to_name": {
|
|
"name": "reply_to_name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"reply_to_id": {
|
|
"name": "reply_to_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"content_vector_1536": {
|
|
"name": "content_vector_1536",
|
|
"type": "vector(1536)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content_vector_1024": {
|
|
"name": "content_vector_1024",
|
|
"type": "vector(1024)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content_vector_768": {
|
|
"name": "content_vector_768",
|
|
"type": "vector(768)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"chat_messages_content_vector_1536_index": {
|
|
"name": "chat_messages_content_vector_1536_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_1536",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"chat_messages_content_vector_1024_index": {
|
|
"name": "chat_messages_content_vector_1024_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_1024",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"chat_messages_content_vector_768_index": {
|
|
"name": "chat_messages_content_vector_768_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_768",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.joined_chats": {
|
|
"name": "joined_chats",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"platform": {
|
|
"name": "platform",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"chat_id": {
|
|
"name": "chat_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"chat_name": {
|
|
"name": "chat_name",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
}
|
|
},
|
|
"indexes": {},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {
|
|
"joined_chats_chat_id_unique": {
|
|
"name": "joined_chats_chat_id_unique",
|
|
"nullsNotDistinct": false,
|
|
"columns": [
|
|
"chat_id"
|
|
]
|
|
}
|
|
},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.memory_episodic": {
|
|
"name": "memory_episodic",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"memory_id": {
|
|
"name": "memory_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"event_type": {
|
|
"name": "event_type",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"participants": {
|
|
"name": "participants",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'[]'::jsonb"
|
|
},
|
|
"location": {
|
|
"name": "location",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": "''"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"deleted_at": {
|
|
"name": "deleted_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"memory_episodic_memory_id_index": {
|
|
"name": "memory_episodic_memory_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "memory_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_episodic_event_type_index": {
|
|
"name": "memory_episodic_event_type_index",
|
|
"columns": [
|
|
{
|
|
"expression": "event_type",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"memory_episodic_memory_id_memory_fragments_id_fk": {
|
|
"name": "memory_episodic_memory_id_memory_fragments_id_fk",
|
|
"tableFrom": "memory_episodic",
|
|
"tableTo": "memory_fragments",
|
|
"columnsFrom": [
|
|
"memory_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.memory_fragments": {
|
|
"name": "memory_fragments",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"memory_type": {
|
|
"name": "memory_type",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"category": {
|
|
"name": "category",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"importance": {
|
|
"name": "importance",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 5
|
|
},
|
|
"emotional_impact": {
|
|
"name": "emotional_impact",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"last_accessed": {
|
|
"name": "last_accessed",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"access_count": {
|
|
"name": "access_count",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 1
|
|
},
|
|
"metadata": {
|
|
"name": "metadata",
|
|
"type": "jsonb",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'{}'::jsonb"
|
|
},
|
|
"content_vector_1536": {
|
|
"name": "content_vector_1536",
|
|
"type": "vector(1536)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content_vector_1024": {
|
|
"name": "content_vector_1024",
|
|
"type": "vector(1024)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content_vector_768": {
|
|
"name": "content_vector_768",
|
|
"type": "vector(768)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deleted_at": {
|
|
"name": "deleted_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"memory_items_content_vector_1536_index": {
|
|
"name": "memory_items_content_vector_1536_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_1536",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"memory_items_content_vector_1024_index": {
|
|
"name": "memory_items_content_vector_1024_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_1024",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"memory_items_content_vector_768_index": {
|
|
"name": "memory_items_content_vector_768_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_768",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"memory_items_memory_type_index": {
|
|
"name": "memory_items_memory_type_index",
|
|
"columns": [
|
|
{
|
|
"expression": "memory_type",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_items_category_index": {
|
|
"name": "memory_items_category_index",
|
|
"columns": [
|
|
{
|
|
"expression": "category",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_items_importance_index": {
|
|
"name": "memory_items_importance_index",
|
|
"columns": [
|
|
{
|
|
"expression": "importance",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_items_created_at_index": {
|
|
"name": "memory_items_created_at_index",
|
|
"columns": [
|
|
{
|
|
"expression": "created_at",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_items_last_accessed_index": {
|
|
"name": "memory_items_last_accessed_index",
|
|
"columns": [
|
|
{
|
|
"expression": "last_accessed",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.memory_long_term_goals": {
|
|
"name": "memory_long_term_goals",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"title": {
|
|
"name": "title",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"priority": {
|
|
"name": "priority",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 5
|
|
},
|
|
"progress": {
|
|
"name": "progress",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"deadline": {
|
|
"name": "deadline",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": null
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'planned'"
|
|
},
|
|
"parent_goal_id": {
|
|
"name": "parent_goal_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"category": {
|
|
"name": "category",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'personal'"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"deleted_at": {
|
|
"name": "deleted_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"memory_long_term_goals_priority_index": {
|
|
"name": "memory_long_term_goals_priority_index",
|
|
"columns": [
|
|
{
|
|
"expression": "priority",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_long_term_goals_status_index": {
|
|
"name": "memory_long_term_goals_status_index",
|
|
"columns": [
|
|
{
|
|
"expression": "status",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_long_term_goals_deadline_index": {
|
|
"name": "memory_long_term_goals_deadline_index",
|
|
"columns": [
|
|
{
|
|
"expression": "deadline",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_long_term_goals_parent_goal_id_index": {
|
|
"name": "memory_long_term_goals_parent_goal_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "parent_goal_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"memory_long_term_goals_parent_goal_id_memory_long_term_goals_id_fk": {
|
|
"name": "memory_long_term_goals_parent_goal_id_memory_long_term_goals_id_fk",
|
|
"tableFrom": "memory_long_term_goals",
|
|
"tableTo": "memory_long_term_goals",
|
|
"columnsFrom": [
|
|
"parent_goal_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "no action",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.memory_short_term_ideas": {
|
|
"name": "memory_short_term_ideas",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"content": {
|
|
"name": "content",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"source_type": {
|
|
"name": "source_type",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'dream'"
|
|
},
|
|
"source_id": {
|
|
"name": "source_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": false,
|
|
"default": null
|
|
},
|
|
"status": {
|
|
"name": "status",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "'new'"
|
|
},
|
|
"excitement": {
|
|
"name": "excitement",
|
|
"type": "integer",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 5
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"content_vector_1536": {
|
|
"name": "content_vector_1536",
|
|
"type": "vector(1536)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content_vector_1024": {
|
|
"name": "content_vector_1024",
|
|
"type": "vector(1024)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"content_vector_768": {
|
|
"name": "content_vector_768",
|
|
"type": "vector(768)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"deleted_at": {
|
|
"name": "deleted_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"memory_short_term_ideas_source_type_index": {
|
|
"name": "memory_short_term_ideas_source_type_index",
|
|
"columns": [
|
|
{
|
|
"expression": "source_type",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_short_term_ideas_status_index": {
|
|
"name": "memory_short_term_ideas_status_index",
|
|
"columns": [
|
|
{
|
|
"expression": "status",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_short_term_ideas_excitement_index": {
|
|
"name": "memory_short_term_ideas_excitement_index",
|
|
"columns": [
|
|
{
|
|
"expression": "excitement",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_short_term_ideas_content_vector_1536_index": {
|
|
"name": "memory_short_term_ideas_content_vector_1536_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_1536",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"memory_short_term_ideas_content_vector_1024_index": {
|
|
"name": "memory_short_term_ideas_content_vector_1024_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_1024",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"memory_short_term_ideas_content_vector_768_index": {
|
|
"name": "memory_short_term_ideas_content_vector_768_index",
|
|
"columns": [
|
|
{
|
|
"expression": "content_vector_768",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.memory_tags": {
|
|
"name": "memory_tags",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"memory_id": {
|
|
"name": "memory_id",
|
|
"type": "uuid",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"tag": {
|
|
"name": "tag",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"deleted_at": {
|
|
"name": "deleted_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"memory_tags_memory_id_index": {
|
|
"name": "memory_tags_memory_id_index",
|
|
"columns": [
|
|
{
|
|
"expression": "memory_id",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
},
|
|
"memory_tags_tag_index": {
|
|
"name": "memory_tags_tag_index",
|
|
"columns": [
|
|
{
|
|
"expression": "tag",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "btree",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {
|
|
"memory_tags_memory_id_memory_fragments_id_fk": {
|
|
"name": "memory_tags_memory_id_memory_fragments_id_fk",
|
|
"tableFrom": "memory_tags",
|
|
"tableTo": "memory_fragments",
|
|
"columnsFrom": [
|
|
"memory_id"
|
|
],
|
|
"columnsTo": [
|
|
"id"
|
|
],
|
|
"onDelete": "cascade",
|
|
"onUpdate": "no action"
|
|
}
|
|
},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.photos": {
|
|
"name": "photos",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"platform": {
|
|
"name": "platform",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"file_id": {
|
|
"name": "file_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"image_base64": {
|
|
"name": "image_base64",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"image_path": {
|
|
"name": "image_path",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"description_vector_1536": {
|
|
"name": "description_vector_1536",
|
|
"type": "vector(1536)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description_vector_1024": {
|
|
"name": "description_vector_1024",
|
|
"type": "vector(1024)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description_vector_768": {
|
|
"name": "description_vector_768",
|
|
"type": "vector(768)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"photos_description_vector_1536_index": {
|
|
"name": "photos_description_vector_1536_index",
|
|
"columns": [
|
|
{
|
|
"expression": "description_vector_1536",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"photos_description_vector_1024_index": {
|
|
"name": "photos_description_vector_1024_index",
|
|
"columns": [
|
|
{
|
|
"expression": "description_vector_1024",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"photos_description_vector_768_index": {
|
|
"name": "photos_description_vector_768_index",
|
|
"columns": [
|
|
{
|
|
"expression": "description_vector_768",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
},
|
|
"public.stickers": {
|
|
"name": "stickers",
|
|
"schema": "",
|
|
"columns": {
|
|
"id": {
|
|
"name": "id",
|
|
"type": "uuid",
|
|
"primaryKey": true,
|
|
"notNull": true,
|
|
"default": "gen_random_uuid()"
|
|
},
|
|
"platform": {
|
|
"name": "platform",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"file_id": {
|
|
"name": "file_id",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"image_base64": {
|
|
"name": "image_base64",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"image_path": {
|
|
"name": "image_path",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"description": {
|
|
"name": "description",
|
|
"type": "text",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": "''"
|
|
},
|
|
"created_at": {
|
|
"name": "created_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"updated_at": {
|
|
"name": "updated_at",
|
|
"type": "bigint",
|
|
"primaryKey": false,
|
|
"notNull": true,
|
|
"default": 0
|
|
},
|
|
"description_vector_1536": {
|
|
"name": "description_vector_1536",
|
|
"type": "vector(1536)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description_vector_1024": {
|
|
"name": "description_vector_1024",
|
|
"type": "vector(1024)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
},
|
|
"description_vector_768": {
|
|
"name": "description_vector_768",
|
|
"type": "vector(768)",
|
|
"primaryKey": false,
|
|
"notNull": false
|
|
}
|
|
},
|
|
"indexes": {
|
|
"stickers_description_vector_1536_index": {
|
|
"name": "stickers_description_vector_1536_index",
|
|
"columns": [
|
|
{
|
|
"expression": "description_vector_1536",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"stickers_description_vector_1024_index": {
|
|
"name": "stickers_description_vector_1024_index",
|
|
"columns": [
|
|
{
|
|
"expression": "description_vector_1024",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
},
|
|
"stickers_description_vector_768_index": {
|
|
"name": "stickers_description_vector_768_index",
|
|
"columns": [
|
|
{
|
|
"expression": "description_vector_768",
|
|
"isExpression": false,
|
|
"asc": true,
|
|
"nulls": "last",
|
|
"opclass": "vector_cosine_ops"
|
|
}
|
|
],
|
|
"isUnique": false,
|
|
"concurrently": false,
|
|
"method": "hnsw",
|
|
"with": {}
|
|
}
|
|
},
|
|
"foreignKeys": {},
|
|
"compositePrimaryKeys": {},
|
|
"uniqueConstraints": {},
|
|
"policies": {},
|
|
"checkConstraints": {},
|
|
"isRLSEnabled": false
|
|
}
|
|
},
|
|
"enums": {},
|
|
"schemas": {},
|
|
"sequences": {},
|
|
"roles": {},
|
|
"policies": {},
|
|
"views": {},
|
|
"_meta": {
|
|
"columns": {},
|
|
"schemas": {},
|
|
"tables": {}
|
|
}
|
|
} |