Trend Magazine
Tables (5)
Article (기사)
- article_id (기사 아이디) — NOT NULL — Primary key — NOT NULL
- magazine_id (매거진 아이디2) — NOT NULL — Foreign key → Magazine.magazine_id — NOT NULL
- user_id (사용자 아이디3) — NOT NULL — Foreign key → Magazine.user_id — NOT NULL
- content (내용) — NOT NULL
- main_category (메인 카테고리) — NOT NULL
- created_at (생성날짜) — NOT NULL
- updated_at (수정날짜) — NOT NULL
Magazine (저널페이지)
- magazine_id (매거진 아이디) — NOT NULL — Primary key — NOT NULL
- user_id (사용자 아이디) — NOT NULL — Foreign key → User.user_id — NOT NULL
- profile_image (프로필 이미지) — NOT NULL
- name (매거진 이름) — NOT NULL
- description (설명) — NOT NULL
- created_at (생성날짜) — NOT NULL
- updated_at (수정날짜) — NOT NULL
User (사용자)
- user_id (사용자 아이디) — NOT NULL — Primary key — NOT NULL
- email (이메일) — NOT NULL
- hashed_password (비밀번호) — NOT NULL
- nickname (닉네임) — NOT NULL
- social_id (소셜 아이디) — NULL
- social_provider (소셜 로그인 플랫폼) — NULL
- user_status (유저 상태) — NOT NULL
- user_role (유저 역할) — NOT NULL
- created_at (생성날짜) — NOT NULL
- updated_at (수정날짜) — NOT NULL
UserRoleEnum (유저 역할)
- ADMIN (관리자) — NOT NULL
- USER (사용자) — NOT NULL
UserStatusEnum (유저 상태)
- ACTIVE (활동) — NOT NULL
- WITHDRAWAL (탈퇴) — NOT NULL