我有一个sqlalchemy模型,其中所有大多数表/对象都有一个注释字段.所以要尝试遵循DRY原则,我将该字段移到了一个mixin类. class NotesMixin(object): notes = sa.Column(sa.String(4000) , nullable=False, default=)class Service(Base, NotesMixin):
在线咨询:
邮箱: xwei067@foxmail.com
工作时间:周一至周五,9:00-17:30,节假日休息