You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
virt/web/app/Models/CloudTrafficUsageSettlement...

38 lines
1007 B
PHP

<?php
namespace App\Models;
final class CloudTrafficUsageSettlementBucket extends Model
{
protected $connection = 'default';
protected $table = 'cloud_traffic_usage_settlement_buckets';
protected $casts = [
'id' => 'int',
'pool_id' => 'int',
'user_id' => 'int',
'instance_id' => 'int',
'service_period_id' => 'int',
'entitlement_id' => 'int',
'allocation_target_id' => 'int',
'bucket_start' => 'int',
'seal_at' => 'int',
'bucket_revision' => 'int',
'event_identity' => 'string',
'amount_bytes' => 'int',
'download_bytes' => 'int',
'upload_bytes' => 'int',
'sample_count' => 'int',
'first_observed_at' => 'int',
'last_observed_at' => 'int',
'sealed_event_id' => 'int',
'created_at' => 'int',
'updated_at' => 'int',
];
public function pool()
{
return $this->belongsTo(CloudTrafficPool::class, 'pool_id');
}
}