<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LarkPushed extends Model
{
    use HasFactory;

    protected $table = 'lark_pushed';

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'owner_id',
        'owner_type',
        'is_success',
    ];

    /**
     * Get the owning model (polymorphic relation).
     */
    public function owner()
    {
        return $this->morphTo();
    }
}
