Zicdding-Dashboard

Tables (17)

Alert (TB_ALERT)

  • id — BIGINT — Primary key — NOT NULL
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 유저 ID
  • text — VARCHAR(100) — NOT NULL — 알림 내용
  • isRead (is_read) — TINYINT(1) — NOT NULL — 읽음 여부
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

Board (TB_BOARD)

  • id — BIGINT — Primary key — NOT NULL
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 사용자 FK
  • boardTypeId (board_type_id) — BIGINT — Foreign key → BoardType.id — NOT NULL — 게시판 타입 FK
  • title — VARCHAR(255) — NOT NULL — 제목
  • content — TEXT — NOT NULL — 게시판 콘텐츠
  • isPublic (is_public) — TINTYINT(1) — NOT NULL — 공개 여부
  • viewCnt (view_cnt) — int — NOT NULL — 조회수
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

BoardType (TB_BOARD_TYPE)

  • id — BIGINT — Primary key — NOT NULL
  • type — ENUM — NOT NULL — 게시판 타입
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

BookMark (TB_BOOKMARK)

  • id — BIGINT — Primary key — NOT NULL
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 사용자 FK
  • boardId (board_id) — BIGINT — Foreign key → Board.boardTypeId — NOT NULL — 게시판 FK
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

Comment (TB_COMMENT)

  • id — BIGINT — Primary key — NOT NULL
  • boardId (board_id) — BIGINT — Foreign key → Board.id — NOT NULL — 게시판 FK
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 댓글 작성자 FK
  • comment — VARCHAR(255) — NOT NULL — 댓글 내용
  • parentId (parent_id) — BIGINT — 부모 댓글 FK
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

ContentFile (TB_CONTENT_FILE)

  • id — BIGINT — Primary key — NOT NULL
  • boardId (board_id) — BIGINT — Foreign key → Board.id — NOT NULL — 게시판 FK
  • url — VARCHAR(100) — NOT NULL — 파일 콘텐츠 url
  • originName (origin_name) — VARCHAR(100) — NOT NULL — 파일 오리지널 명칭
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

Like (TB_LIKE)

  • id — BIGINT — Primary key — NOT NULL
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 사용자 FK
  • boardId (board_id) — BIGINT — Foreign key → Board.boardTypeId — NOT NULL — 게시판 FK
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

Menu (TB_MENU)

  • id — BIGINT — Primary key — NOT NULL
  • title — VARCHAR(100) — NOT NULL — 메뉴명
  • order — INT — NOT NULL — 메뉴 오더링
  • private — TINYINT(1) — NOT NULL — 비공개 메뉴 여부
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

MenuMember (TB_MENU_MEMBER)

  • id — BIGINT — Primary key — NOT NULL
  • menuId (menu_id) — BIGINT — Foreign key → Menu.id — NOT NULL — 메뉴 FK
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 사용자 FK
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

TB_CHAT

  • chat_id — int — Primary key — NOT NULL — 채팅방아이디
  • regDate — DATE — NOT NULL — 생성시간
  • lastMessage (state) — VARCHAR — 마지막 메시지

TB_JOIN_CHAT

  • chat_id — int — Foreign key → TB_CHAT.chat_id — NOT NULL — 메시지아이디
  • user_id — BIGINT — Foreign key → User.id — NOT NULL — 회원아이디

TB_MESSAGE (Untitled)

  • message_id (Key) — int — Primary key — NOT NULL
  • chat_id — int — Foreign key → TB_CHAT.chat_id — NOT NULL — 채팅방아이디
  • message — varchar
  • createdDate (Field) — DATETIME

User (TB_USER)

  • id — BIGINT — Primary key — NOT NULL
  • email — VARCHAR(100) — NOT NULL — 이메일
  • password — VARCHAR(100) — NOT NULL — 비밀번호
  • username — VARCHAR(10) — NOT NULL — 이름
  • nickname — VARCHAR(10) — NOT NULL — 닉네임
  • birthday — DATE — NOT NULL — 생일
  • phone — VARCHAR(30) — NOT NULL — 전화번호
  • team — VARCHAR(10) — NOT NULL — 팀
  • role — ENUM — NOT NULL — 역할
  • writingAlert (writing_alert) — CHAR(1) — NOT NULL — 새 글 알림
  • replyAlert (reply_alert) — CHAR(1) — NOT NULL — 댓글알림
  • memberAlert (member_alert) — CHAR(1) — NOT NULL — 신규 멤버 알림
  • image — VARCHAR(300) — 이미지 URL
  • notion — VARCHAR(300) — 노션 URL
  • tstorySkey (tstory_skey) — VARCHAR(150) — T Story Secret Key
  • tstoryCid (tstory_cid) — VARCHAR(150) — T Story Client ID
  • createdDate (created_date) — DATETIME — NOT NULL — 생성시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정시간

UserHistory (TB_USER_HISTORY)

  • id — BIGINT — Primary key — NOT NULL
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 유저 ID
  • type — ENUM — NOT NULL — 기록 종류
  • log — VARCHAR(150) — NOT NULL — 기록
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간

UserVote (TB_USER_VOTE)

  • id — BIGINT — Primary key — NOT NULL
  • userId (user_id) — BIGINT — Foreign key → User.id — NOT NULL — 투표자 FK
  • voteContentId (vote_content_id) — BIGINT — Foreign key → VoteContent.voteId — NOT NULL — 투표 콘텐츠 FK
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

Vote (TB_VOTE)

  • id — BIGINT — Primary key — NOT NULL
  • boardId (board_id) — BIGINT — Foreign key → Board.boardTypeId — NOT NULL — 게시판 FK
  • isDuplicate (is_duplicate) — TINYINT(1) — NOT NULL — 중복 선택 여부
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간

VoteContent (TB_VOTE_CONTENT)

  • id — BIGINT — Primary key — NOT NULL
  • voteId (vote_id) — BIGINT — Foreign key → Vote.id — NOT NULL — 투표 FK
  • content — VARCHAR(100) — NOT NULL — 투표 콘텐츠
  • createdDate (created_date) — DATETIME — NOT NULL — 생성 시간
  • modifiedDate (modified_date) — DATETIME — NOT NULL — 수정 시간