주식거래커뮤니티(PIllow-N-TECH)
테이블 (20)
게시글 (board)
- Key — bigint(20) — 기본 키 — NOT NULL
- 유저아이디 (user_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- 주식아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 게시글 제목 (title) — varchar(255)
- 게시글 내용 (contents) — longtext
- 댓글 숫자 (comment_count) — int(11)
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
- 좋아요 숫자 (like_count) — int(11)
- Field
댓글 (board_comment)
- PK (Key) — bigint(20) — 기본 키 — NOT NULL
- 게시글아이디 (board_id) — bigint(20) — 외래 키 → 게시글.Key — NOT NULL
- 내용 (content) — longtext
- 좋아요 숫자 (like_count) — int(11)
- 생성일자 (created_at) — datetime
- 수정일자 (updated_at) — datetime
배당금 (stock_dividend_info)
- Key — 기본 키 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- dividend 날짜 (dividend_datetime) — datetime
- dividend 분기 (quarter) — int
- 주가수익비율 (dividend_ratio) — float
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
스크랩 (board_scrap)
- 스크랩 아이디 (id) — bigint(20) — 기본 키 — NOT NULL
- 유저아이디 (user_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- 게시글 아이디 (board_id) — bigint(20) — 외래 키 → 게시글.Key — NOT NULL
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
시간당 주식 가격 (stock_price_hour)
- Key — 기본 키 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
- 최고가 (high_price) — decimal(11,4)
- 최저가 (lower_price) — decimal(11,4)
- 종가 (close_price) — decimal
- 주식날짜 (price_date) — datetime
알림 (alarm)
- Key (id) — bigint(20) — 기본 키 — NOT NULL
- 유저아이디 (user_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- 알람메세지 (message) — longtext
- 알람타입 (type) — enum
- 생성일자 (created_at) — datetime
월간 주식 가격(추후 구현..?) (stock_price_month)
- Key — 기본 키 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 거래량 (volume) — int
- 시초가 (open_price) — decimal(11,4)
- 종가 (closed_price) — decmail(11,4)
- 최고가 (high_price) — decimal(11,4)
- 최저가 (lower_price) — decimal(11,4)
- 시작일자 (start_date) — datetime
- 마지막일자 (end_date) — datetime
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
유저 테이블 (user)
- 유저아이디 (id) — bigint(20) — 기본 키 — NOT NULL
- 이름 (username) — varchar(255)
- 이메일 (email) — varchar(255)
- 활성상태 (is_active) — boolean
- 비밀번호 (password) — varchar(255)
- 회원등급 (role) — enum
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
이메일 소식지 (email_subscirtion)
- 아이디 (pk) — 기본 키 — NOT NULL
- 받는아이디 (receiver_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- 보내는아이디 (sender_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- Key (id2) — bigint(20) — 외래 키 → 주식 즐겨찾기.Key — NOT NULL
- 이메일 내용 (content) — longtext
- 읽음 여부 (is_read) — boolean
- Field
이메일_뉴스 (email_news)
- id (pk) — bigint(20) — 기본 키 — NOT NULL
- 생성일자 (created_at) — datetime
- 뉴스아이디 (news_id) — bigint(20) — 외래 키 → 주식 별 뉴스.id — NOT NULL
- 이메일소식지 아이디 (email_subsciption_id) — bigint(20) — 외래 키 → 이메일 소식지.아이디 — NOT NULL
이메일_보드 (email_board)
- id (pk) — bigint(20) — 기본 키 — NOT NULL
- 생성일자 (created_at) — datetime
- 게시글 아이디 (board_id) — bigint(20) — 외래 키 → 게시글.Key — NOT NULL
- 이메일소식지 아이디 (email_subsciption_id) — bigint(20) — 외래 키 → 이메일 소식지.아이디 — NOT NULL
이미지 (board_image)
- PK (Key) — bigint(20) — 기본 키 — NOT NULL
- Key (board_id) — bigint(20) — 외래 키 → 게시글.Key — NOT NULL
- 이미지 주소 (image_url) — bigint(20)
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
- 삭제 여부 (is_deleted) — bool
인증 (email_confirmed)
- pk (id) — bigint(20) — 기본 키 — NOT NULL
- 유저아이디 (user_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- 인증방법 (email) — varchar(255)
- 활성상태 (date_expired) — datetime
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
주가 수익비율 (stock_per_info)
- Key — 기본 키 — NOT NULL
- 주식아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- per 날짜 (per_datetime) — datetime
- per 분기 (per_quarter) — int
- 주가수익비율 (pe_ratio) — float
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
주가 순자산 비율 (stock_pbr_info)
- Key — 기본 키 — NOT NULL
- 주식아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- pbr 날짜 (pbr_datetime) — datetime
- pbr 분기 (pbr_quarter) — int
- 주가순자산비율 (pb_ratio) — float
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
주식 (stocks)
- Key (id) — bigint(20) — 기본 키 — NOT NULL
- 주식 이름 (name) — varchar(255)
- 주식 틱네임 (tick_name) — varchar(255)
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
주식 별 뉴스 (news)
- id (pk) — bigint(20) — 기본 키 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 원본 뉴스 url (original_news_url) — varchar(20)
- 뉴스제목 (title) — varchar(255)
- 뉴스내용 (contents) — longtext
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
- Field
주식 즐겨찾기 (favorite_stocks)
- Key (id) — bigint(20) — 기본 키 — NOT NULL
- 유저아이디 (user_id) — bigint(20) — 외래 키 → 유저 테이블.유저아이디 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 생성일자 (created_at) — datetime
하루당 주식 가격 (stock_price_day)
- Key — 기본 키 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime
- 거래량 (volume) — int
- 시초가 (open_price) — decimal(11,4)
- 종가 (closed_price) — decmail(11,4)
- 최고가 (high_price) — decimal(11,4)
- 최저가 (lower_price) — decimal(11,4)
- 전종가 (previous_closed_price) — decimal(11,4)
한 주당 주식 가격(추후 구현..?) (stock_price_week)
- Key — 기본 키 — NOT NULL
- 주식 아이디 (stock_id) — bigint(20) — 외래 키 → 주식.Key — NOT NULL
- 거래량 (volume) — int
- 시초가 (open_price) — decimal(11,4)
- 종가 (closed_price) — decmail(11,4)
- 최고가 (high_price) — decimal(11,4)
- 최저가 (lower_price) — decimal(11,4)
- 시작일자 (start_date) — datetime
- 마지막일자 (end_date) — datetime
- 생성일자 (created_at) — datetime
- 변경일자 (updated_at) — datetime