Implement adding reports from wrintermapsreport to wrintermapsreportshistory.
[philipp/winterrodeln/wrpylib.git] / wrpylib / wrorm.py
index dff6d7c002c97e2787d24dd4a47659627b683036..7e9a0bef21eea09a742e121d603c6e41bdd682ba 100644 (file)
@@ -19,9 +19,22 @@ class WrIntermapsSledrun:
     pass
 
 
     pass
 
 
+class WrIntermapsReport:
+    pass
+
+
+class WrIntermapsReportHistory:
+    pass
+
+
 metadata = sqlalchemy.schema.MetaData()
 metadata = sqlalchemy.schema.MetaData()
-wrintermapssledrun_table = wrpylib.wrmwdb.wrintermapssledrun_table(metadata)
+
 page_table = wrpylib.mwdb.page_table(metadata)
 page_table = wrpylib.mwdb.page_table(metadata)
+wrintermapssledrun_table = wrpylib.wrmwdb.wrintermapssledrun_table(metadata)
+wrintermapsreport_table = wrpylib.wrmwdb.wrintermapsreport_table(metadata)
+wrintermapsreporthistory_table = wrpylib.wrmwdb.wrintermapsreporthistory_table(metadata)
 
 
-sqlalchemy.orm.mapper(WrIntermapsSledrun, wrintermapssledrun_table)
 sqlalchemy.orm.mapper(Page, page_table)
 sqlalchemy.orm.mapper(Page, page_table)
+sqlalchemy.orm.mapper(WrIntermapsSledrun, wrintermapssledrun_table)
+sqlalchemy.orm.mapper(WrIntermapsReport, wrintermapsreport_table)
+sqlalchemy.orm.mapper(WrIntermapsReportHistory, wrintermapsreporthistory_table)