๐ก ์๋น ๋ด์ญ ๊ธฐ๋ฐ ์ง ์ถ์ฒ ์๋น์ค
์ฒญ๋ ๋ค์ ๋์์ผ๋ก, ์ฃผ๋ณ ์ธํ๋ผ๋ฅผ ๊ณ ๋ คํ๋ฉฐ ์ง์ ์ ํํ ์ ์๋๋ก
์นดํ ๊ณ ๋ฆฌ๋ฅผ ํตํ ์ง ์ถ์ฒ ์๋น์ค๋ฅผ ์ ๊ณตํฉ๋๋ค.
์ฌ์ฉ์์์๋น๋ด์ญ์ ๊ธฐ๋ฐํ์ฌ ์๋์ผ๋ก ์นดํ ๊ณ ๋ฆฌ๋ฅผ ์ ์ ํ์ฌ ์ง์ ์ถ์ฒ๋ฐ์ ์ ์์ต๋๋ค.
์ฒดํฌ๋ฆฌ์คํธ๋ฅผ ํตํด ํ์ฌ ์ฌ์ฉ์์๊ฒ ์ ํฉํ ์ ์ธ ๋๋ ์์ธ๋์ถ ์ํ์ ์ถ์ฒ๋ฐ์ ์ ์์ต๋๋ค.
| ์ด๋ฆ | ๋งก์ ๊ธฐ๋ฅ |
|---|---|
| ๊ณฝ์ง์ | ๋ถ๋งํฌ API |
| ๊ธธ๊ฐ์ | ํ์ API |
| ๊น๋ฏผ์ง | ๋์ถ ์ํ API |
| ๊นํ๋น | ์ง๋ API |
| ์ด์ฑํฌ | ์ธํ๋ผ ๊ตฌ์ถ |
| ์ ์์ง | ์๋น ํจํด ๋ถ์ API, ์ง ์์ธ ์กฐํ API |
spring:
server:
servlet:
encoding:
charset: utf-8
force: true
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://${DATABASE_URL}
username: ${DATABASE_USERNAME}
password: ${DATABAE_PASSWORD}
jpa:
hibernate:
ddl-auto: validate
show-sql: true
properties:
hibernate:
format_sql: true
flyway:
enabled: true
locations: classpath:db/migration
aop:
proxy-target-class: false
security:
refresh:
expiration: ${JWT_REFRESH_EXPIRATION}
jwt:
key: ${JWT_KEY}
expiration:
access: ${JWT_ACCESS_EXPIRATION}LOAD DATA INFILE '${๋ณธ์ธ์ csv ํ์ผ ์ ๋๊ฒฝ๋ก}'
INTO TABLE consumption_analysis
FIELDS TERMINATED BY ','
LINES TERMINATED BY '\n'
IGNORE 1 ROWS
(customer_type, book, car, cloth, culture, food, grocery, customer_count);DROP TABLE bookmark;
DROP TABLE facility;
DROP TABLE house;
DROP TABLE house_facility_relation;
DROP TABLE house_image;
DROP TABLE loan_goods;
DROP TABLE member;
DROP TABLE flyway_schema_history;
DROP TABLE loan_check_list;
DROP TABLE log;
DROP TABLE recently_loan_goods;
DROP TABLE refresh_token;
DROP TABLE consumption_analysis;
show tables;INSERT INTO house (id, member_id, name, comment, address, housing_expenses, latitude, longitude, house_type, gu, dong, deposit, monthly_rent_fee, maintenance_fee, total_parking_spaces, household_parking_spaces, total_area, exclusive_area, rooms, bathrooms, floor, total_floors, move_in_date, approval_date, direction) VALUES (1, 1, 'ํผ์ฌ์ํํธ', '10์ธต ์ค 3์ธต. ์ ์ถ ํ์ต์
', '์์ธ ๋งํฌ๊ตฌ ์๋์ปต๋ถ๋ก 434 ํผ์ฌ์ํํธ', 'JEONSE', 37.5815199, 126.8860032, 'APARTMENT', '๋งํฌ๊ตฌ', '์์๋', 70000000, 0, 50000, 110, 1, '80.58', '73.54', 2, 1, 3, 10, '2025-02-01', '2024-11-22', '๋จํฅ');
INSERT INTO house (id, member_id, name, comment, address, housing_expenses, latitude, longitude, house_type, gu, dong, deposit, monthly_rent_fee, maintenance_fee, total_parking_spaces, household_parking_spaces, total_area, exclusive_area, rooms, bathrooms, floor, total_floors, move_in_date, approval_date, direction) VALUES (2, 1, 'ํผ์ฌ์๋ฃธ', '10์ธต ์ค 3์ธต. ์ ์ถ ํ์ต์
', '์์ธ ๋งํฌ๊ตฌ ์๋์ปต๋ถ๋ก 434 ํผ์ฌ์๋ฃธ', 'MONTHLY_RENT', 37.5815199, 126.8860032, 'ONE_ROOM', '๋งํฌ๊ตฌ', '์์๋', 70000000, 0, 50000, 110, 1, '80.58', '73.54', 2, 1, 3, 10, '2025-02-01', '2024-11-22', '๋จํฅ');
INSERT INTO house (id, member_id, name, comment, address, housing_expenses, latitude, longitude, house_type, gu, dong, deposit, monthly_rent_fee, maintenance_fee, total_parking_spaces, household_parking_spaces, total_area, exclusive_area, rooms, bathrooms, floor, total_floors, move_in_date, approval_date, direction) VALUES (3, 1, 'ํผ์ฌ๋น๋ผ', '10์ธต ์ค 3์ธต. ์ ์ถ ํ์ต์
', '์์ธ ๋งํฌ๊ตฌ ์๋์ปต๋ถ๋ก 434 ํผ์ฌ๋น๋ผ', 'MONTHLY_RENT', 37.5815199, 126.8860032, 'VILLA', '๋งํฌ๊ตฌ', ' ์ํ๋', 7000000, 500000, 50000, 110, 1, '80.58', '73.54', 2, 1, 3, 10, '2025-02-01', '2024-11-22', '๋จํฅ');
INSERT INTO facility (id, category, name, gu, dong, latitude, longitude, address) VALUES (1, 'FOOD', '์ด์ ์์ง๊ธ์ด', '๋งํฌ๊ตฌ', '์์๋', 37.5813506, 126.886193, '์์ธ ๋งํฌ๊ตฌ ์๋์ปต๋ถ๋ก 434 112ํธ');
INSERT INTO facility (id, category, name, gu, dong, latitude, longitude, address) VALUES (2, 'FOOD', '๊น์น๋๊ฐ', '๋งํฌ๊ตฌ', '์์๋', 37.5813506, 126.886193, '์์ธ ๋งํฌ๊ตฌ ์๋์ปต๋ถ๋ก 434 112ํธ');
INSERT INTO house_facility_relation (id, house_id, facility_id, walking, distance) VALUES (1, 1, 1, 5, '1km');
INSERT INTO house_facility_relation (id, house_id, facility_id, walking, distance) VALUES (2, 1, 2, 7, '1km');
INSERT INTO house_facility_relation (id, house_id, facility_id, walking, distance) VALUES (3, 2, 2, 7, '1km');