skboard

Tables (4)

article (게시글)

  • 게시글_PK (id) — BIGINT — Primary key — NOT NULL
  • 유저 PK (author_id) — BIGINT — Foreign key → users.유저 PK — NOT NULL
  • 제목 (title) — VARCHAR(255) — NOT NULL
  • 내용 (content) — TEXT — NOT NULL
  • 조회수 (view_count) — INT — NOT NULL
  • 파일 메타데이터 (media_files) — JSON — NOT NULL
  • 생성일 (created_at) — DATETIME(6) — NOT NULL
  • 수정일 (updated_at) — DATETIME(6) — NOT NULL

refresh_token (리프래시토큰)

  • 토큰_UUID_PK (id) — CHAR(36) — Primary key — NOT NULL
  • 유저 FK (user_id) — BIGINT — Foreign key → users.유저 PK — NOT NULL
  • 만료일 (expired_at) — TIME_STAMP(0) — NOT NULL
  • Field

s3-pre-signed-url (Untitled)

  • UUID (uuid) — CAHR(36) — Primary key — NOT NULL
  • s3파일주소 (s3file_path) — VARCHAR(255) — NOT NULL
  • 파일주소 (file_url) — VARCHAR(255) — NOT NULL
  • 생성일 (created_at) — DATETIME(6) — NOT NULL
  • 유저 FK (user_id) — BIGINT — Foreign key → users.유저 PK — NOT NULL

users (유저)

  • 유저 PK (id) — BIGINT — Primary key — NOT NULL
  • 유저명(ID) (username) — VARCHAR(63) — NOT NULL
  • 인코딩 비밀번호 (encode_password) — VARCHAR(255) — NOT NULL
  • 권한 (role) — ENUM — NOT NULL
  • 생성일 (created_at) — DATETIME(6) — NOT NULL
  • 수정일 (updated_at) — DATETIME(6) — NOT NULL