Skip to content

Commit

Permalink
[go] update HPFollow schema
Browse files Browse the repository at this point in the history
**Summary**

include follow type per elineupmall category to generate follow configuration

**Test**

- go test
- $ go run ./cmd/ --prod ent productionize
```
ALTER TABLE `hp_follows` MODIFY COLUMN `type` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'follow_with_notification', ADD COLUMN `elineupmall_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_daily` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_a4` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_a5` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_2l` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_album` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_album_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_book` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_photo_book_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd_magazine` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_dvd_magazine_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_blueray` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_penlight` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_pinnap_poster` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_photo` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_collection_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_tshirt` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_microfiber_towel` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_muffler_towel` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_fsk` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_keyring_other` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown', ADD COLUMN `elineupmall_clear_file` enum('follow','follow_with_notification','unfollow','unknown') NOT NULL DEFAULT 'unknown';
ALTER TABLE `test_ents` AUTO_INCREMENT 111669149696;
```

**Issue**

- #116
  • Loading branch information
yssk22 committed Dec 22, 2024
1 parent ecfaf03 commit 8789018
Show file tree
Hide file tree
Showing 13 changed files with 8,115 additions and 531 deletions.
24 changes: 24 additions & 0 deletions go/graphql/v3/generated/ent.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,30 @@ type HPFollow implements Node {
createdAt: Time
updatedAt: Time
type: HPFollowHPFollowType!
elineupmallOther: HPFollowHPFollowType!
elineupmallPhotoDaily: HPFollowHPFollowType!
elineupmallPhotoA4: HPFollowHPFollowType!
elineupmallPhotoA5: HPFollowHPFollowType!
elineupmallPhoto2l: HPFollowHPFollowType!
elineupmallPhotoOther: HPFollowHPFollowType!
elineupmallPhotoAlbum: HPFollowHPFollowType!
elineupmallPhotoAlbumOther: HPFollowHPFollowType!
elineupmallPhotoBook: HPFollowHPFollowType!
elineupmallPhotoBookOther: HPFollowHPFollowType!
elineupmallDvd: HPFollowHPFollowType!
elineupmallDvdMagazine: HPFollowHPFollowType!
elineupmallDvdMagazineOther: HPFollowHPFollowType!
elineupmallBlueray: HPFollowHPFollowType!
elineupmallPenlight: HPFollowHPFollowType!
elineupmallCollectionPinnapPoster: HPFollowHPFollowType!
elineupmallCollectionPhoto: HPFollowHPFollowType!
elineupmallCollectionOther: HPFollowHPFollowType!
elineupmallTshirt: HPFollowHPFollowType!
elineupmallMicrofiberTowel: HPFollowHPFollowType!
elineupmallMufflerTowel: HPFollowHPFollowType!
elineupmallFsk: HPFollowHPFollowType!
elineupmallKeyringOther: HPFollowHPFollowType!
elineupmallClearFile: HPFollowHPFollowType!
user: User!
member: HPMember!
}
Expand Down
Loading

0 comments on commit 8789018

Please sign in to comment.