mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
Update 001_initial_schema.py
This commit is contained in:
parent
0cdcc2deb6
commit
b76e934140
@ -51,7 +51,7 @@ def migrate(migrator: Migrator, database: pw.Database, *, fake=False):
|
|||||||
class Chat(pw.Model):
|
class Chat(pw.Model):
|
||||||
id = pw.CharField(max_length=255, unique=True)
|
id = pw.CharField(max_length=255, unique=True)
|
||||||
user_id = pw.CharField(max_length=255)
|
user_id = pw.CharField(max_length=255)
|
||||||
title = pw.CharField(max_length=255)
|
title = pw.CharField()
|
||||||
chat = pw.TextField()
|
chat = pw.TextField()
|
||||||
timestamp = pw.DateField()
|
timestamp = pw.DateField()
|
||||||
|
|
||||||
@ -74,8 +74,8 @@ def migrate(migrator: Migrator, database: pw.Database, *, fake=False):
|
|||||||
id = pw.AutoField()
|
id = pw.AutoField()
|
||||||
collection_name = pw.CharField(max_length=255, unique=True)
|
collection_name = pw.CharField(max_length=255, unique=True)
|
||||||
name = pw.CharField(max_length=255, unique=True)
|
name = pw.CharField(max_length=255, unique=True)
|
||||||
title = pw.CharField(max_length=255)
|
title = pw.CharField()
|
||||||
filename = pw.CharField(max_length=255)
|
filename = pw.CharField()
|
||||||
content = pw.TextField(null=True)
|
content = pw.TextField(null=True)
|
||||||
user_id = pw.CharField(max_length=255)
|
user_id = pw.CharField(max_length=255)
|
||||||
timestamp = pw.DateField()
|
timestamp = pw.DateField()
|
||||||
@ -99,7 +99,7 @@ def migrate(migrator: Migrator, database: pw.Database, *, fake=False):
|
|||||||
id = pw.AutoField()
|
id = pw.AutoField()
|
||||||
command = pw.CharField(max_length=255, unique=True)
|
command = pw.CharField(max_length=255, unique=True)
|
||||||
user_id = pw.CharField(max_length=255)
|
user_id = pw.CharField(max_length=255)
|
||||||
title = pw.CharField(max_length=255)
|
title = pw.CharField()
|
||||||
content = pw.TextField()
|
content = pw.TextField()
|
||||||
timestamp = pw.DateField()
|
timestamp = pw.DateField()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user