import peewee
from peewee import *
import Database.dbconnect as DBConnection


#db = DBConnection.DB("localhost","root","messi","iot")

#db.connect()

#cnx = db.getConnection()

db = MySQLDatabase(host="localhost",user='root',password='messi',database='iot')


class Users(Model):
    username = CharField()
    id = PrimaryKeyField()

    class Meta:
        database = db
        db_table= 'users'


class SystemConfig(Model):
    id = PrimaryKeyField()
    wireless = TextField()
    network = TextField()
    notification = TextField()
    security = TextField()
    temperature = TextField()
    defTemperature = TextField()

    class Meta:
        database = db
        db_table = 'system_config'

b97059cb8b7d760f07c3d4b4ca9b02ed5625f88f
<mask token>


class Users(Model):
    <mask token>
    <mask token>


    class Meta:
        database = db
        db_table = 'users'


class SystemConfig(Model):
    id = PrimaryKeyField()
    wireless = TextField()
    network = TextField()
    notification = TextField()
    security = TextField()
    temperature = TextField()
    defTemperature = TextField()


    class Meta:
        database = db
        db_table = 'system_config'

<mask token>


class Users(Model):
    username = CharField()
    id = PrimaryKeyField()


    class Meta:
        database = db
        db_table = 'users'


class SystemConfig(Model):
    id = PrimaryKeyField()
    wireless = TextField()
    network = TextField()
    notification = TextField()
    security = TextField()
    temperature = TextField()
    defTemperature = TextField()


    class Meta:
        database = db
        db_table = 'system_config'

<mask token>
db = MySQLDatabase(host='localhost', user='root', password='messi',
    database='iot')


class Users(Model):
    username = CharField()
    id = PrimaryKeyField()


    class Meta:
        database = db
        db_table = 'users'


class SystemConfig(Model):
    id = PrimaryKeyField()
    wireless = TextField()
    network = TextField()
    notification = TextField()
    security = TextField()
    temperature = TextField()
    defTemperature = TextField()


    class Meta:
        database = db
        db_table = 'system_config'

import peewee
from peewee import *
import Database.dbconnect as DBConnection
db = MySQLDatabase(host='localhost', user='root', password='messi',
    database='iot')


class Users(Model):
    username = CharField()
    id = PrimaryKeyField()


    class Meta:
        database = db
        db_table = 'users'


class SystemConfig(Model):
    id = PrimaryKeyField()
    wireless = TextField()
    network = TextField()
    notification = TextField()
    security = TextField()
    temperature = TextField()
    defTemperature = TextField()


    class Meta:
        database = db
        db_table = 'system_config'

import peewee
from peewee import *
import Database.dbconnect as DBConnection


#db = DBConnection.DB("localhost","root","messi","iot")

#db.connect()

#cnx = db.getConnection()

db = MySQLDatabase(host="localhost",user='root',password='messi',database='iot')


class Users(Model):
    username = CharField()
    id = PrimaryKeyField()

    class Meta:
        database = db
        db_table= 'users'


class SystemConfig(Model):
    id = PrimaryKeyField()
    wireless = TextField()
    network = TextField()
    notification = TextField()
    security = TextField()
    temperature = TextField()
    defTemperature = TextField()

    class Meta:
        database = db
        db_table = 'system_config'
