30 lines
616 B
PHP
30 lines
616 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\AppendOnlyInventoryRecord;
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/** @property int $id
|
|
* @property int $goods_receipt_id
|
|
* @property string $path
|
|
* @property string $sha256
|
|
* @property string $original_name
|
|
*/
|
|
class ReceiptDocument extends Model
|
|
{
|
|
use AppendOnlyInventoryRecord, BelongsToTenant;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $hidden = ['path', 'tenant_id'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['created_at' => 'datetime'];
|
|
}
|
|
}
|