'datetime:Y-m-d H:i:s', 'last_login_at' => 'datetime:Y-m-d H:i:s', 'created_at' => 'datetime:Y-m-d H:i:s', 'store_id' => 'integer', 'status' => 'integer', ]; /** * 关联门店 */ public function store(): BelongsTo { return $this->belongsTo(StoreModel::class, 'store_id', 'id'); } /** * 用户通知 */ public function notices(): HasMany { return $this->hasMany(NoticeModel::class, 'user_id', 'id'); } }