mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-15 18:14:09 -08:00
6f700ccc95
Signed-off-by: snipe <snipe@snipe.net>
30 lines
634 B
PHP
30 lines
634 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Import extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $casts = [
|
|
'header_row' => 'array',
|
|
'first_row' => 'array',
|
|
'field_map' => 'json',
|
|
];
|
|
|
|
/**
|
|
* Establishes the license -> admin user relationship
|
|
*
|
|
* @author A. Gianotto <snipe@snipe.net>
|
|
* @since [v2.0]
|
|
* @return \Illuminate\Database\Eloquent\Relations\Relation
|
|
*/
|
|
public function adminuser()
|
|
{
|
|
return $this->belongsTo(\App\Models\User::class, 'created_by');
|
|
}
|
|
}
|