Merge pull request 'chore: 清除廢棄的 DB 表與 Model' (#5) from chore/db-cleanup into master
Tests / PHP 8.2 (push) Failing after 2s
Tests / PHP 8.3 (push) Failing after 1s

Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
2026-05-25 08:37:55 +00:00
4 changed files with 20 additions and 52 deletions
-32
View File
@@ -1,32 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
// 該模型已棄用,請使用ProviderProfile模型
class CoachProfile extends Model
{
/**
* 可以批量分配的屬性
*
* @var array<int, string>
*/
protected $fillable = [
'user_id',
'bio',
'expertise',
'certification',
'experience',
'rating',
'availability'
];
/**
* 與用戶的關聯
*/
public function user()
{
return $this->belongsTo(User::class);
}
}
-10
View File
@@ -1,10 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Plan extends Model
{
//
}
-10
View File
@@ -1,10 +0,0 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Subscription extends Model
{
//
}
@@ -0,0 +1,20 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::dropIfExists('subscriptions');
Schema::dropIfExists('plans');
Schema::dropIfExists('coach_member');
Schema::dropIfExists('coach_profiles');
}
public function down(): void
{
// 這些表已確認廢棄,不提供還原
}
};