21 lines
485 B
Python
21 lines
485 B
Python
|
|
from app import db, ma
|
|
from datetime import datetime
|
|
|
|
|
|
class Stats_Company(db.Model):
|
|
__tablename__ = 'stats_company'
|
|
__bind_key__ = 'eamco'
|
|
__table_args__ = {"schema": "public"}
|
|
|
|
id = db.Column(db.Integer,
|
|
primary_key=True,
|
|
autoincrement=True,
|
|
unique=False)
|
|
|
|
total_calls = db.Column(db.BigInteger)
|
|
|
|
|
|
class Stats_Company_schema(ma.SQLAlchemyAutoSchema):
|
|
class Meta:
|
|
model = Stats_Company |