Skip to content

Commit

Permalink
[refactor] #60 - 각 테이블 pk column명 변경 (#61)
Browse files Browse the repository at this point in the history
* [#60] refactor: 도메인_id -> id로 각 테이블 pk column명 변경

* [#60] retactor:  url endpoint 변경 -> (api/v1/stores)

* [#60] retactor:  url endpoint 변경 -> (api/v1/store)
  • Loading branch information
sae2say authored Jan 17, 2025
1 parent 14fece4 commit a9b91ba
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class BannerTableConstants {
public static final String TABLE_BANNER = "banner";
public static final String COLUMN_ID = "banner_id";
public static final String COLUMN_ID = "id";
public static final String COLUMN_PHOTO_URL = "photo_url";
public static final String COLUMN_SEQUENCE = "sequence";
public static final String COLUMN_REDIRECT_URL = "redirect_url";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class ChatMessageTableConstants {
public static final String TABLE_CHAT_MESSAGE = "chat_message";
public static final String COLUMN_ID = "message_id";
public static final String COLUMN_ID = "id";
public static final String COLUMN_CHAT_ROOM_ID = "chat_room_id";
public static final String COLUMN_CONTENT = "content";
public static final String COLUMN_CREATED_AT = "created_at";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class ChatRoomTableConstants {
public static final String TABLE_CHAT_ROOM = "chat_room";
public static final String COLUMN_ID = "chat_room_id";
public static final String COLUMN_ID = "id";
public static final String COLUMN_CREATED_AT = "created_at";
public static final String COLUMN_UPDATED_AT = "updated_at";
public static final String COLUMN_PRODUCT_ID = "product_id";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class GenreTableConstants {
public static final String TABLE_GENRE = "genre";
public static final String COLUMN_ID = "genre_id";
public static final String COLUMN_ID = "id";
public static final String COLUMN_NAME = "name";
public static final String COLUMN_PHOTO_URL = "photo_url";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class InterestTableConstants {
public static final String TABLE_INTEREST = "interest";
public static final String COLUMN_ID = "review_id";
public static final String COLUMN_ID = "id";
public static final String COLUMN_STORE_ID = "store_id";
public static final String COLUMN_PRODUCT_ID = "product_id";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

public class HashtagTableConstants {
public final static String TABLE_HASHTAG = "hashtag";
public final static String COLUMN_ID = "hashtag_id";
public final static String COLUMN_ID = "id";
public final static String COLUMN_NAME = "name";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class ProductHashtagTableConstants {
public final static String TABLE_PRODUCT_HASHTAG = "product_hashtag";
public final static String COLUMN_ID = "product_hashtag_id";
public final static String COLUMN_ID = "id";
public final static String COLUMN_PRODUCT_ID = "product_id";
public final static String COLUMN_HASHTAG_ID = "hashtag_id";
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class ProductPhotoTableConstants {
public final static String TABLE_PRODUCT_PHOTO = "product_photo";
public final static String COLUMN_ID = "column_id";
public final static String COLUMN_ID = "id";
public final static String COLUMN_PRODUCT_ID = "product_id";
public final static String COLUMN_PHOTO_URL = "photo_url";
public final static String COLUMN_SEQUENCE = "sequence";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class ReviewTableConstants {

public static final String TABLE_REVIEW = "review";
public static final String COLUMN_ID = "review_id";
public static final String COLUMN_ID = "id";
public static final String COLUMN_RATE = "rate";
public static final String COLUMN_COMMENT = "comment";
public static final String COLUMN_CREATED_AT = "created_at";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


@RestController
@RequestMapping("api/stores")
@RequestMapping("api/v1/store")
@RequiredArgsConstructor
public class StoreController implements StoreApi {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class GenrePreferenceTableConstants {

public static final String TABLE_GENRE_PREFERENCE = "genre_preference";
public static final String COLUMN_GENRE_PREFERENCE_ID = "genre_preference_id";
public static final String COLUMN_GENRE_PREFERENCE_ID = "id";
public static final String COLUMN_STORE_ID = "store_id";
public static final String COLUMN_GENRE_ID = "genre_id";

Expand Down

0 comments on commit a9b91ba

Please sign in to comment.