@@ -545,8 +545,86 @@ def load_embeddings(emb_path: str) -> tuple[dict, dict]:
545
545
("paperkeyphrase.paperid" , "writes.paperid" ),
546
546
],
547
547
},
548
- "broker" : {},
549
- "car_dealership" : {},
550
- "derm_treatment" : {},
551
- "ewallet" : {},
548
+ "broker" : {
549
+ ("sbCustomer" , "sbTransaction" ): [
550
+ ("sbCustomer.sbCustId" , "sbTransaction.sbTxCustId" )
551
+ ],
552
+ ("sbTicker" , "sbDailyPrice" ): [
553
+ ("sbTicker.sbTickerId" , "sbDailyPrice.sbDpTickerId" )
554
+ ],
555
+ ("sbTicker" , "sbTransaction" ): [
556
+ ("sbTicker.sbTickerId" , "sbTransaction.sbTxTickerId" )
557
+ ]
558
+ },
559
+ "car_dealership" : {
560
+ ("cars" , "sales" ): [
561
+ ("cars.id" , "sales.car_id" )
562
+ ],
563
+ ("salespersons" , "sales" ): [
564
+ ("salespersons.id" , "sales.salesperson_id" )
565
+ ],
566
+ ("customers" , "sales" ): [
567
+ ("customers.id" , "sales.customer_id" )
568
+ ],
569
+ ("cars" , "inventory_snapshots" ): [
570
+ ("cars.id" , "inventory_snapshots.car_id" )
571
+ ],
572
+ ("sales" , "payments_received" ): [
573
+ ("sales.id" , "payments_received.sale_id" )
574
+ ]
575
+ },
576
+ "derm_treatment" : {
577
+ ("patients" , "treatments" ): [
578
+ ("patients.patient_id" , "treatments.patient_id" )
579
+ ],
580
+ ("doctors" , "treatments" ): [
581
+ ("doctors.doc_id" , "treatments.doc_id" )
582
+ ],
583
+ ("drugs" , "treatments" ): [
584
+ ("drugs.drug_id" , "treatments.drug_id" )
585
+ ],
586
+ ("diagnoses" , "treatments" ): [
587
+ ("diagnoses.diag_id" , "treatments.diag_id" )
588
+ ],
589
+ ("treatments" , "outcomes" ): [
590
+ ("treatments.treatment_id" , "outcomes.treatment_id" )
591
+ ],
592
+ ("treatments" , "adverse_events" ): [
593
+ ("treatments.treatment_id" , "adverse_events.treatment_id" )
594
+ ],
595
+ ("treatments" , "concomitant_meds" ): [
596
+ ("treatments.treatment_id" , "concomitant_meds.treatment_id" )
597
+ ]
598
+ },
599
+ "ewallet" : {
600
+ ("consumer_div.users" , "consumer_div.notifications" ): [
601
+ ("consumer_div.users.uid" , "consumer_div.notifications.user_id" )
602
+ ],
603
+ ("consumer_div.users" , "consumer_div.user_sessions" ): [
604
+ ("consumer_div.users.uid" , "consumer_div.user_sessions.user_id" )
605
+ ],
606
+ ("consumer_div.users" , "consumer_div.user_setting_snapshot" ): [
607
+ ("consumer_div.users.uid" , "consumer_div.user_setting_snapshot.user_id" )
608
+ ],
609
+ ("consumer_div.users" , "consumer_div.wallet_user_balance_daily" ): [
610
+ ("consumer_div.users.uid" , "consumer_div.wallet_user_balance_daily.user_id" )
611
+ ],
612
+ ("consumer_div.users" , "consumer_div.wallet_transactions_daily" ): [
613
+ ("consumer_div.users.uid" , "consumer_div.wallet_transactions_daily.sender_id" ),
614
+ ("consumer_div.users.uid" , "consumer_div.wallet_transactions_daily.receiver_id" )
615
+ ],
616
+ ("consumer_div.merchants" , "consumer_div.wallet_transactions_daily" ): [
617
+ ("consumer_div.merchants.mid" , "consumer_div.wallet_transactions_daily.sender_id" ),
618
+ ("consumer_div.merchants.mid" , "consumer_div.wallet_transactions_daily.receiver_id" )
619
+ ],
620
+ ("consumer_div.merchants" , "consumer_div.coupons" ): [
621
+ ("consumer_div.merchants.mid" , "consumer_div.coupons.merchant_id" )
622
+ ],
623
+ ("consumer_div.merchants" , "consumer_div.wallet_merchant_balance_daily" ): [
624
+ ("consumer_div.merchants.mid" , "consumer_div.wallet_merchant_balance_daily.merchant_id" )
625
+ ],
626
+ ("consumer_div.coupons" , "consumer_div.wallet_transactions_daily" ): [
627
+ ("consumer_div.coupons.cid" , "consumer_div.wallet_transactions_daily.coupon_id" )
628
+ ]
629
+ },
552
630
}
0 commit comments