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

GBS-39 | User Follow Tablosunun adının düzeltilmesi #166

Merged
merged 5 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -10,7 +10,7 @@
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_followers")
@Table(name = "gb_user_follow")
public class UserFollowEntity extends BaseEntity {

@Id
Expand Down
27 changes: 25 additions & 2 deletions src/main/resources/db/migration/V1__ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,31 @@ create table if not exists gb_user_verification
create table if not exists gb_user_follow
(
id bigint generated always as identity primary key,
follower_user_id varchar(36) not null,
followed_user_id varchar(36) not null,
follower_user_id
varchar
(
36
) not null,
followed_user_id varchar
(
36
) not null,
created_by varchar
(
255
) not null,
created_at timestamp
(
0
) not null,
updated_by varchar
(
255
),
updated_at timestamp
(
0
),
agitrubard marked this conversation as resolved.
Show resolved Hide resolved
constraint u__gb_user_follow__follower_user_id__followed_user_id unique (follower_user_id, followed_user_id),
constraint fk__gb_user_follow__follower_user_id foreign key (follower_user_id) references gb_user (id),
constraint fk__gb_user_follow__followed_user_id foreign key (followed_user_id) references gb_user (id)
Expand Down
Loading