26 lines
599 B
Python
26 lines
599 B
Python
#
|
|
from app import db, ma
|
|
|
|
|
|
class Customer_Customer_Social(db.Model):
|
|
__tablename__ = 'customer_customer_social'
|
|
__table_args__ = {"schema": "public"}
|
|
|
|
|
|
id = db.Column(db.Integer,
|
|
primary_key=True,
|
|
autoincrement=True,
|
|
unique=False)
|
|
created = db.Column(db.DATE())
|
|
customer_id = db.Column(db.INTEGER)
|
|
poster_employee_id = db.Column(db.INTEGER)
|
|
comment = db.Column(db.VARCHAR(1000))
|
|
|
|
|
|
|
|
|
|
class Customer_Customer_Social_schema(ma.SQLAlchemyAutoSchema):
|
|
class Meta:
|
|
model = Customer_Customer_Social
|
|
|