package com.yaoai.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yaoai.domain.entity.Scene;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SceneMapper extends BaseMapper<Scene> {

    @Select("SELECT * FROM scenes WHERE project_id=#{projectId} AND tenant_id=#{tenantId} ORDER BY created_at ASC")
    List<Scene> findByProject(Long projectId, Long tenantId);
}
