Yogeshwaran27 commited on
Commit
5ee80e4
1 Parent(s): d49fa53

adding metadata.sql

Browse files
Files changed (1) hide show
  1. metadata.sql +130 -0
metadata.sql ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ CREATE TABLE ped_stg_usa.us_kol_engagement (
2
+ activity_name_eng varchar(256),
3
+ activity_type_eng varchar(256),
4
+ partnering_department_eng varchar(256),
5
+ year_eng float8,
6
+ quarter_eng varchar(256),
7
+ cat1_eng integer,
8
+ cat2_eng integer,
9
+ cat3_eng integer,
10
+ cat1_sum_eng float8,
11
+ cat2_sum_eng float8,
12
+ cat3_sum_eng float8,
13
+ segment_eng varchar(256),
14
+ hospital_eng varchar(256),
15
+ region_eng varchar(256),
16
+ area_eng varchar(256),
17
+ engagement_score_eng float8,
18
+ rank_eng float8,
19
+ phy_name_eng varchar(256)
20
+ );
21
+
22
+ CREATE TABLE ped_stg_usa.us_kol_overall_scoring (
23
+ phy_name_us varchar(256),
24
+ hospital_us varchar(256),
25
+ city_us varchar(256),
26
+ state_us varchar(256),
27
+ us_area_us varchar(256),
28
+ position_us varchar(256),
29
+ segment_us varchar(256),
30
+ email_us varchar(256),
31
+ fellowship_us varchar(256),
32
+ graduation_us varchar(256),
33
+ emerging_us varchar(256),
34
+ twitter_us varchar(256),
35
+ eng_score_pct_us float8,
36
+ sfdc_ytd_score_pct_us float8,
37
+ sfdc_l4q_score_pct_us float8,
38
+ pod_score_pct_us float8,
39
+ soc_score_pct_us float8,
40
+ pub_score_pct_us float8,
41
+ ct_score_pct_us float8,
42
+ influence_score_pct_us float8,
43
+ partnership_score_pct_us float8,
44
+ overall_score_pct_us float8
45
+ );
46
+
47
+
48
+ CREATE TABLE ped_stg_usa.us_kol_open_payments ( record_id_op varchar(256),
49
+ phy_name_op varchar(256),
50
+ date_of_payment_op date,
51
+ total_amount_of_payment_usdollars_op float country_of_travel_op varchar(256),
52
+ state_of_travel_op varchar(256) ,
53
+ city_of_travel_op varchar(256),
54
+ nature_of_payment_or_transfer_of_value_op varchar(256) ,
55
+ applicable_manufacturer_or_applicable_gpo_making_payment_country_op varchar(256) ,
56
+ applicable_manufacturer_or_applicable_gpo_making_payment_state_op varchar(256) ,
57
+ sender_organization_op varchar(256) );
58
+
59
+ CREATE TABLE ped_stg_usa.us_kol_procedures
60
+ (
61
+ sfdccallid varchar(256),
62
+ actualstartdate timestamp,
63
+ casetype varchar(256),
64
+ casesubtype varchar(256),
65
+ us_physician_names varchar(256),
66
+ sfdc_names varchar(256),
67
+ all_prod_names varchar(1000),
68
+ city varchar(256),
69
+ state varchar(256),
70
+ hospital varchar(256),
71
+ segment varchar(256),
72
+ global_region varchar(256),
73
+ us_area varchar(256),
74
+ last varchar(256),
75
+ first varchar(256),
76
+ last_4_qr integer,
77
+ emerging varchar(256),
78
+ curr_yr_flag integer,
79
+ prev_yr_flag integer,
80
+ rolling_12_mo integer,
81
+ psaf integer,
82
+ paf integer,
83
+ afib integer,
84
+ vt integer,
85
+ cartoprime integer,
86
+ smarttouch_sf integer,
87
+ soundstar integer,
88
+ pentaray integer,
89
+ surpoint integer,
90
+ vizigo integer,
91
+ qdot integer,
92
+ octaray integer,
93
+ nuvision integer,
94
+ optrell integer,
95
+ da_group varchar(256),
96
+ af_complex_svt integer,
97
+ oce integer,
98
+ oce_2 integer,
99
+ oce_3 integer,
100
+ oce_4 integer,
101
+ af_oce integer,
102
+ af_oce_2 integer,
103
+ af_oce_3 integer,
104
+ vt_oce_1 integer,
105
+ vt_oce_2 integer,
106
+ af_cartoprime integer,
107
+ af_pentaray integer,
108
+ af_stsf integer,
109
+ af_soundstar integer,
110
+ af_surpoint integer,
111
+ af_vizigo integer,
112
+ af_csvt_cartoprime integer,
113
+ vt_cartoprime integer,
114
+ vt_pentaray integer,
115
+ vt_stsf integer,
116
+ vt_soundstar integer,
117
+ vt_surpoint integer,
118
+ vt_vizigo integer,
119
+ af_curr_yr integer,
120
+ af_prev_yr integer,
121
+ vt_curr_yr integer,
122
+ vt_prev_yr integer,
123
+ af_roll_12 integer,
124
+ vt_roll_12 integer,
125
+ ytd_score float8,
126
+ last_4_qr_score float8,
127
+ phy_name varchar(256),
128
+ sfdc_refresh_date varchar(256)
129
+ );
130
+