import peewee
from peewee import *

# http://docs.peewee-orm.com/en/latest/
# Connect to a MySQL database on network.
mysql_db = peewee.MySQLDatabase('redes_sociales', user='root', passwd='',
                         host='localhost', port=3306)


class BaseModel(peewee.Model):
    """A base model that will use our MySQL database"""
    class Meta:
        database = mysql_db

# http://docs.peewee-orm.com/en/latest/peewee/models.html
class User(BaseModel):
    user_id = peewee.IntegerField(primary_key=True)
    username = peewee.CharField()
    password = peewee.CharField()
    first_name = peewee.CharField()
    last_name = peewee.CharField()
    email = peewee.CharField()
    is_active = peewee.IntegerField()
    is_admin = peewee.IntegerField()
ee95be01e0b1e9f4f3bcd243f5c6018a73b20aa1
<mask token>


class BaseModel(peewee.Model):
    <mask token>


    class Meta:
        database = mysql_db


class User(BaseModel):
    user_id = peewee.IntegerField(primary_key=True)
    username = peewee.CharField()
    password = peewee.CharField()
    first_name = peewee.CharField()
    last_name = peewee.CharField()
    email = peewee.CharField()
    is_active = peewee.IntegerField()
    is_admin = peewee.IntegerField()

<mask token>


class BaseModel(peewee.Model):
    """A base model that will use our MySQL database"""


    class Meta:
        database = mysql_db


class User(BaseModel):
    user_id = peewee.IntegerField(primary_key=True)
    username = peewee.CharField()
    password = peewee.CharField()
    first_name = peewee.CharField()
    last_name = peewee.CharField()
    email = peewee.CharField()
    is_active = peewee.IntegerField()
    is_admin = peewee.IntegerField()

<mask token>
mysql_db = peewee.MySQLDatabase('redes_sociales', user='root', passwd='',
    host='localhost', port=3306)


class BaseModel(peewee.Model):
    """A base model that will use our MySQL database"""


    class Meta:
        database = mysql_db


class User(BaseModel):
    user_id = peewee.IntegerField(primary_key=True)
    username = peewee.CharField()
    password = peewee.CharField()
    first_name = peewee.CharField()
    last_name = peewee.CharField()
    email = peewee.CharField()
    is_active = peewee.IntegerField()
    is_admin = peewee.IntegerField()

import peewee
from peewee import *
mysql_db = peewee.MySQLDatabase('redes_sociales', user='root', passwd='',
    host='localhost', port=3306)


class BaseModel(peewee.Model):
    """A base model that will use our MySQL database"""


    class Meta:
        database = mysql_db


class User(BaseModel):
    user_id = peewee.IntegerField(primary_key=True)
    username = peewee.CharField()
    password = peewee.CharField()
    first_name = peewee.CharField()
    last_name = peewee.CharField()
    email = peewee.CharField()
    is_active = peewee.IntegerField()
    is_admin = peewee.IntegerField()

import peewee
from peewee import *

# http://docs.peewee-orm.com/en/latest/
# Connect to a MySQL database on network.
mysql_db = peewee.MySQLDatabase('redes_sociales', user='root', passwd='',
                         host='localhost', port=3306)


class BaseModel(peewee.Model):
    """A base model that will use our MySQL database"""
    class Meta:
        database = mysql_db

# http://docs.peewee-orm.com/en/latest/peewee/models.html
class User(BaseModel):
    user_id = peewee.IntegerField(primary_key=True)
    username = peewee.CharField()
    password = peewee.CharField()
    first_name = peewee.CharField()
    last_name = peewee.CharField()
    email = peewee.CharField()
    is_active = peewee.IntegerField()
    is_admin = peewee.IntegerField()