-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path선진SQL.sql
55 lines (50 loc) · 6.54 KB
/
선진SQL.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
-- 일반 유저 회원가입
INSERT INTO `test_db`.`member` (`nick`, `area`, `email`,`pw`)
VALUES ('김선진', '서울 성북구 정릉동', '[email protected]', 'Jhk9458062!');
INSERT INTO `test_db`.`member_roles` (`member_nick`, `roles`)
VALUES ('김선진', 'ROLE_USER');
INSERT INTO `test_db`.`member` (`nick`, `area`, `email`,`pw`)
VALUES ('정다은', '서울 구로구 개봉동', '[email protected]', 'Jhk9458062!');
INSERT INTO `test_db`.`member_roles` (`member_nick`, `roles`)
VALUES ('정다은', 'ROLE_USER');
-- 공지사항 등록
INSERT INTO `test_db`.`notice` (`id`, `author`, `content`,`post_time`, `title`, `view_num`)
VALUES (1, 'admin', '공지사항1', '2022.08.13', '공지사항 내용1', 1);
INSERT INTO `test_db`.`notice` (`id`, `author`, `content`,`post_time`, `title`, `view_num`)
VALUES (2, 'admin', '공지사항2', '2022.09.14', '공지사항 내용2', 2);
INSERT INTO `test_db`.`notice` (`id`, `author`, `content`,`post_time`, `title`, `view_num`)
VALUES (3, 'admin', '공지사항3', '2022.10.15', '공지사항 내용3', 3);
-- 관리자계정 회원가입
INSERT INTO `test_db`.`member` (`nick`, `area`, `email`,`pw`)
VALUES ('admin', '서울 구로구 개봉동', '[email protected]', 'Jhk9458062!');
INSERT INTO `test_db`.`member_roles` (`member_nick`, `roles`)
VALUES ('admin', 'ROLE_USER');
-- 글 작성 편하게 사용자 이름쪽만 건드리면 test 가능
-- *주의: created_date는 DB에 영국시간(-9시간) 저장되어있어야함
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area` ,`lat`, `lon`)
VALUES (1, 'CHI', '2022-09-01 02:30:46', 5, 1, '중국음식 배달시간4 내용', '중국음식 배달시간4', '북악1', '2022-11-23T11:38', 0, '김선진', '서울 성북구 정릉동', 37.61507352547857,127.01321786964758 );
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area` ,`lat`, `lon`)
VALUES (2, 'KOR', '2022-09-02 02:31:46', 5, 1, '한국음식 배달시간3 내용', '한국음식 배달시간3', '북악2', '2022-11-27T11:35', 0, '김선진', '서울 성북구 정릉동', 37.61507352547857,127.01321786964758);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (3, 'JAP', '2022-09-03 02:32:46', 5, 1, '일본음식 배달시간2 내용', '일본음식 배달시간2', '북악3', '2022-11-25T11:38', 0, '김선진', '서울 성북구 정릉동', 37.61507352547857,127.01321786964758);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (4, 'KOR', '2022-07-27 02:33:46', 5, 1, '한국음식 배달시간1 내용', '한국음식 배달시간1', '북악4', '2022-09-23T11:35', 0, '김선진', '서울 성북구 정릉동', 37.61507352547857,127.01321786964758);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (5, 'KOR', '2022-07-27 02:33:46', 5, 1, '타인이 쓴 글 내용1', '타인이 쓴 글', '북악관', '2022-11-03T11:35', 0, '정다은', '서울 성북구 정릉동', 37.61507352547857,127.01321786964758);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (6, 'KOR', '2022-09-01 02:33:46', 5, 1, '타지역 한국음식 배달시간4 내용', '타지역 한국음식 배달시간4', '개봉1', '2022-11-30T11:35', 0, '정다은', '서울 구로구 개봉동', 37.49442709339608,126.85856370439684 );
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (7, 'CHI', '2022-09-02 02:33:46', 5, 1, '타지역 중국음식 배달시간2 내용', '타지역 중국음식 배달시간2', '개봉2', '2022-11-30T11:35', 0, '정다은', '서울 구로구 개봉동', 37.49442709339608,126.85856370439684);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (8, 'JAP', '2022-09-03 02:33:46', 5, 1, '타지역 일본음식 배달시간3 내용', '타지역 일본음식 배달시간3', '개봉3', '2022-11-30T11:35', 0, '정다은', '서울 구로구 개봉동', 37.49442709339608,126.85856370439684);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (9, 'KOR', '2022-09-14 18:33:46', 5, 1, '타지역 한국음식 배달시간1 내용', '타지역 한국음식 배달시간1', '개봉4', '2022-09-30T11:35', 0, '정다은', '서울 구로구 개봉동', 37.49442709339608,126.85856370439684);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (10, 'KOR', '2022-09-01 20:20:46', 5, 1, '타지역 한국음식 배달시간1 내용', '타지역 한국음식 배달시간1', '개봉4', '2022-10-15T11:35', 0, '정다은', '서울 구로구 개봉동', 37.49442709339608,126.85856370439684);
INSERT INTO `test_db`.`post` (`post_id`, `category`, `created_date`,`max_person_num`, `participant_num`, `post_content`, `post_name`, `take_loc`, `valid_time`, `view_num`, `member_nick`, `post_area`,`lat`, `lon`)
VALUES (11, 'KOR', '2022-09-01 20:37:46', 5, 1, '타지역 한국음식 배달시간1 내용', '타지역 한국음식 배달시간1', '개봉4', '2022-10-15T11:35', 0, '정다은', '서울 구로구 개봉동', 37.49442709339608,126.85856370439684);
-- 방 정보 등록
INSERT INTO `test_db`.`room_info` (`room_id`, `nick`, `post_id`)
VALUES (1, '김선진', 1);
INSERT INTO `test_db`.`room_info` (`room_id`, `nick`, `post_id`)
VALUES (2, '정다은', 1);