changes
This commit is contained in:
Binary file not shown.
BIN
app/models/__pycache__/printer.cpython-312.pyc
Normal file
BIN
app/models/__pycache__/printer.cpython-312.pyc
Normal file
Binary file not shown.
@@ -1,5 +1,5 @@
|
||||
from sqlalchemy import Column, Integer,\
|
||||
Integer, DECIMAL, Text,\
|
||||
DECIMAL, Text,\
|
||||
VARCHAR, TIMESTAMP, Date
|
||||
from datetime import datetime
|
||||
from app.database import Base
|
||||
@@ -48,5 +48,3 @@ class Delivery(Base):
|
||||
pre_charge_amount = Column(DECIMAL(50, 2))
|
||||
total_price = Column(DECIMAL(50, 2))
|
||||
final_price = Column(DECIMAL(50, 2))
|
||||
|
||||
|
||||
|
||||
29
app/models/printer.py
Normal file
29
app/models/printer.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from sqlalchemy import Column, Integer,\
|
||||
DECIMAL, Text,\
|
||||
VARCHAR, TIMESTAMP, Date
|
||||
from datetime import datetime
|
||||
from app.database import Base
|
||||
|
||||
|
||||
class Printer_jobs(Base):
|
||||
__tablename__ = "printer_jobs"
|
||||
|
||||
id = Column(Integer,
|
||||
primary_key=True,
|
||||
autoincrement=True,
|
||||
unique=False)
|
||||
|
||||
delivery_id = Column(Integer)
|
||||
date_added = Column(Date(), default=datetime.utcnow())
|
||||
date_completed = Column(Date(), default=datetime.utcnow())
|
||||
employee_id = Column(Integer)
|
||||
#0 = waiting
|
||||
#1 = file made..read to print
|
||||
#2 = printing
|
||||
#3 = printed
|
||||
#4 = error
|
||||
status = Column(Integer)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user