forked from kompetenzinventar/ki-backend
add skills seeds and implement api
This commit is contained in:
9
ki/commands.py
Normal file
9
ki/commands.py
Normal file
@ -0,0 +1,9 @@
|
||||
from ki.models import Skill
|
||||
from app import app, db
|
||||
|
||||
|
||||
@app.cli.command("seed")
|
||||
def seed():
|
||||
db.session.add(Skill(id=1, name="PHP"))
|
||||
db.session.add(Skill(id=2, name="Vue.js"))
|
||||
db.session.commit()
|
Reference in New Issue
Block a user