Fixed errors
This commit is contained in:
25
app/classes/printing.py
Normal file
25
app/classes/printing.py
Normal file
@@ -0,0 +1,25 @@
|
||||
from app import db, ma, login_manager
|
||||
from datetime import datetime
|
||||
|
||||
|
||||
|
||||
|
||||
class Printer_jobs(db.Model):
|
||||
__tablename__ = "printer_jobs"
|
||||
|
||||
id = db.Column(db.Integer,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
|
||||
delivery_id = db.Column(db.Integer)
|
||||
date_added = db.Column(db.Date(), default=datetime.utcnow())
|
||||
date_completed = db.Column(db.Date(), default=datetime.utcnow())
|
||||
employee_id = db.Column(db.Integer)
|
||||
#0 = waiting
|
||||
#1 = printing
|
||||
#2 = printed
|
||||
#3 = error
|
||||
status = db.Column(db.Integer)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user