highball-maniac

Tables (10)

Comment (comments)

  • 단계 ID (id) — int — Primary key — NOT NULL
  • 레시피 ID (recipe_id) — int — Foreign key → Recipe.레시피 ID — NOT NULL
  • 유저 ID (user_id) — int — Foreign key → User.유저 ID — NOT NULL
  • 내용 (content) — varchar(511)
  • 생성 일자 (created_at) — datetime

Ingredient (ingredients)

  • 재료 ID (id) — int — Primary key — NOT NULL
  • 이름 (name) — varchar(127)
  • 설명 (discription) — varchar(255)
  • 사진 URL (image) — varchar(255)

Item (items)

  • 아이템 ID (id) — int — Primary key — NOT NULL
  • 이름 (name) — varchar(127)
  • 설명 (discription) — varchar(255)
  • 사진 URL (image) — varchar(255)

Item-Ingredint (item_ingredint)

  • 아이템 ID (item_id) — int — Foreign key → Item.아이템 ID — NOT NULL
  • 재료 ID (ingredient_id) — int — Foreign key → Ingredient.재료 ID — NOT NULL

Recipe (recipes)

  • 레시피 ID (id) — int — Primary key — NOT NULL
  • 유저 ID (user_id) — int — Foreign key → User.유저 ID — NOT NULL
  • 이름 (name) — varchar(127)
  • 설명 (discription) — varchar(511)
  • 제조법 (recipe) — varchar(1023)
  • 사진 URL (image) — varchar(255)
  • 도수 (alcohol) — byte
  • 생성 일자 (created_at) — datetime

Recipe-Ingredient (recipe_ingredient)

  • 레시피 ID (recipe_id) — int — Foreign key → Recipe.레시피 ID — NOT NULL
  • 재료 ID (id2) — int — Foreign key → Ingredient.재료 ID — NOT NULL

Recipe-Item (resipes_items)

  • 레시피 ID (recipe_id) — int — Foreign key → Recipe.레시피 ID — NOT NULL
  • 아이템 ID (item_id) — int — Foreign key → Item.아이템 ID — NOT NULL

Recipe-Tag (recipes_tags)

  • 레시피 ID (recipe_id) — int — Foreign key → Recipe.레시피 ID — NOT NULL
  • 태그 ID (tag_id) — int — Foreign key → Tag.태그 ID — NOT NULL

Tag (tags)

  • 태그 ID (id) — int — Primary key — NOT NULL
  • 태그 이름 (name) — varchar(64)

User (users)

  • 유저 ID (id) — int — Primary key — NOT NULL
  • 유저 이름 (name) — varchar(127)
  • 이메일 (email) — varchar(127)
  • 비밀번호 (password) — varchar(255)
  • 생성 일자 (created_at) — datetime