Class Job_request Base __tablename__ jobs_requests id Column Integer p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
Class Job_request(Base):
__tablename__ = 'jobs_requests'
id = Column(Integer, primary_key=True),
request_date = Column(Date),
execution_date = Column(Date),
client_id = Column(Integer, ForeignKey('clients.id')),
client = relation(Client, backref=backref('clients', order_by=id)),
job_id = Column(Integer, ForeignKey('jobs.id')),
job = relation(Job, backref=backref('jobs', order_by=id)),
worker_id = Column(Integer, ForeignKey('workers.id')),
worker = relation(Worker, backref=backref('workers', order_by=id))