<?php

namespace App\Models;

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

class Creator_Package extends Model
{
    use HasFactory;

    protected $table = 'tbl_creator_package';
    protected $guarded = array();

    protected $casts = [
        'id' => 'integer',
        'user_id' => 'integer',
        'name' => 'string',
        'price' => 'integer',
        'time' => 'integer',
        'type' => 'string',
        'image' => 'string',
        'android_product_package' => 'string',
        'ios_product_package' => 'string',
        'web_product_package' => "string",
        'status' => 'integer',
    ];
    public function creator()
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
