验证码
邮件,依赖
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import datetime
|
||||
|
||||
from common.model import BaseModel, Integer, Column, String, CHAR, DateTime
|
||||
from common.model import BaseModel, Integer, Column, String, CHAR, DateTime, SQLAlchemyAutoSchema
|
||||
|
||||
|
||||
class Photo(BaseModel):
|
||||
@@ -10,4 +10,11 @@ class Photo(BaseModel):
|
||||
href = Column(String(255))
|
||||
mime = Column(CHAR(50), nullable=False)
|
||||
size = Column(CHAR(30), nullable=False)
|
||||
create_time = Column(DateTime, default=datetime.datetime.now)
|
||||
create_time = Column(DateTime, default=datetime.datetime.now)
|
||||
|
||||
|
||||
class AdminLogSchema(SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Photo
|
||||
include_fk = True
|
||||
load_instance = True
|
||||
Reference in New Issue
Block a user