mirror of
https://github.com/sartography/uva-covid19-testing-communicator.git
synced 2025-02-24 12:58:05 +00:00
22 lines
623 B
Python
22 lines
623 B
Python
from sqlalchemy import func
|
|
|
|
from communicator import db
|
|
import marshmallow
|
|
from marshmallow import EXCLUDE
|
|
from marshmallow_sqlalchemy import SQLAlchemyAutoSchema
|
|
|
|
from communicator.models.notification import Notification
|
|
|
|
|
|
class IvyFile(db.Model):
|
|
file_name = db.Column(db.String, primary_key=True)
|
|
date_added = db.Column(db.DateTime(timezone=True), default=func.now())
|
|
sample_count = db.Column(db.Integer)
|
|
class IvyFileSchema(SQLAlchemyAutoSchema):
|
|
class Meta:
|
|
model = IvyFile
|
|
load_instance = True
|
|
include_relationships = True
|
|
include_fk = True # Includes foreign keys
|
|
|