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 );