parent
a0074f5eb4
commit
2f8c5a3bfc
4 changed files with 92 additions and 28 deletions
@ -0,0 +1,32 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace App\Models; |
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
||||||
|
use Illuminate\Database\Eloquent\Model; |
||||||
|
|
||||||
|
class Agent extends Model |
||||||
|
{ |
||||||
|
use HasFactory; |
||||||
|
|
||||||
|
protected $table = 'se_agent'; |
||||||
|
protected $fillable = [ |
||||||
|
'id', |
||||||
|
'name', |
||||||
|
'root_path', |
||||||
|
'code', |
||||||
|
'grant', |
||||||
|
'type', |
||||||
|
'phone', |
||||||
|
'addess', |
||||||
|
'avatar', |
||||||
|
'status', |
||||||
|
'description', |
||||||
|
'created_by', |
||||||
|
'updated_by', |
||||||
|
'created_at', |
||||||
|
'updated_at', |
||||||
|
'deleted', |
||||||
|
'deleted_at' |
||||||
|
]; |
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
namespace App\Models; |
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory; |
||||||
|
use Illuminate\Database\Eloquent\Model; |
||||||
|
|
||||||
|
class AgentUser extends Model |
||||||
|
{ |
||||||
|
use HasFactory; |
||||||
|
|
||||||
|
protected $table = 'se_agent_user'; |
||||||
|
protected $fillable = [ |
||||||
|
'id', |
||||||
|
'user_id', |
||||||
|
'agent_root_id', |
||||||
|
'root_id', |
||||||
|
'status', |
||||||
|
'created_by', |
||||||
|
'updated_by', |
||||||
|
'created_at', |
||||||
|
'updated_at', |
||||||
|
'deleted', |
||||||
|
'deleted_at' |
||||||
|
]; |
||||||
|
} |
@ -1,20 +0,0 @@ |
|||||||
<?php |
|
||||||
|
|
||||||
namespace App\Models; |
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory; |
|
||||||
use Illuminate\Database\Eloquent\Model; |
|
||||||
use Illuminate\Database\Eloquent\SoftDeletes; |
|
||||||
|
|
||||||
class Currency extends Model |
|
||||||
{ |
|
||||||
use HasFactory, SoftDeletes; |
|
||||||
|
|
||||||
/** |
|
||||||
* The table associated with the model. |
|
||||||
* |
|
||||||
* @var string |
|
||||||
*/ |
|
||||||
protected $table = 'sys_currency'; |
|
||||||
protected $fillable = ['name', 'symbol', 'description', 'decimal_length', 'created_by', 'updated_by', 'actived']; |
|
||||||
} |
|
Loading…
Reference in new issue