generated from pricelees/issue-pr-template
remove: 초기 데이터 삽입용 sql 제거 -> 코드로 삽입하도록 수정 예정
This commit is contained in:
parent
b986a20004
commit
9a38d8beb8
@ -1,68 +0,0 @@
|
||||
insert into times(start_at)
|
||||
values ('15:00');
|
||||
insert into times(start_at)
|
||||
values ('16:00');
|
||||
insert into times(start_at)
|
||||
values ('17:00');
|
||||
insert into times(start_at)
|
||||
values ('18:00');
|
||||
|
||||
insert into themes(name, description, thumbnail)
|
||||
values ('테스트1', '테스트중', 'https://i.pinimg.com/236x/6e/bc/46/6ebc461a94a49f9ea3b8bbe2204145d4.jpg');
|
||||
insert into themes(name, description, thumbnail)
|
||||
values ('테스트2', '테스트중', 'https://i.pinimg.com/236x/6e/bc/46/6ebc461a94a49f9ea3b8bbe2204145d4.jpg');
|
||||
insert into themes(name, description, thumbnail)
|
||||
values ('테스트3', '테스트중', 'https://i.pinimg.com/236x/6e/bc/46/6ebc461a94a49f9ea3b8bbe2204145d4.jpg');
|
||||
insert into themes(name, description, thumbnail)
|
||||
values ('테스트4', '테스트중', 'https://i.pinimg.com/236x/6e/bc/46/6ebc461a94a49f9ea3b8bbe2204145d4.jpg');
|
||||
|
||||
insert into members(name, email, password, role)
|
||||
values ('어드민', 'a@a.a', 'a', 'ADMIN');
|
||||
insert into members(name, email, password, role)
|
||||
values ('1호', '1@1.1', '1', 'MEMBER');
|
||||
insert into members(name, email, password, role)
|
||||
values ('2호', '2@2.2', '2', 'MEMBER');
|
||||
insert into members(name, email, password, role)
|
||||
values ('3호', '3@3.3', '3', 'MEMBER');
|
||||
insert into members(name, email, password, role)
|
||||
values ('4호', '4@4.4', '4', 'MEMBER');
|
||||
|
||||
-- 예약: 결제 완료
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (1, DATEADD('DAY', -1, CURRENT_DATE()) - 1, 1, 1, 'CONFIRMED');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (2, DATEADD('DAY', -2, CURRENT_DATE()) - 2, 3, 2, 'CONFIRMED');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (3, DATEADD('DAY', -3, CURRENT_DATE()), 2, 2, 'CONFIRMED');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (4, DATEADD('DAY', -4, CURRENT_DATE()), 1, 2, 'CONFIRMED');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (5, DATEADD('DAY', -5, CURRENT_DATE()), 1, 3, 'CONFIRMED');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (2, DATEADD('DAY', 7, CURRENT_DATE()), 2, 4, 'CONFIRMED');
|
||||
|
||||
-- 예약: 결제 대기
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (2, DATEADD('DAY', 8, CURRENT_DATE()), 2, 4, 'CONFIRMED_PAYMENT_REQUIRED');
|
||||
|
||||
-- 예약 대기
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (3, DATEADD('DAY', 7, CURRENT_DATE()), 2, 4, 'WAITING');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (4, DATEADD('DAY', 7, CURRENT_DATE()), 2, 4, 'WAITING');
|
||||
insert into reservations(member_id, date, time_id, theme_id, reservation_status)
|
||||
values (5, DATEADD('DAY', 7, CURRENT_DATE()), 2, 4, 'WAITING');
|
||||
|
||||
-- 결제 정보
|
||||
insert into payments(order_id, payment_key, total_amount, reservation_id, approved_at)
|
||||
values ('orderId-1', 'paymentKey-1', 10000, 1, CURRENT_DATE);
|
||||
insert into payments(order_id, payment_key, total_amount, reservation_id, approved_at)
|
||||
values ('orderId-2', 'paymentKey-2', 20000, 2, CURRENT_DATE);
|
||||
insert into payments(order_id, payment_key, total_amount, reservation_id, approved_at)
|
||||
values ('orderId-3', 'paymentKey-3', 30000, 3, CURRENT_DATE);
|
||||
insert into payments(order_id, payment_key, total_amount, reservation_id, approved_at)
|
||||
values ('orderId-4', 'paymentKey-4', 40000, 4, CURRENT_DATE);
|
||||
insert into payments(order_id, payment_key, total_amount, reservation_id, approved_at)
|
||||
values ('orderId-5', 'paymentKey-5', 50000, 5, CURRENT_DATE);
|
||||
insert into payments(order_id, payment_key, total_amount, reservation_id, approved_at)
|
||||
values ('orderId-6', 'paymentKey-6', 60000, 6, CURRENT_DATE);
|
||||
Loading…
x
Reference in New Issue
Block a user