database support
This commit is contained in:
parent
f7b23a3cec
commit
c49636c766
10 changed files with 780 additions and 860 deletions
10
models/Chat.py
Normal file
10
models/Chat.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from masoniteorm.models import Model
|
||||
from masoniteorm.scopes import UUIDPrimaryKeyMixin
|
||||
|
||||
class Chat(Model, UUIDPrimaryKeyMixin):
|
||||
__table__ = "chats"
|
||||
__timestamps__ = False
|
||||
__primary_key__ = "id"
|
||||
__incrementing__ = False
|
||||
|
||||
__fillable__ = ["id", "title", "messages"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue