관리-도구
편집 파일: 104_add_feature_management_permissions.py
from peewee import BooleanField, CharField, Model class FeatureManagementPerms(Model): class Meta: db_table = "feature_management_permissions" user = CharField(unique=True) proactive = BooleanField(default=True) def migrate(migrator, database, fake=False, **kwargs): migrator.create_model(FeatureManagementPerms) def rollback(migrator, database, fake=False, **kwargs): FeatureManagementPerms = migrator.orm["feature_management_permissions"] migrator.remove_model(FeatureManagementPerms)