community_service
Tables (5)
comment (댓글)
- 고유 id (id) — BIGINT — Primary key — NOT NULL — auto_increment
- 유저 id (user_id) — BIGINT — Foreign key → user.고유 id — NOT NULL — auto_increment
- 게시글 id (post_id) — BIGINT — Foreign key → post.고유 id — NOT NULL — auto_increment
- 내용 (content) — text — NOT NULL
- up수 (likes) — int — NOT NULL
- 작성일 (write_date) — timestemp — NOT NULL
- 수정날짜 (modification_date) — timestemp — NOT NULL
notice_board (게시판)
- 고유 id (id) — BIGINT — Primary key — NOT NULL — auto_increment
- 이름 (name) — varchar(100) — NOT NULL — unique
- 생성일 (create_date) — timestemp — NOT NULL
notice_board_manager (게시판관리)
- 고유 id (id) — BIGINT — Primary key — NOT NULL — auto_increment
- 유저 id (user_id) — BIGINT — Foreign key → user.고유 id — NOT NULL — auto_increment
- 게시판 id (notice_board_id) — BIGINT — Foreign key → notice_board.고유 id — NOT NULL — auto_increment
- 권한 (Field) — varchar(10) — NOT NULL — main(총 관리자), sub(부 관리자)
post (게시글)
- 고유 id (id) — BIGINT — Primary key — NOT NULL — auto_increment
- 유저 id (user_id) — BIGINT — Foreign key → user.고유 id — NOT NULL — auto_increment
- 게시판 고유 id (notice_board_id) — BIGINT — Foreign key → notice_board.고유 id — NOT NULL — auto_increment
- 제목 (title) — varchar(100) — NOT NULL
- 내용 (content) — text — NOT NULL
- 조회수 (views) — int — NOT NULL
- up수 (likes) — int — NOT NULL
- 작성날짜 (write_date) — timestemp — NOT NULL
- 수정날짜 (modification_date) — timestemp — NOT NULL
user (유저)
- 고유 id (id) — BIGINT — Primary key — NOT NULL — auto_increment
- 이메일 (email) — varchar(50) — NOT NULL — unique, 이메일형식
- 비밀번호 (password) — varchar(100) — NOT NULL
- 이름 (name) — varchar(30) — NOT NULL
- 생년월일 (birth_date) — varchar(10) — NOT NULL — yyyy.mm.dd형식
- 휴대폰 번호 (phone_number) — varchar(11) — NOT NULL — 11자리
- 회원가입일 (join_date) — timestemp — NOT NULL
- 로그인날짜 (last_login_date) — timestemp
- 수정날짜 (modification_date) — timestemp — NOT NULL
- 휴면계정여부 (dormant) — varchar(1) — NOT NULL — Y(휴면) / N(휴면x)