Skip to content

Commit

Permalink
Merge branch 'test' into suyeon
Browse files Browse the repository at this point in the history
  • Loading branch information
ibaesuyeon committed Dec 7, 2023
2 parents 64c8a2e + 803bd78 commit 4b1844e
Showing 1 changed file with 140 additions and 140 deletions.
280 changes: 140 additions & 140 deletions ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ VALUES ('id1', '김철수', '회사원', '01012345678', '1997-11-19', '남', '
('id7', '김바사', '프리랜서', '01078912345', '1997-11-19', '', '서울특별시 서대문구 거북골로 78', null, 'CUSTOMER'),
('id8', '김사아', '자영업자', '01089123456', '1997-11-09', '', '서울특별시 서대문구 거북골로 89', null, 'CUSTOMER'),
('id9', '김아자', '예술가', '01091234567', '1997-11-19', '', '서울특별시 서대문구 거북골로 90', null, 'CUSTOMER'),
('id10', '김자차', '자영업자', '01013243546', '1999-03-23', '', '서울특별시 서대문구 거북골로 91', null, 'CUSTOMER'),
('a', '어드민', '회사원', 010123443210, '1999-11-11', '', 'S1350', '$2a$10$h9SLWISUWnSAQaD7OkwFQubuUU8WwDYEQOdWQgDguRRE5jjFV759u', 'ADMIN');
('a', '어드민', '회사원', 010123443210, '1999-11-11', '', 'S1350', '$2a$10$h9SLWISUWnSAQaD7OkwFQubuUU8WwDYEQOdWQgDguRRE5jjFV759u', 'ADMIN'),
('id10', '김자차', '자영업자', '01013243546', '1999-03-23', '', '서울특별시 서대문구 거북골로 91', null, 'CUSTOMER');

INSERT INTO Contract (insuranceID, insurancePeriod, premium, paymentCycle, paymentPeriod, maxCompensation, dateOfSubscription, dateOfMaturity, maturity, resurrection, cancellation, customerID)
VALUES
Expand All @@ -253,18 +253,18 @@ VALUES
(1, '10년', 200000, 'QUARTERLY_PAYMENT', '36개월', 3000000, '2019-08-29', '2024-03-23', 1, 1, 0, 3),
(2, '10년', 100000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2019-03-29', '2024-03-23', 1, 0, 0, 4),
(1, '10년', 200000, 'QUARTERLY_PAYMENT', '36개월', 3000000, '2019-02-22', '2024-03-23', 0, 1, 0, 5),
(1, '10년', 200000, 'QUARTERLY_PAYMENT', '36개월', 3000000, '2008-02-22', '2018-02-22', 1, 1, 1, 10),
(2, '10년', 100000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2009-03-23', '2019-03-23', 1, 1, 1, 10),
(3, '5년', 500000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2010-02-22', '2015-02-22', 1, 1, 1, 10),
(9, '1년', 300000, 'QUARTERLY_PAYMENT', '36개월', 20000000, '2019-02-22', '2020-02-22', 1, 1, 0, 10),
(13, '1년', 120000, 'MONTHLY_PAYMENT', '12개월', 5000000, '2020-06-07', '2021-06-07', 1, 1, 0, 10),
(14, '3년', 50000, 'MONTHLY_PAYMENT', '12개월', 1000000, '2020-05-19', '2023-05-19', 1, 1, 0, 10),
(11, '15년', 800000, 'QUARTERLY_PAYMENT', '36개월', 200000000, '2022-04-30', '2037-04-30', 0, 0, 0, 10),
(18, '평생', 1500000, 'QUARTERLY_PAYMENT', '36개월', 800000000, '2019-02-22', '2099-12-31', 0, 0, 0, 10),
(8, '5년', 80000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2019-08-02', '2024-08-02', 0, 0, 0, 10),
(10, '8년', 3000000, 'QUARTERLY_PAYMENT', '36개월', 200000000, '2020-09-30', '2028-09-30', 0, 0, 1, 10),
(12, '평생', 2000000, 'QUARTERLY_PAYMENT', '36개월', 1000000000, '2023-12-06', '2099-12-31', 0, 0, 1, 10),
(19, '2년', 180000, 'MONTHLY_PAYMENT', '12개월', 15000000, '2023-12-06', '2025-12-06', 0, 0, 1, 10);
(1, '10년', 200000, 'QUARTERLY_PAYMENT', '36개월', 3000000, '2008-02-22', '2018-02-22', 1, 1, 1, 11),
(2, '10년', 100000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2009-03-23', '2019-03-23', 1, 1, 1, 11),
(3, '5년', 500000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2010-02-22', '2015-02-22', 1, 1, 1, 11),
(9, '1년', 300000, 'QUARTERLY_PAYMENT', '36개월', 20000000, '2019-02-22', '2020-02-22', 1, 1, 0, 11),
(13, '1년', 120000, 'MONTHLY_PAYMENT', '12개월', 5000000, '2020-06-07', '2021-06-07', 1, 1, 0, 11),
(14, '3년', 50000, 'MONTHLY_PAYMENT', '12개월', 1000000, '2020-05-19', '2023-05-19', 1, 1, 0, 11),
(11, '15년', 800000, 'QUARTERLY_PAYMENT', '36개월', 200000000, '2022-04-30', '2037-04-30', 0, 0, 0, 11),
(18, '평생', 1500000, 'QUARTERLY_PAYMENT', '36개월', 800000000, '2019-02-22', '2099-12-31', 0, 0, 0, 11),
(8, '5년', 80000, 'MONTHLY_PAYMENT', '12개월', 3000000, '2019-08-02', '2024-08-02', 0, 0, 0, 11),
(10, '8년', 3000000, 'QUARTERLY_PAYMENT', '36개월', 200000000, '2020-09-30', '2028-09-30', 0, 0, 1, 11),
(12, '평생', 2000000, 'QUARTERLY_PAYMENT', '36개월', 1000000000, '2023-12-06', '2099-12-31', 0, 0, 1, 11),
(19, '2년', 180000, 'MONTHLY_PAYMENT', '12개월', 15000000, '2023-12-06', '2025-12-06', 0, 0, 1, 11);

INSERT INTO Payment (customerID, insuranceID, ContractID, dateOfPayment, whetherPayment)
VALUES
Expand All @@ -275,132 +275,132 @@ VALUES
(3, 1, 12, '2023-05-29', 1),
(4, 3, 5, '2023-05-29', 1),
(5, 2, 6, '2023-05-28', 0),
(10, 1, 15, '2008-02-22', 1),
(10, 1, 15, '2008-06-22', 1),
(10, 1, 15, '2008-10-22', 1),
(10, 1, 15, '2009-02-22', 1),
(10, 1, 15, '2009-06-22', 1),
(10, 1, 15, '2009-10-22', 1),
(10, 1, 15, '2010-02-22', 1),
(10, 1, 15, '2010-06-22', 1),
(10, 1, 15, '2010-10-22', 1),
(10, 2, 16, '2009-03-23', 1),
(10, 2, 16, '2009-04-23', 1),
(10, 2, 16, '2009-05-23', 1),
(10, 2, 16, '2009-06-23', 1),
(10, 2, 16, '2009-07-23', 1),
(10, 2, 16, '2009-08-23', 1),
(10, 2, 16, '2009-09-23', 1),
(10, 2, 16, '2009-10-23', 1),
(10, 2, 16, '2009-11-23', 1),
(10, 2, 16, '2009-12-23', 1),
(10, 2, 16, '2010-01-23', 1),
(10, 2, 16, '2010-02-23', 1),
(10, 3, 17, '2010-02-22', 1),
(10, 3, 17, '2010-03-22', 1),
(10, 3, 17, '2010-04-22', 1),
(10, 3, 17, '2010-05-22', 1),
(10, 3, 17, '2010-06-22', 1),
(10, 3, 17, '2010-07-22', 1),
(10, 3, 17, '2010-08-22', 1),
(10, 3, 17, '2010-09-22', 1),
(10, 3, 17, '2010-10-22', 1),
(10, 3, 17, '2010-11-22', 1),
(10, 3, 17, '2010-12-22', 1),
(10, 3, 17, '2011-01-22', 1),
(10, 9, 18, '2019-02-22', 1),
(10, 9, 18, '2019-06-22', 1),
(10, 9, 18, '2019-10-22', 1),
(10, 9, 18, '2020-02-22', 1),
(10, 9, 18, '2020-06-22', 1),
(10, 9, 18, '2020-10-22', 1),
(10, 9, 18, '2021-02-22', 1),
(10, 9, 18, '2021-06-22', 1),
(10, 9, 18, '2021-10-22', 1),
(10, 13, 19, '2020-06-07', 1),
(10, 13, 19, '2020-07-07', 1),
(10, 13, 19, '2020-08-07', 1),
(10, 13, 19, '2020-09-07', 1),
(10, 13, 19, '2020-10-07', 1),
(10, 13, 19, '2020-11-07', 1),
(10, 13, 19, '2020-12-07', 1),
(10, 13, 19, '2021-01-07', 1),
(10, 13, 19, '2021-02-07', 1),
(10, 13, 19, '2021-03-07', 1),
(10, 13, 19, '2021-04-07', 1),
(10, 13, 19, '2021-05-07', 1),
(10, 14, 20, '2020-05-19', 1),
(10, 14, 20, '2020-06-19', 1),
(10, 14, 20, '2020-07-19', 1),
(10, 14, 20, '2020-08-19', 1),
(10, 14, 20, '2020-09-19', 1),
(10, 14, 20, '2020-10-19', 1),
(10, 14, 20, '2020-11-19', 1),
(10, 14, 20, '2020-12-19', 1),
(10, 14, 20, '2021-01-19', 1),
(10, 14, 20, '2021-02-19', 1),
(10, 14, 20, '2021-03-19', 1),
(10, 14, 20, '2021-04-19', 1),
(10, 11, 21, '2022-04-30', 1),
(10, 11, 21, '2022-08-30', 1),
(10, 11, 21, '2022-12-30', 1),
(10, 11, 21, '2023-04-30', 1),
(10, 11, 21, '2023-08-30', 1),
(10, 11, 21, '2023-12-30', 0),
(10, 11, 21, '2024-04-30', 0),
(10, 11, 21, '2024-08-30', 0),
(10, 11, 21, '2024-12-30', 0),
(10, 18, 22, '2019-02-22', 1),
(10, 18, 22, '2019-06-22', 1),
(10, 18, 22, '2019-10-22', 1),
(10, 18, 22, '2020-02-22', 1),
(10, 18, 22, '2020-06-22', 1),
(10, 18, 22, '2020-10-22', 1),
(10, 18, 22, '2021-02-22', 1),
(10, 18, 22, '2021-06-22', 1),
(10, 18, 22, '2021-10-22', 1),
(10, 8, 23, '2019-08-02', 1),
(10, 8, 23, '2019-09-02', 1),
(10, 8, 23, '2019-10-02', 1),
(10, 8, 23, '2019-11-02', 1),
(10, 8, 23, '2019-12-02', 1),
(10, 8, 23, '2020-01-02', 1),
(10, 8, 23, '2020-02-02', 1),
(10, 8, 23, '2020-03-02', 1),
(10, 8, 23, '2020-04-02', 1),
(10, 8, 23, '2020-05-02', 1),
(10, 8, 23, '2020-06-02', 1),
(10, 8, 23, '2020-07-02', 1),
(10, 10, 24, '2020-09-30', 1),
(10, 10, 24, '2021-01-30', 1),
(10, 10, 24, '2021-05-30', 1),
(10, 10, 24, '2021-09-30', 1),
(10, 10, 24, '2022-01-30', 1),
(10, 10, 24, '2022-05-30', 1),
(10, 10, 24, '2022-09-30', 1),
(10, 10, 24, '2023-01-30', 1),
(10, 10, 24, '2023-05-30', 1),
(10, 12, 25, '2023-12-06', 1),
(10, 12, 25, '2024-04-06', 0),
(10, 12, 25, '2024-08-06', 0),
(10, 12, 25, '2024-12-06', 0),
(10, 12, 25, '2025-04-06', 0),
(10, 12, 25, '2025-08-06', 0),
(10, 12, 25, '2025-12-06', 0),
(10, 12, 25, '2026-04-06', 0),
(10, 12, 25, '2026-08-06', 0),
(10, 19, 26, '2023-12-06', 1),
(10, 19, 26, '2024-01-06', 0),
(10, 19, 26, '2024-02-06', 0),
(10, 19, 26, '2024-03-06', 0),
(10, 19, 26, '2024-04-06', 0),
(10, 19, 26, '2024-05-06', 0),
(10, 19, 26, '2024-06-06', 0),
(10, 19, 26, '2024-07-06', 0),
(10, 19, 26, '2024-08-06', 0),
(10, 19, 26, '2024-09-06', 0),
(10, 19, 26, '2024-10-06', 0),
(10, 19, 26, '2024-11-06', 0);
(11, 1, 15, '2008-02-22', 1),
(11, 1, 15, '2008-06-22', 1),
(11, 1, 15, '2008-10-22', 1),
(11, 1, 15, '2009-02-22', 1),
(11, 1, 15, '2009-06-22', 1),
(11, 1, 15, '2009-10-22', 1),
(11, 1, 15, '2010-02-22', 1),
(11, 1, 15, '2010-06-22', 1),
(11, 1, 15, '2010-10-22', 1),
(11, 2, 16, '2009-03-23', 1),
(11, 2, 16, '2009-04-23', 1),
(11, 2, 16, '2009-05-23', 1),
(11, 2, 16, '2009-06-23', 1),
(11, 2, 16, '2009-07-23', 1),
(11, 2, 16, '2009-08-23', 1),
(11, 2, 16, '2009-09-23', 1),
(11, 2, 16, '2009-10-23', 1),
(11, 2, 16, '2009-11-23', 1),
(11, 2, 16, '2009-12-23', 1),
(11, 2, 16, '2010-01-23', 1),
(11, 2, 16, '2010-02-23', 1),
(11, 3, 17, '2010-02-22', 1),
(11, 3, 17, '2010-03-22', 1),
(11, 3, 17, '2010-04-22', 1),
(11, 3, 17, '2010-05-22', 1),
(11, 3, 17, '2010-06-22', 1),
(11, 3, 17, '2010-07-22', 1),
(11, 3, 17, '2010-08-22', 1),
(11, 3, 17, '2010-09-22', 1),
(11, 3, 17, '2010-10-22', 1),
(11, 3, 17, '2010-11-22', 1),
(11, 3, 17, '2010-12-22', 1),
(11, 3, 17, '2011-01-22', 1),
(11, 9, 18, '2019-02-22', 1),
(11, 9, 18, '2019-06-22', 1),
(11, 9, 18, '2019-10-22', 1),
(11, 9, 18, '2020-02-22', 1),
(11, 9, 18, '2020-06-22', 1),
(11, 9, 18, '2020-10-22', 1),
(11, 9, 18, '2021-02-22', 1),
(11, 9, 18, '2021-06-22', 1),
(11, 9, 18, '2021-10-22', 1),
(11, 13, 19, '2020-06-07', 1),
(11, 13, 19, '2020-07-07', 1),
(11, 13, 19, '2020-08-07', 1),
(11, 13, 19, '2020-09-07', 1),
(11, 13, 19, '2020-10-07', 1),
(11, 13, 19, '2020-11-07', 1),
(11, 13, 19, '2020-12-07', 1),
(11, 13, 19, '2021-01-07', 1),
(11, 13, 19, '2021-02-07', 1),
(11, 13, 19, '2021-03-07', 1),
(11, 13, 19, '2021-04-07', 1),
(11, 13, 19, '2021-05-07', 1),
(11, 14, 20, '2020-05-19', 1),
(11, 14, 20, '2020-06-19', 1),
(11, 14, 20, '2020-07-19', 1),
(11, 14, 20, '2020-08-19', 1),
(11, 14, 20, '2020-09-19', 1),
(11, 14, 20, '2020-10-19', 1),
(11, 14, 20, '2020-11-19', 1),
(11, 14, 20, '2020-12-19', 1),
(11, 14, 20, '2021-01-19', 1),
(11, 14, 20, '2021-02-19', 1),
(11, 14, 20, '2021-03-19', 1),
(11, 14, 20, '2021-04-19', 1),
(11, 11, 21, '2022-04-30', 1),
(11, 11, 21, '2022-08-30', 1),
(11, 11, 21, '2022-12-30', 1),
(11, 11, 21, '2023-04-30', 1),
(11, 11, 21, '2023-08-30', 1),
(11, 11, 21, '2023-12-30', 0),
(11, 11, 21, '2024-04-30', 0),
(11, 11, 21, '2024-08-30', 0),
(11, 11, 21, '2024-12-30', 0),
(11, 18, 22, '2019-02-22', 1),
(11, 18, 22, '2019-06-22', 1),
(11, 18, 22, '2019-10-22', 1),
(11, 18, 22, '2020-02-22', 1),
(11, 18, 22, '2020-06-22', 1),
(11, 18, 22, '2020-10-22', 1),
(11, 18, 22, '2021-02-22', 1),
(11, 18, 22, '2021-06-22', 1),
(11, 18, 22, '2021-10-22', 1),
(11, 8, 23, '2019-08-02', 1),
(11, 8, 23, '2019-09-02', 1),
(11, 8, 23, '2019-10-02', 1),
(11, 8, 23, '2019-11-02', 1),
(11, 8, 23, '2019-12-02', 1),
(11, 8, 23, '2020-01-02', 1),
(11, 8, 23, '2020-02-02', 1),
(11, 8, 23, '2020-03-02', 1),
(11, 8, 23, '2020-04-02', 1),
(11, 8, 23, '2020-05-02', 1),
(11, 8, 23, '2020-06-02', 1),
(11, 8, 23, '2020-07-02', 1),
(11, 10, 24, '2020-09-30', 1),
(11, 10, 24, '2021-01-30', 1),
(11, 10, 24, '2021-05-30', 1),
(11, 10, 24, '2021-09-30', 1),
(11, 10, 24, '2022-01-30', 1),
(11, 10, 24, '2022-05-30', 1),
(11, 10, 24, '2022-09-30', 1),
(11, 10, 24, '2023-01-30', 1),
(11, 10, 24, '2023-05-30', 1),
(11, 12, 25, '2023-12-06', 1),
(11, 12, 25, '2024-04-06', 0),
(11, 12, 25, '2024-08-06', 0),
(11, 12, 25, '2024-12-06', 0),
(11, 12, 25, '2025-04-06', 0),
(11, 12, 25, '2025-08-06', 0),
(11, 12, 25, '2025-12-06', 0),
(11, 12, 25, '2026-04-06', 0),
(11, 12, 25, '2026-08-06', 0),
(11, 19, 26, '2023-12-06', 1),
(11, 19, 26, '2024-01-06', 0),
(11, 19, 26, '2024-02-06', 0),
(11, 19, 26, '2024-03-06', 0),
(11, 19, 26, '2024-04-06', 0),
(11, 19, 26, '2024-05-06', 0),
(11, 19, 26, '2024-06-06', 0),
(11, 19, 26, '2024-07-06', 0),
(11, 19, 26, '2024-08-06', 0),
(11, 19, 26, '2024-09-06', 0),
(11, 19, 26, '2024-10-06', 0),
(11, 19, 26, '2024-11-06', 0);



Expand Down

0 comments on commit 4b1844e

Please sign in to comment.