I want my model\'s primary key to be an autoincrementing integer. Here is how my model looks like
class Region(db.Model): __tablename__ = \'regions\'
I think you do not need the autoincrement once you set ,
id = db.Column(db.Integer , primary_key=True , autoincrement=True)
I think that it should be ,
id = db.Column(db.Integer , primary_key=True)
it will give you the uniqueness your looking for .