You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
791 B
30 lines
791 B
4 years ago
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
||
|
/**
|
||
|
* This is the model class for table "uc_company_t".
|
||
|
*
|
||
|
* @property $id bigint
|
||
|
* @property $title varchar
|
||
|
* @property $name varchar
|
||
|
* @property $pid int
|
||
|
* @property $created_at timestamp
|
||
|
* @property $updated_at timestamp
|
||
|
*/
|
||
|
class CompanyT extends Model
|
||
|
{
|
||
|
use HasFactory;
|
||
|
|
||
|
protected $table = 'uc_company_t';
|
||
|
|
||
|
public $attrs = [
|
||
|
'title' => ['name' => 'title', 'title' => '简称', 'type' => 'varchar', 'is_must' => '1'],
|
||
|
'name' => ['name' => 'name', 'title' => '公司名称', 'type' => 'varchar', 'is_must' => '1'],
|
||
|
'pid' => ['name' => 'pid', 'title' => '上级公司ID', 'type' => 'int', 'is_must' => '1'],
|
||
|
];
|
||
|
}
|