Skip to content

Commit

Permalink
feat: storeTeam 테이블 생성 (9oormthon-univ#25)
Browse files Browse the repository at this point in the history
* feat: 결제 기능 요구사항 반영

* feat: Team 도메인 수정 및 일급 컬렉션화 (#3)

* feat: 팀 생성 기능 구현 (#4)

* feat: Team 도메인 수정 및 일급 컬렉션화

* feat: 팀 생성 기능 구현

* feat: storeTeam 테이블 생성
  • Loading branch information
LEEJaeHyeok97 authored Nov 18, 2024
1 parent a63a709 commit b4f8cf2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/main/java/com/jangburich/domain/store/domain/StoreTeam.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.jangburich.domain.store.domain;

import com.jangburich.domain.common.BaseEntity;
import com.jangburich.domain.team.domain.Team;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.FetchType;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Entity
@Getter
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class StoreTeam extends BaseEntity {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", updatable = false)
private Long id;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "store_id")
private Store store;

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "team_id")
private Team team;
}

0 comments on commit b4f8cf2

Please sign in to comment.