Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- phpMyAdmin SQL Dump
- -- version 4.5.1
- -- http://www.phpmyadmin.net
- --
- -- Host: 127.0.0.1
- -- Czas generowania: 03 Sty 2016, 14:09
- -- Wersja serwera: 10.1.8-MariaDB
- -- Wersja PHP: 5.5.30
- SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
- SET time_zone = "+00:00";
- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
- /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
- /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
- /*!40101 SET NAMES utf8mb4 */;
- --
- -- Baza danych: `anton`
- --
- -- --------------------------------------------------------
- --
- -- Struktura tabeli dla tabeli `comment`
- --
- CREATE TABLE `comment` (
- `id` int(11) NOT NULL,
- `post_date` date NOT NULL,
- `comment` varchar(150) NOT NULL,
- `post_acceptance` tinyint(1) NOT NULL,
- `user_unique_id_fk` varchar(23) NOT NULL,
- `recipe_unique_id_fk` varchar(23) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin2;
- --
- -- Zrzut danych tabeli `comment`
- --
- INSERT INTO `comment` (`id`, `post_date`, `comment`, `post_acceptance`, `user_unique_id_fk`, `recipe_unique_id_fk`) VALUES
- (2, '2015-12-31', 'dsadasdasdasd', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (3, '2015-12-31', 'hfghf', 1, '565098d918f160.94675930', '565100c869b006.45533683'),
- (4, '2016-01-01', 'Bardzo fajny przepis. Polecam!', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (5, '2016-01-01', 'super przepis', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (6, '2016-01-01', 'xx', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (7, '2016-01-02', 'hffgvc', 1, '565098d918f160.94675930', '565903c0b1d609.67930726'),
- (8, '2016-01-02', 'jfsf', 1, '565098d918f160.94675930', '565903c0b1d609.67930726'),
- (9, '2016-01-02', 'hfbf', 1, '565098d918f160.94675930', '565100c869b006.45533683'),
- (10, '2016-01-02', 'xxx', 1, '565098d918f160.94675930', '565100c869b006.45533683'),
- (11, '2016-01-02', 'gsgggsgsgssgsgsggsgsgsgsgshshgsgsgsggshgggsg', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (12, '2016-01-02', 'haha', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (13, '2016-01-02', 'bede', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (14, '2016-01-02', 'gg', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (15, '2016-01-02', 'hfbff', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (16, '2016-01-02', 'bfg', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (17, '2016-01-02', 'gjgg', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (18, '2016-01-02', 'fbf', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (19, '2016-01-02', 'gf', 1, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (20, '2016-01-03', 'Allahu Akbar', 1, '565098d918f160.94675930', '565100c869b006.45533683');
- -- --------------------------------------------------------
- --
- -- Struktura tabeli dla tabeli `favourite`
- --
- CREATE TABLE `favourite` (
- `id` int(11) NOT NULL,
- `user_unique_id_fk` varchar(23) NOT NULL,
- `recipe_unique_id_fk` varchar(23) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin2;
- --
- -- Zrzut danych tabeli `favourite`
- --
- INSERT INTO `favourite` (`id`, `user_unique_id_fk`, `recipe_unique_id_fk`) VALUES
- (4, '5650992a961c33.98254196', '565100c869b006.45533683'),
- (5, '5650992a961c33.98254196', '5650f91875c1a9.95031530'),
- (6, '5650992a961c33.98254196', '5651002e647645.64608919'),
- (34, '565096811c0b51.08471830', '5659039745f9a0.99776702'),
- (35, '565096811c0b51.08471830', '5650f91875c1a9.95031530'),
- (41, '565e6975c401a6.87190339', '565100c869b006.45533683'),
- (46, '5665c5bfba9b73.65186397', '5659039745f9a0.99776702'),
- (47, '5665c5bfba9b73.65186397', '565903a4c5af40.87636990'),
- (174, '565098d918f160.94675930', '565903a4c5af40.87636990'),
- (179, '565098d918f160.94675930', '5651002e647645.64608919'),
- (180, '565098d918f160.94675930', '565903b955ee43.70286640'),
- (181, '565098d918f160.94675930', '565903bd9b8831.00821230'),
- (182, '565098d918f160.94675930', '5659039745f9a0.99776702'),
- (183, '565098d918f160.94675930', '5659038a7bea68.87391922'),
- (184, '565098d918f160.94675930', '565903ad6bbca3.61401243'),
- (185, '565098d918f160.94675930', '565903cdbf4740.55243798'),
- (187, '565098d918f160.94675930', '565903a1a9de08.61137985'),
- (189, '565098d918f160.94675930', '565903c70b1a76.71328189'),
- (192, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (193, '565098d918f160.94675930', '565100c869b006.45533683'),
- (194, '565098d918f160.94675930', '565903c3eed152.13024639');
- -- --------------------------------------------------------
- --
- -- Struktura tabeli dla tabeli `like`
- --
- CREATE TABLE `like` (
- `id` int(11) NOT NULL,
- `user_unique_id_fk` varchar(23) NOT NULL,
- `recipe_unique_id_fk` varchar(23) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin2;
- --
- -- Zrzut danych tabeli `like`
- --
- INSERT INTO `like` (`id`, `user_unique_id_fk`, `recipe_unique_id_fk`) VALUES
- (54, '565098d918f160.94675930', '5659038a7bea68.87391922'),
- (58, '565098d918f160.94675930', '565903ad6bbca3.61401243'),
- (62, '565098d918f160.94675930', '565903c0b1d609.67930726'),
- (65, '565098d918f160.94675930', '5659034a2640d4.19998333'),
- (67, '565098d918f160.94675930', '5650f91875c1a9.95031530'),
- (68, '565098d918f160.94675930', '565100c869b006.45533683');
- -- --------------------------------------------------------
- --
- -- Struktura tabeli dla tabeli `recipe`
- --
- CREATE TABLE `recipe` (
- `unique_id` varchar(23) NOT NULL,
- `title` varchar(100) NOT NULL,
- `description` varchar(500) NOT NULL,
- `prep_time` varchar(50) DEFAULT NULL,
- `people_count` int(11) DEFAULT NULL,
- `img_tumbnail_link` varchar(100) NOT NULL,
- `add_date` date NOT NULL,
- `acceptance` tinyint(1) NOT NULL,
- `kitchen_type` varchar(20) NOT NULL,
- `meal_type` varchar(30) NOT NULL,
- `difficulty_lvl` varchar(10) NOT NULL,
- `user_unique_id_fk` varchar(23) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin2;
- --
- -- Zrzut danych tabeli `recipe`
- --
- INSERT INTO `recipe` (`unique_id`, `title`, `description`, `prep_time`, `people_count`, `img_tumbnail_link`, `add_date`, `acceptance`, `kitchen_type`, `meal_type`, `difficulty_lvl`, `user_unique_id_fk`) VALUES
- ('5650f91875c1a9.95031530', 'Szarlotka', '<i>Opis sposobu wykonania Szarlotki</i><br /><b>gagsag,</b>', 'Około 20 minut', 3, 'http://anton869.linuxpl.eu/recipe_images/szarlotka_z_jablkiem.jpg', '2015-04-22', 1, 'Polska', 'Ciasta', 'łatwy', '565098d918f160.94675930'),
- ('5651002e647645.64608919', 'Kotlet mielony po Polsku', 'Opis sposobu wykonania kotleta mielonego', 'W granicach 40 minut', 2, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-09-12', 1, 'Polska', 'Dania mięsne', 'łatwy', '5650992a961c33.98254196'),
- ('565100c869b006.45533683', 'Naleśniki z serem', 'Opis sposobu wykonania nalesników z serem', 'Ok. 30 minut', 2, 'http://anton869.linuxpl.eu/recipe_images/nalesniki_z_serem.jpg', '2015-10-11', 1, 'Francuska', 'Naleśniki', 'średni', '565098d918f160.94675930'),
- ('56590342952536.67184802', 'Azot1', 'Ciekły azot1', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-11-22', 1, 'Turecka', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('5659034a2640d4.19998333', 'Azot2', 'Ciekły azot2', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2013-11-22', 1, 'Polska', 'Dania mięsne', 'łatwy', '565098d918f160.94675930'),
- ('56590383d343a3.81845640', 'Azot3', 'Ciekły azot3', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-12-11', 1, 'Hiszpańska', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('5659038a7bea68.87391922', 'Azot4', 'Ciekły azot4', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-10-01', 1, 'Grecka', 'Ciasta', 'trudny', '565098d918f160.94675930'),
- ('5659038de528a7.32836467', 'Azot5', 'Ciekły azot5', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2013-10-23', 1, 'Francuska', 'Naleśniki', 'średni', '565098d918f160.94675930'),
- ('56590391c66af6.76268516', 'Azot6', 'Ciekły azot6', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-07-22', 1, 'Turecka', 'Ciasta', 'łatwy', '565098d918f160.94675930'),
- ('5659039745f9a0.99776702', 'Azot7', 'Ciekły azot7', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-11-22', 1, 'Grecka', 'Dania mięsne', 'średni', '565098d918f160.94675930'),
- ('5659039ae3f310.39380309', 'Azot8', 'Ciekły azot8', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-08-22', 1, 'Turecka', 'Ciasta', 'trudny', '565098d918f160.94675930'),
- ('5659039e640833.40311578', 'Azot9', 'Ciekły azot9', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-07-23', 1, 'Polska', 'Dania mięsne', 'średni', '565098d918f160.94675930'),
- ('565903a1a9de08.61137985', 'Azot10', 'Ciekły azot10', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-08-22', 1, 'Grecka', 'Ciasta', 'łatwy', '565098d918f160.94675930'),
- ('565903a4c5af40.87636990', 'Azot11', 'Ciekły azot11', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-10-23', 1, 'Francuska', 'Naleśniki', 'trudny', '565098d918f160.94675930'),
- ('565903a89bad53.01475570', 'Azot12', 'Ciekły azot12', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-07-22', 1, 'Polska', 'Ciasta', 'łatwy', '565098d918f160.94675930'),
- ('565903ad6bbca3.61401243', 'Azot13', 'Ciekły azot13', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-09-22', 1, 'Grecka', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903b19e2017.48489080', 'Azot14', 'Ciekły azot14', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-05-22', 1, 'Hiszpańska', 'Dania mięsne', 'trudny', '565098d918f160.94675930'),
- ('565903b5d67bf2.91220662', 'Azot15', 'Ciekły azot15', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2013-06-17', 1, 'Grecka', 'Ciasta', 'łatwy', '565098d918f160.94675930'),
- ('565903b955ee43.70286640', 'Azot16', 'Ciekły azot16', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-09-17', 1, 'Hiszpańska', 'Naleśniki', 'średni', '565098d918f160.94675930'),
- ('565903bd9b8831.00821230', 'Azot17', 'Ciekły azot17', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-10-18', 1, 'Polska', 'Ciasta', 'trudny', '565098d918f160.94675930'),
- ('565903c0b1d609.67930726', 'Azot18', 'Ciekły azot18', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-01-22', 1, 'Francuska', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903c3eed152.13024639', 'Azot19', 'Ciekły azot19', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2014-09-21', 1, 'Grecka', 'Naleśniki', 'średni', '565098d918f160.94675930'),
- ('565903c70b1a76.71328189', 'Azot20', 'Ciekły azot20', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '2015-04-23', 1, 'Polska', 'Dania mięsne', 'łatwy', '565098d918f160.94675930'),
- ('565903ca9fb985.19186296', 'Azot21', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'Turecka', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903cdbf4740.55243798', 'Azot22', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'Chińska', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903d20d7b07.95192289', 'Azot23', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'ZSRR', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903d5afc065.70421031', 'Azot24', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'ZSRR', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903d9529b42.62680267', 'Azot25', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'ZSRR', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903dca89d94.40517960', 'Azot26', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'ZSRR', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903e256a963.07320723', 'Azot27', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'ZSRR', 'Ciasta', 'średni', '565098d918f160.94675930'),
- ('565903e5e4fdd9.48834351', 'Azot28', 'Ciekły azot', '24h na dobe', 3, 'http://anton869.linuxpl.eu/recipe_images/kotlet_mielony_po_polsku.jpg', '1999-11-22', 1, 'ZSRR', 'Ciasta', 'średni', '565098d918f160.94675930');
- -- --------------------------------------------------------
- --
- -- Struktura tabeli dla tabeli `user`
- --
- CREATE TABLE `user` (
- `unique_id` varchar(23) NOT NULL,
- `email` varchar(100) NOT NULL,
- `encrypted_password` varchar(255) NOT NULL,
- `name` varchar(50) NOT NULL,
- `surname` varchar(50) NOT NULL,
- `created_at` datetime NOT NULL,
- `updated_at` datetime DEFAULT NULL,
- `super_privilage` tinyint(1) NOT NULL
- ) ENGINE=InnoDB DEFAULT CHARSET=latin2;
- --
- -- Zrzut danych tabeli `user`
- --
- INSERT INTO `user` (`unique_id`, `email`, `encrypted_password`, `name`, `surname`, `created_at`, `updated_at`, `super_privilage`) VALUES
- ('565096811c0b51.08471830', 'sss.sss@ss.ss', '$2y$10$FOkk7uysa.uFz5ob6Nq/D.Cwoh6IYnH/GrjA/0ZFUarIpyr7PMpuW', 'Aaa', 'Bbb', '2015-11-21 17:06:25', NULL, 1),
- ('565098d918f160.94675930', 't4underbolt@gmail.com', '$2y$10$rNeEgKGDbrf9RtMw3Zsb6uls/GOJbi/ZYwn3n7MQVqDLDJ94gWjXq', 'Beniamin', 'Abramowicz', '2015-11-21 17:16:25', '2015-12-24 16:13:34', 1),
- ('5650992a961c33.98254196', 'mateusz.antoniewski@gmail.com', '$2y$10$gjdoeKt0K5K0huxyFB9vA.s2fq3eitTkB48XcpU3kncBPPoO4DRZC', 'Mateusz', 'Antoniewski', '2015-11-21 17:17:46', NULL, 1),
- ('565cbfcadcde80.16308618', 'ccc.ddd@wp.pl', '$2y$10$BAoj82WTY.WKaytmTepIq.iogkMPeqDnX9cbHpM0EelrwxIFYfdMK', 'Ccc', 'Ddd', '2015-11-30 22:29:46', NULL, 1),
- ('565cc2402624c5.77851599', 'xxx.xxx@xxx.com', '$2y$10$qiuafewpGb8jLZ4AscUegec31fP/KjkCj3H1/b1dLWf0vmem/iT8K', 'Xxx', 'Xxx', '2015-11-30 22:40:16', NULL, 1),
- ('565d7240ee0411.33245447', 'hhddrvi@wpppp.pl', '$2y$10$TRafBtAFiCN.oXRazLsw.Ofmt8TCB.tV2yvz.JxSmJ1U3UC1Ap09O', 'Yyhgiyfc', 'Dygfjdd', '2015-12-01 11:11:13', NULL, 1),
- ('565e6975c401a6.87190339', 'anton86993@o2.pl', '$2y$10$/ws6oBgK4LwBpsYG7bfyouZCq6QDmYZB45in8rpPoSfN.YmW3OwFa', 'Mateusz', 'Antoniewski', '2015-12-02 04:45:57', '2015-12-04 02:55:19', 1),
- ('5664d7ca5f5f81.99983199', 'andrzej.golota@gmail.com', '$2y$10$g.QqUgOQaKpd83w9kAZ/Y./ADaM5Vo8beCEoThnAPc9ou2FV1Ipq6', 'Andrzej', 'Golota', '2015-12-07 01:50:18', '2015-12-07 01:52:25', 1),
- ('5665c5bfba9b73.65186397', 'beni60@wp.pl', '$2y$10$vNvmWzu1lVnVhDsWEGMo.O4L24d1j2JJliQ6zMqGO9n78LidR54eW', 'Twojastara', 'Zapierdala', '2015-12-07 18:45:35', NULL, 1),
- ('567604a6563d28.34282525', 'gxghg@hfhgf.pk', '$2y$10$fUOc7Cv0NYwzPU7zIiRhn.k9bMIfNPYvPWoWfRwUn.nd1pOiGZu2.', 'Hgfg', 'Hgmghh', '2015-12-20 02:30:14', NULL, 1),
- ('567987d8a9d046.39292655', 'gdgvdd@bfgh.jf', '$2y$10$.US4rQ6Ak5jXvrNucCRtKO30ygg8H8CPzs1zhx2tBYM9thBL.Sq9G', 'Cxx', 'Xcccxgdtff', '2015-12-22 18:26:48', NULL, 1),
- ('567b0dbae0fce6.99244236', 'dfht@bfg.kh', '$2y$10$WlPqVw/UZmUDQBBeCFeDfuCGjPVNQG5/pyez9JyTPGePZT78Mo6lG', 'Hfgh', 'Gdhh', '2015-12-23 22:10:18', NULL, 1),
- ('567b0e2d3b9f02.62038194', 'vfhvxf@vfg.hc', '$2y$10$4Jm2NuGUvM3ALuMRrD7tC.bicDXefePr6QrdU8amzvDjbSKqzkn4W', 'Ghhfs', 'Gscv', '2015-12-23 22:12:13', NULL, 1),
- ('568543adc913c3.53699324', 'vvvv.gfg@gf.jd', '$2y$10$Hd4e2A0i09JIRipAff8.Z.cV9pKbCraGiRzwiUnalU9gSz6glhnAu', 'Bvvvv', 'Vvvvb', '2015-12-31 16:03:09', NULL, 1);
- --
- -- Indeksy dla zrzutĂłw tabel
- --
- --
- -- Indexes for table `comment`
- --
- ALTER TABLE `comment`
- ADD PRIMARY KEY (`id`),
- ADD KEY `user_comment_unique_id_idx` (`user_unique_id_fk`),
- ADD KEY `recipe_comment_unique_id_idx` (`recipe_unique_id_fk`);
- --
- -- Indexes for table `favourite`
- --
- ALTER TABLE `favourite`
- ADD PRIMARY KEY (`id`),
- ADD KEY `user_favourite_unique_id_idx` (`user_unique_id_fk`),
- ADD KEY `recipe_favourite_unique_id_idx` (`recipe_unique_id_fk`);
- --
- -- Indexes for table `like`
- --
- ALTER TABLE `like`
- ADD PRIMARY KEY (`id`),
- ADD KEY `user_like_unique_id_idx` (`user_unique_id_fk`),
- ADD KEY `recipe_like_unique_id_idx` (`recipe_unique_id_fk`);
- --
- -- Indexes for table `recipe`
- --
- ALTER TABLE `recipe`
- ADD PRIMARY KEY (`unique_id`),
- ADD UNIQUE KEY `unique_id_UNIQUE` (`unique_id`);
- --
- -- Indexes for table `user`
- --
- ALTER TABLE `user`
- ADD PRIMARY KEY (`unique_id`),
- ADD UNIQUE KEY `unique_id_UNIQUE` (`unique_id`);
- --
- -- AUTO_INCREMENT for dumped tables
- --
- --
- -- AUTO_INCREMENT dla tabeli `comment`
- --
- ALTER TABLE `comment`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
- --
- -- AUTO_INCREMENT dla tabeli `favourite`
- --
- ALTER TABLE `favourite`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=195;
- --
- -- AUTO_INCREMENT dla tabeli `like`
- --
- ALTER TABLE `like`
- MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=69;
- --
- -- Ograniczenia dla zrzutĂłw tabel
- --
- --
- -- Ograniczenia dla tabeli `comment`
- --
- ALTER TABLE `comment`
- ADD CONSTRAINT `recipe_comment_unique_id` FOREIGN KEY (`recipe_unique_id_fk`) REFERENCES `recipe` (`unique_id`) ON DELETE CASCADE ON UPDATE CASCADE,
- ADD CONSTRAINT `user_comment_unique_id` FOREIGN KEY (`user_unique_id_fk`) REFERENCES `user` (`unique_id`) ON DELETE CASCADE ON UPDATE CASCADE;
- --
- -- Ograniczenia dla tabeli `favourite`
- --
- ALTER TABLE `favourite`
- ADD CONSTRAINT `recipe_favourite_unique_id` FOREIGN KEY (`recipe_unique_id_fk`) REFERENCES `recipe` (`unique_id`) ON DELETE CASCADE ON UPDATE CASCADE,
- ADD CONSTRAINT `user_favourite_unique_id` FOREIGN KEY (`user_unique_id_fk`) REFERENCES `user` (`unique_id`) ON DELETE CASCADE ON UPDATE CASCADE;
- --
- -- Ograniczenia dla tabeli `like`
- --
- ALTER TABLE `like`
- ADD CONSTRAINT `recipe_like_unique_id` FOREIGN KEY (`recipe_unique_id_fk`) REFERENCES `recipe` (`unique_id`) ON DELETE CASCADE ON UPDATE CASCADE,
- ADD CONSTRAINT `user_like_unique_id` FOREIGN KEY (`user_unique_id_fk`) REFERENCES `user` (`unique_id`) ON DELETE CASCADE ON UPDATE CASCADE;
- /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
- /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
- /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement