Skip to content

Conversation

@wibaek
Copy link
Member

@wibaek wibaek commented Aug 10, 2024

No description provided.

nayonsoso and others added 15 commits July 23, 2024 20:22
- 변수명 변경, 가독성을 위한 개행, 하드코딩 제거
- 로그인하지 않아도 접근할 수 있는 페이지 목록 수정
refactor: 추천 대학 조회 API 수정
* feat: 커뮤니티 관련 엔티티 정의

* test: 커뮤니티 관련 테이블 존재 여부 테스트 생성

* refactor: @DynamicUpdate, @DynamicInsert 어노테이션 BaseEntity로 이동

* style: 파일 끝에 개행 추가
* refactor: 엔티티 클래스에서 빌더패턴 대신 생성자 사용

* feat: 연관관계 편의 메소드 작성

* feat: 커뮤니티 관련 DTO 정의

* feat: 커뮤니티 레포지토리 정의

* feat: 커뮤니티 서비스 로직 추가

* feat: 재귀 쿼리를 위한 Transient 필드 추가 및 댓글 서비스 로직 추가

* feat: 커뮤니티 컨트롤러 로직 추가

* feat: 커뮤니티 예외 추가

* feat: 게시글 조회수 동시성 처리 로직 추가

* feat: 게시판 데이터 추가

* feat: Mockito 의존성 추가

* test: 커뮤니티 레포지토리 테스트 추가

* test: 커뮤니티 서비스 테스트 추가

* test: 게시글 조회수 동시성 처리 테스트 추가

* feat: BaseEntity 동작을 위해 @EnableScheduling 어노테이션 추가

* feat: 로컬 환경에서 도커 컨테이너 빌드 자동화하는 쉘 스크립트 작성

* refactor: BoardCode 불일치 문제 해결

* refactor: 함수명 컨벤션에 따라 수정

* refactor: 불필요한 Getter 삭제

* feat: 스케줄링 작업 비동기로 전환

* feat: 조회수 갱신 작업 비동기로 전환

* feat: 조회수 조작 막는 코드 추가

* test: 조회수 조작 막는 테스트코드 추가

* refactor: 재사용성을 고려하여 RedisService 함수 리팩토링

* refactor: 중복코드 RedisUtils 함수화
@wibaek wibaek added the 릴리즈 Marks pull request for release label Aug 10, 2024
@wibaek wibaek changed the title [RELEASE] 커뮤니티 기능 [RELEASE]커뮤니티 기능 Aug 10, 2024
@wibaek wibaek merged commit 50b6702 into release Aug 10, 2024
@wibaek
Copy link
Member Author

wibaek commented Aug 10, 2024

DB 마이그레이션 내역

create table board (
code varchar(20) not null,
korean_name varchar(20) not null,
primary key (code)
) engine=InnoDB;

create table comment (
created_at datetime(6),
id bigint not null auto_increment,
parent_id bigint,
post_id bigint,
site_user_id bigint,
updated_at datetime(6),
content varchar(255),
primary key (id)
) engine=InnoDB;

create table post (
is_question bit,
created_at datetime(6),
id bigint not null auto_increment,
like_count bigint,
site_user_id bigint,
updated_at datetime(6),
view_count bigint,
board_code varchar(20),
content varchar(1000),
category enum ('자유','전체','질문'),
title varchar(255),
primary key (id)
) engine=InnoDB;

create table post_image (
id bigint not null auto_increment,
post_id bigint,
url varchar(500),
primary key (id)
) engine=InnoDB;

create table post_like (
id bigint not null auto_increment,
post_id bigint,
site_user_id bigint,
primary key (id)
) engine=InnoDB;

alter table comment
add constraint FKde3rfu96lep00br5ov0mdieyt
foreign key (parent_id)
references comment (id);

alter table comment
add constraint FKs1slvnkuemjsq2kj4h3vhx7i1
foreign key (post_id)
references post (id);

alter table comment
add constraint FK11tfff2an5hdv747cktxbdi6t
foreign key (site_user_id)
references site_user (id);

alter table post
add constraint FKlpnkhhbfb3gg3tfreh2a7qh8b
foreign key (board_code)
references board (code);

alter table post
add constraint FKfu9q9o3mlqkd58wg45ykgu8ni
foreign key (site_user_id)
references site_user (id);

alter table post_image
add constraint FKsip7qv57jw2fw50g97t16nrjr
foreign key (post_id)
references post (id);

alter table post_like
add constraint FKj7iy0k7n3d0vkh8o7ibjna884
foreign key (post_id)
references post (id);

alter table post_like
add constraint FKgx1v0whinnoqveopoh6tb4ykb
foreign key (site_user_id)
references site_user (id);

INSERT INTO board (code, korean_name)
VALUES ('EUROPE', '유럽권'),
('AMERICAS', '미주권'),
('ASIA', '아시아권'),
('FREE', '자유게시판');

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

Labels

릴리즈 Marks pull request for release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants