Skip to content

Conversation

@alreadynyeong
Copy link
Member

@alreadynyeong alreadynyeong commented Feb 16, 2024

장소 수정 문의

구현 내용

  • 문의 테이블 추가
  • 문의 테이블에 데이터 삽입
스크린샷 2024-02-16 오후 2 32 30

Check List

  • 계획한 구현이 빠짐없이 구현됐는가?
  • 오류없이 제대로 동작하는가?

@alreadynyeong alreadynyeong self-assigned this Feb 16, 2024
@alreadynyeong alreadynyeong linked an issue Feb 16, 2024 that may be closed by this pull request
1 task
@junstory
Copy link
Contributor

Good!
DB는 아래 처럼 구성 했습니다!
image

CREATE TABLE `myplace_dev`.`complain` (
  `id` BIGINT NOT NULL AUTO_INCREMENT,
  `content` VARCHAR(300) NULL,
  `created_at` TIMESTAMP(6) NULL DEFAULT CURRENT_TIMESTAMP(6),
  `user_id` BIGINT NOT NULL,
  `place_id` BIGINT NOT NULL,
  PRIMARY KEY (`id`),
  INDEX `fk1_complain_user_idx` (`user_id` ASC) VISIBLE,
  INDEX `fk_complain_place1_idx` (`place_id` ASC) VISIBLE,
  CONSTRAINT `fk1_complain_user`
    FOREIGN KEY (`user_id`)
    REFERENCES `myplace_dev`.`user` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION,
  CONSTRAINT `fk_complain_place1`
    FOREIGN KEY (`place_id`)
    REFERENCES `myplace_dev`.`place` (`id`)
    ON DELETE NO ACTION
    ON UPDATE NO ACTION);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: 장소 수정 문의

3 participants