# test.py from models import db, User user = User(username='commander', role='指挥者') db.session.add(user) db.session.commit()