1313class ExtractStatus (Base ):
1414
1515 __tablename__ = "extract_status_lkup"
16+ __table_args__ = {"schema" : "process_tracker" }
1617
1718 extract_status_id = Column (
18- Integer , Sequence ("extract_status_lkup_extract_status_id_seq" ), primary_key = True
19+ Integer ,
20+ Sequence ("extract_status_lkup_extract_status_id_seq" , schema = "process_tracker" ),
21+ primary_key = True ,
1922 )
2023 extract_status_name = Column (String (75 ), nullable = False , unique = True )
2124
@@ -32,14 +35,19 @@ def __repr__(self):
3235class Extract (Base ):
3336
3437 __tablename__ = "extract_tracking"
38+ __table_args__ = {"schema" : "process_tracker" }
3539
3640 extract_id = Column (
37- Integer , Sequence ("extract_tracking_extract_id_seq" ), primary_key = True
41+ Integer ,
42+ Sequence ("extract_tracking_extract_id_seq" , schema = "process_tracker" ),
43+ primary_key = True ,
3844 )
3945 extract_filename = Column (String (750 ), nullable = False , unique = True )
40- extract_location_id = Column (Integer , ForeignKey ("location_lkup.location_id" ))
46+ extract_location_id = Column (
47+ Integer , ForeignKey ("process_tracker.location_lkup.location_id" )
48+ )
4149 extract_status_id = Column (
42- Integer , ForeignKey ("extract_status_lkup.extract_status_id" )
50+ Integer , ForeignKey ("process_tracker. extract_status_lkup.extract_status_id" )
4351 )
4452 extract_registration_date_time = Column (
4553 DateTime , nullable = False , default = datetime .now ()
@@ -71,12 +79,17 @@ def full_filepath(self):
7179class ExtractDependency (Base ):
7280
7381 __tablename__ = "extract_dependency"
82+ __table_args__ = {"schema" : "process_tracker" }
7483
7584 parent_extract_id = Column (
76- Integer , ForeignKey ("extract_tracking.extract_id" ), primary_key = True
85+ Integer ,
86+ ForeignKey ("process_tracker.extract_tracking.extract_id" ),
87+ primary_key = True ,
7788 )
7889 child_extract_id = Column (
79- Integer , ForeignKey ("extract_tracking.extract_id" ), primary_key = True
90+ Integer ,
91+ ForeignKey ("process_tracker.extract_tracking.extract_id" ),
92+ primary_key = True ,
8093 )
8194
8295 child_extract = relationship ("Extract" , foreign_keys = [child_extract_id ])
@@ -93,15 +106,20 @@ def __repr__(self):
93106class ExtractProcess (Base ):
94107
95108 __tablename__ = "extract_process_tracking"
109+ __table_args__ = {"schema" : "process_tracker" }
96110
97111 extract_tracking_id = Column (
98- Integer , ForeignKey ("extract_tracking.extract_id" ), primary_key = True
112+ Integer ,
113+ ForeignKey ("process_tracker.extract_tracking.extract_id" ),
114+ primary_key = True ,
99115 )
100116 process_tracking_id = Column (
101- Integer , ForeignKey ("process_tracking.process_tracking_id" ), primary_key = True
117+ Integer ,
118+ ForeignKey ("process_tracker.process_tracking.process_tracking_id" ),
119+ primary_key = True ,
102120 )
103121 extract_process_status_id = Column (
104- Integer , ForeignKey ("extract_status_lkup.extract_status_id" )
122+ Integer , ForeignKey ("process_tracker. extract_status_lkup.extract_status_id" )
105123 )
106124 extract_process_event_date_time = Column (
107125 DateTime , nullable = False , default = datetime .now ()
@@ -124,9 +142,12 @@ def __repr__(self):
124142class LocationType (Base ):
125143
126144 __tablename__ = "location_type_lkup"
145+ __table_args__ = {"schema" : "process_tracker" }
127146
128147 location_type_id = Column (
129- Integer , Sequence ("location_type_lkup_location_type_id_seq" ), primary_key = True
148+ Integer ,
149+ Sequence ("location_type_lkup_location_type_id_seq" , schema = "process_tracker" ),
150+ primary_key = True ,
130151 )
131152 location_type_name = Column (String (25 ), unique = True , nullable = False )
132153
@@ -143,13 +164,18 @@ def __repr__(self):
143164class Location (Base ):
144165
145166 __tablename__ = "location_lkup"
167+ __table_args__ = {"schema" : "process_tracker" }
146168
147169 location_id = Column (
148- Integer , Sequence ("location_lkup_location_id_seq" ), primary_key = True
170+ Integer ,
171+ Sequence ("location_lkup_location_id_seq" , schema = "process_tracker" ),
172+ primary_key = True ,
149173 )
150174 location_name = Column (String (750 ), nullable = False , unique = True )
151175 location_path = Column (String (750 ), nullable = False , unique = True )
152- location_type = Column (Integer , ForeignKey ("location_type_lkup.location_type_id" ))
176+ location_type = Column (
177+ Integer , ForeignKey ("process_tracker.location_type_lkup.location_type_id" )
178+ )
153179
154180 extracts = relationship ("Extract" )
155181
0 commit comments