diff --git a/common/mysql/index.sql b/common/mysql/index.sql new file mode 100644 index 0000000..cb0561b --- /dev/null +++ b/common/mysql/index.sql @@ -0,0 +1,5 @@ +create index idx_door_Log_2 on door_log (created_at,id_ticket_current, direction); +create index idx_door_Log_3 on door_log (created_at, id_customer, id_ticket_current, direction); +create index idx_ticket_2 on ticket (start,end,status,count_move_out,max_usage_count,id_card); +create index idx_card_1 on card ( type, id_card); +create index idx_contract_1 on contract ( id_customer, expired_at,flag ); \ No newline at end of file