1. user_details
1.1. id
1.2. name
1.3. second mane
1.4. last name
1.5. Loyalty_card_id
1.5.1. id
1.5.2. name (56245326)
1.6. loyalty_system_id
1.6.1. loyalty_system
1.6.1.1. id
1.6.1.2. name
1.6.1.3. Amount
1.6.1.4. Percent_from_amount
1.6.1.5. Notes
1.6.1.6. table
1.6.1.6.1. table
1.7. phone
1.8. Birthday
1.9. Password
1.10. date registered
1.11. amount
2. Payments
2.1. id
2.2. user_id
2.3. car_wash_id
2.4. amount
2.5. bonus_amount
2.6. payment_type_id
2.6.1. Payment_type
2.6.1.1. id
2.6.1.2. type (cash, paypass, liqpay, privatpay, apple & google pay)
2.7. payment_source_id
2.7.1. Payment_Source
2.7.1.1. id
2.7.1.2. sorse (cash register, terminal, qr-code, website)
2.8. CarWash
2.8.1. id
2.8.2. name
2.8.3. location
2.8.4. box_id
2.8.4.1. boxes
2.8.4.1.1. id
2.8.4.1.2. name
2.8.5. Vacuum_cliner_id
2.8.5.1. id
2.8.5.2. name
2.9. payment_target_id
2.9.1. Payment_target
2.9.1.1. id
2.9.1.2. terget (box, coin, loyalty card)
2.10. payment_result_info_id
2.10.1. Payment_result_info
2.10.1.1. id
2.10.1.2. info (box_id coins - 1-100 (counts) loyalty_card_id )
2.11. payment_status_id
2.11.1. Payment_status
2.11.1.1. id
2.11.1.2. translate
2.11.1.3. error
2.12. is_paid
2.13. date
2.14. time
2.15. car_wash_id
3. users
3.1. id
3.2. Loyalty card
3.3. Phone
3.4. Password
3.5. created_at
3.6. update_at
4. login
4.1. on terminal
4.1.1. Loyalty card
4.2. on mobile / PC
4.2.1. phone
4.2.2. Password