from .base_model import BaseModel, db


class UserRole(BaseModel):
	__tablename__ = 'user_role'

	role_id = db.Column(db.Integer(), db.ForeignKey('role.role_id'), primary_key=True)
	user_id = db.Column(db.Integer(), db.ForeignKey('customer.customer_id'), default=1, primary_key=True)
	user = db.relationship('Customer', lazy=False)
	is_active = db.Column(db.Boolean, default=True, nullable=True)

from .base_model import BaseModel, db


class UserRole(BaseModel):
	__tablename__ = 'user_role'

	role_id = db.Column(db.Integer(), db.ForeignKey('role.role_id'), primary_key=True)
	user_id = db.Column(db.Integer(), db.ForeignKey('customer.customer_id'), default=1, primary_key=True)
	user = db.relationship('Customer', lazy=False)
	is_active = db.Column(db.Boolean, default=True, nullable=True)
