This is a simple database schema for a car rental system. It is designed to manage various aspects of the car rental process, including vehicle categories, rental locations, payments, reservations, vehicles, credit card information, and customer details.
-
kategória
- Manages vehicle categories with information like category ID, vehicle type, and daily rental price.
-
miesto
- Handles rental locations, including location ID, city, address, postal code, telephone number, and email.
-
platba
- Tracks payments with details such as payment ID, payment creation date, description, payment type, and total amount.
-
rezervácia
- Manages reservations, capturing reservation ID, creation date, start and end dates, reservation status, rental location ID, and payment ID.
-
vozidlo
- Contains information about vehicles, including vehicle ID, license plate, name, description, color, seating capacity, image URL, category ID, and reservation ID.
-
kartové_údaje
- Stores credit card details, including card details ID, cardholder name, card number, expiration date, CVV, and associated payment ID.
-
zákazník
- Manages customer details, including customer ID, driver's license number, title, first name, last name, email, telephone number, city, address, postal code, and associated credit card details.
To use this database schema, you can create the tables using the provided SQL statements. Ensure proper relationships between tables using foreign key constraints.
Feel free to customize and extend the schema based on your specific requirements.