DSC
테이블 (5)
거래기록 (history)
- historyId (id) — int — 기본 키 — NOT NULL
- count — int
- status — boolean
- buysell — varchar(10)
- stockPrice — int
- createdDate — datetime
- stockId (id2) — int — 외래 키 → 주식.stockId — NOT NULL
- userId (id3) — int — 외래 키 → 사용자.userId — NOT NULL
계좌 정보 (account)
- id — int — 기본 키 — NOT NULL
- accountNum — int
- accountPw — int
- balance — int
- id (id2) — int — 외래 키 → 사용자.userId — NOT NULL
사용자 (users)
- userId (id) — int — 기본 키 — NOT NULL
- userId — userId
- userPw — int
사용자 소유 주식 (userStock)
- userStockId (id) — int — 기본 키 — NOT NULL
- count — int
- price — int
- updatedDate — datetime
- stockId (id2) — int — 외래 키 → 주식.stockId — NOT NULL
- userId (id3) — int — 외래 키 → 사용자.userId — NOT NULL
주식 (stocks)
- stockId (id) — int — 기본 키 — NOT NULL
- stockCode — varchar(50)
- stockName — text
- stockValue — int
- createdDate — datetime
- status — boolean