Skip to content

Commit

Permalink
Merge branch 'develop' into deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun-lee committed Aug 19, 2024
2 parents 2eaac7e + 73528b4 commit 3f543e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI/CD using GitHub Actions & Docker
# main, deploy 브랜치에 push하면 워크플로우 실행
on:
push:
branches: [ "main", "deploy", "test-deploy"]
branches: [ "main", "deploy"]

jobs:
deploy:
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/sws/songpin/domain/member/entity/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public class Member extends BaseTimeEntity {
@Enumerated(EnumType.STRING)
private Status status;

@Column(name = "role", length = 20)
@NotNull
@Enumerated(EnumType.STRING)
private Role role;

@OneToMany(mappedBy = "creator", cascade = CascadeType.ALL, orphanRemoval = true)
private List<Pin> pins;

Expand All @@ -65,6 +70,7 @@ public Member(Long memberId, String email, String encodedPassword, String nickna
this.handle= handle;
this.profileImg = ProfileImg.POP;
this.status = Status.ACTIVE;
this.role = Role.ROLE_USER;
this.pins = new ArrayList<>();
}

Expand Down
6 changes: 6 additions & 0 deletions src/main/java/sws/songpin/domain/member/entity/Role.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package sws.songpin.domain.member.entity;

public enum Role {
ROLE_USER,
ROLE_ADMIN
}

0 comments on commit 3f543e4

Please sign in to comment.