def makeSysAdmin():
    first = "Sys"
    last = "Admin"
    uid = "0"
    email = "*****@*****.**"

    u = UserModel(uid, first, last, email, "default", "admin")
    u.admin = True
    u.authenticated = True
    db.session.add(u)

    n1 = NodeModel("001", "http://secret-inlet-51780.herokuapp.com/api/", "remoteuser", "abc")
    n1.method = "basic"
    nodeauth1 = AuthModel("http://secret-inlet-51780.herokuapp.com/api/")

    n2 = NodeModel("002", "http://project-c404.rhcloud.com/api/", "node2", "asdfasdf")
    n2.method = "basic"
    nodeauth2 = AuthModel("http://project-c404.rhcloud.com/api/")

    nodeauth3 = AuthModel("https://blooming-earth-94594.herokuapp.com/api/")

    db.session.add(n1)
    db.session.add(n2)
    db.session.add(nodeauth1)
    db.session.add(nodeauth2)
    db.session.add(nodeauth3)

    db.session.commit()
    print("SysAdmin Created email:"+email+" password: default uid: 0")

    print("is admin:", u.admin)
    print("is authenticated:", u.authenticated)
def makeSysAdmin():
    first = "Sys"
    last = "Admin"
    uid = "0"
    print(uid)
    email = "*****@*****.**"

    u = UserModel(uid, first, last, email, "default", "admin")
    u.authenticated = True
    u.admin = True

    db.session.add(u)

    db.session.commit()