feat: 接入mysql数据库
This commit is contained in:
16
models/health.py
Normal file
16
models/health.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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="内容")
|
||||
Reference in New Issue
Block a user