from . import db from sqlalchemy import String, Float, Column, Integer, DateTime, ForeignKey from sqlalchemy_utils import JSONType from sqlalchemy.orm import relationship from datetime import datetime class TranscodeJob(db.Model): id = db.Column(db.Integer, primary_key=True) created = db.Column(db.DateTime, default=datetime.today) status = db.Column(JSONType, default={}) completed = db.Column(db.DateTime, default=None) profile = db.Column(db.String, default=None)