-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding permission column in consumer
- Loading branch information
1 parent
eb27638
commit a3f49c2
Showing
4 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
src/main/java/com/pedro/sphynx/application/dtos/consumer/ConsumerDataEditInput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
package com.pedro.sphynx.application.dtos.consumer; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record ConsumerDataEditInput(@NotBlank String tag){ | ||
public record ConsumerDataEditInput(@NotBlank String tag, @NotNull String permission){ | ||
} |
4 changes: 3 additions & 1 deletion
4
src/main/java/com/pedro/sphynx/application/dtos/consumer/ConsumerDataInput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
package com.pedro.sphynx.application.dtos.consumer; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record ConsumerDataInput( | ||
@NotBlank String ra, | ||
@NotBlank String tag){ | ||
@NotBlank String tag, | ||
@NotNull int permission){ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/main/resources/db/migration/V10__alter-table-consumers-add-permission.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table consumers add permission int; |