fix(db): modify 'rents' SQL table structure

The commit modifies the 'rents' SQL table:
- Replaces the improperly quoted table name with correct syntax: from 'rents' to `rents`.
- Changes `id` field data type from tinyint to varchar.
- Updates database dump's completion timestamp.

Signed-off-by: Mathis <yidhra@tuta.io>
This commit is contained in:
Mathis H (Avnyr) 2024-05-03 14:56:37 +02:00
parent 5cc214a29b
commit 7fead5486b
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

6
db.sql
View File

@ -77,7 +77,7 @@ CREATE TABLE `models` (
-- Table structure for table `rents` -- Table structure for table `rents`
-- --
DROP TABLE IF EXISTS 'rents'; DROP TABLE IF EXISTS `rents`;
/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rents` ( CREATE TABLE `rents` (
@ -88,7 +88,7 @@ CREATE TABLE `rents` (
`eat` date NOT NULL, `eat` date NOT NULL,
`need_survey` tinyint(1) DEFAULT NULL, `need_survey` tinyint(1) DEFAULT NULL,
`km_at_start` int(11) DEFAULT NULL, `km_at_start` int(11) DEFAULT NULL,
`id` tinyint(1) NOT NULL, `id` varchar(36) NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `rent_vehicles_id_fk` (`vehicle_id`), KEY `rent_vehicles_id_fk` (`vehicle_id`),
KEY `rent_users_id_fk` (`user_id`), KEY `rent_users_id_fk` (`user_id`),
@ -152,4 +152,4 @@ CREATE TABLE `vehicles` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2024-04-29 14:54:00 -- Dump completed on 2024-05-03 14:56:07