Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] #60 - 각 테이블 pk column명 변경 #61

Merged
merged 3 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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