25 lines
467 B
PHP
25 lines
467 B
PHP
<?php
|
|
|
|
namespace App\Models\Member;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
|
|
class MemStRing extends Model
|
|
{
|
|
|
|
|
|
protected $table = 'mem_st_ring';
|
|
protected $primaryKey = 'mem_no';
|
|
public $incrementing = false;
|
|
protected $keyType = 'int';
|
|
|
|
protected $guarded = [];
|
|
|
|
public function member(): BelongsTo
|
|
{
|
|
return $this->belongsTo(MemInfo::class, 'mem_no', 'mem_no');
|
|
}
|
|
}
|