added checks and finalize ticket

This commit is contained in:
2024-09-26 20:01:13 -04:00
parent c456ef301c
commit 0e827053de
6 changed files with 167 additions and 33 deletions

View File

@@ -0,0 +1,21 @@
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