Compare commits

..

2 Commits

Author SHA1 Message Date
7fead5486b
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>
2024-05-03 14:56:37 +02:00
5cc214a29b
schema
Signed-off-by: Mathis <yidhra@tuta.io>
2024-05-03 14:55:07 +02:00
2 changed files with 3 additions and 3 deletions

6
db.sql
View File

@ -77,7 +77,7 @@ CREATE TABLE `models` (
-- 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 character_set_client = utf8 */;
CREATE TABLE `rents` (
@ -88,7 +88,7 @@ CREATE TABLE `rents` (
`eat` date NOT NULL,
`need_survey` tinyint(1) DEFAULT NULL,
`km_at_start` int(11) DEFAULT NULL,
`id` tinyint(1) NOT NULL,
`id` varchar(36) NOT NULL,
PRIMARY KEY (`id`),
KEY `rent_vehicles_id_fk` (`vehicle_id`),
KEY `rent_users_id_fk` (`user_id`),
@ -152,4 +152,4 @@ CREATE TABLE `vehicles` (
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 KiB

After

Width:  |  Height:  |  Size: 198 KiB