likes

Like data table

Column name Type Index Description
id bigint(20) unsigned auto_increment Primary Key
user_id bigint(20) unsigned Index Like belongsTo(User) relation key
Like를 한 사용자 id
likeable_id bigint(20) unsigned Index Like의 대상 모델 id
Like morphTo relation key
likeable_type varchar(255) utf8mb4_unicode_ci Index Like의 대상 모델 type
Like morphTo relation key
created_at timestamp nullable
updated_at timestamp nullable