database support
This commit is contained in:
parent
f7b23a3cec
commit
c49636c766
10 changed files with 780 additions and 860 deletions
12
databases/migrations/2025_08_04_00001_create_chats_table.py
Normal file
12
databases/migrations/2025_08_04_00001_create_chats_table.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from masoniteorm.migrations import Migration
|
||||
|
||||
|
||||
class CreateChatsTable(Migration):
|
||||
def up(self):
|
||||
with self.schema.create("chats") as table:
|
||||
table.uuid("id").primary()
|
||||
table.string("title")
|
||||
table.json("messages")
|
||||
|
||||
def down(self):
|
||||
self.schema.drop("chats")
|
||||
Loading…
Add table
Add a link
Reference in a new issue