erd_ticketing

Tables (3)

ticket_comments

  • 댓글아이디 (comment_id) — bigint — Primary key — NOT NULL — auto_increment
  • 티켓아이디 (ticket_id) — bigint — Foreign key → tickets.티켓아이디 — NOT NULL
  • 유저아이디 (user_id2) — bigint — Foreign key → tickets.유저아이디 — NOT NULL
  • Field (title) — varchar(255) — NOT NULL
  • 댓글내용 (content) — CLOB — NOT NULL
  • 생성날짜 (created_at) — timestamp — default current_timestamp

tickets

  • 티켓아이디 (ticket_id) — bigint — Primary key — NOT NULL — auto_increment
  • 유저아이디 (user_id) — bigint — Foreign key → users.유저아이디 — NOT NULL
  • Field (title) — varchar(255) — NOT NULL
  • 내용 (content) — CLOB — NOT NULL
  • 상태 (status) — varchar(30) — NOT NULL
  • 생성날짜 (created_at) — timestamp — default current_timestamp
  • 수정날짜 (updated_at) — timestamp — default current_timestamp
  • 담당자 (assigned_to) — BIGINT — Foreign key → users.유저아이디 — NOT NULL

users

  • 유저아이디 (user_id) — bigint — Primary key — NOT NULL — auto_increment
  • 이메일 (email) — varchar(255) — NOT NULL — Unique Key
  • 비밀번호 (password) — varchar(255) — NOT NULL
  • 이름 (name) — varchar(100) — NOT NULL
  • 등급 (role) — varchar(20) — NOT NULL
  • 생성날짜 (created_at) — timestamp — NOT NULL — default current_timestamp