instruction
stringclasses 1
value | input
stringlengths 130
7.08k
| output
stringlengths 66
4.67k
|
|---|---|---|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_rnk_sd01", "description": null, "columns": [{"name": "rnk_no", "type": "bigint", "description": null}, {"name": "rnk_aply_ucnt", "type": "bigint", "description": null}, {"name": "rnk_canc_ucnt", "type": "bigint", "description": null}, {"name": "game_ucnt", "type": "bigint", "description": null}, {"name": "get_pnt", "type": "bigint", "description": null}, {"name": "exht_pnt", "type": "bigint", "description": null}, {"name": "canc_in_pnt", "type": "bigint", "description": null}, {"name": "user_pcnt", "type": "bigint", "description": null}, {"name": "use_mony", "type": "double", "description": null}, {"name": "reg_out_pnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_rnk_sd01` (
`rnk_no` bigint COMMENT 'None',
`rnk_aply_ucnt` bigint COMMENT 'None',
`rnk_canc_ucnt` bigint COMMENT 'None',
`game_ucnt` bigint COMMENT 'None',
`get_pnt` bigint COMMENT 'None',
`exht_pnt` bigint COMMENT 'None',
`canc_in_pnt` bigint COMMENT 'None',
`user_pcnt` bigint COMMENT 'None',
`use_mony` double COMMENT 'None',
`reg_out_pnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_rstct_user_sd01", "description": null, "columns": [{"name": "ucnt", "type": "bigint", "description": null}, {"name": "cust_cnt", "type": "bigint", "description": null}, {"name": "act_ucnt", "type": "bigint", "description": null}, {"name": "ret_ucnt", "type": "bigint", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "tdd_rstct_cnt", "type": "bigint", "description": null}, {"name": "los_rstct_mony", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_rstct_user_sd01` (
`ucnt` bigint COMMENT 'None',
`cust_cnt` bigint COMMENT 'None',
`act_ucnt` bigint COMMENT 'None',
`ret_ucnt` bigint COMMENT 'None',
`game_cd` string COMMENT 'None',
`tdd_rstct_cnt` bigint COMMENT 'None',
`los_rstct_mony` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_rstct_user_sd02", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "los_rstct_mony", "type": "double", "description": null}, {"name": "user_rstct_cnt", "type": "bigint", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_rstct_user_sd02` (
`game_cd` string COMMENT 'None',
`los_rstct_mony` double COMMENT 'None',
`user_rstct_cnt` bigint COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_upp_lv_chg_sd01", "description": null, "columns": [{"name": "lv", "type": "bigint", "description": null}, {"name": "lv_chg_tp_cd", "type": "string", "description": null}, {"name": "lv_chg_path_cd", "type": "string", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_upp_lv_chg_sd01` (
`lv` bigint COMMENT 'None',
`lv_chg_tp_cd` string COMMENT 'None',
`lv_chg_path_cd` string COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_upp_objr_sd01", "description": null, "columns": [{"name": "lv", "type": "bigint", "description": null}, {"name": "objr_cnt", "type": "bigint", "description": null}, {"name": "tdd_ucnt", "type": "bigint", "description": null}, {"name": "pc_po_ucnt", "type": "bigint", "description": null}, {"name": "mbl_po_ucnt", "type": "bigint", "description": null}, {"name": "pc_go_ucnt", "type": "bigint", "description": null}, {"name": "mbl_go_ucnt", "type": "bigint", "description": null}, {"name": "tdd_pcnt", "type": "bigint", "description": null}, {"name": "pc_po_pcnt", "type": "bigint", "description": null}, {"name": "mbl_po_pcnt", "type": "bigint", "description": null}, {"name": "pc_go_pcnt", "type": "bigint", "description": null}, {"name": "mbl_go_pcnt", "type": "bigint", "description": null}, {"name": "pc_po_los_mony", "type": "double", "description": null}, {"name": "mbl_po_los_mony", "type": "double", "description": null}, {"name": "pc_go_los_mony", "type": "double", "description": null}, {"name": "mbl_go_los_mony", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_upp_objr_sd01` (
`lv` bigint COMMENT 'None',
`objr_cnt` bigint COMMENT 'None',
`tdd_ucnt` bigint COMMENT 'None',
`pc_po_ucnt` bigint COMMENT 'None',
`mbl_po_ucnt` bigint COMMENT 'None',
`pc_go_ucnt` bigint COMMENT 'None',
`mbl_go_ucnt` bigint COMMENT 'None',
`tdd_pcnt` bigint COMMENT 'None',
`pc_po_pcnt` bigint COMMENT 'None',
`mbl_po_pcnt` bigint COMMENT 'None',
`pc_go_pcnt` bigint COMMENT 'None',
`mbl_go_pcnt` bigint COMMENT 'None',
`pc_po_los_mony` double COMMENT 'None',
`mbl_po_los_mony` double COMMENT 'None',
`pc_go_los_mony` double COMMENT 'None',
`mbl_go_los_mony` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_v1_objr_game_sd01", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "cm_objr_cnt", "type": "bigint", "description": null}, {"name": "tot_hld_mony", "type": "double", "description": null}, {"name": "game_tdd_ucnt", "type": "bigint", "description": null}, {"name": "game_win_pcnt", "type": "bigint", "description": null}, {"name": "game_los_pcnt", "type": "bigint", "description": null}, {"name": "game_win_mony", "type": "double", "description": null}, {"name": "game_los_mony", "type": "double", "description": null}, {"name": "game_uv_hld_mony", "type": "double", "description": null}, {"name": "v1_tdd_ucnt", "type": "bigint", "description": null}, {"name": "v1_mony_mv_obj_ucnt", "type": "double", "description": null}, {"name": "v1_win_tcnt", "type": "bigint", "description": null}, {"name": "v1_los_tcnt", "type": "bigint", "description": null}, {"name": "v1_win_pcnt", "type": "bigint", "description": null}, {"name": "v1_los_pcnt", "type": "bigint", "description": null}, {"name": "v1_win_mony", "type": "double", "description": null}, {"name": "v1_los_mony", "type": "double", "description": null}, {"name": "v1_uv_hld_mony", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_v1_objr_game_sd01` (
`game_cd` string COMMENT 'None',
`cm_objr_cnt` bigint COMMENT 'None',
`tot_hld_mony` double COMMENT 'None',
`game_tdd_ucnt` bigint COMMENT 'None',
`game_win_pcnt` bigint COMMENT 'None',
`game_los_pcnt` bigint COMMENT 'None',
`game_win_mony` double COMMENT 'None',
`game_los_mony` double COMMENT 'None',
`game_uv_hld_mony` double COMMENT 'None',
`v1_tdd_ucnt` bigint COMMENT 'None',
`v1_mony_mv_obj_ucnt` double COMMENT 'None',
`v1_win_tcnt` bigint COMMENT 'None',
`v1_los_tcnt` bigint COMMENT 'None',
`v1_win_pcnt` bigint COMMENT 'None',
`v1_los_pcnt` bigint COMMENT 'None',
`v1_win_mony` double COMMENT 'None',
`v1_los_mony` double COMMENT 'None',
`v1_uv_hld_mony` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_v1_objr_game_sd02", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "game_tp_cd", "type": "string", "description": null}, {"name": "user_tp_cd", "type": "string", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "tcnt", "type": "bigint", "description": null}, {"name": "pcnt", "type": "bigint", "description": null}, {"name": "mony", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_v1_objr_game_sd02` (
`game_cd` string COMMENT 'None',
`game_tp_cd` string COMMENT 'None',
`user_tp_cd` string COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`tcnt` bigint COMMENT 'None',
`pcnt` bigint COMMENT 'None',
`mony` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_v1_objr_game_sd03", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "game_tp_cd", "type": "string", "description": null}, {"name": "user_tp_cd", "type": "string", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "tcnt", "type": "bigint", "description": null}, {"name": "pcnt", "type": "bigint", "description": null}, {"name": "mony", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_v1_objr_game_sd03` (
`game_cd` string COMMENT 'None',
`game_tp_cd` string COMMENT 'None',
`user_tp_cd` string COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`tcnt` bigint COMMENT 'None',
`pcnt` bigint COMMENT 'None',
`mony` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_po_vip_user_sd01", "description": null, "columns": [{"name": "vip_grd_cd", "type": "string", "description": null}, {"name": "cm_ucnt", "type": "bigint", "description": null}, {"name": "tdd_ucnt", "type": "bigint", "description": null}, {"name": "tot_crncy_amt", "type": "double", "description": null}, {"name": "net_crncy_amt", "type": "double", "description": null}, {"name": "tdd_game_ucnt", "type": "bigint", "description": null}, {"name": "user_pcnt", "type": "bigint", "description": null}, {"name": "los_mony", "type": "double", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_po_vip_user_sd01` (
`vip_grd_cd` string COMMENT 'None',
`cm_ucnt` bigint COMMENT 'None',
`tdd_ucnt` bigint COMMENT 'None',
`tot_crncy_amt` double COMMENT 'None',
`net_crncy_amt` double COMMENT 'None',
`tdd_game_ucnt` bigint COMMENT 'None',
`user_pcnt` bigint COMMENT 'None',
`los_mony` double COMMENT 'None',
`pu` bigint COMMENT 'None',
`nsamt` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_cntu_sw01", "description": null, "columns": [{"name": "strt_ymd", "type": "string", "description": null}, {"name": "end_ymd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "wkly_use_cyc", "type": "string", "description": null}, {"name": "wkly_ucnt", "type": "bigint", "description": null}, {"name": "wkly_pcnt", "type": "bigint", "description": null}, {"name": "wkly_ptm", "type": "double", "description": null}, {"name": "wkly_vst_dcnt", "type": "bigint", "description": null}, {"name": "ltr_etc1", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_cntu_sw01` (
`strt_ymd` string COMMENT 'None',
`end_ymd` string COMMENT 'None',
`game_cd` string COMMENT 'None',
`wkly_use_cyc` string COMMENT 'None',
`wkly_ucnt` bigint COMMENT 'None',
`wkly_pcnt` bigint COMMENT 'None',
`wkly_ptm` double COMMENT 'None',
`wkly_vst_dcnt` bigint COMMENT 'None',
`ltr_etc1` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_endp_sale_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "cat1", "type": "string", "description": null}, {"name": "cat2", "type": "string", "description": null}, {"name": "cat3", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "sale_cnt", "type": "bigint", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_endp_sale_sd01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`cat1` string COMMENT 'None',
`cat2` string COMMENT 'None',
`cat3` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`pu` bigint COMMENT 'None',
`sale_cnt` bigint COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_endp_sale_sd01_mbl", "description": null, "columns": [{"name": "org_cd", "type": "string", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "mket_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "sale_cnt", "type": "bigint", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "new_pu", "type": "bigint", "description": null}, {"name": "mm_cm_samt", "type": "double", "description": null}, {"name": "mm_cm_nsamt", "type": "double", "description": null}, {"name": "mm_cm_pu", "type": "bigint", "description": null}, {"name": "os_cd", "type": "string", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "mm_cm_samt_jpy", "type": "double", "description": null}, {"name": "pu_30d", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_endp_sale_sd01_mbl` (
`org_cd` string COMMENT 'None',
`nat_cd` string COMMENT 'None',
`mket_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`pu` bigint COMMENT 'None',
`sale_cnt` bigint COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`new_pu` bigint COMMENT 'None',
`mm_cm_samt` double COMMENT 'None',
`mm_cm_nsamt` double COMMENT 'None',
`mm_cm_pu` bigint COMMENT 'None',
`os_cd` string COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`mm_cm_samt_jpy` double COMMENT 'None',
`pu_30d` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_endp_sale_sw01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "cat1", "type": "string", "description": null}, {"name": "cat2", "type": "string", "description": null}, {"name": "cat3", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "sale_cnt", "type": "bigint", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_endp_sale_sw01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`cat1` string COMMENT 'None',
`cat2` string COMMENT 'None',
`cat3` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`pu` bigint COMMENT 'None',
`sale_cnt` bigint COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_game_pu_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "game_nm", "type": "string", "description": null}, {"name": "uv", "type": "bigint", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "pu_uv", "type": "bigint", "description": null}, {"name": "mm_cm_uv", "type": "bigint", "description": null}, {"name": "mm_cm_pu", "type": "bigint", "description": null}, {"name": "mm_cm_pu_uv", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_game_pu_sd01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`game_cd` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`game_nm` string COMMENT 'None',
`uv` bigint COMMENT 'None',
`pu` bigint COMMENT 'None',
`pu_uv` bigint COMMENT 'None',
`mm_cm_uv` bigint COMMENT 'None',
`mm_cm_pu` bigint COMMENT 'None',
`mm_cm_pu_uv` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_new_pu_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "fst_prod_seq", "type": "string", "description": null}, {"name": "fst_game_grd_cd", "type": "string", "description": null}, {"name": "fst_samt", "type": "double", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "prod_nm", "type": "string", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "fst_samt_jpy", "type": "double", "description": null}, {"name": "os_cd", "type": "string", "description": null}, {"name": "mket_cd", "type": "string", "description": null}, {"name": "join_elps_dcnt", "type": "bigint", "description": null}, {"name": "lst_lv_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_new_pu_sd01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`fst_prod_seq` string COMMENT 'None',
`fst_game_grd_cd` string COMMENT 'None',
`fst_samt` double COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`prod_nm` string COMMENT 'None',
`pu` bigint COMMENT 'None',
`fst_samt_jpy` double COMMENT 'None',
`os_cd` string COMMENT 'None',
`mket_cd` string COMMENT 'None',
`join_elps_dcnt` bigint COMMENT 'None',
`lst_lv_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_new_user_sd01", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "new_user_cnt", "type": "bigint", "description": null}, {"name": "join8d_vit_cnt", "type": "bigint", "description": null}, {"name": "join8d_samt", "type": "double", "description": null}, {"name": "join31d_samt", "type": "double", "description": null}, {"name": "infl_chnl_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_new_user_sd01` (
`game_cd` string COMMENT 'None',
`nat_cd` string COMMENT 'None',
`new_user_cnt` bigint COMMENT 'None',
`join8d_vit_cnt` bigint COMMENT 'None',
`join8d_samt` double COMMENT 'None',
`join31d_samt` double COMMENT 'None',
`infl_chnl_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_org_sale_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "cat1", "type": "string", "description": null}, {"name": "cat2", "type": "string", "description": null}, {"name": "cat3", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_org_sale_sd01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`cat1` string COMMENT 'None',
`cat2` string COMMENT 'None',
`cat3` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_org_sale_sw01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "cat1", "type": "string", "description": null}, {"name": "cat2", "type": "string", "description": null}, {"name": "cat3", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_org_sale_sw01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`cat1` string COMMENT 'None',
`cat2` string COMMENT 'None',
`cat3` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_sale_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "org_nm", "type": "string", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "pcb_nsamt", "type": "double", "description": null}, {"name": "endp_samt", "type": "double", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "mm_cm_nsamt", "type": "double", "description": null}, {"name": "mm_cm_endp_samt", "type": "double", "description": null}, {"name": "mm_cm_pu", "type": "bigint", "description": null}, {"name": "new_pu", "type": "bigint", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "mm_cm_samt_jpy", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_sale_sd01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`org_nm` string COMMENT 'None',
`nsamt` double COMMENT 'None',
`pcb_nsamt` double COMMENT 'None',
`endp_samt` double COMMENT 'None',
`pu` bigint COMMENT 'None',
`mm_cm_nsamt` double COMMENT 'None',
`mm_cm_endp_samt` double COMMENT 'None',
`mm_cm_pu` bigint COMMENT 'None',
`new_pu` bigint COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`mm_cm_samt_jpy` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "game_nm", "type": "string", "description": null}, {"name": "cm_ucnt", "type": "bigint", "description": null}, {"name": "uv_cnt", "type": "bigint", "description": null}, {"name": "wkly_ucnt", "type": "bigint", "description": null}, {"name": "new_ucnt", "type": "bigint", "description": null}, {"name": "tdd_ptm", "type": "double", "description": null}, {"name": "conn_tcnt", "type": "bigint", "description": null}, {"name": "mcu", "type": "bigint", "description": null}, {"name": "mcu_tm", "type": "string", "description": null}, {"name": "act_ucnt", "type": "bigint", "description": null}, {"name": "mm_cm_ucnt", "type": "bigint", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_sd01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`game_nm` string COMMENT 'None',
`cm_ucnt` bigint COMMENT 'None',
`uv_cnt` bigint COMMENT 'None',
`wkly_ucnt` bigint COMMENT 'None',
`new_ucnt` bigint COMMENT 'None',
`tdd_ptm` double COMMENT 'None',
`conn_tcnt` bigint COMMENT 'None',
`mcu` bigint COMMENT 'None',
`mcu_tm` string COMMENT 'None',
`act_ucnt` bigint COMMENT 'None',
`mm_cm_ucnt` bigint COMMENT 'None',
`game_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_sd02", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "sex_cd", "type": "string", "description": null}, {"name": "age_zn_cd", "type": "string", "description": null}, {"name": "hgid_mapng_yn", "type": "string", "description": null}, {"name": "mket_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "game_nm", "type": "string", "description": null}, {"name": "sex_nm", "type": "string", "description": null}, {"name": "age_zn_nm", "type": "string", "description": null}, {"name": "mket_nm", "type": "string", "description": null}, {"name": "cm_ucnt", "type": "bigint", "description": null}, {"name": "uv_cnt", "type": "bigint", "description": null}, {"name": "new_ucnt", "type": "bigint", "description": null}, {"name": "wkly_ucnt", "type": "bigint", "description": null}, {"name": "tdd_ptm", "type": "double", "description": null}, {"name": "conn_tcnt", "type": "bigint", "description": null}, {"name": "act_ucnt", "type": "bigint", "description": null}, {"name": "ltr_etc1", "type": "string", "description": null}, {"name": "ltr_etc2", "type": "string", "description": null}, {"name": "num_etc1", "type": "bigint", "description": null}, {"name": "os_cd", "type": "string", "description": null}, {"name": "idp_cd", "type": "string", "description": null}, {"name": "w1_dmnc_cmbck_ucnt", "type": "bigint", "description": null}, {"name": "w4_dmnc_cmbck_ucnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_sd02` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`game_cd` string COMMENT 'None',
`sex_cd` string COMMENT 'None',
`age_zn_cd` string COMMENT 'None',
`hgid_mapng_yn` string COMMENT 'None',
`mket_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`game_nm` string COMMENT 'None',
`sex_nm` string COMMENT 'None',
`age_zn_nm` string COMMENT 'None',
`mket_nm` string COMMENT 'None',
`cm_ucnt` bigint COMMENT 'None',
`uv_cnt` bigint COMMENT 'None',
`new_ucnt` bigint COMMENT 'None',
`wkly_ucnt` bigint COMMENT 'None',
`tdd_ptm` double COMMENT 'None',
`conn_tcnt` bigint COMMENT 'None',
`act_ucnt` bigint COMMENT 'None',
`ltr_etc1` string COMMENT 'None',
`ltr_etc2` string COMMENT 'None',
`num_etc1` bigint COMMENT 'None',
`os_cd` string COMMENT 'None',
`idp_cd` string COMMENT 'None',
`w1_dmnc_cmbck_ucnt` bigint COMMENT 'None',
`w4_dmnc_cmbck_ucnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_sw01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "mcls_cd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcls_nm", "type": "string", "description": null}, {"name": "game_nm", "type": "string", "description": null}, {"name": "avg_uv", "type": "bigint", "description": null}, {"name": "wkly_ucnt", "type": "bigint", "description": null}, {"name": "new_ucnt", "type": "bigint", "description": null}, {"name": "avg_cu", "type": "bigint", "description": null}, {"name": "mm_cm_ucnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_sw01` (
`lcls_cd` string COMMENT 'None',
`mcls_cd` string COMMENT 'None',
`game_cd` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcls_nm` string COMMENT 'None',
`game_nm` string COMMENT 'None',
`avg_uv` bigint COMMENT 'None',
`wkly_ucnt` bigint COMMENT 'None',
`new_ucnt` bigint COMMENT 'None',
`avg_cu` bigint COMMENT 'None',
`mm_cm_ucnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_std_indr_user_sd01", "description": null, "columns": [{"name": "lcls_cd", "type": "string", "description": null}, {"name": "idp_cd", "type": "string", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "cm_ucnt", "type": "bigint", "description": null}, {"name": "uv_cnt", "type": "bigint", "description": null}, {"name": "new_ucnt", "type": "bigint", "description": null}, {"name": "wkly_ucnt", "type": "bigint", "description": null}, {"name": "act_ucnt", "type": "bigint", "description": null}, {"name": "mm_cm_ucnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_std_indr_user_sd01` (
`lcls_cd` string COMMENT 'None',
`idp_cd` string COMMENT 'None',
`nat_cd` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`cm_ucnt` bigint COMMENT 'None',
`uv_cnt` bigint COMMENT 'None',
`new_ucnt` bigint COMMENT 'None',
`wkly_ucnt` bigint COMMENT 'None',
`act_ucnt` bigint COMMENT 'None',
`mm_cm_ucnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sm_mbr_ci_sd01", "description": null, "columns": [{"name": "mbr_tp_cd", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "cm_ci", "type": "bigint", "description": null}, {"name": "cm_pu", "type": "bigint", "description": null}, {"name": "new_ci", "type": "bigint", "description": null}, {"name": "login_ci", "type": "bigint", "description": null}, {"name": "act_ci", "type": "bigint", "description": null}, {"name": "slp_yn", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sm_mbr_ci_sd01` (
`mbr_tp_cd` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`cm_ci` bigint COMMENT 'None',
`cm_pu` bigint COMMENT 'None',
`new_ci` bigint COMMENT 'None',
`login_ci` bigint COMMENT 'None',
`act_ci` bigint COMMENT 'None',
`slp_yn` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "ss_appgd_app_sd01", "description": null, "columns": [{"name": "app_key", "type": "string", "description": null}, {"name": "os_cd", "type": "string", "description": null}, {"name": "dev_cnt", "type": "bigint", "description": null}, {"name": "adid_cnt", "type": "bigint", "description": null}, {"name": "act_3m_adid_cnt", "type": "bigint", "description": null}, {"name": "act_1m_adid_cnt", "type": "bigint", "description": null}, {"name": "cm_adid_cnt", "type": "bigint", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`ss_appgd_app_sd01` (
`app_key` string COMMENT 'None',
`os_cd` string COMMENT 'None',
`dev_cnt` bigint COMMENT 'None',
`adid_cnt` bigint COMMENT 'None',
`act_3m_adid_cnt` bigint COMMENT 'None',
`act_1m_adid_cnt` bigint COMMENT 'None',
`cm_adid_cnt` bigint COMMENT 'None',
`nat_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "ss_appgd_app_sd02", "description": null, "columns": [{"name": "sumry_lv", "type": "string", "description": null}, {"name": "app_key", "type": "string", "description": null}, {"name": "tdd_adid_cnt", "type": "bigint", "description": null}, {"name": "mm1_act_adid_cnt", "type": "bigint", "description": null}, {"name": "mm3_act_adid_cnt", "type": "bigint", "description": null}, {"name": "app_list_gth_tdd_adid_cnt", "type": "bigint", "description": null}, {"name": "app_list_gth_mm1_adid_cnt", "type": "bigint", "description": null}, {"name": "app_list_gth_mm3_adid_cnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`ss_appgd_app_sd02` (
`sumry_lv` string COMMENT 'None',
`app_key` string COMMENT 'None',
`tdd_adid_cnt` bigint COMMENT 'None',
`mm1_act_adid_cnt` bigint COMMENT 'None',
`mm3_act_adid_cnt` bigint COMMENT 'None',
`app_list_gth_tdd_adid_cnt` bigint COMMENT 'None',
`app_list_gth_mm1_adid_cnt` bigint COMMENT 'None',
`app_list_gth_mm3_adid_cnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "ss_appgd_exec_sd01", "description": null, "columns": [{"name": "app_cnt", "type": "bigint", "description": null}, {"name": "dev_cnt", "type": "bigint", "description": null}, {"name": "adid_cnt", "type": "bigint", "description": null}, {"name": "cm_adid_cnt", "type": "bigint", "description": null}, {"name": "act_3m_adid_cnt", "type": "bigint", "description": null}, {"name": "act_1m_adid_cnt", "type": "bigint", "description": null}, {"name": "svc_tp_cd", "type": "string", "description": null}, {"name": "new_adid_cnt", "type": "bigint", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`ss_appgd_exec_sd01` (
`app_cnt` bigint COMMENT 'None',
`dev_cnt` bigint COMMENT 'None',
`adid_cnt` bigint COMMENT 'None',
`cm_adid_cnt` bigint COMMENT 'None',
`act_3m_adid_cnt` bigint COMMENT 'None',
`act_1m_adid_cnt` bigint COMMENT 'None',
`svc_tp_cd` string COMMENT 'None',
`new_adid_cnt` bigint COMMENT 'None',
`nat_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "vi_sg_mis_game_sd01", "description": null, "columns": [{"name": "game_nm", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "mcu", "type": "bigint", "description": null}, {"name": "cm_ucnt", "type": "bigint", "description": null}, {"name": "mm_cm_ucnt", "type": "bigint", "description": null}, {"name": "tdd_ucnt", "type": "bigint", "description": null}, {"name": "new_ucnt", "type": "bigint", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "net_samt", "type": "double", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "pu_rt", "type": "double", "description": null}, {"name": "arpu", "type": "double", "description": null}, {"name": "arppu", "type": "double", "description": null}, {"name": "mm_cm_samt", "type": "double", "description": null}, {"name": "mm_cm_nsamt", "type": "double", "description": null}, {"name": "mm_cm_pu", "type": "bigint", "description": null}, {"name": "d1_re_vst_rt_avg", "type": "double", "description": null}, {"name": "d7_re_vst_rt_avg", "type": "double", "description": null}, {"name": "d1_re_vst_rt", "type": "double", "description": null}, {"name": "d7_re_vst_rt", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`vi_sg_mis_game_sd01` (
`game_nm` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`mcu` bigint COMMENT 'None',
`cm_ucnt` bigint COMMENT 'None',
`mm_cm_ucnt` bigint COMMENT 'None',
`tdd_ucnt` bigint COMMENT 'None',
`new_ucnt` bigint COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`net_samt` double COMMENT 'None',
`pu` bigint COMMENT 'None',
`pu_rt` double COMMENT 'None',
`arpu` double COMMENT 'None',
`arppu` double COMMENT 'None',
`mm_cm_samt` double COMMENT 'None',
`mm_cm_nsamt` double COMMENT 'None',
`mm_cm_pu` bigint COMMENT 'None',
`d1_re_vst_rt_avg` double COMMENT 'None',
`d7_re_vst_rt_avg` double COMMENT 'None',
`d1_re_vst_rt` double COMMENT 'None',
`d7_re_vst_rt` double COMMENT 'None',
`work_ymd` string COMMENT 'None',
`game_cd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "vi_sg_mis_game_user_sd01", "description": null, "columns": [{"name": "lcls_nm", "type": "string", "description": null}, {"name": "tdd_ucnt", "type": "bigint", "description": null}, {"name": "new_ucnt", "type": "bigint", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "tdd_nsamt", "type": "double", "description": null}, {"name": "tdd_samt", "type": "double", "description": null}, {"name": "mm_cm_nsamt", "type": "double", "description": null}, {"name": "mm_cm_samt", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`vi_sg_mis_game_user_sd01` (
`lcls_nm` string COMMENT 'None',
`tdd_ucnt` bigint COMMENT 'None',
`new_ucnt` bigint COMMENT 'None',
`pu` bigint COMMENT 'None',
`tdd_nsamt` double COMMENT 'None',
`tdd_samt` double COMMENT 'None',
`mm_cm_nsamt` double COMMENT 'None',
`mm_cm_samt` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "bigamestct", "description": null, "columns": [{"name": "logdte", "type": "string", "description": null}, {"name": "gameid", "type": "string", "description": null}, {"name": "maxcnt", "type": "bigint", "description": null}, {"name": "maxdate", "type": "string", "description": null}, {"name": "mincnt", "type": "bigint", "description": null}, {"name": "sumcnt", "type": "bigint", "description": null}, {"name": "chccnt", "type": "bigint", "description": null}, {"name": "maxlcnt", "type": "bigint", "description": null}, {"name": "maxldate", "type": "string", "description": null}, {"name": "minlcnt", "type": "bigint", "description": null}, {"name": "sumlcnt", "type": "bigint", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`bigamestct` (
`logdte` string COMMENT 'None',
`gameid` string COMMENT 'None',
`maxcnt` bigint COMMENT 'None',
`maxdate` string COMMENT 'None',
`mincnt` bigint COMMENT 'None',
`sumcnt` bigint COMMENT 'None',
`chccnt` bigint COMMENT 'None',
`maxlcnt` bigint COMMENT 'None',
`maxldate` string COMMENT 'None',
`minlcnt` bigint COMMENT 'None',
`sumlcnt` bigint COMMENT 'None',
`game_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "db_adid_sale_d01", "description": null, "columns": [{"name": "org_cd", "type": "string", "description": null}, {"name": "adid", "type": "string", "description": null}, {"name": "sale_cnt", "type": "bigint", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "cupn_amt", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`db_adid_sale_d01` (
`org_cd` string COMMENT 'None',
`adid` string COMMENT 'None',
`sale_cnt` bigint COMMENT 'None',
`samt` double COMMENT 'None',
`cupn_amt` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "db_b2b_evnt_user_d01", "description": null, "columns": [{"name": "evnt_cd", "type": "string", "description": null}, {"name": "userid", "type": "string", "description": null}, {"name": "gmony", "type": "double", "description": null}, {"name": "endp_qty", "type": "double", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "enty_tcnt", "type": "bigint", "description": null}, {"name": "sex_cd", "type": "string", "description": null}, {"name": "age_zn_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`db_b2b_evnt_user_d01` (
`evnt_cd` string COMMENT 'None',
`userid` string COMMENT 'None',
`gmony` double COMMENT 'None',
`endp_qty` double COMMENT 'None',
`samt` double COMMENT 'None',
`enty_tcnt` bigint COMMENT 'None',
`sex_cd` string COMMENT 'None',
`age_zn_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "db_coin_chag_hist", "description": null, "columns": [{"name": "work_hh", "type": "string", "description": null}, {"name": "pay_chnl_cd", "type": "string", "description": null}, {"name": "userid", "type": "string", "description": null}, {"name": "pay_tp_cd", "type": "string", "description": null}, {"name": "pay_mns_cd", "type": "string", "description": null}, {"name": "atmt_pay_yn", "type": "string", "description": null}, {"name": "st_cd", "type": "string", "description": null}, {"name": "chag_amt", "type": "double", "description": null}, {"name": "net_chag_amt", "type": "double", "description": null}, {"name": "chag_cnt", "type": "bigint", "description": null}, {"name": "noml_amt", "type": "double", "description": null}, {"name": "noml_cnt", "type": "bigint", "description": null}, {"name": "canc_amt", "type": "double", "description": null}, {"name": "canc_cnt", "type": "bigint", "description": null}, {"name": "userno", "type": "string", "description": null}, {"name": "custno", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`db_coin_chag_hist` (
`work_hh` string COMMENT 'None',
`pay_chnl_cd` string COMMENT 'None',
`userid` string COMMENT 'None',
`pay_tp_cd` string COMMENT 'None',
`pay_mns_cd` string COMMENT 'None',
`atmt_pay_yn` string COMMENT 'None',
`st_cd` string COMMENT 'None',
`chag_amt` double COMMENT 'None',
`net_chag_amt` double COMMENT 'None',
`chag_cnt` bigint COMMENT 'None',
`noml_amt` double COMMENT 'None',
`noml_cnt` bigint COMMENT 'None',
`canc_amt` double COMMENT 'None',
`canc_cnt` bigint COMMENT 'None',
`userno` string COMMENT 'None',
`custno` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "db_endp_sale_hist", "description": null, "columns": [{"name": "pay_chnl_cd", "type": "string", "description": null}, {"name": "userid", "type": "string", "description": null}, {"name": "sale_cd", "type": "string", "description": null}, {"name": "prod_seq", "type": "string", "description": null}, {"name": "st_cd", "type": "string", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "sale_cnt", "type": "bigint", "description": null}, {"name": "userno", "type": "string", "description": null}, {"name": "custno", "type": "string", "description": null}, {"name": "samt_jpy", "type": "double", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`db_endp_sale_hist` (
`pay_chnl_cd` string COMMENT 'None',
`userid` string COMMENT 'None',
`sale_cd` string COMMENT 'None',
`prod_seq` string COMMENT 'None',
`st_cd` string COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`sale_cnt` bigint COMMENT 'None',
`userno` string COMMENT 'None',
`custno` string COMMENT 'None',
`samt_jpy` double COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "dc_prod_cp", "description": null, "columns": [{"name": "cpid", "type": "string", "description": null}, {"name": "inhousefg", "type": "string", "description": null}, {"name": "partitionkey", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`dc_prod_cp` (
`cpid` string COMMENT 'None',
`inhousefg` string COMMENT 'None',
`partitionkey` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "dg_mblg_game_user_d01_for_upp", "description": null, "columns": [{"name": "userno", "type": "string", "description": null}, {"name": "st_cd", "type": "string", "description": null}, {"name": "hg_userid", "type": "string", "description": null}, {"name": "sngl_game_use_yn", "type": "string", "description": null}, {"name": "game_grd_tp_cd", "type": "string", "description": null}, {"name": "rat_join_dt", "type": "string", "description": null}, {"name": "join_prd_cd", "type": "string", "description": null}, {"name": "rat_lst_game_dt", "type": "string", "description": null}, {"name": "lst_game_prd_cd", "type": "string", "description": null}, {"name": "pcnt_secn_cd", "type": "string", "description": null}, {"name": "ptm_secn_cd", "type": "string", "description": null}, {"name": "cm_pcnt", "type": "bigint", "description": null}, {"name": "cm_win_pcnt", "type": "bigint", "description": null}, {"name": "cm_sngl_pcnt", "type": "bigint", "description": null}, {"name": "tdd_pcnt", "type": "bigint", "description": null}, {"name": "tdd_sngl_pcnt", "type": "bigint", "description": null}, {"name": "cm_ptm", "type": "double", "description": null}, {"name": "tdd_ptm", "type": "double", "description": null}, {"name": "mony", "type": "bigint", "description": null}, {"name": "coin", "type": "bigint", "description": null}, {"name": "fchg_mony", "type": "bigint", "description": null}, {"name": "fchg_coin", "type": "bigint", "description": null}, {"name": "invt_inflw_yn", "type": "string", "description": null}, {"name": "ltr_etc1", "type": "string", "description": null}, {"name": "ltr_etc2", "type": "string", "description": null}, {"name": "ltr_etc3", "type": "string", "description": null}, {"name": "num_etc1", "type": "bigint", "description": null}, {"name": "num_etc2", "type": "bigint", "description": null}, {"name": "num_etc3", "type": "bigint", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "del_appl_ver", "type": "string", "description": null}, {"name": "del_os_cd", "type": "string", "description": null}, {"name": "del_os_ver", "type": "string", "description": null}, {"name": "del_dev_key", "type": "string", "description": null}, {"name": "del_dev_mdl", "type": "string", "description": null}, {"name": "del_mket_cd", "type": "string", "description": null}, {"name": "del_lst_login_dt", "type": "string", "description": null}, {"name": "del_login_cnt", "type": "bigint", "description": null}, {"name": "ltr_etc4", "type": "string", "description": null}, {"name": "num_etc4", "type": "bigint", "description": null}, {"name": "ltr_etc5", "type": "string", "description": null}, {"name": "ltr_etc6", "type": "string", "description": null}, {"name": "num_etc5", "type": "bigint", "description": null}, {"name": "ci", "type": "string", "description": null}, {"name": "num_etc6", "type": "bigint", "description": null}, {"name": "num_etc7", "type": "bigint", "description": null}, {"name": "num_etc8", "type": "bigint", "description": null}, {"name": "ltr_etc7", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`dg_mblg_game_user_d01_for_upp` (
`userno` string COMMENT 'None',
`st_cd` string COMMENT 'None',
`hg_userid` string COMMENT 'None',
`sngl_game_use_yn` string COMMENT 'None',
`game_grd_tp_cd` string COMMENT 'None',
`rat_join_dt` string COMMENT 'None',
`join_prd_cd` string COMMENT 'None',
`rat_lst_game_dt` string COMMENT 'None',
`lst_game_prd_cd` string COMMENT 'None',
`pcnt_secn_cd` string COMMENT 'None',
`ptm_secn_cd` string COMMENT 'None',
`cm_pcnt` bigint COMMENT 'None',
`cm_win_pcnt` bigint COMMENT 'None',
`cm_sngl_pcnt` bigint COMMENT 'None',
`tdd_pcnt` bigint COMMENT 'None',
`tdd_sngl_pcnt` bigint COMMENT 'None',
`cm_ptm` double COMMENT 'None',
`tdd_ptm` double COMMENT 'None',
`mony` bigint COMMENT 'None',
`coin` bigint COMMENT 'None',
`fchg_mony` bigint COMMENT 'None',
`fchg_coin` bigint COMMENT 'None',
`invt_inflw_yn` string COMMENT 'None',
`ltr_etc1` string COMMENT 'None',
`ltr_etc2` string COMMENT 'None',
`ltr_etc3` string COMMENT 'None',
`num_etc1` bigint COMMENT 'None',
`num_etc2` bigint COMMENT 'None',
`num_etc3` bigint COMMENT 'None',
`nat_cd` string COMMENT 'None',
`del_appl_ver` string COMMENT 'None',
`del_os_cd` string COMMENT 'None',
`del_os_ver` string COMMENT 'None',
`del_dev_key` string COMMENT 'None',
`del_dev_mdl` string COMMENT 'None',
`del_mket_cd` string COMMENT 'None',
`del_lst_login_dt` string COMMENT 'None',
`del_login_cnt` bigint COMMENT 'None',
`ltr_etc4` string COMMENT 'None',
`num_etc4` bigint COMMENT 'None',
`ltr_etc5` string COMMENT 'None',
`ltr_etc6` string COMMENT 'None',
`num_etc5` bigint COMMENT 'None',
`ci` string COMMENT 'None',
`num_etc6` bigint COMMENT 'None',
`num_etc7` bigint COMMENT 'None',
`num_etc8` bigint COMMENT 'None',
`ltr_etc7` string COMMENT 'None',
`work_ymd` string COMMENT 'None',
`game_cd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_bdki_high_rnk_game_sw01", "description": null, "columns": [{"name": "chnl_nm", "type": "string", "description": null}, {"name": "game_mode", "type": "string", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "user_pcnt", "type": "bigint", "description": null}, {"name": "allin_tcnt", "type": "bigint", "description": null}, {"name": "los_mony", "type": "double", "description": null}, {"name": "dealr_mony", "type": "bigint", "description": null}, {"name": "game_tp_cd", "type": "string", "description": null}, {"name": "pcnt", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_bdki_high_rnk_game_sw01` (
`chnl_nm` string COMMENT 'None',
`game_mode` string COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`user_pcnt` bigint COMMENT 'None',
`allin_tcnt` bigint COMMENT 'None',
`los_mony` double COMMENT 'None',
`dealr_mony` bigint COMMENT 'None',
`game_tp_cd` string COMMENT 'None',
`pcnt` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "bip_dw", "table": "sg_mony_chg_sd01", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "out_in_tp_cd", "type": "string", "description": null}, {"name": "mony_cd", "type": "string", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "chg_mony", "type": "double", "description": null}, {"name": "chg_cnt", "type": "bigint", "description": null}, {"name": "mm_cm_ucnt", "type": "bigint", "description": null}, {"name": "mm_cm_chg_mony", "type": "double", "description": null}, {"name": "mm_cm_chg_cnt", "type": "bigint", "description": null}, {"name": "sumry_lv", "type": "bigint", "description": null}, {"name": "gds_tp_cd", "type": "string", "description": null}, {"name": "inflw_chnl_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `bip_dw`.`sg_mony_chg_sd01` (
`game_cd` string COMMENT 'None',
`out_in_tp_cd` string COMMENT 'None',
`mony_cd` string COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`chg_mony` double COMMENT 'None',
`chg_cnt` bigint COMMENT 'None',
`mm_cm_ucnt` bigint COMMENT 'None',
`mm_cm_chg_mony` double COMMENT 'None',
`mm_cm_chg_cnt` bigint COMMENT 'None',
`sumry_lv` bigint COMMENT 'None',
`gds_tp_cd` string COMMENT 'None',
`inflw_chnl_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "gssudda_weekly_report_graph_history", "description": "매일 데이터가 적재 되며 해당일에 주차별로 전월 데이터와 비교한 데이터 차이가 집계되어있는 테이블\n사용 리포트 : https://self.game.dighty.com/dashboard/257, https://self.game.dighty.com/dashboard/258", "columns": [{"name": "type", "type": "string", "description": "집계 기준명"}, {"name": "work_dt", "type": "timestamp", "description": "작업 날짜 (yyyy-mm-dd hh24:mi:ss)"}, {"name": "value", "type": "double", "description": "집계 값"}, {"name": "base_dt", "type": "timestamp", "description": "비교 기준 날짜 (yyyy-mm-dd hh24:mi:ss)"}, {"name": "base_ymd", "type": "string", "description": "비교 기준 날짜 (yyyymmdd)"}, {"name": "weekofthemonth", "type": "bigint", "description": "base_ymd의 주차"}, {"name": "work_ymd", "type": "string", "description": "작업 날짜 (yyyymmdd)"}, {"name": "weekofthemonth2", "type": "bigint", "description": null}]}
|
CREATE TABLE `mobile_gssudda_mart`.`gssudda_weekly_report_graph_history` (
`type` string COMMENT '집계 기준명',
`work_dt` timestamp COMMENT '작업 날짜 (yyyy-mm-dd hh24:mi:ss)',
`value` double COMMENT '집계 값',
`base_dt` timestamp COMMENT '비교 기준 날짜 (yyyy-mm-dd hh24:mi:ss)',
`base_ymd` string COMMENT '비교 기준 날짜 (yyyymmdd)',
`weekofthemonth` bigint COMMENT 'base_ymd의 주차',
`work_ymd` string COMMENT '작업 날짜 (yyyymmdd)',
`weekofthemonth2` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "gssudda_weekly_report_history", "description": "매일 데이터가 적재 되며 해당일에 전주 데이터와 비교한 데이터 차이가 집계되어있는 테이블\n사용 리포트 : https://self.game.dighty.com/dashboard/257, https://self.game.dighty.com/dashboard/258", "columns": [{"name": "work_dt", "type": "timestamp", "description": "작업 날짜 (yyyy-mm-dd hh24:mi:ss)"}, {"name": "grp", "type": "string", "description": "집계 그룹 (유통, AU, NRU, 판수, Sales)"}, {"name": "type", "type": "string", "description": "집계 기준명"}, {"name": "nw", "type": "double", "description": "당일 값"}, {"name": "pt", "type": "double", "description": "nw/ bf-1"}, {"name": "bf", "type": "double", "description": "전주 값"}, {"name": "diff", "type": "double", "description": "nw - bf 차이"}, {"name": "ord", "type": "tinyint", "description": "지표 노출 순서"}, {"name": "work_ymd", "type": "string", "description": "작업 날짜 (yyyymmdd)"}]}
|
CREATE TABLE `mobile_gssudda_mart`.`gssudda_weekly_report_history` (
`work_dt` timestamp COMMENT '작업 날짜 (yyyy-mm-dd hh24:mi:ss)',
`grp` string COMMENT '집계 그룹 (유통, AU, NRU, 판수, Sales)',
`type` string COMMENT '집계 기준명',
`nw` double COMMENT '당일 값',
`pt` double COMMENT 'nw/ bf-1',
`bf` double COMMENT '전주 값',
`diff` double COMMENT 'nw - bf 차이',
`ord` tinyint COMMENT '지표 노출 순서',
`work_ymd` string COMMENT '작업 날짜 (yyyymmdd)'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "bip_gssudda_daily_hist_history", "description": null, "columns": [{"name": "work_dt", "type": "timestamp", "description": null}, {"name": "log_dt", "type": "string", "description": null}, {"name": "seq", "type": "string", "description": null}, {"name": "userno", "type": "string", "description": null}, {"name": "game_mode", "type": "string", "description": null}, {"name": "ci", "type": "string", "description": null}, {"name": "game_knd_cd", "type": "bigint", "description": null}, {"name": "chnl_nm", "type": "string", "description": null}, {"name": "plyr_cnt", "type": "bigint", "description": null}, {"name": "bef_gmony", "type": "bigint", "description": null}, {"name": "aft_gmony", "type": "bigint", "description": null}, {"name": "chg_mony", "type": "bigint", "description": null}, {"name": "play_time", "type": "bigint", "description": null}, {"name": "dealer_money", "type": "bigint", "description": null}, {"name": "jackpot_money", "type": "bigint", "description": null}, {"name": "move_money", "type": "bigint", "description": null}, {"name": "nat_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `mobile_gssudda_mart`.`bip_gssudda_daily_hist_history` (
`work_dt` timestamp COMMENT 'None',
`log_dt` string COMMENT 'None',
`seq` string COMMENT 'None',
`userno` string COMMENT 'None',
`game_mode` string COMMENT 'None',
`ci` string COMMENT 'None',
`game_knd_cd` bigint COMMENT 'None',
`chnl_nm` string COMMENT 'None',
`plyr_cnt` bigint COMMENT 'None',
`bef_gmony` bigint COMMENT 'None',
`aft_gmony` bigint COMMENT 'None',
`chg_mony` bigint COMMENT 'None',
`play_time` bigint COMMENT 'None',
`dealer_money` bigint COMMENT 'None',
`jackpot_money` bigint COMMENT 'None',
`move_money` bigint COMMENT 'None',
`nat_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "bip_gssudda_daily_monthly_history", "description": null, "columns": [{"name": "work_dt", "type": "timestamp", "description": null}, {"name": "v_ymd_1month_bef", "type": "string", "description": null}, {"name": "monthly_samt", "type": "double", "description": null}, {"name": "monthly_pu", "type": "bigint", "description": null}, {"name": "sact", "type": "bigint", "description": null}, {"name": "snew_act", "type": "bigint", "description": null}, {"name": "change_money", "type": "bigint", "description": null}, {"name": "pansu", "type": "bigint", "description": null}, {"name": "dealer_money", "type": "bigint", "description": null}, {"name": "high_change_money", "type": "bigint", "description": null}, {"name": "high_pansu", "type": "bigint", "description": null}, {"name": "high_dealer_money", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `mobile_gssudda_mart`.`bip_gssudda_daily_monthly_history` (
`work_dt` timestamp COMMENT 'None',
`v_ymd_1month_bef` string COMMENT 'None',
`monthly_samt` double COMMENT 'None',
`monthly_pu` bigint COMMENT 'None',
`sact` bigint COMMENT 'None',
`snew_act` bigint COMMENT 'None',
`change_money` bigint COMMENT 'None',
`pansu` bigint COMMENT 'None',
`dealer_money` bigint COMMENT 'None',
`high_change_money` bigint COMMENT 'None',
`high_pansu` bigint COMMENT 'None',
`high_dealer_money` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "gssudda_vip_history", "description": null, "columns": [{"name": "game_no", "type": "int", "description": null}, {"name": "grade", "type": "int", "description": null}, {"name": "grade_nm", "type": "string", "description": null}, {"name": "ucnt", "type": "bigint", "description": null}, {"name": "in_mileage", "type": "bigint", "description": null}, {"name": "out_mileage", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `mobile_gssudda_mart`.`gssudda_vip_history` (
`game_no` int COMMENT 'None',
`grade` int COMMENT 'None',
`grade_nm` string COMMENT 'None',
`ucnt` bigint COMMENT 'None',
`in_mileage` bigint COMMENT 'None',
`out_mileage` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "gssudda_weekly_report_graph_history_tmp", "description": null, "columns": [{"name": "type", "type": "string", "description": null}, {"name": "work_dt", "type": "timestamp", "description": null}, {"name": "value", "type": "double", "description": null}, {"name": "base_dt", "type": "timestamp", "description": null}, {"name": "base_ymd", "type": "string", "description": null}, {"name": "weekofthemonth", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `mobile_gssudda_mart`.`gssudda_weekly_report_graph_history_tmp` (
`type` string COMMENT 'None',
`work_dt` timestamp COMMENT 'None',
`value` double COMMENT 'None',
`base_dt` timestamp COMMENT 'None',
`base_ymd` string COMMENT 'None',
`weekofthemonth` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "mobile_gssudda_mart", "table": "pu_amt_group_sm01", "description": null, "columns": [{"name": "user_group", "type": "string", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "sum_amt", "type": "double", "description": null}, {"name": "min_amt", "type": "double", "description": null}, {"name": "max_amt", "type": "double", "description": null}, {"name": "work_ym", "type": "string", "description": null}]}
|
CREATE TABLE `mobile_gssudda_mart`.`pu_amt_group_sm01` (
`user_group` string COMMENT 'None',
`pu` bigint COMMENT 'None',
`sum_amt` double COMMENT 'None',
`min_amt` double COMMENT 'None',
`max_amt` double COMMENT 'None',
`work_ym` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "sg_pc_poker_daily_user_hist", "description": null, "columns": [{"name": "work_y", "type": "string", "description": null}, {"name": "work_ymday", "type": "string", "description": null}, {"name": "usergb", "type": "string", "description": null}, {"name": "ageb", "type": "string", "description": null}, {"name": "sex", "type": "string", "description": null}, {"name": "gradegb", "type": "string", "description": null}, {"name": "pancntgb", "type": "string", "description": null}, {"name": "lst_inflw_chnl", "type": "string", "description": null}, {"name": "mony_hld_zn_cd", "type": "string", "description": null}, {"name": "ag_usercnt", "type": "bigint", "description": null}, {"name": "tg_usercnt", "type": "bigint", "description": null}, {"name": "tg_hnewusercnt", "type": "bigint", "description": null}, {"name": "tg_gnewusercnt", "type": "bigint", "description": null}, {"name": "tg_newusercnt", "type": "bigint", "description": null}, {"name": "tg_activecnt", "type": "bigint", "description": null}, {"name": "tg_weekcnt", "type": "bigint", "description": null}, {"name": "tg_dormantcnt", "type": "bigint", "description": null}, {"name": "tg_backusercnt", "type": "bigint", "description": null}, {"name": "tg_pancnt", "type": "bigint", "description": null}, {"name": "ag_gammoney", "type": "double", "description": null}, {"name": "tg_gammoney", "type": "bigint", "description": null}, {"name": "act_gammoney", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`sg_pc_poker_daily_user_hist` (
`work_y` string COMMENT 'None',
`work_ymday` string COMMENT 'None',
`usergb` string COMMENT 'None',
`ageb` string COMMENT 'None',
`sex` string COMMENT 'None',
`gradegb` string COMMENT 'None',
`pancntgb` string COMMENT 'None',
`lst_inflw_chnl` string COMMENT 'None',
`mony_hld_zn_cd` string COMMENT 'None',
`ag_usercnt` bigint COMMENT 'None',
`tg_usercnt` bigint COMMENT 'None',
`tg_hnewusercnt` bigint COMMENT 'None',
`tg_gnewusercnt` bigint COMMENT 'None',
`tg_newusercnt` bigint COMMENT 'None',
`tg_activecnt` bigint COMMENT 'None',
`tg_weekcnt` bigint COMMENT 'None',
`tg_dormantcnt` bigint COMMENT 'None',
`tg_backusercnt` bigint COMMENT 'None',
`tg_pancnt` bigint COMMENT 'None',
`ag_gammoney` double COMMENT 'None',
`tg_gammoney` bigint COMMENT 'None',
`act_gammoney` bigint COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "dg_chnl_cd", "description": null, "columns": [{"name": "game_cd", "type": "string", "description": null}, {"name": "chnl_cd", "type": "string", "description": null}, {"name": "strt_ymd", "type": "string", "description": null}, {"name": "chnl_nm", "type": "string", "description": null}, {"name": "chnl_tp_cd", "type": "string", "description": null}, {"name": "chnl_tp_nm", "type": "string", "description": null}, {"name": "gameid", "type": "string", "description": null}, {"name": "end_ymd", "type": "string", "description": null}, {"name": "bip1_chnl_tp_cd", "type": "string", "description": null}, {"name": "bip1_chnl_cd", "type": "string", "description": null}, {"name": "upr_chnl_yn", "type": "string", "description": null}, {"name": "game_tp_nm", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`dg_chnl_cd` (
`game_cd` string COMMENT 'None',
`chnl_cd` string COMMENT 'None',
`strt_ymd` string COMMENT 'None',
`chnl_nm` string COMMENT 'None',
`chnl_tp_cd` string COMMENT 'None',
`chnl_tp_nm` string COMMENT 'None',
`gameid` string COMMENT 'None',
`end_ymd` string COMMENT 'None',
`bip1_chnl_tp_cd` string COMMENT 'None',
`bip1_chnl_cd` string COMMENT 'None',
`upr_chnl_yn` string COMMENT 'None',
`game_tp_nm` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "endp_sale_history", "description": null, "columns": [{"name": "pay_chnl_cd", "type": "string", "description": null}, {"name": "userid", "type": "string", "description": null}, {"name": "sale_cd", "type": "string", "description": null}, {"name": "prod_seq", "type": "string", "description": null}, {"name": "lcls_nm", "type": "string", "description": null}, {"name": "scls_nm", "type": "string", "description": null}, {"name": "prod_nm", "type": "string", "description": null}, {"name": "st_cd", "type": "string", "description": null}, {"name": "samt", "type": "double", "description": null}, {"name": "nsamt", "type": "double", "description": null}, {"name": "sale_cnt", "type": "bigint", "description": null}, {"name": "userno", "type": "string", "description": null}, {"name": "custno", "type": "string", "description": null}, {"name": "org_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`endp_sale_history` (
`pay_chnl_cd` string COMMENT 'None',
`userid` string COMMENT 'None',
`sale_cd` string COMMENT 'None',
`prod_seq` string COMMENT 'None',
`lcls_nm` string COMMENT 'None',
`scls_nm` string COMMENT 'None',
`prod_nm` string COMMENT 'None',
`st_cd` string COMMENT 'None',
`samt` double COMMENT 'None',
`nsamt` double COMMENT 'None',
`sale_cnt` bigint COMMENT 'None',
`userno` string COMMENT 'None',
`custno` string COMMENT 'None',
`org_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "poker_shop_pay_hist", "description": null, "columns": [{"name": "log_dt", "type": "string", "description": null}, {"name": "userid", "type": "string", "description": null}, {"name": "pay_path", "type": "string", "description": null}, {"name": "prod_seq", "type": "string", "description": null}, {"name": "prod_nm", "type": "string", "description": null}, {"name": "pay_amt", "type": "double", "description": null}, {"name": "web_clnt_tp_cd", "type": "string", "description": null}, {"name": "rep_game_cd", "type": "string", "description": null}, {"name": "game_cd", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`poker_shop_pay_hist` (
`log_dt` string COMMENT 'None',
`userid` string COMMENT 'None',
`pay_path` string COMMENT 'None',
`prod_seq` string COMMENT 'None',
`prod_nm` string COMMENT 'None',
`pay_amt` double COMMENT 'None',
`web_clnt_tp_cd` string COMMENT 'None',
`rep_game_cd` string COMMENT 'None',
`game_cd` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "sg_po_vms_daily_sd01", "description": null, "columns": [{"name": "userid", "type": "string", "description": null}, {"name": "user_ip", "type": "string", "description": null}, {"name": "diff_user", "type": "string", "description": null}, {"name": "diff_ip", "type": "string", "description": null}, {"name": "mv_mony", "type": "double", "description": null}, {"name": "chnl_id", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}, {"name": "is_opponent_v1", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`sg_po_vms_daily_sd01` (
`userid` string COMMENT 'None',
`user_ip` string COMMENT 'None',
`diff_user` string COMMENT 'None',
`diff_ip` string COMMENT 'None',
`mv_mony` double COMMENT 'None',
`chnl_id` string COMMENT 'None',
`work_ymd` string COMMENT 'None',
`is_opponent_v1` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "sg_po_vms_user_ip_daily_mtr", "description": null, "columns": [{"name": "userid", "type": "string", "description": null}, {"name": "user_ip", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`sg_po_vms_user_ip_daily_mtr` (
`userid` string COMMENT 'None',
`user_ip` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "sg_potential_abnormal_user_m01", "description": null, "columns": [{"name": "id", "type": "string", "description": null}, {"name": "is_lent", "type": "string", "description": null}, {"name": "passwd_chg_cnt", "type": "bigint", "description": null}, {"name": "use_pc_room_cnt", "type": "bigint", "description": null}, {"name": "game_pcnt", "type": "bigint", "description": null}, {"name": "win_pcnt", "type": "bigint", "description": null}, {"name": "los_pcnt", "type": "bigint", "description": null}, {"name": "win_money", "type": "double", "description": null}, {"name": "los_money", "type": "double", "description": null}, {"name": "samt", "type": "bigint", "description": null}, {"name": "work_ym", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`sg_potential_abnormal_user_m01` (
`id` string COMMENT 'None',
`is_lent` string COMMENT 'None',
`passwd_chg_cnt` bigint COMMENT 'None',
`use_pc_room_cnt` bigint COMMENT 'None',
`game_pcnt` bigint COMMENT 'None',
`win_pcnt` bigint COMMENT 'None',
`los_pcnt` bigint COMMENT 'None',
`win_money` double COMMENT 'None',
`los_money` double COMMENT 'None',
`samt` bigint COMMENT 'None',
`work_ym` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "pu_amt_group_sm01", "description": null, "columns": [{"name": "user_group", "type": "string", "description": null}, {"name": "pu", "type": "bigint", "description": null}, {"name": "sum_amt", "type": "double", "description": null}, {"name": "min_amt", "type": "double", "description": null}, {"name": "max_amt", "type": "double", "description": null}, {"name": "work_ym", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`pu_amt_group_sm01` (
`user_group` string COMMENT 'None',
`pu` bigint COMMENT 'None',
`sum_amt` double COMMENT 'None',
`min_amt` double COMMENT 'None',
`max_amt` double COMMENT 'None',
`work_ym` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "sg_poker_birthdate_sd01", "description": null, "columns": [{"name": "userid", "type": "string", "description": null}, {"name": "birthdate", "type": "string", "description": null}, {"name": "ci", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}, {"name": "gammoney", "type": "double", "description": null}, {"name": "lentmoney", "type": "double", "description": null}, {"name": "earnedmoney", "type": "double", "description": null}, {"name": "overmoney", "type": "double", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`sg_poker_birthdate_sd01` (
`userid` string COMMENT 'None',
`birthdate` string COMMENT 'None',
`ci` string COMMENT 'None',
`work_ymd` string COMMENT 'None',
`gammoney` double COMMENT 'None',
`lentmoney` double COMMENT 'None',
`earnedmoney` double COMMENT 'None',
`overmoney` double COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "pc_poker_mart", "table": "tmp_sg_po_vms_daily_sd01", "description": null, "columns": [{"name": "userid", "type": "string", "description": null}, {"name": "user_ip", "type": "string", "description": null}, {"name": "diff_user", "type": "string", "description": null}, {"name": "diff_ip", "type": "string", "description": null}, {"name": "mv_mony", "type": "double", "description": null}, {"name": "chnl_id", "type": "string", "description": null}, {"name": "work_ymd", "type": "string", "description": null}]}
|
CREATE TABLE `pc_poker_mart`.`tmp_sg_po_vms_daily_sd01` (
`userid` string COMMENT 'None',
`user_ip` string COMMENT 'None',
`diff_user` string COMMENT 'None',
`diff_ip` string COMMENT 'None',
`mv_mony` double COMMENT 'None',
`chnl_id` string COMMENT 'None',
`work_ymd` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "battleresults", "description": null, "columns": [{"name": "battleresultid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "gamemode", "type": "string", "description": null}, {"name": "attackerid", "type": "string", "description": null}, {"name": "opponentrequesttoken", "type": "string", "description": null}, {"name": "opponentid", "type": "string", "description": null}, {"name": "opponentcommandcenterlevel", "type": "tinyint", "description": null}, {"name": "starttime", "type": "bigint", "description": null}, {"name": "endtime", "type": "bigint", "description": null}, {"name": "duration", "type": "bigint", "description": null}, {"name": "result", "type": "string", "description": null}, {"name": "score", "type": "bigint", "description": null}, {"name": "percentagebasedestroyed", "type": "float", "description": null}, {"name": "starcount", "type": "tinyint", "description": null}, {"name": "viewed", "type": "boolean", "description": null}, {"name": "hidden", "type": "boolean", "description": null}, {"name": "munitionslost", "type": "int", "description": null}, {"name": "goldlost", "type": "int", "description": null}, {"name": "munitionsstolen", "type": "int", "description": null}, {"name": "goldstolen", "type": "int", "description": null}, {"name": "damagedveteranids", "type": "string", "description": null}, {"name": "totalenergy", "type": "bigint", "description": null}, {"name": "totaldamage", "type": "bigint", "description": null}, {"name": "totalhealing", "type": "bigint", "description": null}, {"name": "playerhealth", "type": "bigint", "description": null}, {"name": "suspect", "type": "boolean", "description": null}, {"name": "alliancedefendscore", "type": "tinyint", "description": null}, {"name": "shard", "type": "string", "description": null}, {"name": "attackratingdelta", "type": "double", "description": null}, {"name": "defendratingdelta", "type": "double", "description": null}, {"name": "goldbonus", "type": "int", "description": null}, {"name": "munitionsbonus", "type": "int", "description": null}, {"name": "lastupdatedtime", "type": "bigint", "description": null}, {"name": "attackercommandcenterlevel", "type": "int", "description": null}, {"name": "attackrating", "type": "double", "description": null}, {"name": "defendrating", "type": "double", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`battleresults` (
`battleresultid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`gamemode` string COMMENT 'None',
`attackerid` string COMMENT 'None',
`opponentrequesttoken` string COMMENT 'None',
`opponentid` string COMMENT 'None',
`opponentcommandcenterlevel` tinyint COMMENT 'None',
`starttime` bigint COMMENT 'None',
`endtime` bigint COMMENT 'None',
`duration` bigint COMMENT 'None',
`result` string COMMENT 'None',
`score` bigint COMMENT 'None',
`percentagebasedestroyed` float COMMENT 'None',
`starcount` tinyint COMMENT 'None',
`viewed` boolean COMMENT 'None',
`hidden` boolean COMMENT 'None',
`munitionslost` int COMMENT 'None',
`goldlost` int COMMENT 'None',
`munitionsstolen` int COMMENT 'None',
`goldstolen` int COMMENT 'None',
`damagedveteranids` string COMMENT 'None',
`totalenergy` bigint COMMENT 'None',
`totaldamage` bigint COMMENT 'None',
`totalhealing` bigint COMMENT 'None',
`playerhealth` bigint COMMENT 'None',
`suspect` boolean COMMENT 'None',
`alliancedefendscore` tinyint COMMENT 'None',
`shard` string COMMENT 'None',
`attackratingdelta` double COMMENT 'None',
`defendratingdelta` double COMMENT 'None',
`goldbonus` int COMMENT 'None',
`munitionsbonus` int COMMENT 'None',
`lastupdatedtime` bigint COMMENT 'None',
`attackercommandcenterlevel` int COMMENT 'None',
`attackrating` double COMMENT 'None',
`defendrating` double COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "globalcohorts", "description": null, "columns": [{"name": "globalcohortid", "type": "bigint", "description": null}, {"name": "category", "type": "int", "description": null}, {"name": "flags", "type": "int", "description": null}]}
|
CREATE TABLE `gunsup_db`.`globalcohorts` (
`globalcohortid` bigint COMMENT 'None',
`category` int COMMENT 'None',
`flags` int COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "globallookups", "description": null, "columns": [{"name": "id", "type": "int", "description": null}, {"name": "name", "type": "string", "description": null}]}
|
CREATE TABLE `gunsup_db`.`globallookups` (
`id` int COMMENT 'None',
`name` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "globalsocialalliances", "description": null, "columns": [{"name": "globalsocialallianceid", "type": "int", "description": null}, {"name": "allianceid", "type": "string", "description": null}, {"name": "shardid", "type": "smallint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`globalsocialalliances` (
`globalsocialallianceid` int COMMENT 'None',
`allianceid` string COMMENT 'None',
`shardid` smallint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorybaseevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorybaseevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorybattleevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorybattleevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorychallengeevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorychallengeevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorycraftingevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorycraftingevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorygeneratorevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorygeneratorevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryleagueevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryleagueevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorylevelupevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorylevelupevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryparticipationevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryparticipationevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryquestevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryquestevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryspecopevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryspecopevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryspoilsofwarevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryspoilsofwarevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorystoreevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorystoreevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorytleevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorytleevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryupgradeevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "int", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryupgradeevents` (
`inventoryeventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` int COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingperkassignments", "description": null, "columns": [{"name": "loggingperkassignmentid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "unititemid", "type": "smallint", "description": null}, {"name": "perk0before", "type": "string", "description": null}, {"name": "perk1before", "type": "string", "description": null}, {"name": "perk2before", "type": "string", "description": null}, {"name": "perk0after", "type": "string", "description": null}, {"name": "perk1after", "type": "string", "description": null}, {"name": "perk2after", "type": "string", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingperkassignments` (
`loggingperkassignmentid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`unititemid` smallint COMMENT 'None',
`perk0before` string COMMENT 'None',
`perk1before` string COMMENT 'None',
`perk2before` string COMMENT 'None',
`perk0after` string COMMENT 'None',
`perk1after` string COMMENT 'None',
`perk2after` string COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "profileinventory", "description": null, "columns": [{"name": "inventoryid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "quantity", "type": "int", "description": null}, {"name": "upgradecompletetime", "type": "bigint", "description": null}, {"name": "perk0", "type": "smallint", "description": null}, {"name": "perk1", "type": "smallint", "description": null}, {"name": "perk2", "type": "smallint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`profileinventory` (
`inventoryid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`itemid` smallint COMMENT 'None',
`quantity` int COMMENT 'None',
`upgradecompletetime` bigint COMMENT 'None',
`perk0` smallint COMMENT 'None',
`perk1` smallint COMMENT 'None',
`perk2` smallint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "globalaccounts", "description": null, "columns": [{"name": "accountid", "type": "bigint", "description": null}, {"name": "playerid", "type": "string", "description": null}, {"name": "deviceid", "type": "string", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "shardid", "type": "smallint", "description": null}, {"name": "countrycode", "type": "string", "description": null}, {"name": "defaultconfigurationid", "type": "smallint", "description": null}, {"name": "creationtime", "type": "bigint", "description": null}, {"name": "lastlogintime", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`globalaccounts` (
`accountid` bigint COMMENT 'None',
`playerid` string COMMENT 'None',
`deviceid` string COMMENT 'None',
`profileid` string COMMENT 'None',
`shardid` smallint COMMENT 'None',
`countrycode` string COMMENT 'None',
`defaultconfigurationid` smallint COMMENT 'None',
`creationtime` bigint COMMENT 'None',
`lastlogintime` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingbattlesnapshots", "description": null, "columns": [{"name": "loggingbattlesnapshotid", "type": "bigint", "description": null}, {"name": "battleresultid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "commandcenter", "type": "tinyint", "description": null}, {"name": "goldgenerator", "type": "tinyint", "description": null}, {"name": "oilgenerator", "type": "tinyint", "description": null}, {"name": "veteranslodge", "type": "tinyint", "description": null}, {"name": "vehicledepot", "type": "tinyint", "description": null}, {"name": "munitionsfactory", "type": "tinyint", "description": null}, {"name": "engineering", "type": "tinyint", "description": null}, {"name": "outpost", "type": "tinyint", "description": null}, {"name": "bunker", "type": "tinyint", "description": null}, {"name": "wall", "type": "tinyint", "description": null}, {"name": "snipertower", "type": "tinyint", "description": null}, {"name": "mortar", "type": "tinyint", "description": null}, {"name": "sandbagssmall", "type": "tinyint", "description": null}, {"name": "aagun", "type": "tinyint", "description": null}, {"name": "barbedwire", "type": "tinyint", "description": null}, {"name": "atgun", "type": "tinyint", "description": null}, {"name": "tent", "type": "tinyint", "description": null}, {"name": "landmine", "type": "tinyint", "description": null}, {"name": "tanktrap", "type": "tinyint", "description": null}, {"name": "firebarrel", "type": "tinyint", "description": null}, {"name": "catraps", "type": "tinyint", "description": null}, {"name": "radiotower", "type": "tinyint", "description": null}, {"name": "level", "type": "tinyint", "description": null}, {"name": "leagueid", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}, {"name": "shard", "type": "string", "description": null}, {"name": "attackrating", "type": "double", "description": null}, {"name": "defendrating", "type": "double", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingbattlesnapshots` (
`loggingbattlesnapshotid` bigint COMMENT 'None',
`battleresultid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`commandcenter` tinyint COMMENT 'None',
`goldgenerator` tinyint COMMENT 'None',
`oilgenerator` tinyint COMMENT 'None',
`veteranslodge` tinyint COMMENT 'None',
`vehicledepot` tinyint COMMENT 'None',
`munitionsfactory` tinyint COMMENT 'None',
`engineering` tinyint COMMENT 'None',
`outpost` tinyint COMMENT 'None',
`bunker` tinyint COMMENT 'None',
`wall` tinyint COMMENT 'None',
`snipertower` tinyint COMMENT 'None',
`mortar` tinyint COMMENT 'None',
`sandbagssmall` tinyint COMMENT 'None',
`aagun` tinyint COMMENT 'None',
`barbedwire` tinyint COMMENT 'None',
`atgun` tinyint COMMENT 'None',
`tent` tinyint COMMENT 'None',
`landmine` tinyint COMMENT 'None',
`tanktrap` tinyint COMMENT 'None',
`firebarrel` tinyint COMMENT 'None',
`catraps` tinyint COMMENT 'None',
`radiotower` tinyint COMMENT 'None',
`level` tinyint COMMENT 'None',
`leagueid` bigint COMMENT 'None',
`work_ymd` bigint COMMENT 'None',
`shard` string COMMENT 'None',
`attackrating` double COMMENT 'None',
`defendrating` double COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingbuildevents", "description": null, "columns": [{"name": "eventid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventitemid", "type": "bigint", "description": null}, {"name": "eventaction", "type": "string", "description": null}, {"name": "commandcenterlevel", "type": "tinyint", "description": null}, {"name": "previousrotation", "type": "float", "description": null}, {"name": "previousx", "type": "int", "description": null}, {"name": "previousy", "type": "int", "description": null}, {"name": "currentrotation", "type": "float", "description": null}, {"name": "currentx", "type": "int", "description": null}, {"name": "currenty", "type": "int", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingbuildevents` (
`eventid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`eventitemid` bigint COMMENT 'None',
`eventaction` string COMMENT 'None',
`commandcenterlevel` tinyint COMMENT 'None',
`previousrotation` float COMMENT 'None',
`previousx` int COMMENT 'None',
`previousy` int COMMENT 'None',
`currentrotation` float COMMENT 'None',
`currentx` int COMMENT 'None',
`currenty` int COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingfindopponentevents", "description": null, "columns": [{"name": "loggingfindopponenteventid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "opponentrequesttoken", "type": "string", "description": null}, {"name": "opponentid", "type": "string", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "opponentcommandcenterlevel", "type": "smallint", "description": null}, {"name": "opponentgold", "type": "int", "description": null}, {"name": "opponentmunitions", "type": "int", "description": null}, {"name": "levelsumdefensive", "type": "smallint", "description": null}, {"name": "levelsumcover", "type": "smallint", "description": null}, {"name": "levelsumtrap", "type": "smallint", "description": null}, {"name": "levelsumwall", "type": "smallint", "description": null}, {"name": "levelsumtotal", "type": "int", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}, {"name": "attackrating", "type": "double", "description": null}, {"name": "defendrating", "type": "double", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingfindopponentevents` (
`loggingfindopponenteventid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`opponentrequesttoken` string COMMENT 'None',
`opponentid` string COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`opponentcommandcenterlevel` smallint COMMENT 'None',
`opponentgold` int COMMENT 'None',
`opponentmunitions` int COMMENT 'None',
`levelsumdefensive` smallint COMMENT 'None',
`levelsumcover` smallint COMMENT 'None',
`levelsumtrap` smallint COMMENT 'None',
`levelsumwall` smallint COMMENT 'None',
`levelsumtotal` int COMMENT 'None',
`work_ymd` bigint COMMENT 'None',
`attackrating` double COMMENT 'None',
`defendrating` double COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingquestevents", "description": null, "columns": [{"name": "questeventid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "questid", "type": "int", "description": null}, {"name": "event", "type": "string", "description": null}, {"name": "questtype", "type": "string", "description": null}, {"name": "time", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingquestevents` (
`questeventid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`questid` int COMMENT 'None',
`event` string COMMENT 'None',
`questtype` string COMMENT 'None',
`time` bigint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingsessionsend", "description": null, "columns": [{"name": "sessionendid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "sessionid", "type": "string", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "commandcenterlevel", "type": "int", "description": null}, {"name": "gold", "type": "int", "description": null}, {"name": "munitions", "type": "int", "description": null}, {"name": "gems", "type": "int", "description": null}, {"name": "time", "type": "bigint", "description": null}, {"name": "reason", "type": "string", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingsessionsend` (
`sessionendid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`sessionid` string COMMENT 'None',
`profileid` string COMMENT 'None',
`commandcenterlevel` int COMMENT 'None',
`gold` int COMMENT 'None',
`munitions` int COMMENT 'None',
`gems` int COMMENT 'None',
`time` bigint COMMENT 'None',
`reason` string COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingsessionsstart", "description": null, "columns": [{"name": "sessionstartid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "sessionid", "type": "string", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "commandcenterlevel", "type": "int", "description": null}, {"name": "gold", "type": "int", "description": null}, {"name": "munitions", "type": "int", "description": null}, {"name": "gems", "type": "int", "description": null}, {"name": "time", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingsessionsstart` (
`sessionstartid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`sessionid` string COMMENT 'None',
`profileid` string COMMENT 'None',
`commandcenterlevel` int COMMENT 'None',
`gold` int COMMENT 'None',
`munitions` int COMMENT 'None',
`gems` int COMMENT 'None',
`time` bigint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingstorepurchases", "description": null, "columns": [{"name": "purchaseid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "purchaseditemid", "type": "smallint", "description": null}, {"name": "iapname", "type": "string", "description": null}, {"name": "purchasetime", "type": "bigint", "description": null}, {"name": "previouslyinterrupted", "type": "boolean", "description": null}, {"name": "consumed", "type": "boolean", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingstorepurchases` (
`purchaseid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`purchaseditemid` smallint COMMENT 'None',
`iapname` string COMMENT 'None',
`purchasetime` bigint COMMENT 'None',
`previouslyinterrupted` boolean COMMENT 'None',
`consumed` boolean COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "profilebases", "description": null, "columns": [{"name": "baseid", "type": "bigint", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "xcoord", "type": "smallint", "description": null}, {"name": "zcoord", "type": "smallint", "description": null}, {"name": "rotation", "type": "float", "description": null}, {"name": "upgradecompletetime", "type": "bigint", "description": null}, {"name": "assignmentid", "type": "smallint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`profilebases` (
`baseid` bigint COMMENT 'None',
`itemid` smallint COMMENT 'None',
`profileid` string COMMENT 'None',
`xcoord` smallint COMMENT 'None',
`zcoord` smallint COMMENT 'None',
`rotation` float COMMENT 'None',
`upgradecompletetime` bigint COMMENT 'None',
`assignmentid` smallint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "profiledetails", "description": null, "columns": [{"name": "profiledetailid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "profilename", "type": "string", "description": null}, {"name": "level", "type": "int", "description": null}, {"name": "experience", "type": "int", "description": null}, {"name": "leagueid", "type": "bigint", "description": null}, {"name": "dogtags", "type": "int", "description": null}, {"name": "commandcenterlevel", "type": "int", "description": null}, {"name": "wins", "type": "int", "description": null}, {"name": "losses", "type": "int", "description": null}, {"name": "surrenders", "type": "int", "description": null}, {"name": "tutorialchapter", "type": "tinyint", "description": null}, {"name": "lastparticipationday", "type": "smallint", "description": null}, {"name": "totalpvpitemdropstoday", "type": "smallint", "description": null}, {"name": "lastdefensereporttime", "type": "bigint", "description": null}, {"name": "lastdefensereportdefendrating", "type": "double", "description": null}, {"name": "lastdefensereportdefendcount", "type": "int", "description": null}, {"name": "battlehardnesscount", "type": "int", "description": null}, {"name": "battlehardnessrating", "type": "int", "description": null}]}
|
CREATE TABLE `gunsup_db`.`profiledetails` (
`profiledetailid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`profilename` string COMMENT 'None',
`level` int COMMENT 'None',
`experience` int COMMENT 'None',
`leagueid` bigint COMMENT 'None',
`dogtags` int COMMENT 'None',
`commandcenterlevel` int COMMENT 'None',
`wins` int COMMENT 'None',
`losses` int COMMENT 'None',
`surrenders` int COMMENT 'None',
`tutorialchapter` tinyint COMMENT 'None',
`lastparticipationday` smallint COMMENT 'None',
`totalpvpitemdropstoday` smallint COMMENT 'None',
`lastdefensereporttime` bigint COMMENT 'None',
`lastdefensereportdefendrating` double COMMENT 'None',
`lastdefensereportdefendcount` int COMMENT 'None',
`battlehardnesscount` int COMMENT 'None',
`battlehardnessrating` int COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "profileveterans", "description": null, "columns": [{"name": "profileveteranid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "lifepoints", "type": "smallint", "description": null}, {"name": "experience", "type": "float", "description": null}, {"name": "playerveteranid", "type": "smallint", "description": null}, {"name": "level", "type": "smallint", "description": null}, {"name": "inreserves", "type": "int", "description": null}]}
|
CREATE TABLE `gunsup_db`.`profileveterans` (
`profileveteranid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`itemid` smallint COMMENT 'None',
`lifepoints` smallint COMMENT 'None',
`experience` float COMMENT 'None',
`playerveteranid` smallint COMMENT 'None',
`level` smallint COMMENT 'None',
`inreserves` int COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "storepackages", "description": null, "columns": [{"name": "storepackageid", "type": "int", "description": null}, {"name": "name", "type": "string", "description": null}, {"name": "rewardpackageid", "type": "int", "description": null}, {"name": "rewardpackageconfigname", "type": "string", "description": null}, {"name": "itemcostname", "type": "string", "description": null}, {"name": "itemcostquantity", "type": "int", "description": null}, {"name": "googleiapname", "type": "string", "description": null}, {"name": "appleiapname", "type": "string", "description": null}, {"name": "category", "type": "string", "description": null}, {"name": "maxsaleperuser", "type": "int", "description": null}, {"name": "lockedbydefault", "type": "boolean", "description": null}, {"name": "isactive", "type": "boolean", "description": null}, {"name": "itemorder", "type": "int", "description": null}, {"name": "bonuslabelcount", "type": "int", "description": null}, {"name": "islargebonuslabel", "type": "boolean", "description": null}, {"name": "armorysetid", "type": "int", "description": null}, {"name": "replacestorepackage", "type": "int", "description": null}, {"name": "allowmultipurchase", "type": "int", "description": null}]}
|
CREATE TABLE `gunsup_db`.`storepackages` (
`storepackageid` int COMMENT 'None',
`name` string COMMENT 'None',
`rewardpackageid` int COMMENT 'None',
`rewardpackageconfigname` string COMMENT 'None',
`itemcostname` string COMMENT 'None',
`itemcostquantity` int COMMENT 'None',
`googleiapname` string COMMENT 'None',
`appleiapname` string COMMENT 'None',
`category` string COMMENT 'None',
`maxsaleperuser` int COMMENT 'None',
`lockedbydefault` boolean COMMENT 'None',
`isactive` boolean COMMENT 'None',
`itemorder` int COMMENT 'None',
`bonuslabelcount` int COMMENT 'None',
`islargebonuslabel` boolean COMMENT 'None',
`armorysetid` int COMMENT 'None',
`replacestorepackage` int COMMENT 'None',
`allowmultipurchase` int COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "battleattackratings", "description": null, "columns": [{"name": "battleattackratingid", "type": "bigint", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "attackrating", "type": "double", "description": null}, {"name": "lastactivetime", "type": "bigint", "description": null}, {"name": "inactive", "type": "tinyint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`battleattackratings` (
`battleattackratingid` bigint COMMENT 'None',
`profileid` string COMMENT 'None',
`attackrating` double COMMENT 'None',
`lastactivetime` bigint COMMENT 'None',
`inactive` tinyint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "globalsocialallianceseasons", "description": null, "columns": [{"name": "globalsocialallianceseasonid", "type": "int", "description": null}, {"name": "battlesstartdate", "type": "bigint", "description": null}, {"name": "battlesduration", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`globalsocialallianceseasons` (
`globalsocialallianceseasonid` int COMMENT 'None',
`battlesstartdate` bigint COMMENT 'None',
`battlesduration` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingbuildstorepurchases", "description": null, "columns": [{"name": "purchaseid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "purchaseditemid", "type": "smallint", "description": null}, {"name": "purchasetime", "type": "bigint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingbuildstorepurchases` (
`purchaseid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`purchaseditemid` smallint COMMENT 'None',
`purchasetime` bigint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventoryannouncementevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "bigint", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "commandcenterlevel", "type": "int", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventoryannouncementevents` (
`inventoryeventid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` bigint COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`commandcenterlevel` int COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "logginginventorybuildstoreevents", "description": null, "columns": [{"name": "inventoryeventid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "eventsourceid", "type": "bigint", "description": null}, {"name": "itemid", "type": "smallint", "description": null}, {"name": "itemname", "type": "string", "description": null}, {"name": "itemcategory", "type": "string", "description": null}, {"name": "quantitybefore", "type": "int", "description": null}, {"name": "quantitychange", "type": "int", "description": null}, {"name": "quantityafter", "type": "int", "description": null}, {"name": "playerlevel", "type": "smallint", "description": null}, {"name": "commandcenterlevel", "type": "smallint", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`logginginventorybuildstoreevents` (
`inventoryeventid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`eventsourceid` bigint COMMENT 'None',
`itemid` smallint COMMENT 'None',
`itemname` string COMMENT 'None',
`itemcategory` string COMMENT 'None',
`quantitybefore` int COMMENT 'None',
`quantitychange` int COMMENT 'None',
`quantityafter` int COMMENT 'None',
`playerlevel` smallint COMMENT 'None',
`commandcenterlevel` smallint COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "socialalliancememberseasons", "description": null, "columns": [{"name": "socialalliancememberseasonid", "type": "int", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "seasonid", "type": "int", "description": null}, {"name": "allianceid", "type": "string", "description": null}, {"name": "score", "type": "float", "description": null}, {"name": "attackcnt", "type": "int", "description": null}]}
|
CREATE TABLE `gunsup_db`.`socialalliancememberseasons` (
`socialalliancememberseasonid` int COMMENT 'None',
`profileid` string COMMENT 'None',
`seasonid` int COMMENT 'None',
`allianceid` string COMMENT 'None',
`score` float COMMENT 'None',
`attackcnt` int COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "socialallianceseasons", "description": null, "columns": [{"name": "socialallianceseasonid", "type": "int", "description": null}, {"name": "seasonid", "type": "int", "description": null}, {"name": "allianceid", "type": "string", "description": null}, {"name": "score", "type": "float", "description": null}, {"name": "groupid", "type": "int", "description": null}, {"name": "groupshardid", "type": "int", "description": null}, {"name": "resultrank", "type": "int", "description": null}]}
|
CREATE TABLE `gunsup_db`.`socialallianceseasons` (
`socialallianceseasonid` int COMMENT 'None',
`seasonid` int COMMENT 'None',
`allianceid` string COMMENT 'None',
`score` float COMMENT 'None',
`groupid` int COMMENT 'None',
`groupshardid` int COMMENT 'None',
`resultrank` int COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "globalsocialalliancedetails", "description": null, "columns": [{"name": "globalsocialalliancedetailid", "type": "int", "description": null}, {"name": "allianceid", "type": "string", "description": null}, {"name": "shardid", "type": "smallint", "description": null}, {"name": "alliancename", "type": "string", "description": null}, {"name": "startdate", "type": "bigint", "description": null}, {"name": "bulletinmessage", "type": "string", "description": null}, {"name": "flagsymbol", "type": "smallint", "description": null}, {"name": "flagsymbolcolor", "type": "string", "description": null}, {"name": "flagshape", "type": "smallint", "description": null}, {"name": "flagshapecolor", "type": "string", "description": null}, {"name": "joinpolicy", "type": "smallint", "description": null}, {"name": "minlvl", "type": "smallint", "description": null}, {"name": "locale", "type": "string", "description": null}, {"name": "rank0count", "type": "int", "description": null}, {"name": "rank1count", "type": "int", "description": null}, {"name": "rank2count", "type": "int", "description": null}, {"name": "rank3count", "type": "int", "description": null}, {"name": "rank4count", "type": "int", "description": null}, {"name": "currentrank", "type": "smallint", "description": null}, {"name": "membercount", "type": "smallint", "description": null}, {"name": "lastprocessedseason", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`globalsocialalliancedetails` (
`globalsocialalliancedetailid` int COMMENT 'None',
`allianceid` string COMMENT 'None',
`shardid` smallint COMMENT 'None',
`alliancename` string COMMENT 'None',
`startdate` bigint COMMENT 'None',
`bulletinmessage` string COMMENT 'None',
`flagsymbol` smallint COMMENT 'None',
`flagsymbolcolor` string COMMENT 'None',
`flagshape` smallint COMMENT 'None',
`flagshapecolor` string COMMENT 'None',
`joinpolicy` smallint COMMENT 'None',
`minlvl` smallint COMMENT 'None',
`locale` string COMMENT 'None',
`rank0count` int COMMENT 'None',
`rank1count` int COMMENT 'None',
`rank2count` int COMMENT 'None',
`rank3count` int COMMENT 'None',
`rank4count` int COMMENT 'None',
`currentrank` smallint COMMENT 'None',
`membercount` smallint COMMENT 'None',
`lastprocessedseason` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "adminlookups", "description": null, "columns": [{"name": "id", "type": "int", "description": null}, {"name": "name", "type": "string", "description": null}, {"name": "mappingid", "type": "int", "description": null}, {"name": "mappingname", "type": "string", "description": null}]}
|
CREATE TABLE `gunsup_db`.`adminlookups` (
`id` int COMMENT 'None',
`name` string COMMENT 'None',
`mappingid` int COMMENT 'None',
`mappingname` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingbattleevents", "description": null, "columns": [{"name": "battleeventid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "battleresultid", "type": "bigint", "description": null}, {"name": "event", "type": "string", "description": null}, {"name": "tick", "type": "int", "description": null}, {"name": "x", "type": "float", "description": null}, {"name": "z", "type": "float", "description": null}, {"name": "itemid", "type": "int", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}, {"name": "shard", "type": "string", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingbattleevents` (
`battleeventid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`battleresultid` bigint COMMENT 'None',
`event` string COMMENT 'None',
`tick` int COMMENT 'None',
`x` float COMMENT 'None',
`z` float COMMENT 'None',
`itemid` int COMMENT 'None',
`work_ymd` bigint COMMENT 'None',
`shard` string COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "loggingtleevents", "description": null, "columns": [{"name": "tleeventid", "type": "bigint", "description": null}, {"name": "timestamp", "type": "timestamp", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "tleid", "type": "int", "description": null}, {"name": "event", "type": "string", "description": null}, {"name": "time", "type": "bigint", "description": null}, {"name": "commandcenterlevel", "type": "int", "description": null}, {"name": "milestoneindex", "type": "int", "description": null}, {"name": "work_ymd", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`loggingtleevents` (
`tleeventid` bigint COMMENT 'None',
`timestamp` timestamp COMMENT 'None',
`profileid` string COMMENT 'None',
`tleid` int COMMENT 'None',
`event` string COMMENT 'None',
`time` bigint COMMENT 'None',
`commandcenterlevel` int COMMENT 'None',
`milestoneindex` int COMMENT 'None',
`work_ymd` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "socialalliancemembers", "description": null, "columns": [{"name": "socialalliancememberid", "type": "bigint", "description": null}, {"name": "allianceid", "type": "string", "description": null}, {"name": "profileid", "type": "string", "description": null}, {"name": "alliancememberrank", "type": "int", "description": null}, {"name": "goldmedals", "type": "int", "description": null}, {"name": "silvermedals", "type": "int", "description": null}, {"name": "bronzemedals", "type": "int", "description": null}, {"name": "lastbattlecountrefresh", "type": "bigint", "description": null}, {"name": "remainingbattles", "type": "int", "description": null}, {"name": "lastprocessedseason", "type": "int", "description": null}, {"name": "stars", "type": "int", "description": null}, {"name": "lastcollectedseason", "type": "bigint", "description": null}, {"name": "lastcollectedrank", "type": "int", "description": null}, {"name": "joindate", "type": "bigint", "description": null}]}
|
CREATE TABLE `gunsup_db`.`socialalliancemembers` (
`socialalliancememberid` bigint COMMENT 'None',
`allianceid` string COMMENT 'None',
`profileid` string COMMENT 'None',
`alliancememberrank` int COMMENT 'None',
`goldmedals` int COMMENT 'None',
`silvermedals` int COMMENT 'None',
`bronzemedals` int COMMENT 'None',
`lastbattlecountrefresh` bigint COMMENT 'None',
`remainingbattles` int COMMENT 'None',
`lastprocessedseason` int COMMENT 'None',
`stars` int COMMENT 'None',
`lastcollectedseason` bigint COMMENT 'None',
`lastcollectedrank` int COMMENT 'None',
`joindate` bigint COMMENT 'None'
);
|
Write a SQL CREATE TABLE script based on the given schema information.
|
{"database": "gunsup_db", "table": "storeoffercomponents", "description": null, "columns": [{"name": "storeoffercomponentid", "type": "int", "description": null}, {"name": "storeofferid", "type": "int", "description": null}, {"name": "storepackageid", "type": "int", "description": null}, {"name": "newgoogleiapname", "type": "string", "description": null}, {"name": "newappleiapname", "type": "string", "description": null}, {"name": "costmultiplier", "type": "float", "description": null}, {"name": "quantitymultiplier", "type": "float", "description": null}, {"name": "isstorepackageunlock", "type": "boolean", "description": null}, {"name": "isonetimeoffer", "type": "boolean", "description": null}, {"name": "onlyunlockinannouncements", "type": "boolean", "description": null}]}
|
CREATE TABLE `gunsup_db`.`storeoffercomponents` (
`storeoffercomponentid` int COMMENT 'None',
`storeofferid` int COMMENT 'None',
`storepackageid` int COMMENT 'None',
`newgoogleiapname` string COMMENT 'None',
`newappleiapname` string COMMENT 'None',
`costmultiplier` float COMMENT 'None',
`quantitymultiplier` float COMMENT 'None',
`isstorepackageunlock` boolean COMMENT 'None',
`isonetimeoffer` boolean COMMENT 'None',
`onlyunlockinannouncements` boolean COMMENT 'None'
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.