This commit is contained in:
2023-01-17 09:19:12 +03:00
parent 261b22716b
commit 910c191b0d
4 changed files with 112 additions and 0 deletions

15
orm/remark.py Normal file
View File

@@ -0,0 +1,15 @@
from datetime import datetime
from enum import Enum as Enumeration
from sqlalchemy import Column, DateTime, Enum, ForeignKey, String
from base.orm import Base
class Remark(Base):
tablename = "remark"
slug = Column(String, unique=True, nullable=False)
body = Column(String, nullable=False)
shout = Column(ForeignKey("shout.id"), nullable=True, index=True, comment="Shout")