2019-06-07 06:54:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
2021-06-30 04:18:12 +00:00
|
|
|
use App\Traits\NextKey;
|
|
|
|
|
2019-06-07 06:54:27 +00:00
|
|
|
class Module extends Model
|
|
|
|
{
|
2021-06-30 04:18:12 +00:00
|
|
|
use NextKey;
|
|
|
|
|
|
|
|
const RECORD_ID = 'module';
|
|
|
|
|
2019-06-07 06:54:27 +00:00
|
|
|
protected $table = 'ab_module';
|
2021-06-30 04:18:12 +00:00
|
|
|
public $incrementing = FALSE;
|
2019-06-07 06:54:27 +00:00
|
|
|
public $timestamps = FALSE;
|
|
|
|
|
|
|
|
public function record()
|
|
|
|
{
|
|
|
|
return $this->hasOne(Record::class);
|
|
|
|
}
|
|
|
|
}
|