via
Tables (36)
account
- account_id — BIGINT — Primary key — NOT NULL — 금융계좌 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 계좌 소유 회원
- institution_id — BIGINT — Foreign key → financial_institution.institution_id — NOT NULL — 금융기관
- connection_id — BIGINT — Foreign key → mydata_connection.connection_id — 마이데이터 연동정보
- external_account_key — VARCHAR(100) — 외부 계좌 식별값
- account_type — VARCHAR(30) — 입출금, 예금, 적금, 증권
- account_name — VARCHAR(100) — 계좌·상품명
- account_number_masked — VARCHAR(50) — 마스킹 계좌번호
- current_balance — DECIMAL(19, 2) — 현재 잔액
- currency_code — VARCHAR(10) — 통화 코드
- account_status — VARCHAR(20) — 정상, 해지, 만기
- opened_at — DATE — 계좌 개설일
- maturity_at — DATE — 만기일
- data_as_of_at — DATETIME — 잔액 기준일시
- updated_at — DATETIME — 수정일시
account_transaction
- transaction_id — BIGINT — Primary key — NOT NULL — 거래 식별자
- account_id — BIGINT — Foreign key → account.account_id — NOT NULL — 금융계좌
- external_transaction_id — VARCHAR(100) — 외부 거래 식별값
- transaction_at — DATETIME — 거래일시
- transaction_type — VARCHAR(30) — 입금, 출금, 결제, 이체
- amount — DECIMAL(19, 2) — 거래금액
- balance_after — DECIMAL(19, 2) — 거래 후 잔액
- merchant_name — VARCHAR(150) — 거래처·가맹점명
- category_code — VARCHAR(30) — 식비, 통신비, 보험료 등
- description — VARCHAR(300) — 거래 적요
- expense_excluded — BOOLEAN — 지출 집계 제외 여부
- recurring_candidate — BOOLEAN — 반복 고정비 후보 여부
- created_at — DATETIME — NOT NULL — 저장일시
app_user
- user_id — BIGINT — Primary key — NOT NULL — 회원 식별자
- login_email — VARCHAR(150) — NOT NULL — 로그인 이메일
- password_hash — VARCHAR(255) — NOT NULL — 비밀번호 해시
- user_name — VARCHAR(50) — NOT NULL — 이름
- phone_number — VARCHAR(20) — 휴대폰번호
- birth_date — DATE — 생년월일
- gender — VARCHAR(10) — 성별
- user_status — VARCHAR(20) — NOT NULL — 활성, 휴면, 탈퇴
- created_at — DATETIME — NOT NULL — 가입일시
- updated_at — DATETIME — 수정일시
card_account
- card_account_id — BIGINT — Primary key — NOT NULL — 카드계좌 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 카드 소유 회원
- institution_id — BIGINT — Foreign key → financial_institution.institution_id — NOT NULL — 카드사
- connection_id — BIGINT — Foreign key → mydata_connection.connection_id — 마이데이터 연동정보
- external_card_key — VARCHAR(100) — 외부 카드 식별값
- card_type — VARCHAR(30) — 신용, 체크
- card_name — VARCHAR(100) — 카드명
- card_number_masked — VARCHAR(50) — 마스킹 카드번호
- card_status — VARCHAR(20) — 정상, 정지, 해지
- issued_at — DATE — 발급일
- data_as_of_at — DATETIME — 데이터 기준일시
- updated_at — DATETIME — 수정일시
card_transaction
- card_transaction_id — BIGINT — Primary key — NOT NULL — 카드거래 식별자
- card_account_id — BIGINT — Foreign key → card_account.card_account_id — NOT NULL — 카드계좌
- external_transaction_id — VARCHAR(100) — 외부 거래 식별값
- transaction_at — DATETIME — 거래일시
- approval_type — VARCHAR(20) — 승인, 취소
- amount — DECIMAL(19, 2) — 거래금액
- merchant_name — VARCHAR(150) — 가맹점명
- category_code — VARCHAR(30) — 카테고리 코드
- installment_months — INT — 할부개월수
- recurring_candidate — BOOLEAN — 반복 고정비 후보 여부
- created_at — DATETIME — NOT NULL — 저장일시
dsr_policy
- dsr_policy_id — BIGINT — Primary key — NOT NULL — DSR정책 식별자
- policy_name — VARCHAR(100) — NOT NULL — 정책명 (예: 스트레스 DSR 3단계)
- stage_number — INT — 시행 단계 (1,2,3)
- effective_from — DATE — 시행일
- effective_to — DATE — 종료일
- dsr_limit_rate — DECIMAL(9, 6) — DSR 한도 (예 0.40)
- description — VARCHAR(500) — 정책 설명
- active — BOOLEAN — NOT NULL — 적용 여부
- created_at — DATETIME — NOT NULL — 생성일시
dsr_policy_rule
- dsr_policy_rule_id — BIGINT — Primary key — NOT NULL — DSR정책 세부규칙 식별자
- dsr_policy_id — BIGINT — Foreign key → dsr_policy.dsr_policy_id — NOT NULL — DSR정책
- loan_type — VARCHAR(30) — 주담대, 신용, 전세자금
- region_type — VARCHAR(30) — 수도권, 지방
- rate_type — VARCHAR(20) — 고정, 변동
- stress_rate — DECIMAL(9, 6) — 스트레스 가산금리
- min_add_rate — DECIMAL(9, 6) — 최소 가산금리
- max_add_rate — DECIMAL(9, 6) — 최대 가산금리
- created_at — DATETIME — NOT NULL — 생성일시
emergency_fund_designation
- emergency_fund_designation_id — BIGINT — Primary key — NOT NULL — 비상금 지정 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- account_id — BIGINT — Foreign key → account.account_id — 비상금 계좌
- designated_amount — DECIMAL(19, 2) — 지정 금액
- target_months — DECIMAL(9, 4) — 목표 개월수
- designated_at — DATETIME — NOT NULL — 지정일시
financial_goal
- financial_goal_id — BIGINT — Primary key — NOT NULL — 재무목표 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- goal_name — VARCHAR(150) — 목표명
- goal_type — VARCHAR(30) — 내집마련, 은퇴, 결혼자금 등
- target_amount — DECIMAL(19, 2) — 목표금액
- target_date — DATE — 목표일
- current_progress_amount — DECIMAL(19, 2) — 현재 달성금액
- created_at — DATETIME — NOT NULL — 생성일시
financial_institution
- institution_id — BIGINT — Primary key — NOT NULL — 금융기관 식별자
- institution_name — VARCHAR(100) — NOT NULL — 기관명
- institution_type — VARCHAR(30) — NOT NULL — 은행, 카드사, 증권사
- org_code — VARCHAR(10) — 금융결제원 기관코드
- logo_url — VARCHAR(500) — 로고 URL
- active — BOOLEAN — NOT NULL — 사용 여부
- created_at — DATETIME — NOT NULL — 생성일시
financial_policy_content
- financial_policy_content_id — BIGINT — Primary key — NOT NULL — 콘텐츠 식별자
- policy_type — VARCHAR(30) — DSR, LTV, 정책대출, 절세
- title — VARCHAR(200) — NOT NULL — 제목
- summary — VARCHAR(500) — 요약문
- content_body — TEXT — 상세 내용
- target_loan_type — VARCHAR(30) — 관련 대출유형
- effective_from — DATE — 노출 시작일
- effective_to — DATE — 노출 종료일
- source_name — VARCHAR(100) — 출처 기관
- source_url — VARCHAR(500) — 출처 URL
- active — BOOLEAN — NOT NULL — 노출 여부
- updated_at — DATETIME — 수정일시
financial_report
- financial_report_id — BIGINT — Primary key — NOT NULL — 리포트 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 대상 회원
- report_type — VARCHAR(30) — 개인화, 월간, 가구
- report_year_month — CHAR(7) — 리포트 기준연월
- analysis_start_month — CHAR(7) — 분석 시작연월
- analysis_end_month — CHAR(7) — 분석 종료연월
- savings_rate — DECIMAL(9, 6) — 저축률
- savings_grade — VARCHAR(10) — 저축력 등급
- stress_dsr — DECIMAL(9, 6) — 스트레스 DSR
- debt_health_grade — VARCHAR(10) — 부채건전성 등급
- emergency_fund_months — DECIMAL(9, 4) — 비상금 보유 개월수
- emergency_grade — VARCHAR(10) — 비상대응력 등급
- spending_cv — DECIMAL(9, 6) — 지출 변동계수
- spending_grade — VARCHAR(10) — 소비안정성 등급
- debt_priority_json — JSON — 부채 상환순위 결과
- summary — TEXT — 금융상태 종합요약
- recommendation — TEXT — 개인 맞춤 대응제안
- report_status — VARCHAR(20) — 완료, 데이터부족, 실패
- generated_at — DATETIME — NOT NULL — 생성일시
fixed_cost_item
- fixed_cost_item_id — BIGINT — Primary key — NOT NULL — 고정비 항목 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- item_name — VARCHAR(100) — 항목명 (예: 넷플릭스, 통신비)
- category_code — VARCHAR(30) — 카테고리 코드
- monthly_amount — DECIMAL(19, 2) — 월 예상금액
- detected_at — DATE — 탐지일
- reduction_status — VARCHAR(20) — 유지, 해지제안, 해지완료
- created_at — DATETIME — NOT NULL — 생성일시
fixed_cost_transaction
- fixed_cost_transaction_id — BIGINT — Primary key — NOT NULL — 고정비 연결거래 식별자
- fixed_cost_item_id — BIGINT — Foreign key → fixed_cost_item.fixed_cost_item_id — NOT NULL — 고정비 항목
- transaction_id — BIGINT — Foreign key → account_transaction.transaction_id — NOT NULL — 연결된 거래내역
- matched_at — DATETIME — 매칭일시
household
- household_id — BIGINT — Primary key — NOT NULL — 가구 식별자
- created_by_user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 가구 생성회원
- household_name — VARCHAR(100) — 가구 표시명
- household_status — VARCHAR(20) — 활성, 해제
- created_at — DATETIME — NOT NULL — 생성일시
- ended_at — DATETIME — 가구 해제일시
household_member
- household_member_id — BIGINT — Primary key — NOT NULL — 가구 구성원 식별자
- household_id — BIGINT — Foreign key → household.household_id — NOT NULL — 가구
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- relation_type — VARCHAR(20) — 본인, 배우자
- consent_status — VARCHAR(20) — 초대, 동의, 거절, 철회
- joined_at — DATETIME — 가구 참여일시
- ended_at — DATETIME — 가구 탈퇴일시
investment_asset
- investment_asset_id — BIGINT — Primary key — NOT NULL — 투자자산 식별자
- account_id — BIGINT — Foreign key → account.account_id — NOT NULL — 투자상품 보유계좌
- asset_type — VARCHAR(30) — 주식, ETF, 펀드, 채권
- product_code — VARCHAR(50) — 종목·상품 코드
- product_name — VARCHAR(150) — 종목·상품명
- quantity — DECIMAL(19, 6) — 보유수량
- purchase_amount — DECIMAL(19, 2) — 총 매입금액
- evaluation_amount — DECIMAL(19, 2) — 현재 평가금액
- profit_loss_amount — DECIMAL(19, 2) — 평가손익
- as_of_at — DATETIME — 평가 기준일시
- updated_at — DATETIME — 수정일시
investment_product
- investment_product_id — BIGINT — Primary key — NOT NULL — 투자상품 식별자
- product_code — VARCHAR(50) — 종목·상품 코드
- product_name — VARCHAR(150) — NOT NULL — 종목·상품명
- asset_type — VARCHAR(30) — 주식, ETF, 펀드, 채권
- risk_grade — VARCHAR(10) — 위험등급 1~6
- expected_return_rate — DECIMAL(9, 6) — 기대수익률
- active — BOOLEAN — NOT NULL — 판매 여부
- updated_at — DATETIME — 수정일시
investment_profile_assessment
- investment_profile_assessment_id — BIGINT — Primary key — NOT NULL — 투자성향평가 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- total_score — INT — 총점
- risk_grade — VARCHAR(10) — 투자성향 등급 1~5
- answer_json — JSON — 설문 응답 내역
- assessed_at — DATETIME — NOT NULL — 평가일시
investment_profile_question
- investment_profile_question_id — BIGINT — Primary key — NOT NULL — 설문 문항 식별자
- question_order — INT — NOT NULL — 문항 순서
- question_text — VARCHAR(300) — NOT NULL — 질문 내용
- option_json — JSON — 보기 및 배점
- active — BOOLEAN — NOT NULL — 사용 여부
- created_at — DATETIME — NOT NULL — 생성일시
investment_recommendation
- investment_recommendation_id — BIGINT — Primary key — NOT NULL — 투자추천 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- investment_profile_assessment_id — BIGINT — Foreign key → investment_profile_assessment.investment_profile_assessment_id — 투자성향평가
- model_portfolio_id — BIGINT — Foreign key → model_portfolio.model_portfolio_id — 추천 모델포트폴리오
- surplus_amount — DECIMAL(19, 2) — 배분 대상 여유자금
- recommended_at — DATETIME — NOT NULL — 추천일시
investment_recommendation_item
- investment_recommendation_item_id — BIGINT — Primary key — NOT NULL — 투자추천상세 식별자
- investment_recommendation_id — BIGINT — Foreign key → investment_recommendation.investment_recommendation_id — NOT NULL — 투자추천
- investment_product_id — BIGINT — Foreign key → investment_product.investment_product_id — NOT NULL — 투자상품
- allocation_amount — DECIMAL(19, 2) — 배분금액
- allocation_rate — DECIMAL(9, 6) — 배분비율
lifecycle_event
- lifecycle_event_id — BIGINT — Primary key — NOT NULL — 이벤트 식별자
- lifecycle_scenario_id — BIGINT — Foreign key → lifecycle_scenario.lifecycle_scenario_id — NOT NULL — 생애주기 시나리오
- event_type — VARCHAR(30) — 결혼, 출산, 이직, 주택구입 등
- event_name — VARCHAR(150) — 이벤트명
- effective_date — DATE — 이벤트 발생일
- amount_value — DECIMAL(19, 2) — 소득·비용·대출 금액
- rate_value — DECIMAL(9, 6) — 금리 또는 변화율
- months_value — INT — 기간 또는 연장 개월수
- option_code — VARCHAR(30) — 기간단축, 상환액감소 등
- priority — INT — 동일 시점 이벤트 적용순서
- description — VARCHAR(500) — 이벤트 설명
lifecycle_result
- lifecycle_result_id — BIGINT — Primary key — NOT NULL — 시나리오결과 식별자
- lifecycle_scenario_id — BIGINT — Foreign key → lifecycle_scenario.lifecycle_scenario_id — NOT NULL — 생애주기 시나리오
- projection_year_month — CHAR(7) — 예측 대상연월
- projected_income — DECIMAL(19, 2) — 예측 소득
- projected_expense — DECIMAL(19, 2) — 예측 지출
- projected_asset_amount — DECIMAL(19, 2) — 예측 자산
- projected_debt_amount — DECIMAL(19, 2) — 예측 부채
- projected_dsr — DECIMAL(9, 6) — 예측 DSR
- generated_at — DATETIME — NOT NULL — 생성일시
lifecycle_scenario
- lifecycle_scenario_id — BIGINT — Primary key — NOT NULL — 시나리오 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 시나리오 생성회원
- household_id — BIGINT — Foreign key → household.household_id — 가구 시나리오인 경우
- scenario_name — VARCHAR(150) — 시나리오명
- scenario_type — VARCHAR(30) — 결혼, 출산, 주택, 은퇴 등
- base_date — DATE — 시뮬레이션 기준일
- projection_end_date — DATE — 예측 종료일
- description — VARCHAR(500) — 시나리오 설명
- scenario_status — VARCHAR(20) — 작성, 실행, 완료
- created_at — DATETIME — NOT NULL — 생성일시
- updated_at — DATETIME — 수정일시
loan_account
- loan_account_id — BIGINT — Primary key — NOT NULL — 대출계좌 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 대표 차주 회원
- institution_id — BIGINT — Foreign key → financial_institution.institution_id — NOT NULL — 취급 금융기관
- connection_id — BIGINT — Foreign key → mydata_connection.connection_id — 마이데이터 연동정보
- loan_product_id — BIGINT — Foreign key → loan_product.loan_product_id — 대출상품
- external_loan_key — VARCHAR(100) — 외부 대출 식별값
- loan_type — VARCHAR(30) — 주담대, 신용, 전세자금
- principal_amount — DECIMAL(19, 2) — 최초 대출원금
- current_balance — DECIMAL(19, 2) — 현재 대출잔액
- interest_rate — DECIMAL(9, 6) — 현재 적용금리
- rate_type — VARCHAR(20) — 고정, 변동
- repayment_type — VARCHAR(30) — 원리금균등, 원금균등, 거치식
- disbursed_at — DATE — 실행일
- maturity_at — DATE — 만기일
- loan_status — VARCHAR(20) — 정상, 완제, 연체
- data_as_of_at — DATETIME — 데이터 기준일시
- updated_at — DATETIME — 수정일시
loan_analysis
- loan_analysis_id — BIGINT — Primary key — NOT NULL — 대출분석 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- dsr_policy_id — BIGINT — Foreign key → dsr_policy.dsr_policy_id — 적용된 DSR정책
- actual_dsr — DECIMAL(9, 6) — 실제 DSR
- stress_dsr — DECIMAL(9, 6) — 스트레스 DSR
- available_limit_amount — DECIMAL(19, 2) — 가용 한도
- analysis_base_date — DATE — 분석 기준일
- created_at — DATETIME — NOT NULL — 생성일시
loan_borrower
- loan_borrower_id — BIGINT — Primary key — NOT NULL — 차주관계 식별자
- loan_account_id — BIGINT — Foreign key → loan_account.loan_account_id — NOT NULL — 대출계좌
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 차주 회원
- borrower_role — VARCHAR(20) — 주채무자, 공동차주
- liability_ratio — DECIMAL(9, 6) — 채무 부담비율
- active — BOOLEAN — 현재 관계 여부
- joined_at — DATETIME — 차주 등록일시
- ended_at — DATETIME — 차주관계 종료일시
loan_product
- loan_product_id — BIGINT — Primary key — NOT NULL — 대출상품 식별자
- institution_id — BIGINT — Foreign key → financial_institution.institution_id — NOT NULL — 취급 금융기관
- product_name — VARCHAR(150) — NOT NULL — 상품명
- loan_type — VARCHAR(30) — 주담대, 신용, 전세자금
- min_rate — DECIMAL(9, 6) — 최저금리
- max_rate — DECIMAL(9, 6) — 최고금리
- max_limit_amount — DECIMAL(19, 2) — 최대 한도금액
- max_period_months — INT — 최대 대출기간(개월)
- target_description — VARCHAR(300) — 대상 안내
- active — BOOLEAN — NOT NULL — 판매 여부
- updated_at — DATETIME — 수정일시
median_income_standard
- median_income_standard_id — BIGINT — Primary key — NOT NULL — 기준중위소득 식별자
- standard_year — INT — NOT NULL — 기준연도
- household_size — INT — NOT NULL — 가구원수
- monthly_median_income — DECIMAL(19, 2) — NOT NULL — 월 기준중위소득
- created_at — DATETIME — NOT NULL — 생성일시
model_portfolio
- model_portfolio_id — BIGINT — Primary key — NOT NULL — 모델포트폴리오 식별자
- portfolio_name — VARCHAR(100) — NOT NULL — 포트폴리오명
- risk_grade — VARCHAR(10) — 매칭되는 투자성향 등급
- description — VARCHAR(500) — 설명
- active — BOOLEAN — NOT NULL — 사용 여부
- created_at — DATETIME — NOT NULL — 생성일시
model_portfolio_allocation
- model_portfolio_allocation_id — BIGINT — Primary key — NOT NULL — 배분 식별자
- model_portfolio_id — BIGINT — Foreign key → model_portfolio.model_portfolio_id — NOT NULL — 모델포트폴리오
- investment_product_id — BIGINT — Foreign key → investment_product.investment_product_id — NOT NULL — 투자상품
- allocation_rate — DECIMAL(9, 6) — NOT NULL — 배분비율
mydata_connection
- connection_id — BIGINT — Primary key — NOT NULL — 연동 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원 식별자
- institution_id — BIGINT — Foreign key → financial_institution.institution_id — NOT NULL — 금융기관 식별자
- external_connection_key — VARCHAR(100) — 외부 연동 식별값
- consent_scope — VARCHAR(500) — 계좌, 거래, 대출 등 동의범위
- consent_status — VARCHAR(20) — 동의, 만료, 철회
- connection_status — VARCHAR(20) — 연결, 오류, 해제
- consented_at — DATETIME — 동의일시
- consent_expires_at — DATETIME — 동의 만료일시
- last_synced_at — DATETIME — 마지막 동기화 일시
- last_error_code — VARCHAR(50) — 마지막 연동 오류코드
- created_at — DATETIME — NOT NULL — 생성일시
- updated_at — DATETIME — 수정일시
policy_support_program
- policy_support_program_id — BIGINT — Primary key — NOT NULL — 정책지원 프로그램 식별자
- program_name — VARCHAR(150) — NOT NULL — 프로그램명
- target_description — VARCHAR(300) — 지원대상
- max_support_amount — DECIMAL(19, 2) — 최대 지원금액
- eligibility_json — JSON — 자격요건
- application_url — VARCHAR(500) — 신청 URL
- effective_from — DATE — 시행일
- effective_to — DATE — 종료일
- active — BOOLEAN — NOT NULL — 노출 여부
transaction_analysis
- transaction_analysis_id — BIGINT — Primary key — NOT NULL — 거래분석 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- analysis_year_month — CHAR(7) — 분석 기준연월
- total_income — DECIMAL(19, 2) — 총 수입
- total_expense — DECIMAL(19, 2) — 총 지출
- savings_amount — DECIMAL(19, 2) — 저축액
- savings_rate — DECIMAL(9, 6) — 저축률
- spending_cv — DECIMAL(9, 6) — 지출 변동계수
- generated_at — DATETIME — NOT NULL — 생성일시
user_financial_profile
- user_financial_profile_id — BIGINT — Primary key — NOT NULL — 재무프로필 식별자
- user_id — BIGINT — Foreign key → app_user.user_id — NOT NULL — 회원
- annual_income — DECIMAL(19, 2) — 연소득
- income_type — VARCHAR(30) — 근로, 사업, 기타
- employment_status — VARCHAR(30) — 재직, 자영업, 무직
- credit_score — INT — 신용점수
- credit_score_updated_at — DATE — 신용점수 조회일
- created_at — DATETIME — NOT NULL — 생성일시
- updated_at — DATETIME — 수정일시