0% found this document useful (0 votes)
30 views5 pages

App

This document is a SQL dump for a database named 'seoul_app', which includes the creation of three tables: 'bookmarks', 'users', and 'vacation_places'. It contains the structure of these tables, along with sample data insertion for each table. Additionally, it sets up primary keys, unique constraints, and foreign key relationships among the tables.

Uploaded by

hanindaaa03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views5 pages

App

This document is a SQL dump for a database named 'seoul_app', which includes the creation of three tables: 'bookmarks', 'users', and 'vacation_places'. It contains the structure of these tables, along with sample data insertion for each table. Additionally, it sets up primary keys, unique constraints, and foreign key relationships among the tables.

Uploaded by

hanindaaa03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

-- phpMyAdmin SQL Dump

-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 27, 2024 at 01:26 PM
-- Server version: 10.4.32-MariaDB
-- PHP Version: 8.0.30

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


START TRANSACTION;
SET time_zone = "+00:00";

--
-- Database: `seoul_app`
--
CREATE DATABASE IF NOT EXISTS `seoul_app` DEFAULT CHARACTER SET utf8mb4
COLLATE utf8mb4_general_ci;
USE `seoul_app`;

-- --------------------------------------------------------

--
-- Table structure for table `bookmarks`
--

DROP TABLE IF EXISTS `bookmarks`;


CREATE TABLE `bookmarks` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`place_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `bookmarks`
--

INSERT INTO `bookmarks` (`id`, `user_id`, `place_id`) VALUES


(1, 1, 1),
(2, 1, 2);

-- --------------------------------------------------------

--
-- Table structure for table `users`
--

DROP TABLE IF EXISTS `users`;


CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL DEFAULT 'user_given',
`email` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `users`
--

INSERT INTO `users` (`id`, `username`, `email`, `password`) VALUES


(1, 'nadhyra', '[email protected]', 'hci2024');

-- --------------------------------------------------------

--
-- Table structure for table `vacation_places`
--

DROP TABLE IF EXISTS `vacation_places`;


CREATE TABLE `vacation_places` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`category` text NOT NULL,
`href` varchar(255) NOT NULL,
`imgUrl` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

--
-- Dumping data for table `vacation_places`
--

INSERT INTO `vacation_places` (`id`, `name`, `description`, `category`, `href`, `imgUrl`)


VALUES
(1, 'National Museum of Korea', 'The largest and most popular museum in Korea', 'Museum',
'https://www.museum.go.kr/site/eng/home',
'https://res.cloudinary.com/rafirfansyah/image/upload/v1735128687/national_museum-_x9akif.jp
g'),
(2, 'Lotte World Adventure', 'A large theme park with both indoor and outdoor zones', 'Theme
Park', 'https://adventure.lotteworld.com/eng/main/index.do',
'https://res.cloudinary.com/rafirfansyah/image/upload/v1735130567/introCon_img0_m_e1zari.jp
g'),
(3, 'Seoul Sky Lotte World Tower', 'The world\'s sixth tallest building ', 'Observatory Deck',
'https://www.klook.com/en-US/activity/17678-lotte-world-sky-admission/?_currency=IDR&campa
ignid=21207454498&adgroupid=166898373088&targetid=kwd-319782981316&matchtype=e&d
evice=c&creative=696960760767&extensionid=&keyword=seoul%20sky%20lotte%20world%20
tower', 'https://res.cloudinary.com/rafirfansyah/image/upload/v1735132033/le-sky_ljzpxd.jpg'),
(4, 'Seoul Botanic Park', 'Introduce native plants and horticulture of 12 different cities from
around the world', 'Parks and Garden', 'https://botanicpark.seoul.go.kr/eng/introduce/useInfo.do',
'https://res.cloudinary.com/rafirfansyah/image/upload/v1735133218/photo3jpg_ap0046.jpg'),
(5, 'Seoul Zoo', 'Houses a wide variety of animals living on the earth, protect and manage
animals', 'Zoos and Aquariums',
'https://www.klook.com/en-US/activity/6598-seoul-zoo-sky-lift-elephant-train-combo-ticket-gyeon
ggi-do/?_currency=IDR&campaignid=21196752939&adgroupid=164012609209&targetid=kwd-3
43587718531&matchtype=e&device=c&creative=696960855993&extensionid=&keyword=seo',
'https://res.cloudinary.com/rafirfansyah/image/upload/v1735133420/20150203_EC_84_9C_EC_
9A_B8_EB_8C_80_EA_B3_B5_EC_9B_90183_lmm3tf.jpg'),
(6, 'Seoul\'s Children Grand Park', 'A theme park situated among green forests and fields',
'Theme Park', 'https://www.sisul.or.kr/global/main/en/sub/park.jsp',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299288/childrens-grand-park-11_ecds
h9.jpg'),
(7, 'Kidzania Seoul', 'Work-experience theme park where kids can try working in real-life jobs',
'Theme Park', 'https://www.kidzania.co.kr/home.do?srcLocalDiv=001&srcLocale=en',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299307/seoul_kidzania_osupib.jpg'),
(8, 'N Seoul Tower', 'A landmark of Seoul. Best place to enjoy the view of entire city of Seoul',
'Observatory Deck', 'https://www.nseoultower.co.kr/eng/visit/use2.asp',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299335/n_seoul_tower_imfczo.jpg'),
(9, 'The National Folk Museum of Korea', 'Displays historical artifacts from Korean daily life in
the past', 'Museum', 'https://www.nfm.go.kr/english/index.do',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299390/the_national_folk_museum_of
_korea_tweary.jpg'),
(10, 'Seoul Museum of History', 'Covers everything about Seoul\'s history and culture, focusing
especially on the Joseon era ', 'Museum', 'https://museum.seoul.go.kr/eng/index.do',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299403/seoul_museum_of_history_jkh
urm.jpg'),
(11, 'Seoul Grand Park', 'Facilities at Seoul Grand Park include hills and hiking trails', 'Parks and
Garden', 'https://grandpark.seoul.go.kr/main/en.do',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299416/seoul_grand_park_2_ooayfb.j
pg'),
(12, 'Namsan Park', 'Located at the base of Namsan Mountain in the heart of Seoul, the largest
civic park in Seoul', 'Parks and Garden',
'https://english.visitseoul.net/area/NamsanPark/ENP003631',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299431/namsan_park_i7lkac.jpg'),
(13, 'Coex Aquarium', 'Has 40,000 sea creatures of 650 different species, exhibited in 16
themed zones', 'Zoos and Aquariums', 'https://www.coexaqua.com/en/',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299455/coex_aquarium_egzvi1.jpg'),
(14, 'Lotte World Aquarium', 'Exhibits a total 55,000 marine life of 650 species with the largest
inhabitation water tank', 'Zoos and Aquariums',
'https://www.lotteworld.com/aquarium/en/index.asp',
'https://res.cloudinary.com/dv1gjixyq/image/upload/v1735299465/lotte_world_aquarium_cdfoxr.j
pg');

--
-- Indexes for dumped tables
--

--
-- Indexes for table `bookmarks`
--
ALTER TABLE `bookmarks`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `user_id` (`user_id`,`place_id`),
ADD KEY `place_id` (`place_id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);

--
-- Indexes for table `vacation_places`
--
ALTER TABLE `vacation_places`
ADD PRIMARY KEY (`id`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `bookmarks`
--
ALTER TABLE `bookmarks`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;

--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;

--
-- AUTO_INCREMENT for table `vacation_places`
--
ALTER TABLE `vacation_places`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;

--
-- Constraints for dumped tables
--

--
-- Constraints for table `bookmarks`
--
ALTER TABLE `bookmarks`
ADD CONSTRAINT `bookmarks_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users`
(`id`),
ADD CONSTRAINT `bookmarks_ibfk_2` FOREIGN KEY (`place_id`) REFERENCES
`vacation_places` (`id`);
COMMIT;

You might also like