17 lines
501 B
Python
17 lines
501 B
Python
from sqlalchemy import (Column, Date, JSON)
|
|
|
|
from models.base import AuditBase
|
|
|
|
|
|
class Article(AuditBase):
|
|
date = Column(Date, nullable=False, comment="日期")
|
|
content = Column(JSON, nullable=False, default=dict, comment="内容")
|
|
|
|
|
|
class Recipe(AuditBase):
|
|
date = Column(Date, nullable=False, comment="日期")
|
|
content = Column(JSON, nullable=False, default=dict, comment="内容")
|
|
|
|
class Report(AuditBase):
|
|
content = Column(JSON, nullable=False, default=dict, comment="内容")
|