9 lines
290 B
Python
9 lines
290 B
Python
from datetime import datetime
|
|
|
|
from applications.extensions import db
|
|
|
|
|
|
class BaseModel(object):
|
|
create_at = db.Column(db.DateTime, default=datetime.now, comment='创建时间')
|
|
update_at = db.Column(db.DateTime, default=datetime.now, onupdate=datetime.now, comment='更新时间')
|