初始化项目
This commit is contained in:
47
app/Models/YiiModels/StoreDoctor.php
Normal file
47
app/Models/YiiModels/StoreDoctor.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\YiiModels;
|
||||
|
||||
use App\Models\Extend\SoftDeletesInt;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* App\Models\YiiModels\StoreDoctor
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $store_id 门店id
|
||||
* @property int $su_id 关联服务端用户表su_id
|
||||
* @property int $is_online 是否在该门店0否1是
|
||||
* @property int $last_login_time 最近登录时间
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
* @property int $is_delete 是否删除0否1是
|
||||
* @property-read string $created_at_format 创建时间的格式化
|
||||
* @property-read string $status_string 状态名称
|
||||
* @property-read string $updated_at_format 更新时间的格式化
|
||||
* @property-read \App\Models\YiiModels\Store|null $store
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\StoreDoctor newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\StoreDoctor newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\YiiModels\StoreDoctor query()
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class StoreDoctor extends YiiBaseModel
|
||||
{
|
||||
use SoftDeletesInt;
|
||||
|
||||
public const IS_ONLINE_OFFLINE = 0;
|
||||
public const IS_ONLINE_ONLINE = 1;
|
||||
public const IS_ONLINE = [
|
||||
self::IS_ONLINE_OFFLINE => '离线',
|
||||
self::IS_ONLINE_ONLINE => '在线',
|
||||
];
|
||||
|
||||
/**
|
||||
* @comment
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function store(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Store::class, 'store_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user