acc-univ-proj

테이블 (4)

계정 (User)

  • PK (user_id) — Integer — 기본 키 — NOT NULL
  • 아이디 (username) — String — NOT NULL
  • 비밀번호 (password) — String — NOT NULL
  • 가용 용량 (user_volume) — Integer — NOT NULL — 파일 용량만큼 감소

계정-로그 (User_Log)

  • PK (user_id) — Integer — 외래 키 → 계정.PK — NOT NULL
  • PK (log_id) — Integer — 외래 키 → 로그.PK — NOT NULL

로그 (Log)

  • PK (log_id) — Integer — 기본 키 — NOT NULL
  • 행동 (log_action) — String — NOT NULL — 파일 다운로드, 조회 등
  • 행동 시간 (log_time) — LocalDateTime — NOT NULL
  • PK (file_id) — Integer — 외래 키 → 파일.PK — NOT NULL

파일 (File)

  • PK (file_id) — Integer — 기본 키 — NOT NULL
  • 파일명 (file_name) — String — NOT NULL
  • 파일 확장자 (file_extension) — String — NOT NULL
  • 업로드 날짜 (file_upload) — LocalDateTime — NOT NULL
  • 파일 경로 (file_path) — String — NOT NULL
  • 파일 용량 (file_volume) — Integer — NOT NULL
  • 파일 공유 링크 (file_link) — String
  • PK (user_id) — Integer — 외래 키 → 계정.PK — NOT NULL