hojaegi_clone

Tables (16)

authority (권한)

  • id (PK) — Primary key — NOT NULL — AI
  • level (권한 등급) — NN,AI — NOT NULL
  • type (권한 구분) — UNIQUE — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

coin (코인)

  • id (PK) — Primary key — NOT NULL — AI
  • name_kr (코인 한글 이름) — NOT NULL — UNIQUE
  • name_en (코인 영문 이름) — UNIQUE — NOT NULL — UNIQUE
  • icon (아이콘 이미지)
  • currency (화폐 단위) — NOT NULL — UNIQUE
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

feed (피드)

  • id (PK) — Primary key — NOT NULL — AI
  • title (제목)
  • subtitle (부제) — NOT NULL
  • date (발표일)
  • link (링크)
  • publisher (발표 주체)
  • thumbnail (배경 이미지)
  • hit (조회수) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

feed_comment (피드 댓글)

  • id (PK) — Primary key — NOT NULL — AI
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • feed_id (FK_피드) — Foreign key → feed.id — NOT NULL
  • content (댓글 내용) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

feed_grade (피드 평점)

  • id (PK) — Primary key — NOT NULL — AI
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • feed_id (FK_피드) — Foreign key → feed.id — NOT NULL
  • grade (평점) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

feed_innercomment (피드 대댓글)

  • id (PK) — Primary key — NOT NULL — AI
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • feed_comment_id (FK_피드 댓글) — Foreign key → feed_comment.id — NOT NULL
  • content (댓글 내용) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

information (정보)

  • id (PK) — Primary key — NOT NULL — AI
  • title (제목) — NOT NULL
  • content (내용) — NOT NULL
  • publisher (발표 주체) — NOT NULL
  • link (링크)
  • image (대표 이미지)
  • date (발표 일시) — DATETIME — NOT NULL
  • hit (조회수) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

live_news (실시간뉴스)

  • id (PK) — Primary key — NOT NULL — AI
  • title (제목) — NOT NULL
  • content (내용) — NOT NULL
  • publisher (발표 주체) — NOT NULL
  • link (링크)
  • image (대표 이미지)
  • date (발표 일시) — DATETIME — NOT NULL
  • hit (조회수) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

news (호재)

  • id (PK) — Primary key — NOT NULL — AI
  • coin_id (FK_코인) — Foreign key → coin.id — NOT NULL
  • category_id (FK_카테고리) — Foreign key → news_category.id — NOT NULL
  • title (제목) — NOT NULL
  • content (내용) — NOT NULL
  • image (첨부 이미지)
  • link (링크)
  • date (대상 날짜) — NOT NULL
  • hit (조회수) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

news_category (호재 분류)

  • id (PK) — NN,AI — Primary key — NOT NULL — AI
  • name (카테고리 이름) — NOT NULL — UNIQUE
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

news_comment (호재 댓글)

  • id (PK) — Primary key — NOT NULL — AI
  • news_id (FK_뉴스) — Foreign key → news.category_id — NOT NULL
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • content (댓글 내용) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

news_estimation (호재 평가)

  • id (PK) — Primary key — NOT NULL — AI
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • news_id (FK_뉴스) — Foreign key → news.id — NOT NULL
  • estimation (투표 결과) — NN,AI — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

news_innercomment (호재 대댓글)

  • id (PK) — Primary key — NOT NULL — AI
  • news_comment_id (FK_뉴스 코멘트) — Foreign key → news_comment.user_id — NOT NULL
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • content (댓글 내용) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

reward (리워드 보유 금액)

  • id (PK) — NN,AI — Primary key — NOT NULL — AI
  • user_id (FK) — Foreign key → user.id — NOT NULL
  • amount (리워드 총액) — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

reward_log (리워드 지급 기록)

  • id (PK) — Primary key — NOT NULL — AI
  • reward_id (FK_리워드) — Foreign key → reward.user_id — NOT NULL
  • user_id (FK_유저) — Foreign key → user.id — NOT NULL
  • sum (리워드 금액) — NOT NULL
  • type (리워드 발생 타입) — NN,AI — NOT NULL
  • from (리워드 발생 위치) — NN,AI — NOT NULL
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)

user (유저)

  • id (PK) — Primary key — NOT NULL — AI
  • auth_id (FK_권한) — Foreign key → authority.id — NOT NULL
  • email (이메일 아이디) — NOT NULL — UNIQUE
  • pwd (비밀번호) — NOT NULL
  • name (이름) — NOT NULL
  • nickname (별명) — NOT NULL — UNIQUE
  • api_key (가입 구분) — NOT NULL — UNIQUE
  • device (기기 구분) — NOT NULL
  • favorite (관심 코인)
  • created_at (생성 일시) — NOT NULL
  • updated_at (변경 일시)
  • deleted_at (삭제 일시)