forked from open-webui/open-webui
feat: add support for using postgres for the backend DB
This commit is contained in:
parent
f8f9f27ae8
commit
e91a49c455
15 changed files with 329 additions and 18 deletions
|
@ -17,11 +17,11 @@ from apps.web.internal.db import DB
|
|||
class Chat(Model):
|
||||
id = CharField(unique=True)
|
||||
user_id = CharField()
|
||||
title = CharField()
|
||||
title = TextField()
|
||||
chat = TextField() # Save Chat JSON as Text
|
||||
|
||||
created_at = DateTimeField()
|
||||
updated_at = DateTimeField()
|
||||
created_at = BigIntegerField()
|
||||
updated_at = BigIntegerField()
|
||||
|
||||
share_id = CharField(null=True, unique=True)
|
||||
archived = BooleanField(default=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue