import datetime
from config import db
from models.users import Users

# Roles Model
class Roles(db.Model):
    __tablename__ = "roles"
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(220), unique=True, nullable=False)
    status = db.Column(db.Boolean, default=True)
    createdAt = db.Column(db.DateTime,default=datetime.datetime.utcnow())
    updatedAt =  db.Column(db.DateTime, onupdate=datetime.datetime.utcnow())

    user_role = db.relationship(
        "Users", backref=db.backref('rolesuser'), uselist=False)

1eb7b6d21dfa606bc4d73c75c76c87f1204525b9
<mask token>

<mask token>


class Roles(db.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Roles(db.Model):
    __tablename__ = 'roles'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(220), unique=True, nullable=False)
    status = db.Column(db.Boolean, default=True)
    createdAt = db.Column(db.DateTime, default=datetime.datetime.utcnow())
    updatedAt = db.Column(db.DateTime, onupdate=datetime.datetime.utcnow())
    user_role = db.relationship('Users', backref=db.backref('rolesuser'),
        uselist=False)

import datetime
from config import db
from models.users import Users


class Roles(db.Model):
    __tablename__ = 'roles'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(220), unique=True, nullable=False)
    status = db.Column(db.Boolean, default=True)
    createdAt = db.Column(db.DateTime, default=datetime.datetime.utcnow())
    updatedAt = db.Column(db.DateTime, onupdate=datetime.datetime.utcnow())
    user_role = db.relationship('Users', backref=db.backref('rolesuser'),
        uselist=False)

import datetime
from config import db
from models.users import Users

# Roles Model
class Roles(db.Model):
    __tablename__ = "roles"
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(220), unique=True, nullable=False)
    status = db.Column(db.Boolean, default=True)
    createdAt = db.Column(db.DateTime,default=datetime.datetime.utcnow())
    updatedAt =  db.Column(db.DateTime, onupdate=datetime.datetime.utcnow())

    user_role = db.relationship(
        "Users", backref=db.backref('rolesuser'), uselist=False)
