testdjango
Tables (6)
Account (계좌)
- id (Key) — PK — Primary key — NOT NULL
- id (Key2) — PK — Foreign key → User.id — NOT NULL
- user_id (유저 id) — FK
- account_number (계좌번호) — STRING
- initial_balance (초기 잔액) — DECIMAL
- created_at (계좌 생성 시간) — DATETIME
AnalysisRequest (분석요청)
- id (Key) — PK — Primary key — NOT NULL
- id (Key2) — PK — Foreign key → User.id — NOT NULL
- user_id (분석 요청 고유 식별자) — FK
- start_date (분석 시작일) — DATE
- end_date (분석 종료일) — DATE
- result_date (분석 결과 데이터) — JSON
- requested_at (요청 시간) — DATETIME
BlacklistedToken (블랙리스트 토큰)
- id (Key) — PK — Primary key — NOT NULL
- token (블랙리스트에 추가된 JWT 토큰) — STRING
- created_at (토큰 블랙리스트 추가 시간) — DATETIME
Notification (알림)
- id (Key) — PK — Primary key — NOT NULL
- id (Key2) — PK — Foreign key → User.id — NOT NULL
- user_id (알림 고유 식별자) — FK
- message (알림을 받을 유저id) — STRING
- is_read (알림 읽음 여부) — BOOL
- created_at (알림 생성 시간) — DATETIME
- type (알림 유형) — STRING
Transaction (거래내역)
- id (Key) — PK — Primary key — NOT NULL
- id (Key2) — PK — Foreign key → Account.id — NOT NULL
- id (Key22) — PK — Foreign key → Account.id — NOT NULL
- account_id (거래한 계좌 id) — FK
- amout (거래 금액) — DECIMAL
- transaction_type (거래 유형(입,출)) — STRING
- description (거래 설명) — STRING
- transaction_date (거래 발생 일시) — DATETIME
- created_at (거래 내역 생성 시간) — DATETIME
User (사용자)
- id (Key) — PK — Primary key — NOT NULL
- email (이메일) — UNIQUE
- name (이름) — STRING
- nickname (닉네임) — UNIQUE
- phone_number (휴대폰 번호) — STRING
- password_hash (비밀번호) — STRING
- is_active (계정 활성화 여부) — BOOL
- is_admin (관리자 계정 여부) — BOOL
- last_login (마지막 로그인 시간) — DATETIME
- created_at (가입 시간) — DATETIME