Esthete_Exhibition

Tables (16)

comments (댓글)

  • id (아이디) — LONG — Primary key — NOT NULL
  • exhibitions_id (전시 아이디) — LONG — Foreign key → exhibitions.id — NOT NULL
  • uuid (댓글 uuid) — UUID
  • users_uuid (방문자 UUID) — UUID
  • content (내용) — VARCHAR(50)
  • is_like (작가 좋아요) — BOOLEAN

exhibitions (전시)

  • id (아이디) — LONG — Primary key — NOT NULL
  • users_id (유저 아이디) — LONG — Foreign key → users.id — NOT NULL
  • uuid (UUID) — UUID
  • thumbnail_url (Cloud Front URL) — VARCHAR
  • title (제목) — VARCHAR(50)
  • description (설명) — TEXT
  • view_count (조회수) — LONG

exhibitions_locations (전시 장소)

  • id (아이디) — LONG — Primary key — NOT NULL
  • exhibitions_id (전시 아이디) — LONG — Foreign key → exhibitions.id — NOT NULL
  • temporary_exhibitions_id (임시저장 전시 아이디) — LONG — Foreign key → temporary_exhibitions.id — NOT NULL
  • longitude (경도) — VARCHAR(20)
  • latitude (위도) — VARCHAR(20)
  • state (시) — VARCHAR(20)
  • city (구) — VARCHAR(20)
  • town (동) — VARCHAR(20)

exhibitions_tags (전시 태그)

  • id (아이디) — LONG — Primary key — NOT NULL
  • exhibitions_id (전시 아이디) — LONG — Foreign key → exhibitions.id — NOT NULL
  • tags_id (태그 아이디) — LONG — Foreign key → tags.id — NOT NULL
  • temporary_exhibitions_id (임시저장 전시 아이디) — LONG — Foreign key → temporary_exhibitions.id — NOT NULL

follows (팔로우 (관계성))

  • id (아이디) — LONG — Primary key — NOT NULL
  • users_id (유저 아이디) — LONG — Foreign key → users.id — NOT NULL
  • follower_uuid (팔로워 유저 UUID) — UUID

likes (좋아요 내역)

  • id (아이디) — LONG — Primary key — NOT NULL
  • users_uuid (좋아요 누른 유저 UUID) — UUID
  • exhibitions_uuid (전시 UUID) — UUID

photos (사진)

  • id (아이디) — LONG — Primary key — NOT NULL
  • exhibitions_id (전시 아이디) — LONG — Foreign key → exhibitions.id — NOT NULL
  • temporary_exhibitions_id (임시저장 전시 아이디) — LONG — Foreign key → temporary_exhibitions.id — NOT NULL
  • uuid (UUID) — UUID
  • filters_uuid (필터 uuid) — UUID
  • gray_scale (필터 정도) — FLOAT

photos_tag (사진 태그)

  • id (아이디) — LONG — Primary key — NOT NULL
  • photos_id (사진 아이디) — LONG — Foreign key → photos.id — NOT NULL
  • tags_id (태그 아이디) — LONG — Foreign key → tags.id — NOT NULL

photos_urls (사진 이미지 URL)

  • id (아이디) — LONG — Primary key — NOT NULL
  • photos_id (사진 아이디) — LONG — Foreign key → photos.id — NOT NULL
  • uuid (UUID) — UUID
  • img_url (Cloud Front URL) — VARCHAR
  • s3_url (S3 URL) — VARCHAR

profile_urls (프로필 이미지 URL)

  • id (아이디) — LONG — Primary key — NOT NULL
  • users_id (유저 아이디) — LONG — Foreign key → users.id — NOT NULL
  • img_url (Cloud Front URL) — VARCHAR
  • s3_url (S3 URL) — VARCHAR

tags (태그)

  • id (아이디) — LONG — Primary key — NOT NULL
  • uuid (UUID) — UUID
  • name (이름) — VARCHAR(10)

temporary_exhibitions (임시저장 전시)

  • id (아이디) — LONG — Primary key — NOT NULL
  • users_id (유저 아이디) — LONG — Foreign key → users.id — NOT NULL
  • uuid (UUID) — UUID
  • thumbnail_url (Cloud Front URL) — VARCHAR
  • title (제목) — VARCHAR(50)
  • description (설명) — TEXT

users (유저)

  • id (아이디) — LONG — Primary key — NOT NULL
  • uuid (UUID) — UUID
  • nickname (닉네임) — VARCHAR(50)
  • email (이메일) — VARCHAR(50)
  • role (역할 (권한)) — VARCHAR(20)
  • gender (성별) — VARCHAR
  • introduce (한 줄 소개) — VARCHAR(20)
  • biography (약력 (긴 소개)) — TEXT
  • follower_count (팔로워 수) — LONG
  • following_count (팔로잉 수) — LONG
  • view_count (조회수) — LONG

users_tags (유저 태그)

  • id (아이디) — LONG — Primary key — NOT NULL
  • users_id (유저 아이디) — LONG — Foreign key → users.id — NOT NULL
  • tags_id (태그 아이디) — LONG — Foreign key → tags.id — NOT NULL

views (관람 내역)

  • id (아이디) — LONG — Primary key — NOT NULL
  • user_id (유저 아이디) — LONG — Foreign key → users.id — NOT NULL
  • exhibition_id (전시 아이디) — LONG — Foreign key → exhibitions.id — NOT NULL
  • photo_id (사진 아이디) — LONG — Foreign key → photos.id — NOT NULL

withdraw_reasons (탈퇴 이유)

  • id (아이디) — LONG — Primary key — NOT NULL
  • reason (이유 텍스트) — TEXT