From bbb3f8dbda92fd513743b9bb6f9379c2d916506d Mon Sep 17 00:00:00 2001 From: "allen.yan" Date: Mon, 16 Jun 2025 21:20:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=20=E5=90=8C=E6=AD=A5Branch?= =?UTF-8?q?=20=E8=B3=87=E6=96=99=E6=9C=83=E5=85=A8=E9=83=A8=E5=88=B0?= =?UTF-8?q?=E5=88=86=E5=BA=97=E5=8E=BB=E7=9A=84=E5=95=8F=E9=A1=8C=20202506?= =?UTF-8?q?16?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Jobs/ExportSqliteBranchJob.php | 2 -- app/Models/RoomStatusLog.php | 6 ++++-- database/.DS_Store | Bin 6148 -> 6148 bytes 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Jobs/ExportSqliteBranchJob.php b/app/Jobs/ExportSqliteBranchJob.php index b9b5fd7..bd05d54 100644 --- a/app/Jobs/ExportSqliteBranchJob.php +++ b/app/Jobs/ExportSqliteBranchJob.php @@ -46,7 +46,6 @@ class ExportSqliteBranchJob implements ShouldQueue $exporter->exportMultiple([ 'branches' => [ - 'modelClass' => Branch::class, 'query' => fn () => Branch::where('id', $this->branchId)->get(), 'tableSchema' => function ($table) { $table->id(); @@ -65,7 +64,6 @@ class ExportSqliteBranchJob implements ShouldQueue ], ], 'rooms' => [ - 'modelClass' => Room::class, 'query' => fn () => Room::where('branch_id', $this->branchId)->get(), 'tableSchema' => function ($table) { $table->id(); diff --git a/app/Models/RoomStatusLog.php b/app/Models/RoomStatusLog.php index 7080beb..1c7dca5 100644 --- a/app/Models/RoomStatusLog.php +++ b/app/Models/RoomStatusLog.php @@ -7,7 +7,6 @@ use Illuminate\Database\Eloquent\Model; class RoomStatusLog extends Model { - /** @use HasFactory<\Database\Factories\ArtistFactory> */ use HasFactory; public $timestamps = true; @@ -23,8 +22,11 @@ class RoomStatusLog extends Model protected $casts = [ 'status' => \App\Enums\RoomStatus::class, ]; - + public function user(){ + return $this->belongsTo(User::class); + } public function room() { return $this->belongsTo(Room::class); } + } diff --git a/database/.DS_Store b/database/.DS_Store index 780579599a8d83aa7068b7c2f1386b758910a918..9a9a023a3b99fb7b125cd44b10191445d78bca31 100644 GIT binary patch delta 274 zcmZoMXfc=|#>B`mu~2NHo}wr-0|Nsi1A_nqLlQ$GLoq`tgC0Zi#Er}AK@$87DL}yz zAV!j8C}hZC$OMX}7L+9Ulopp10aYq7gn~5}0ZDzJ`WzrkWyk{>Rte|uHJD4XnumAvPhBuJ_ delta 87 zcmZoMXfc=|#>CJzu~2NHo}wrt0|NsP3otMwGL$f6GUPMlF%(ZMRA*$|e2USQZ4;9n m<7Rdaeh#3H%^w-RGf(Ch(d7hbIsn8BlWlmUH^+!9VFmzHvlEa2