Show sourcecode
The following files exists in this folder. Click to view.
min_databas_database.sql
min_databas_extra.sql
min_databas_table_cars.sql
min_databas_table_garage.sql
min_databas_table_kompisar.sql
min_databas_table_owners.sql
min_databas_table_pdodemotable.sql
min_databas_table_users.sql
min_databas_extra.sql
96 lines ASCII Unix (LF)
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cars`
--
ALTER TABLE `cars`
ADD PRIMARY KEY (`car_id`),
ADD KEY `Garage_id to garage` (`garage`),
ADD KEY `Owner_id to owner` (`owner`);
--
-- Indexes for table `garage`
--
ALTER TABLE `garage`
ADD PRIMARY KEY (`garage_id`);
--
-- Indexes for table `kompisar`
--
ALTER TABLE `kompisar`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`),
ADD KEY `id_2` (`id`);
--
-- Indexes for table `owners`
--
ALTER TABLE `owners`
ADD PRIMARY KEY (`owner_id`);
--
-- Indexes for table `pdodemotable`
--
ALTER TABLE `pdodemotable`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cars`
--
ALTER TABLE `cars`
MODIFY `car_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `garage`
--
ALTER TABLE `garage`
MODIFY `garage_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `kompisar`
--
ALTER TABLE `kompisar`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `owners`
--
ALTER TABLE `owners`
MODIFY `owner_id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `pdodemotable`
--
ALTER TABLE `pdodemotable`
MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `cars`
--
ALTER TABLE `cars`
ADD CONSTRAINT `Garage_id to garage` FOREIGN KEY (`garage`) REFERENCES `garage` (`garage_id`) ON DELETE RESTRICT ON UPDATE RESTRICT,
ADD CONSTRAINT `Owner_id to owner` FOREIGN KEY (`owner`) REFERENCES `owners` (`owner_id`) ON DELETE RESTRICT ON UPDATE RESTRICT;