<?php

namespace App\Models;

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

class Bucket extends Model
{
    use HasFactory;
     protected $fillable = [
        'user_id',
        'bucket_name',
        'root_folder',
        'access_key',
        'secret_key',
        'region',
        'acl',
        'status',
    ];
   public function getCompanyName()
    {
            return $this->hasOne(Company::class,'id','user_id');
    }
}
