small fixes
This commit is contained in:
@@ -25,6 +25,8 @@ class Query_StateList(db.Model):
|
||||
text = db.Column(db.VARCHAR(140))
|
||||
|
||||
|
||||
|
||||
|
||||
class Query_StateList_Schema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Query_StateList
|
||||
@@ -33,6 +35,22 @@ class Query_StateList_Schema(ma.SQLAlchemyAutoSchema):
|
||||
value = ma.auto_field()
|
||||
|
||||
|
||||
class Query_TownList(db.Model):
|
||||
__tablename__ = 'query_town_list'
|
||||
__table_args__ = {"schema": "public"}
|
||||
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
|
||||
value = db.Column(db.INTEGER)
|
||||
text = db.Column(db.VARCHAR(140))
|
||||
|
||||
|
||||
class Query_TownList_Schema(ma.SQLAlchemyAutoSchema):
|
||||
class Meta:
|
||||
model = Query_TownList
|
||||
id = ma.auto_field()
|
||||
text = ma.auto_field()
|
||||
value = ma.auto_field()
|
||||
|
||||
|
||||
class Query_CustomerTypeList(db.Model):
|
||||
__tablename__ = 'query_customer_type_list'
|
||||
__table_args__ = {"schema": "public"}
|
||||
|
||||
Reference in New Issue
Block a user