[MCNT] 기획
테이블 (9)
category
- id — 기본 키 — NOT NULL
- 상위 카테고리 (parentId) — 외래 키 → category.id — NOT NULL
- 생성일자 (createdAt)
- 제목 (title)
- 타입 (type)
- 숨김여부 (visible)
- 생성자 (authorId)
- 설명 (description)
comments
- id — 기본 키 — NOT NULL
- 게시글 아이디 (postId) — 외래 키 → posts.id — NOT NULL
- 상위 댓글 아이디 (parentId) — 외래 키 → comments.id — NOT NULL
- 작성자 (authorId) — uuid() — 외래 키 → users.id — NOT NULL
- 생성일자 (createdAt)
- 수정일자 (updatedAt)
- 내용 (content)
- 숨김여부 (visible)
login_history
- 유저아이디 (userid) — uuid() — 외래 키 → users.id — NOT NULL
- 서비스아이디 (serviceId) — uuid() — 외래 키 → services.id — NOT NULL
- createdAt
- updatedAt
- location
- ip주소 (ipAddr)
oauth
- 유저 아이디 (userid) — uuid() — 외래 키 → users.id — NOT NULL
- 소셜 로그인 종류 (oauth_type)
- 소셜 로그인 아이디 (oauth_id)
posts
- id — 기본 키 — NOT NULL
- 유저아이디 (userid) — uuid() — 외래 키 → users.id — NOT NULL
- 카테고리 아이디 (categoryId) — 외래 키 → category.id — NOT NULL
- 생성일자 (createdAt)
- 수정일자 (updatedAt)
- 제목 (title)
- 내용 (content)
- 작성자 (authorId)
- 숨김여부 (visible)
- 고정여부 (sticky)
services
- id — uuid() — 기본 키 — NOT NULL
- 서비스 오너 (owner) — uuid() — 외래 키 → users.id — NOT NULL
- 서비스이름 (name)
- 토큰주소 (tokenAddr)
- 총 발행 량 (totalAsset)
- 토큰이름 (tokenName)
- 자릿수 (decimal)
- 네트워크 종류 (netType)
- 설명 (description)
transactions
- id — 기본 키 — NOT NULL
- createdAt
- updatedAt
- 발신인 (from) — uuid() — 외래 키 → users.id — NOT NULL
- 수신인 (to) — uuid() — 외래 키 → users.id — NOT NULL
- 서비스아이디 (serviceId) — uuid() — 외래 키 → services.id — NOT NULL
- 수량 (amount)
users
- id — uuid() — 기본 키 — NOT NULL
- 생성일자 (createdAt) — datetime
- 수정 일자 (updatedAt)
- 아이디 (account)
- 비밀번호 (password)
- 생일 (birthday)
- 지갑주소 (walletAddr)
users_services
- Key — 기본 키 — NOT NULL
- 유저아이디 (userid) — uuid() — 외래 키 → users.id — NOT NULL
- 서비스아이디 (serviceId) — uuid() — 외래 키 → services.id — NOT NULL
- 생성일 (createdAt) — datetime()
- 수정일 (updatedAt) — datetime()
- 보유 토큰 (holdingAsset) — bigint(20)