from lamby.database import db

"""
This table represents a many-to-many relationship between users and projects.
"""
projects = db.Table(
    'projects',
    db.Column('user_id',
              db.Integer,
              db.ForeignKey('user.id', ondelete='CASCADE'),
              primary_key=True),
    db.Column('project_id',
              db.Integer,
              db.ForeignKey('project.id', ondelete='CASCADE'),
              primary_key=True),
)
