Merge pull request #20 from SlimusMinus/add-rules_accepted
added field rules_accepted in posts
This commit is contained in:
@@ -18,4 +18,5 @@ public class PostRequest {
|
||||
private Double latitude;
|
||||
private Double longitude;
|
||||
private String address;
|
||||
private String rulesAccepted;
|
||||
}
|
||||
|
||||
@@ -26,4 +26,5 @@ import lombok.Data;
|
||||
private Long userId;
|
||||
private Long likeCount;
|
||||
private Role userRole;
|
||||
private String rulesAccepted;
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ public class Post {
|
||||
private Double longitude;
|
||||
private LocalDateTime createdAt;
|
||||
private String phone;
|
||||
private String rulesAccepted;
|
||||
|
||||
@Enumerated(EnumType.STRING)
|
||||
private PostType type;
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 013-add-rules_accepted-posts
|
||||
author: alexandr krylov
|
||||
changes:
|
||||
- addColumn:
|
||||
tableName: posts
|
||||
columns:
|
||||
- column:
|
||||
name: rules_accepted
|
||||
type: boolean
|
||||
defaultValueBoolean: false
|
||||
constraints:
|
||||
nullable: false
|
||||
@@ -15,3 +15,4 @@ databaseChangeLog:
|
||||
- include: { file: db/changelog/add/004-add-fields-user.yaml }
|
||||
- include: { file: db/changelog/add/005-add-user-avatarUrl.yaml }
|
||||
- include: { file: db/changelog/create/008-create-reviews.yaml }
|
||||
- include: { file: db/changelog/add/013-add-rules_accepted-posts.yaml}
|
||||
Reference in New Issue
Block a user