mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 21:44:21 +00:00
20 lines
424 B
Python
20 lines
424 B
Python
|
from sqlalchemy import *
|
||
|
from sqlalchemy.orm import *
|
||
|
from sqlalchemy.ext.declarative import declared_attr
|
||
|
|
||
|
|
||
|
class DndBattle:
|
||
|
__tablename__ = "dndbattle"
|
||
|
|
||
|
@declared_attr
|
||
|
def id(self):
|
||
|
return Column(Integer, primary_key=True)
|
||
|
|
||
|
@declared_attr
|
||
|
def name(self):
|
||
|
return Column(String, nullable=False)
|
||
|
|
||
|
@declared_attr
|
||
|
def description(self):
|
||
|
return Column(String, nullable=False)
|