I was wondering what is the difference between two database structures in this scenario:
Admin can edit, delete, add Manufacturers. User(Company) can select those Manufacturers, so that they are listed under their company account.
What would be the differences between A relationships(twice one to many) and B relationships (many to many) when using SQLAlchemy:
In B scenario Many to Many is added like this:
CompMan = db.Table('CompMan',
db.Column('companyid', db.Integer, db.ForeignKey('company.id'), primary_key=True),
db.Column('manufacturerid', db.Integer, db.ForeignKey('manufacturer.id'), primary_key=True)
)
So intermediate table appears automatically.
