package com.pandoli365.bibimbap.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface JamStatusLogMapper {

    @Insert("""
            INSERT INTO jam_status_log (
                jam_id,
                from_status,
                to_status,
                actor_id,
                transition_type
            ) VALUES (
                #{jamId},
                #{fromStatus},
                #{toStatus},
                #{actorId},
                #{transitionType}
            )
            """)
    int insert(@Param("jamId") long jamId,
               @Param("fromStatus") String fromStatus,
               @Param("toStatus") String toStatus,
               @Param("actorId") Long actorId,
               @Param("transitionType") String transitionType);
}
