database support

This commit is contained in:
Sebarocks 2025-08-04 14:05:54 -04:00
parent f7b23a3cec
commit c49636c766
10 changed files with 780 additions and 860 deletions

View 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")