Skip to content

Commit 386ff87

Browse files
committed
Add new property, other updates.
1 parent 7041438 commit 386ff87

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

src/main/java/com/theateam/waaprojectspringbackend/entity/Property.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@ public class Property {
1717
private long id;
1818

1919
private String name;
20+
21+
private String shortDescription;
22+
23+
@Lob
2024
private String description;
25+
2126
private String slug;
2227

2328
@Column(precision = 10, scale = 2)

src/main/java/com/theateam/waaprojectspringbackend/entity/dto/request/PropertyRequestDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
public class PropertyRequestDto {
99
private String name;
1010
private String slug;
11+
private String shortDescription;
1112
private String description;
1213
private BigDecimal price;
1314
}

src/main/java/com/theateam/waaprojectspringbackend/entity/dto/response/PropertyDetailsResponseDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
public class PropertyDetailsResponseDto {
99
long id;
1010
String name;
11+
String shortDescription;
1112
String description;
1213
String slug;
1314
BigDecimal price;

src/main/java/com/theateam/waaprojectspringbackend/entity/dto/response/PropertyResponseDto.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
public class PropertyResponseDto {
99
long id;
1010
String name;
11+
String shortDescription;
1112
String description;
1213
String slug;
1314
BigDecimal price;

src/main/resources/data.sql

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ INSERT INTO users_roles (user_id, role_id) VALUES (93, 93);
1919
INSERT INTO users_roles (user_id, role_id) VALUES (94, 92);
2020
INSERT INTO users_roles (user_id, role_id) VALUES (95, 93);
2121

22-
INSERT INTO properties (id, slug, status, name, description, price, owner_id)
23-
VALUES (91, 'property-first', 'STATUS_AVAILABLE', 'Miami House', 'Excellent house in Miami Beach site', 100000, 91);
24-
INSERT INTO properties (id, slug, status, name, description, price, owner_id)
25-
VALUES (92, 'property-two' , 'STATUS_AVAILABLE','Iowa Golden Home', 'Beautiful House with peaceful surrounding', 300000, 92);
26-
INSERT INTO properties (id, slug, status, name, description, price, owner_id)
27-
VALUES (93, 'property-three', 'STATUS_AVAILABLE', 'California Dream House', 'Your dream house in the heart of California downtown.', 250000, 92);
22+
INSERT INTO properties (id, slug, status, name, short_description, description, price, owner_id)
23+
VALUES (91, 'property-first', 'STATUS_AVAILABLE', 'Miami House', 'Excellent house in Miami Beach site', 'Excellent house in Miami Beach site', 100000, 91);
24+
INSERT INTO properties (id, slug, status, name, short_description, description, price, owner_id)
25+
VALUES (92, 'property-two' , 'STATUS_AVAILABLE','Iowa Golden Home', 'Beautiful House with peaceful surrounding', 'Beautiful House with peaceful surrounding', 300000, 92);
26+
INSERT INTO properties (id, slug, status, name, short_description, description, price, owner_id)
27+
VALUES (93, 'property-three', 'STATUS_AVAILABLE', 'California Dream House', 'Your dream house in the heart of California downtown.', 'Your dream house in the heart of California downtown.', 250000, 92);
2828

2929
-- Offer
3030
INSERT INTO offers (id, message, price, customer_id, status, property_id)

0 commit comments

Comments
 (0)