Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TEMPORARY TABLESPACE DB_TEMP
- TEMPFILE 'C:\app\DB_TEMP.DBF'
- SIZE 32M
- AUTOEXTEND ON
- NEXT 32M MAXSIZE UNLIMITED
- EXTENT MANAGEMENT LOCAL;
- CREATE TABLESPACE DB_DATA
- LOGGING
- DATAFILE 'C:\app\DB_DATA.DBF'
- SIZE 32M
- AUTOEXTEND ON
- NEXT 32M MAXSIZE UNLIMITED
- EXTENT MANAGEMENT LOCAL;
- CREATE USER prize IDENTIFIED BY db123
- ACCOUNT UNLOCK
- DEFAULT TABLESPACE DB_DATA
- TEMPORARY TABLESPACE DB_TEMP;
- GRANT CONNECT, RESOURCE, DBA TO prize;
- prompt PL/SQL Developer import file
- prompt Created on 2017年11月28日 by Steven
- set feedback off
- set define off
- prompt Creating TBL_ACTION_LOGS...
- create table TBL_ACTION_LOGS
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- log_type VARCHAR2(50),
- log_operate VARCHAR2(100),
- log_method VARCHAR2(100),
- log_ip VARCHAR2(20),
- create_time DATE,
- log_info VARCHAR2(2000)
- )
- ;
- create index ACTIONLOGS_AGENT_CODE on TBL_ACTION_LOGS (AGENT_CODE);
- create index ACTIONLOGS_LOG_METHOD on TBL_ACTION_LOGS (LOG_METHOD);
- create index ACTIONLOGS_LOG_OPERATE on TBL_ACTION_LOGS (LOG_OPERATE);
- create index ACTIONLOGS_PLATFORM_CODE on TBL_ACTION_LOGS (PLATFORM_CODE);
- alter table TBL_ACTION_LOGS
- add primary key (ID);
- prompt Creating TBL_BONUS...
- create table TBL_BONUS
- (
- id VARCHAR2(36) not null,
- game_number VARCHAR2(36),
- game_code VARCHAR2(100),
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- uname VARCHAR2(100),
- bonus_nums NUMBER(6),
- remain_nums NUMBER(6),
- currency VARCHAR2(8),
- bet_price NUMBER(16,3),
- bet_lines NUMBER(6),
- base_wins NUMBER(16,3),
- bonus_wins NUMBER(16,3),
- extra VARCHAR2(200),
- ver NUMBER(16),
- create_time DATE,
- update_time DATE
- )
- ;
- create index BONUS_AGENT_CODE on TBL_BONUS (AGENT_CODE);
- create index BONUS_CREATE_TIME on TBL_BONUS (CREATE_TIME);
- create index BONUS_GAME_CODE on TBL_BONUS (GAME_CODE);
- create index BONUS_GAME_NUMBER on TBL_BONUS (GAME_NUMBER);
- create index BONUS_PLATFORM_CODE on TBL_BONUS (PLATFORM_CODE);
- create index BONUS_UNAME on TBL_BONUS (UNAME);
- create index BONUS_UPDATE_TIME on TBL_BONUS (UPDATE_TIME);
- alter table TBL_BONUS
- add constraint BONUS_ID primary key (ID);
- prompt Creating TBL_CODES...
- create table TBL_CODES
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- credit NUMBER(16,3) default 0,
- business_rate NUMBER(8,3),
- business_currency VARCHAR2(20),
- xs NUMBER(8,4) default 1,
- user_allow_ip VARCHAR2(4000),
- remark VARCHAR2(255),
- ver NUMBER(16) default 0
- )
- ;
- create index CODES_AGENT on TBL_CODES (AGENT_CODE);
- create index CODES_PLATFORM on TBL_CODES (PLATFORM_CODE);
- alter table TBL_CODES
- add constraint CODES_ID primary key (ID);
- prompt Creating TBL_CONFIG...
- create table TBL_CONFIG
- (
- id VARCHAR2(36) not null,
- type_no VARCHAR2(100),
- item_key VARCHAR2(100),
- item_value VARCHAR2(255),
- cfg_status VARCHAR2(10),
- notes VARCHAR2(100),
- cfg_order NUMBER(8)
- )
- ;
- create index CONFIG_ITEM_KEY on TBL_CONFIG (ITEM_KEY);
- create index CONFIG_TYPE_NO on TBL_CONFIG (TYPE_NO);
- alter table TBL_CONFIG
- add constraint CONFIG_ID primary key (ID);
- prompt Creating TBL_CREDIT_LOGS...
- create table TBL_CREDIT_LOGS
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- log_operate VARCHAR2(100),
- credit_before NUMBER(16,3),
- credit_after NUMBER(16,3),
- credit_remit NUMBER(16,3),
- bills_m NUMBER(16,3),
- currency VARCHAR2(8),
- notes VARCHAR2(200),
- data_time DATE,
- create_time DATE
- )
- ;
- create index TCL_AGENT_CODE on TBL_CREDIT_LOGS (AGENT_CODE);
- create index TCL_CREATE_TIME on TBL_CREDIT_LOGS (CREATE_TIME);
- create index TCL_DATA_TIME on TBL_CREDIT_LOGS (DATA_TIME);
- create index TCL_LOG_OPERATE on TBL_CREDIT_LOGS (LOG_OPERATE);
- create index TCL_PLATFORM_CODE on TBL_CREDIT_LOGS (PLATFORM_CODE);
- alter table TBL_CREDIT_LOGS
- add constraint TCL_ID primary key (ID);
- prompt Creating TBL_DRAGON_JACKPOT...
- create table TBL_DRAGON_JACKPOT
- (
- id VARCHAR2(36) not null,
- game_number VARCHAR2(36),
- game_code VARCHAR2(100),
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- uname VARCHAR2(100),
- jptype VARCHAR2(50),
- which NUMBER(2),
- jp0 NUMBER(16,6),
- jp1 NUMBER(16,6),
- jp2 NUMBER(16,6),
- jp3 NUMBER(16,6),
- currency VARCHAR2(8),
- bet_price NUMBER(16,3),
- bet_lines NUMBER(6),
- base_wins NUMBER(16,3),
- jp_wins NUMBER(16,3),
- extra VARCHAR2(200),
- ver NUMBER(16),
- create_time DATE,
- update_time DATE
- )
- ;
- create index TDJ_AGENT_CODE on TBL_DRAGON_JACKPOT (AGENT_CODE);
- create index TDJ_CREATE_TIME on TBL_DRAGON_JACKPOT (CREATE_TIME);
- create index TDJ_GAME_CODE on TBL_DRAGON_JACKPOT (GAME_CODE);
- create index TDJ_GAME_NUMBER on TBL_DRAGON_JACKPOT (GAME_NUMBER);
- create index TDJ_JPTYPE on TBL_DRAGON_JACKPOT (JPTYPE);
- create index TDJ_PLATFORM_CODE on TBL_DRAGON_JACKPOT (PLATFORM_CODE);
- create index TDJ_UNAME on TBL_DRAGON_JACKPOT (UNAME);
- create index TDJ_UPDATE_TIME on TBL_DRAGON_JACKPOT (UPDATE_TIME);
- alter table TBL_DRAGON_JACKPOT
- add constraint TDJ_ID primary key (ID);
- prompt Creating TBL_FREES_CONFIG...
- create table TBL_FREES_CONFIG
- (
- id VARCHAR2(36) not null,
- cname VARCHAR2(100),
- start_time DATE,
- end_time DATE,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- require_bets_start NUMBER(16,3),
- require_bets_end NUMBER(16,3),
- require_winorloses_start NUMBER(16,3),
- require_winorloses_end NUMBER(16,3),
- require_games VARCHAR2(2000),
- require_currency VARCHAR2(8),
- coupons_game VARCHAR2(100),
- coupons_nums NUMBER(8),
- coupons_mul NUMBER(8),
- coupons_bets NUMBER(16,3),
- coupons_lines NUMBER(8),
- valid_hours NUMBER(8),
- is_executed VARCHAR2(10),
- is_enable VARCHAR2(10),
- create_time DATE,
- update_time DATE
- )
- ;
- comment on column TBL_FREES_CONFIG.is_executed
- is '是否已经执行(no,ing,yes)';
- comment on column TBL_FREES_CONFIG.is_enable
- is '是否可用(no,yes)';
- create index TFC_AGENT_CODE on TBL_FREES_CONFIG (AGENT_CODE);
- create index TFC_CREATE_TIME on TBL_FREES_CONFIG (CREATE_TIME);
- create index TFC_PLATFORM_CODE on TBL_FREES_CONFIG (PLATFORM_CODE);
- alter table TBL_FREES_CONFIG
- add constraint TFC_ID primary key (ID);
- prompt Creating TBL_FREES_DETAILS...
- create table TBL_FREES_DETAILS
- (
- id VARCHAR2(36) not null,
- config_id VARCHAR2(36),
- game_code VARCHAR2(100),
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- uname VARCHAR2(100),
- require_bets NUMBER(16,3),
- require_winorloses NUMBER(16,3),
- currency VARCHAR2(8),
- fd_status VARCHAR2(10),
- bet_price NUMBER(16,3),
- bet_lines NUMBER(8),
- free_nums NUMBER(8),
- free_mul NUMBER(8),
- remain_nums NUMBER(8),
- free_wins NUMBER(16,3),
- valid_hours NUMBER(8),
- ver NUMBER(16),
- create_time DATE,
- update_time DATE
- )
- ;
- create index TFD_AGENT_CODE on TBL_FREES_DETAILS (AGENT_CODE);
- create index TFD_CREATE_TIME on TBL_FREES_DETAILS (CREATE_TIME);
- create index TFD_GAME_CODE on TBL_FREES_DETAILS (GAME_CODE);
- create index TFD_PLATFORM_CODE on TBL_FREES_DETAILS (PLATFORM_CODE);
- create index TFD_UNAME on TBL_FREES_DETAILS (UNAME);
- alter table TBL_FREES_DETAILS
- add constraint TFD_ID primary key (ID);
- prompt Creating TBL_FREE_GAMES...
- create table TBL_FREE_GAMES
- (
- id VARCHAR2(36) not null,
- game_number VARCHAR2(36),
- game_code VARCHAR2(100),
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- uname VARCHAR2(100),
- father_id VARCHAR2(36),
- free_nums NUMBER(6),
- free_mul NUMBER(6),
- remain_nums NUMBER(6),
- currency VARCHAR2(8),
- bet_price NUMBER(16,3),
- bet_lines NUMBER(6),
- base_wins NUMBER(16,3),
- free_wins NUMBER(16,3),
- extra VARCHAR2(200),
- ver NUMBER(16),
- create_time DATE,
- update_time DATE
- )
- ;
- create index FG_AGENT_CODE on TBL_FREE_GAMES (AGENT_CODE);
- create index FG_CREATE_TIME on TBL_FREE_GAMES (CREATE_TIME);
- create index FG_FATHER_ID on TBL_FREE_GAMES (FATHER_ID);
- create index FG_GAME_CODE on TBL_FREE_GAMES (GAME_CODE);
- create index FG_GAME_NUMBER on TBL_FREE_GAMES (GAME_NUMBER);
- create index FG_PLATFORM_CODE on TBL_FREE_GAMES (PLATFORM_CODE);
- create index FG_UNAME on TBL_FREE_GAMES (UNAME);
- create index FG_UPDATE_TIME on TBL_FREE_GAMES (UPDATE_TIME);
- alter table TBL_FREE_GAMES
- add constraint FG_ID primary key (ID);
- prompt Creating TBL_FRIENDS...
- create table TBL_FRIENDS
- (
- id VARCHAR2(36) not null,
- user_id VARCHAR2(36),
- friend_id VARCHAR2(36),
- section_id VARCHAR2(36),
- fsort NUMBER(8)
- )
- ;
- create index TF_USER_ID on TBL_FRIENDS (USER_ID);
- alter table TBL_FRIENDS
- add constraint TF_ID primary key (ID);
- prompt Creating TBL_GAMES...
- create table TBL_GAMES
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- game_code VARCHAR2(100),
- game_type VARCHAR2(100),
- game_status VARCHAR2(10),
- game_names VARCHAR2(1000),
- game_url VARCHAR2(255),
- game_category VARCHAR2(255),
- game_sorts VARCHAR2(100),
- producer VARCHAR2(50)
- )
- ;
- create index TG_GAME_CODE on TBL_GAMES (GAME_CODE);
- create unique index TG_PG on TBL_GAMES (PLATFORM_CODE, GAME_CODE);
- alter table TBL_GAMES
- add constraint TG_ID primary key (ID);
- prompt Creating TBL_GAMES_LINEBETS...
- create table TBL_GAMES_LINEBETS
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- game_code VARCHAR2(100),
- line_bets_json VARCHAR2(2000)
- )
- ;
- create index TGL_GAME_CODE on TBL_GAMES_LINEBETS (GAME_CODE);
- create unique index TGL_PG on TBL_GAMES_LINEBETS (PLATFORM_CODE, GAME_CODE);
- alter table TBL_GAMES_LINEBETS
- add constraint TGL_ID primary key (ID);
- prompt Creating TBL_GAMES_SET...
- create table TBL_GAMES_SET
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- game_code VARCHAR2(100),
- game_languages VARCHAR2(100),
- game_lines NUMBER(3),
- line_bets VARCHAR2(1000),
- jp_rate NUMBER(16,3),
- limit_wins NUMBER(16,3),
- switchs VARCHAR2(50)
- )
- ;
- create index TGS_GAME_CODE on TBL_GAMES_SET (GAME_CODE);
- create unique index TGS_PG on TBL_GAMES_SET (PLATFORM_CODE, GAME_CODE);
- alter table TBL_GAMES_SET
- add constraint TGS_ID primary key (ID);
- prompt Creating TBL_GROUPS...
- create table TBL_GROUPS
- (
- id VARCHAR2(36) not null,
- gname VARCHAR2(100),
- image VARCHAR2(500),
- creator_id VARCHAR2(36),
- create_time DATE
- )
- ;
- create index TG_CREATE_TIME on TBL_GROUPS (CREATE_TIME);
- alter table TBL_GROUPS
- add constraint GROUPS_ID primary key (ID);
- prompt Creating TBL_JOIN_INFO...
- create table TBL_JOIN_INFO
- (
- id VARCHAR2(36) not null,
- periods_id VARCHAR2(36),
- product_id VARCHAR2(36),
- bets_id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- nickname VARCHAR2(100),
- bets_timestamp TIMESTAMP(3),
- time_num NUMBER(10),
- create_time DATE
- )
- ;
- create index BETS_TIMESTAMP on TBL_JOIN_INFO (BETS_TIMESTAMP);
- create index JOIN_PERIODS_ID on TBL_JOIN_INFO (PERIODS_ID);
- alter table TBL_JOIN_INFO
- add constraint JOIN_ID primary key (ID);
- prompt Creating TBL_LOTTERY...
- create table TBL_LOTTERY
- (
- id NUMBER(19) not null,
- issue VARCHAR2(50),
- lottery_time VARCHAR2(50),
- lottery_num VARCHAR2(50),
- numb VARCHAR2(50),
- create_time DATE
- )
- ;
- create index LOTTERY_CREATE_TIME on TBL_LOTTERY (CREATE_TIME);
- alter table TBL_LOTTERY
- add constraint LOTTERY_ID primary key (ID);
- alter table TBL_LOTTERY
- add constraint LOTTERY_ISSUE unique (ISSUE);
- prompt Creating TBL_MENUS...
- create table TBL_MENUS
- (
- id VARCHAR2(36) not null,
- menu_name VARCHAR2(50),
- menu_key VARCHAR2(50),
- menu_action VARCHAR2(255),
- menu_root VARCHAR2(10),
- menu_show VARCHAR2(10),
- menu_order NUMBER(8),
- menu_images VARCHAR2(100),
- menu_info VARCHAR2(100),
- parent_id NUMBER(19)
- )
- ;
- create index MENUS_ORDER on TBL_MENUS (MENU_ORDER);
- alter table TBL_MENUS
- add constraint MENUS_ID primary key (ID);
- prompt Creating TBL_NOTICE...
- create table TBL_NOTICE
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- notice_title VARCHAR2(100),
- notice_content VARCHAR2(1000),
- create_time DATE,
- update_time DATE,
- notes VARCHAR2(500),
- notice_status VARCHAR2(10)
- )
- ;
- create index NOTICE_AGENT on TBL_NOTICE (AGENT_CODE);
- create index NOTICE_PLATFORM on TBL_NOTICE (PLATFORM_CODE);
- create index NOTICE_UPDATE_TIME on TBL_NOTICE (UPDATE_TIME);
- alter table TBL_NOTICE
- add constraint NOTICE_ID primary key (ID);
- prompt Creating TBL_PERIODS...
- create table TBL_PERIODS
- (
- id VARCHAR2(36) not null,
- periods_id VARCHAR2(36),
- product_id VARCHAR2(36),
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- product_name VARCHAR2(255),
- img_url VARCHAR2(500),
- descriptions VARCHAR2(2000),
- product_type VARCHAR2(100),
- price NUMBER(16,3),
- fee NUMBER(16,3),
- category VARCHAR2(100),
- sorts VARCHAR2(100),
- extra VARCHAR2(500),
- totals NUMBER(16,3),
- remains NUMBER(16,3),
- numa VARCHAR2(50),
- lottery_start VARCHAR2(50),
- lottery_end VARCHAR2(50),
- numb VARCHAR2(50),
- win_number VARCHAR2(50),
- win_player VARCHAR2(100),
- win_nickname VARCHAR2(100),
- create_time DATE,
- update_time DATE,
- ver NUMBER(16)
- )
- ;
- create index PERIODS_AGENT_CODE on TBL_PERIODS (AGENT_CODE);
- create index PERIODS_PID on TBL_PERIODS (PERIODS_ID);
- create index PERIODS_PLATFORM_CODE on TBL_PERIODS (PLATFORM_CODE);
- create index PERIODS_PRODUCT_ID on TBL_PERIODS (PRODUCT_ID);
- create index PERIODS_UPDATE_TIME on TBL_PERIODS (UPDATE_TIME);
- alter table TBL_PERIODS
- add constraint PERIODS_ID primary key (ID);
- prompt Creating TBL_PLAYERS...
- create table TBL_PLAYERS
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- player_pwd VARCHAR2(100),
- nickname VARCHAR2(100),
- player_price NUMBER(16,3),
- player_status VARCHAR2(10),
- currency VARCHAR2(8),
- player_lvl NUMBER(8),
- player_exp NUMBER(16,3),
- create_ip VARCHAR2(50),
- create_time DATE,
- encode VARCHAR2(100),
- cashins NUMBER(16,3),
- cashouts NUMBER(16,3),
- betins NUMBER(16,3),
- betouts NUMBER(16,3),
- ver NUMBER(16)
- )
- partition by hash (ID)
- (
- partition PART_01
- tablespace DB_DATA,
- partition PART_02
- tablespace DB_DATA,
- partition PART_03
- tablespace DB_DATA,
- partition PART_04
- tablespace DB_DATA,
- partition PART_05
- tablespace DB_DATA,
- partition PART_06
- tablespace DB_DATA,
- partition PART_07
- tablespace DB_DATA,
- partition PART_08
- tablespace DB_DATA,
- partition PART_09
- tablespace DB_DATA,
- partition PART_10
- tablespace DB_DATA
- );
- create index TP_AGENT_CODE on TBL_PLAYERS (AGENT_CODE)
- local;
- create index TP_CREATE_TIME on TBL_PLAYERS (CREATE_TIME)
- local;
- create index TP_PLATFORM_CODE on TBL_PLAYERS (PLATFORM_CODE)
- local;
- create index TP_PLAYER_NAME on TBL_PLAYERS (PLAYER_NAME)
- local;
- alter table TBL_PLAYERS
- add primary key (ID);
- prompt Creating TBL_PLAYERS_BETS...
- create table TBL_PLAYERS_BETS
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- nickname VARCHAR2(100),
- game_code VARCHAR2(100),
- game_type VARCHAR2(100),
- parent_ids VARCHAR2(255),
- periods_id VARCHAR2(36),
- product_id VARCHAR2(36),
- bet_in NUMBER(16,3),
- bet_out NUMBER(16,3),
- bet_lines NUMBER(6),
- winorloses NUMBER(16,3),
- bet_mul NUMBER(16,3),
- credit_before NUMBER(16,3),
- credit_after NUMBER(16,3),
- credit_remit NUMBER(16,3),
- bet_data VARCHAR2(255),
- bet_info VARCHAR2(4000),
- bet_status VARCHAR2(10),
- jpl VARCHAR2(10),
- is_complete VARCHAR2(10),
- currency VARCHAR2(8),
- free_coupons VARCHAR2(36),
- extra VARCHAR2(500),
- device VARCHAR2(100),
- bet_ip VARCHAR2(50),
- create_time DATE,
- create_timestamp TIMESTAMP(3)
- )
- partition by range (CREATE_TIME) interval (NUMTODSINTERVAL(1,'DAY'))
- (
- partition P20170919 values less than (TO_DATE(' 2017-09-19 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
- tablespace DB_DATA
- );
- create index TPB_AGENT_CODE on TBL_PLAYERS_BETS (AGENT_CODE)
- local;
- create index TPB_CREATE_TIME on TBL_PLAYERS_BETS (CREATE_TIME)
- local;
- create index TPB_CREATE_TIMESTAMP on TBL_PLAYERS_BETS (CREATE_TIMESTAMP)
- local;
- create index TPB_FREE_COUPONS on TBL_PLAYERS_BETS (FREE_COUPONS)
- local;
- create index TPB_GAME_CODE on TBL_PLAYERS_BETS (GAME_CODE)
- local;
- create index TPB_PERIODS_ID on TBL_PLAYERS_BETS (PERIODS_ID)
- local;
- create index TPB_PLATFORM_CODE on TBL_PLAYERS_BETS (PLATFORM_CODE)
- local;
- create index TPB_PLAYER_NAME on TBL_PLAYERS_BETS (PLAYER_NAME)
- local;
- create index TPB_PRODUCT_ID on TBL_PLAYERS_BETS (PRODUCT_ID)
- local;
- alter table TBL_PLAYERS_BETS
- add constraint TPB_ID primary key (ID);
- prompt Creating TBL_PLAYERS_BETS_ERROR...
- create table TBL_PLAYERS_BETS_ERROR
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- game_code VARCHAR2(100),
- game_type VARCHAR2(100),
- parent_ids VARCHAR2(255),
- bet_in NUMBER(16,3),
- bet_out NUMBER(16,3),
- bet_lines NUMBER(6),
- winorloses NUMBER(16,3),
- bet_mul NUMBER(16,3),
- bet_status VARCHAR2(10),
- notes VARCHAR2(500),
- process_status VARCHAR2(10),
- currency VARCHAR2(8),
- free_coupons VARCHAR2(36),
- bet_ip VARCHAR2(50),
- create_time DATE
- )
- ;
- alter table TBL_PLAYERS_BETS_ERROR
- add primary key (ID);
- prompt Creating TBL_PLAYERS_REPORT...
- create table TBL_PLAYERS_REPORT
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- game_code VARCHAR2(100),
- game_type VARCHAR2(100),
- bet_in NUMBER(16,3),
- bet_out NUMBER(16,3),
- winorloses NUMBER(16,3),
- bet_nums NUMBER(16),
- currency VARCHAR2(8),
- data_time DATE,
- update_time DATE
- )
- ;
- create index TPR_AGENT_CODE on TBL_PLAYERS_REPORT (AGENT_CODE);
- create index TPR_DATA_TIME on TBL_PLAYERS_REPORT (DATA_TIME);
- create index TPR_GAME_CODE on TBL_PLAYERS_REPORT (GAME_CODE);
- create index TPR_GAME_TYPE on TBL_PLAYERS_REPORT (GAME_TYPE);
- create index TPR_PLATFORM_CODE on TBL_PLAYERS_REPORT (PLATFORM_CODE);
- create index TPR_PLAYER_NAME on TBL_PLAYERS_REPORT (PLAYER_NAME);
- alter table TBL_PLAYERS_REPORT
- add primary key (ID);
- prompt Creating TBL_PRODUCT...
- create table TBL_PRODUCT
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- product_name VARCHAR2(255),
- img_url VARCHAR2(500),
- descriptions VARCHAR2(2000),
- product_type VARCHAR2(100),
- price NUMBER(16,3),
- fee NUMBER(16,3),
- product_category VARCHAR2(100),
- sorts VARCHAR2(100),
- create_time DATE,
- update_time DATE,
- extra VARCHAR2(500)
- )
- ;
- create index PRODUCT_AGENT_CODE on TBL_PRODUCT (AGENT_CODE);
- create index PRODUCT_PLATFORM_CODE on TBL_PRODUCT (PLATFORM_CODE);
- create index PRODUCT_UPDATE_TIME on TBL_PRODUCT (UPDATE_TIME);
- alter table TBL_PRODUCT
- add constraint PRODUCT_ID primary key (ID);
- prompt Creating TBL_ROLES...
- create table TBL_ROLES
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- role_code VARCHAR2(100),
- role_name VARCHAR2(100),
- notes VARCHAR2(500)
- )
- ;
- create index TR_AGENT_CODE on TBL_ROLES (AGENT_CODE);
- create index TR_PLATFORM_CODE on TBL_ROLES (PLATFORM_CODE);
- create index TR_ROLE_CODE on TBL_ROLES (ROLE_CODE);
- alter table TBL_ROLES
- add constraint TR_ID primary key (ID);
- prompt Creating TBL_ROLES_MENUS...
- create table TBL_ROLES_MENUS
- (
- id VARCHAR2(36) not null,
- roles_id VARCHAR2(36),
- menus_id VARCHAR2(36)
- )
- ;
- create index TRM_ROLES_ID on TBL_ROLES_MENUS (ROLES_ID);
- alter table TBL_ROLES_MENUS
- add constraint TRM_ID primary key (ID);
- prompt Creating TBL_SECTIONS...
- create table TBL_SECTIONS
- (
- id VARCHAR2(36) not null,
- user_id VARCHAR2(36),
- sname VARCHAR2(100),
- ssort NUMBER(8)
- )
- ;
- create index TS_USER_ID on TBL_SECTIONS (USER_ID);
- alter table TBL_SECTIONS
- add constraint TS_ID primary key (ID);
- prompt Creating TBL_TICKET...
- create table TBL_TICKET
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- bets_id VARCHAR2(36),
- periods_id VARCHAR2(36),
- ticket VARCHAR2(50),
- create_time DATE
- )
- ;
- create index TICKET_AGENT_CODE on TBL_TICKET (AGENT_CODE);
- create index TICKET_BETS_ID on TBL_TICKET (BETS_ID);
- create index TICKET_CREATE_TIME on TBL_TICKET (CREATE_TIME);
- create index TICKET_PERIODS_ID on TBL_TICKET (PERIODS_ID);
- create index TICKET_PID_TKT on TBL_TICKET (PERIODS_ID, TICKET);
- create index TICKET_PLATFORM_CODE on TBL_TICKET (PLATFORM_CODE);
- create index TICKET_PLAYER_NAME on TBL_TICKET (PLAYER_NAME);
- alter table TBL_TICKET
- add constraint TICKET_ID primary key (ID);
- prompt Creating TBL_TRANSFER_LOGS...
- create table TBL_TRANSFER_LOGS
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- player_name VARCHAR2(100),
- transfer_type VARCHAR2(50),
- transfer_before NUMBER(16,3),
- transfer_after NUMBER(16,3),
- transfer_remit NUMBER(16,3),
- currency VARCHAR2(8),
- transfer_id VARCHAR2(100),
- transfer_info VARCHAR2(100),
- create_time DATE
- )
- ;
- create index TRANSFER_LOGS_AGENT_CODE on TBL_TRANSFER_LOGS (AGENT_CODE);
- create index TRANSFER_LOGS_CREATETIME on TBL_TRANSFER_LOGS (CREATE_TIME);
- create index TRANSFER_LOGS_PLATFORM_CODE on TBL_TRANSFER_LOGS (PLATFORM_CODE);
- create index TRANSFER_LOGS_PLAYER_NAME on TBL_TRANSFER_LOGS (PLAYER_NAME);
- create unique index TRANSFER_LOGS_TRANSFER_ID on TBL_TRANSFER_LOGS (TRANSFER_ID);
- create index TRANSFER_LOGS_TRANSFER_TYPE on TBL_TRANSFER_LOGS (TRANSFER_TYPE);
- alter table TBL_TRANSFER_LOGS
- add primary key (ID);
- prompt Creating TBL_UNREADS...
- create table TBL_UNREADS
- (
- id VARCHAR2(36) not null,
- msg_from VARCHAR2(36),
- msg_to VARCHAR2(36),
- msg_content VARCHAR2(4000),
- msg_type VARCHAR2(50),
- create_time DATE,
- deal_time DATE
- )
- partition by range (CREATE_TIME) interval (NUMTODSINTERVAL(1,'DAY'))
- (
- partition P20170919 values less than (TO_DATE(' 2017-09-19 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
- tablespace DB_DATA
- );
- create index TU_CREATE_TIME on TBL_UNREADS (CREATE_TIME)
- local;
- create index TU_MSG_FROM on TBL_UNREADS (MSG_FROM)
- local;
- create index TU_MSG_TO on TBL_UNREADS (MSG_TO)
- local;
- create index TU_MSG_TYPE on TBL_UNREADS (MSG_TYPE)
- local;
- alter table TBL_UNREADS
- add constraint TU_ID primary key (ID);
- prompt Creating TBL_USERS...
- create table TBL_USERS
- (
- id VARCHAR2(36) not null,
- user_name VARCHAR2(100),
- user_password VARCHAR2(100),
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- user_type VARCHAR2(50),
- nickname VARCHAR2(100),
- image VARCHAR2(500),
- signature VARCHAR2(500),
- user_mail VARCHAR2(100),
- user_phone VARCHAR2(100),
- online_status VARCHAR2(10),
- user_status VARCHAR2(10),
- user_count_error NUMBER(2),
- user_create_ip VARCHAR2(50),
- user_create_time DATE,
- notes VARCHAR2(255)
- )
- ;
- create index USERS_AGENT on TBL_USERS (AGENT_CODE);
- create index USERS_PLATFORM on TBL_USERS (PLATFORM_CODE);
- alter table TBL_USERS
- add constraint USERS_ID primary key (ID);
- alter table TBL_USERS
- add constraint USERS_USER_NAME unique (USER_NAME);
- prompt Creating TBL_USERS_API...
- create table TBL_USERS_API
- (
- id VARCHAR2(36) not null,
- boss_code VARCHAR2(255),
- agent_code VARCHAR2(255),
- platform_code VARCHAR2(255),
- business_key VARCHAR2(255),
- business_status VARCHAR2(10),
- business_allow_ip VARCHAR2(4000)
- )
- ;
- create index API_AGENT on TBL_USERS_API (AGENT_CODE);
- create index API_PLATFORM on TBL_USERS_API (PLATFORM_CODE);
- alter table TBL_USERS_API
- add constraint API_ID primary key (ID);
- prompt Creating TBL_USERS_GROUPS...
- create table TBL_USERS_GROUPS
- (
- id VARCHAR2(36) not null,
- user_id VARCHAR2(36),
- group_id VARCHAR2(36),
- admin_chars VARCHAR2(500),
- ugsort NUMBER(8),
- create_time DATE
- )
- ;
- create index TUG_CREATE_TIME on TBL_USERS_GROUPS (CREATE_TIME);
- create index TUG_GROUP_ID on TBL_USERS_GROUPS (GROUP_ID);
- create index TUG_USER_ID on TBL_USERS_GROUPS (USER_ID);
- alter table TBL_USERS_GROUPS
- add constraint TUG_ID primary key (ID);
- prompt Creating TBL_USERS_ROLES...
- create table TBL_USERS_ROLES
- (
- id VARCHAR2(36) not null,
- users_id VARCHAR2(36),
- roles_id VARCHAR2(36)
- )
- ;
- create index TUR_USERS_ID on TBL_USERS_ROLES (USERS_ID);
- alter table TBL_USERS_ROLES
- add constraint TUR_ID primary key (ID);
- prompt Loading TBL_ACTION_LOGS...
- prompt Loading TBL_BONUS...
- prompt Table is empty
- prompt Loading TBL_CODES...
- insert into TBL_CODES (id, boss_code, agent_code, platform_code, credit, business_rate, business_currency, xs, user_allow_ip, remark, ver)
- values ('1', null, null, null, 0, 0, 'CNY', 1, '|127.0.0.1|', 'bz', 0);
- insert into TBL_CODES (id, boss_code, agent_code, platform_code, credit, business_rate, business_currency, xs, user_allow_ip, remark, ver)
- values ('2', 'DC', null, null, 0, .06, 'CNY', 1, '|127.0.0.1|10.211.55.2|', 'bz', 0);
- commit;
- prompt 2 records loaded
- prompt Loading TBL_CONFIG...
- insert into TBL_CONFIG (id, type_no, item_key, item_value, cfg_status, notes, cfg_order)
- values ('4', 'LOGIN_ERRS', 'USER', '5', 'enable', '登录密码错误最大允许次数', 1);
- insert into TBL_CONFIG (id, type_no, item_key, item_value, cfg_status, notes, cfg_order)
- values ('1', 'PAGE_SIZES', 'DEFAULT', '20,50,100,250,500', 'enable', '系统默认每页显示几条数据', 1);
- commit;
- prompt 5 records loaded
- prompt Loading TBL_CREDIT_LOGS...
- prompt Table is empty
- prompt Loading TBL_DRAGON_JACKPOT...
- prompt Table is empty
- prompt Loading TBL_FREES_CONFIG...
- prompt Table is empty
- prompt Loading TBL_FREES_DETAILS...
- prompt Table is empty
- prompt Loading TBL_FREE_GAMES...
- prompt Table is empty
- prompt Loading TBL_FRIENDS...
- prompt 2 records loaded
- prompt Loading TBL_GAMES...
- prompt Table is empty
- prompt Loading TBL_GAMES_LINEBETS...
- prompt Table is empty
- prompt Loading TBL_GAMES_SET...
- prompt Table is empty
- prompt Loading TBL_GROUPS...
- prompt 1 records loaded
- prompt Loading TBL_JOIN_INFO...
- prompt Table is empty
- prompt Loading TBL_LOTTERY...
- prompt 9 records loaded
- prompt Loading TBL_MENUS...
- insert into TBL_MENUS (id, menu_name, menu_key, menu_action, menu_root, menu_show, menu_order, menu_images, menu_info, parent_id)
- values ('3', '修改密码', 'user.m.pwd', '/user/updatePwd', 'SYS_SET', 'false', null, null, null, 2);
- insert into TBL_MENUS (id, menu_name, menu_key, menu_action, menu_root, menu_show, menu_order, menu_images, menu_info, parent_id)
- values ('1', '系统设置', 'root.sys.set', null, 'SYS_SET', 'true', 1, null, null, 0);
- insert into TBL_MENUS (id, menu_name, menu_key, menu_action, menu_root, menu_show, menu_order, menu_images, menu_info, parent_id)
- values ('2', '我的信息', 'user.my.info', '/user/index', 'SYS_SET', 'true', 1, null, null, 1);
- commit;
- prompt 3 records loaded
- prompt Loading TBL_NOTICE...
- prompt Table is empty
- prompt Loading TBL_PERIODS...
- prompt Table is empty
- prompt Loading TBL_PLAYERS...
- prompt Table is empty
- prompt Loading TBL_PLAYERS_BETS...
- prompt Table is empty
- prompt Loading TBL_PLAYERS_BETS_ERROR...
- prompt Table is empty
- prompt Loading TBL_PLAYERS_REPORT...
- prompt Table is empty
- prompt Loading TBL_PRODUCT...
- prompt Table is empty
- prompt Loading TBL_ROLES...
- insert into TBL_ROLES (id, boss_code, agent_code, platform_code, role_code, role_name, notes)
- values ('1', null, null, null, 'admin', '超级管理员', null);
- commit;
- prompt 1 records loaded
- prompt Loading TBL_ROLES_MENUS...
- insert into TBL_ROLES_MENUS (id, roles_id, menus_id)
- values ('2', '1', '2');
- insert into TBL_ROLES_MENUS (id, roles_id, menus_id)
- values ('3', '1', '3');
- insert into TBL_ROLES_MENUS (id, roles_id, menus_id)
- values ('1', '1', '1');
- commit;
- prompt 3 records loaded
- prompt Loading TBL_SECTIONS...
- prompt 1 records loaded
- prompt Loading TBL_TICKET...
- prompt Table is empty
- prompt Loading TBL_TRANSFER_LOGS...
- prompt Table is empty
- prompt Loading TBL_UNREADS...
- prompt Table is empty
- prompt Loading TBL_USERS...
- insert into TBL_USERS (id, user_name, user_password, boss_code, agent_code, platform_code, user_type, nickname, image, signature, user_mail, user_phone, online_status, user_status, user_count_error, user_create_ip, user_create_time, notes)
- values ('1', 'admin', '91a2cf48856437a75300d8443f3e0c11', null, null, null, '0', '超级管理员', '{"base":"USER","name":"me.jpg"}', '我的签名', null, null, 'online', 'enable', 0, '127.0.0.1', to_date('12-11-2017', 'dd-mm-yyyy'), 'bz');
- insert into TBL_USERS (id, user_name, user_password, boss_code, agent_code, platform_code, user_type, nickname, image, signature, user_mail, user_phone, online_status, user_status, user_count_error, user_create_ip, user_create_time, notes)
- values ('2', 'btroot', '76fa3806d19891b0a179b8c6c0be9c81', 'BT', null, null, '1', '总代', '{"base":"USER","name":"bt.jpg"}', '签签名', null, null, 'offline', 'enable', 0, '127.0.0.1', to_date('12-11-2017', 'dd-mm-yyyy'), 'bz');
- commit;
- prompt 2 records loaded
- prompt Loading TBL_USERS_API...
- prompt Table is empty
- prompt Loading TBL_USERS_GROUPS...
- prompt 2 records loaded
- prompt Loading TBL_USERS_ROLES...
- insert into TBL_USERS_ROLES (id, users_id, roles_id)
- values ('1', '1', '1');
- commit;
- prompt 1 records loaded
- set feedback on
- set define on
- prompt Done.
Add Comment
Please, Sign In to add comment