title: How to define an 2byte integer in postgres sql using Flask-SQLAlchemy?
body: <p>I am using postgresql database, want to define a data type of integer value of 2 byte(0-65535). if it is more than 2 byte(65535) value, it shouldn't insert the data into db and raise an error .
  Is there any data type to work with this scenario? or any check() functionality available for this ?</p>
  <pre><code>class Users(db.Model):
        id   = db.Column(db.Integer, primary_key=True)
  </code></pre>