Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| TblUserG3wMapping | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| user | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Models; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
| 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | |
| 8 | class TblUserG3wMapping extends Model |
| 9 | { |
| 10 | use HasFactory; |
| 11 | |
| 12 | protected $table = 'tbl_user_g3w_mapping'; |
| 13 | |
| 14 | protected $primaryKey = 'id'; |
| 15 | |
| 16 | public $incrementing = false; |
| 17 | |
| 18 | protected $fillable = [ |
| 19 | 'name_g3w', |
| 20 | 'id_fst' |
| 21 | ]; |
| 22 | |
| 23 | public function user() |
| 24 | { |
| 25 | return $this->belongsTo(TblUsers::class, 'id_fst', 'id'); |
| 26 | } |
| 27 | |
| 28 | } |