2019-12-02 03:32:03 +00:00
|
|
|
from flask_migrate import Migrate
|
|
|
|
|
|
|
|
from .base import db
|
|
|
|
from .user import User
|
|
|
|
from .role import Role
|
|
|
|
from .account import Account
|
|
|
|
from .account_user import AccountUser
|
|
|
|
from .server import Server
|
|
|
|
from .history import History
|
|
|
|
from .api_key import ApiKey
|
2021-12-03 14:12:11 +00:00
|
|
|
from .api_key_account import ApiKeyAccount
|
2019-12-02 03:32:03 +00:00
|
|
|
from .setting import Setting
|
|
|
|
from .domain import Domain
|
|
|
|
from .domain_setting import DomainSetting
|
|
|
|
from .domain_user import DomainUser
|
|
|
|
from .domain_template import DomainTemplate
|
|
|
|
from .domain_template_record import DomainTemplateRecord
|
|
|
|
from .record import Record
|
|
|
|
from .record_entry import RecordEntry
|
|
|
|
|
|
|
|
|
|
|
|
def init_app(app):
|
|
|
|
db.init_app(app)
|
2019-12-08 11:23:36 +00:00
|
|
|
_migrate = Migrate(app, db) # lgtm [py/unused-local-variable]
|