Browse Source

feat:删除迁移文件;实现省市区相关接口

Yin Bin 4 months ago
parent
commit
7477a052a1
53 changed files with 284 additions and 1826 deletions
  1. 65 1
      app/Admin/Controllers/SysRegionController.php
  2. 8 0
      app/Admin/routes.php
  3. 69 1
      app/Services/SysRegionService.php
  4. 1 0
      composer.json
  5. 141 1
      composer.lock
  6. 0 33
      database/migrations/0001_01_01_000000_create_sessions_table.php
  7. 0 35
      database/migrations/0001_01_01_000001_create_cache_table.php
  8. 0 57
      database/migrations/0001_01_01_000002_create_jobs_table.php
  9. 0 33
      database/migrations/2024_11_06_103526_create_personal_access_tokens_table.php
  10. 0 40
      database/migrations/2024_11_13_104115_create_member_users_table.php
  11. 0 38
      database/migrations/2024_11_14_024122_create_member_social_accounts_table.php
  12. 0 43
      database/migrations/2024_11_14_030706_create_member_real_auth_records_table.php
  13. 0 44
      database/migrations/2024_11_14_034951_create_coach_users_table.php
  14. 0 46
      database/migrations/2024_11_14_040012_create_coach_info_records_table.php
  15. 0 43
      database/migrations/2024_11_14_052608_create_coach_qual_records_table.php
  16. 0 41
      database/migrations/2024_11_14_055814_create_coach_scores_table.php
  17. 0 42
      database/migrations/2024_11_14_060429_create_coach_locations_table.php
  18. 0 54
      database/migrations/2024_11_14_061044_create_order_table.php
  19. 0 39
      database/migrations/2024_11_14_062258_create_order_exc_records_table.php
  20. 0 38
      database/migrations/2024_11_14_064000_create_order_records_table.php
  21. 0 38
      database/migrations/2024_11_14_064557_create_order_dist_records_table.php
  22. 0 36
      database/migrations/2024_11_14_065116_create_order_grab_records_table.php
  23. 0 39
      database/migrations/2024_11_14_070022_create_order_comments_table.php
  24. 0 41
      database/migrations/2024_11_14_081022_create_wallet_table.php
  25. 0 46
      database/migrations/2024_11_14_085358_create_wallet_trans_records_table.php
  26. 0 48
      database/migrations/2024_11_14_091306_create_wallet_withdraw_records_table.php
  27. 0 45
      database/migrations/2024_11_14_103213_create_wallet_payment_records_table.php
  28. 0 45
      database/migrations/2024_11_14_104039_create_wallet_refund_records_table.php
  29. 0 42
      database/migrations/2024_11_14_104843_create_wallet_split_records_table.php
  30. 0 36
      database/migrations/2024_11_14_105834_create_shop_infos_table.php
  31. 0 59
      database/migrations/2024_11_14_110716_create_shop_auth_records_table.php
  32. 0 37
      database/migrations/2024_11_14_111822_create_project_cate_table.php
  33. 0 41
      database/migrations/2024_11_14_113520_create_shop_services_table.php
  34. 0 36
      database/migrations/2024_11_14_115736_create_shop_coach_services_table.php
  35. 0 27
      database/migrations/2024_11_14_120000_create_user_feedbacks_table.php
  36. 0 38
      database/migrations/2024_11_15_040819_create_agent_infos_table.php
  37. 0 44
      database/migrations/2024_11_15_041123_create_agent_info_records_table.php
  38. 0 43
      database/migrations/2024_11_15_041634_create_agent_real_auth_records_table.php
  39. 0 44
      database/migrations/2024_11_15_093359_create_sys_region_table.php
  40. 0 45
      database/migrations/2024_11_18_040034_create_project_table.php
  41. 0 43
      database/migrations/2024_11_18_051648_create_member_address_table.php
  42. 0 35
      database/migrations/2024_11_18_063954_create_sys_config_table.php
  43. 0 36
      database/migrations/2024_11_20_100445_create_agent_project_cate_table.php
  44. 0 39
      database/migrations/2024_11_20_100525_create_agent_project_table.php
  45. 0 43
      database/migrations/2024_11_20_131419_create_coach_real_auth_records_table.php
  46. 0 41
      database/migrations/2024_11_20_133233_create_coach_project_table.php
  47. 0 37
      database/migrations/2024_11_21_144232_create_agent_project_config_table.php
  48. 0 38
      database/migrations/2024_11_25_130010_create_market_dist_teams_table.php
  49. 0 52
      database/migrations/2024_11_25_155822_create_report_user_list_table.php
  50. 0 1
      database/migrations/2024_xx_xx_add_foreign_key_to_orders_table.php
  51. 0 1
      database/migrations/2024_xx_xx_insert_delivery_fee_config.php
  52. 0 1
      database/migrations/xxxx_xx_xx_create_coach_users_table.php
  53. 0 0
      doc/系统设计/系统架构/微信集成解决方案.md

+ 65 - 1
app/Admin/Controllers/SysRegionController.php

@@ -79,4 +79,68 @@ class SysRegionController extends AdminController
 			amis()->TextControl('updated_at', admin_trans('admin.updated_at'))->static(),
 		]);
 	}
-}
+
+	/**
+	 * 获取省份列表
+	 */
+	public function getProvinceList()
+	{
+		return $this->response()->success($this->service->getProvinceList());
+	}
+
+	/**
+	 * 获取省份
+	 */
+	public function getProvince()
+	{
+		return $this->response()->success($this->service->getProvince());
+	}
+
+	/**
+	 * 获取城市列表
+	 */
+	public function getCity($provinceId)
+	{
+		return $this->response()->success($this->service->getCity($provinceId));
+	}
+
+	/**
+	 * 获取区域列表
+	 */
+	public function getArea($cityId)
+	{
+		return $this->response()->success($this->service->getArea($cityId));
+	}
+
+	/**
+	 * 获取所有省份
+	 */
+	public function getAllProvince()
+	{
+		return $this->response()->success($this->service->getAllProvince());
+	}
+
+	/**
+	 * 获取所有城市
+	 */
+	public function getAllCity()
+	{
+		return $this->response()->success($this->service->getAllCity());
+	}
+
+	/**
+	 * 获取所有区域
+	 */
+	public function getAllArea()
+	{
+		return $this->response()->success($this->service->getAllArea());
+	}
+
+	/**
+	 * 获取所有街道
+	 */
+	public function getAllStreet()
+	{
+		return $this->response()->success($this->service->getAllStreet());
+	}
+}

+ 8 - 0
app/Admin/routes.php

@@ -12,4 +12,12 @@ Route::group([
 ], function (Router $router) {
     $router->resource('dashboard', \App\Admin\Controllers\HomeController::class);
     $router->resource('system/settings', \App\Admin\Controllers\SettingController::class);
+    $router->get('sys_region/province_list', 'SysRegionController@getProvinceList');
+    $router->get('sys_region/province', 'SysRegionController@getProvince');
+    $router->get('sys_region/city/{provinceId}', 'SysRegionController@getCity');
+    $router->get('sys_region/area/{cityId}', 'SysRegionController@getArea');
+    $router->get('sys_region/all_province', 'SysRegionController@getAllProvince');
+    $router->get('sys_region/all_city', 'SysRegionController@getAllCity');
+    $router->get('sys_region/all_area', 'SysRegionController@getAllArea');
+    $router->get('sys_region/all_street', 'SysRegionController@getAllStreet');
 });

+ 69 - 1
app/Services/SysRegionService.php

@@ -14,4 +14,72 @@ use Slowlyo\OwlAdmin\Services\AdminService;
 class SysRegionService extends AdminService
 {
 	protected string $modelName = SysRegion::class;
-}
+
+    /**
+     * 获取省份列表
+     */
+    public function getProvinceList()
+    {
+        return $this->query()->where('depth', 1)->get();
+    }
+
+    /**
+     * 获取省份(与getProvinceList相同)
+     */
+    public function getProvince()
+    {
+        return $this->getProvinceList();
+    }
+
+    /**
+     * 获取指定省份的城市列表
+     */
+    public function getCity($provinceId)
+    {
+        return $this->query()->where('parent_id', $provinceId)
+            ->where('depth', 2)
+            ->get();
+    }
+
+    /**
+     * 获取指定城市的区域列表
+     */
+    public function getArea($cityId)
+    {
+        return $this->query()->where('parent_id', $cityId)
+            ->where('depth', 3)
+            ->get();
+    }
+
+    /**
+     * 获取所有省份
+     */
+    public function getAllProvince()
+    {
+        return $this->getProvinceList();
+    }
+
+    /**
+     * 获取所有城市
+     */
+    public function getAllCity()
+    {
+        return $this->query()->where('depth', 2)->get();
+    }
+
+    /**
+     * 获取所有区域
+     */
+    public function getAllArea()
+    {
+        return $this->query()->where('depth', 3)->get();
+    }
+
+    /**
+     * 获取所有街道
+     */
+    public function getAllStreet()
+    {
+        return $this->query()->where('depth', 4)->get();
+    }
+}

+ 1 - 0
composer.json

@@ -16,6 +16,7 @@
         "simplesoftwareio/simple-qrcode": "^4.2",
         "slowlyo/owl-admin": "^4.0",
         "slowlyo/owl-dict": "^1.3",
+        "slowlyo/owl-icon-cache": "^0.1.0",
         "slowlyo/owl-log-viewer": "^1.0",
         "slowlyo/owl-module-notice": "^1.1",
         "slowlyo/owl-operation-log": "^0.2.3",

+ 141 - 1
composer.lock

@@ -4,8 +4,60 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "d6497144549bf544f9ccb8210f9c2e22",
+    "content-hash": "331b49e4d88dd88bdaefcaaff07223f1",
     "packages": [
+        {
+            "name": "aoxiang/province-city-area",
+            "version": "1.2.8",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/aoxiang594/laravel-province-city-area.git",
+                "reference": "29e0303e01876dc575e872a547df97a0bf513935"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/aoxiang594/laravel-province-city-area/zipball/29e0303e01876dc575e872a547df97a0bf513935",
+                "reference": "29e0303e01876dc575e872a547df97a0bf513935",
+                "shasum": ""
+            },
+            "require": {
+                "guzzlehttp/guzzle": "~7.0",
+                "guzzlehttp/psr7": "~2.0",
+                "php": "^7.0 || ^8.0"
+            },
+            "type": "library",
+            "extra": {
+                "laravel": {
+                    "providers": [
+                        "Aoxiang\\Pca\\ProvinceCityAreaServiceProvider"
+                    ],
+                    "alias": {
+                        "ProvinceCityArea": "Aoxiang\\Pca\\Facades\\ProvinceCityAreaFacades"
+                    }
+                }
+            },
+            "autoload": {
+                "psr-4": {
+                    "Aoxiang\\Pca\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "Aoxiang",
+                    "email": "mail@aoxiang.me"
+                }
+            ],
+            "description": "China Province City Area From JD.COM",
+            "support": {
+                "issues": "https://github.com/aoxiang594/laravel-province-city-area/issues",
+                "source": "https://github.com/aoxiang594/laravel-province-city-area/tree/1.2.8"
+            },
+            "time": "2023-05-16T07:59:56+00:00"
+        },
         {
             "name": "bacon/bacon-qr-code",
             "version": "2.0.8",
@@ -1342,6 +1394,38 @@
             ],
             "time": "2023-12-03T19:50:20+00:00"
         },
+        {
+            "name": "iconify/json",
+            "version": "2.2.276",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/iconify/icon-sets.git",
+                "reference": "aea1e648b6d28c7f95c3afb0eaf1338cffb0d980"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/iconify/icon-sets/zipball/aea1e648b6d28c7f95c3afb0eaf1338cffb0d980",
+                "reference": "aea1e648b6d28c7f95c3afb0eaf1338cffb0d980",
+                "shasum": ""
+            },
+            "type": "library",
+            "autoload": {
+                "psr-4": {
+                    "Iconify\\IconsJSON\\": "lib"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "description": "Iconify icons collection in JSON format",
+            "homepage": "https://iconify.design/icon-sets/",
+            "support": {
+                "issues": "https://github.com/iconify/icon-sets/issues",
+                "source": "https://github.com/iconify/icon-sets/tree/2.2.276"
+            },
+            "time": "2024-11-25T06:57:03+00:00"
+        },
         {
             "name": "iwzh/owl-scheduling",
             "version": "1.0.2",
@@ -4174,6 +4258,62 @@
             },
             "time": "2024-07-08T03:05:14+00:00"
         },
+        {
+            "name": "slowlyo/owl-icon-cache",
+            "version": "v0.1.0",
+            "source": {
+                "type": "git",
+                "url": "https://github.com/slowlyo/owl-icon-cache.git",
+                "reference": "696a2b48ce2c5dbee0dad1f0a76622ad9bac8a28"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://api.github.com/repos/slowlyo/owl-icon-cache/zipball/696a2b48ce2c5dbee0dad1f0a76622ad9bac8a28",
+                "reference": "696a2b48ce2c5dbee0dad1f0a76622ad9bac8a28",
+                "shasum": ""
+            },
+            "require": {
+                "iconify/json": "*",
+                "php": ">=8.0",
+                "slowlyo/owl-admin": "*"
+            },
+            "type": "library",
+            "extra": {
+                "owl-admin": "Slowlyo\\OwlIconCache\\OwlIconCacheServiceProvider",
+                "laravel": {
+                    "providers": [
+                        "Slowlyo\\OwlIconCache\\OwlIconCacheServiceProvider"
+                    ]
+                }
+            },
+            "autoload": {
+                "psr-4": {
+                    "Slowlyo\\OwlIconCache\\": "src/"
+                }
+            },
+            "notification-url": "https://packagist.org/downloads/",
+            "license": [
+                "MIT"
+            ],
+            "authors": [
+                {
+                    "name": "slowlyo",
+                    "email": "slowlyo_email@qq.com"
+                }
+            ],
+            "description": "让 iconify 图标可以离线使用",
+            "homepage": "https://github.com/slowlyo/owl-icon-cache",
+            "keywords": [
+                "extension",
+                "icon",
+                "owl-admin"
+            ],
+            "support": {
+                "issues": "https://github.com/slowlyo/owl-icon-cache/issues",
+                "source": "https://github.com/slowlyo/owl-icon-cache/tree/v0.1.0"
+            },
+            "time": "2024-05-01T08:30:19+00:00"
+        },
         {
             "name": "slowlyo/owl-log-viewer",
             "version": "1.0.0",

+ 0 - 33
database/migrations/0001_01_01_000000_create_sessions_table.php

@@ -1,33 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     */
-    public function up(): void
-    {
-
-        Schema::create('sessions', function (Blueprint $table) {
-            $table->string('id')->primary();
-            $table->foreignId('user_id')->nullable()->index();
-            $table->string('ip_address', 45)->nullable();
-            $table->text('user_agent')->nullable();
-            $table->longText('payload');
-            $table->integer('last_activity')->index();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     */
-    public function down(): void
-    {
-        Schema::dropIfExists('sessions');
-    }
-};
-

+ 0 - 35
database/migrations/0001_01_01_000001_create_cache_table.php

@@ -1,35 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     */
-    public function up(): void
-    {
-        Schema::create('cache', function (Blueprint $table) {
-            $table->string('key')->primary();
-            $table->mediumText('value');
-            $table->integer('expiration');
-        });
-
-        Schema::create('cache_locks', function (Blueprint $table) {
-            $table->string('key')->primary();
-            $table->string('owner');
-            $table->integer('expiration');
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     */
-    public function down(): void
-    {
-        Schema::dropIfExists('cache');
-        Schema::dropIfExists('cache_locks');
-    }
-};

+ 0 - 57
database/migrations/0001_01_01_000002_create_jobs_table.php

@@ -1,57 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     */
-    public function up(): void
-    {
-        Schema::create('jobs', function (Blueprint $table) {
-            $table->id();
-            $table->string('queue')->index();
-            $table->longText('payload');
-            $table->unsignedTinyInteger('attempts');
-            $table->unsignedInteger('reserved_at')->nullable();
-            $table->unsignedInteger('available_at');
-            $table->unsignedInteger('created_at');
-        });
-
-        Schema::create('job_batches', function (Blueprint $table) {
-            $table->string('id')->primary();
-            $table->string('name');
-            $table->integer('total_jobs');
-            $table->integer('pending_jobs');
-            $table->integer('failed_jobs');
-            $table->longText('failed_job_ids');
-            $table->mediumText('options')->nullable();
-            $table->integer('cancelled_at')->nullable();
-            $table->integer('created_at');
-            $table->integer('finished_at')->nullable();
-        });
-
-        Schema::create('failed_jobs', function (Blueprint $table) {
-            $table->id();
-            $table->string('uuid')->unique();
-            $table->text('connection');
-            $table->text('queue');
-            $table->longText('payload');
-            $table->longText('exception');
-            $table->timestamp('failed_at')->useCurrent();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     */
-    public function down(): void
-    {
-        Schema::dropIfExists('jobs');
-        Schema::dropIfExists('job_batches');
-        Schema::dropIfExists('failed_jobs');
-    }
-};

+ 0 - 33
database/migrations/2024_11_06_103526_create_personal_access_tokens_table.php

@@ -1,33 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     */
-    public function up(): void
-    {
-        Schema::create('personal_access_tokens', function (Blueprint $table) {
-            $table->id();
-            $table->morphs('tokenable');
-            $table->string('name');
-            $table->string('token', 64)->unique();
-            $table->text('abilities')->nullable();
-            $table->timestamp('last_used_at')->nullable();
-            $table->timestamp('expires_at')->nullable();
-            $table->timestamps();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     */
-    public function down(): void
-    {
-        Schema::dropIfExists('personal_access_tokens');
-    }
-};

+ 0 - 40
database/migrations/2024_11_13_104115_create_member_users_table.php

@@ -1,40 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('member_users', function (Blueprint $table) {
-            $table->comment('用户管理');
-            $table->increments('id');
-            $table->string('mobile')->default('')->comment('手机号');
-            $table->string('password')->default('')->comment('密码');
-            $table->string('nickname')->nullable()->comment('昵称');
-            $table->string('avatar')->nullable()->comment('头像');
-            $table->string('gender')->default('UNKNOWN')->comment('性别');
-            $table->string('register_area')->nullable()->comment('注册地(行政区划代码)');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('member_users');
-    }
-};

+ 0 - 38
database/migrations/2024_11_14_024122_create_member_social_accounts_table.php

@@ -1,38 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('member_social_accounts', function (Blueprint $table) {
-            $table->comment('社交账号管理');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->string('platform')->default('')->comment('社交平台');
-            $table->string('social_id')->default('')->comment('社交账号');
-            $table->string('nickname')->nullable()->comment('昵称');
-            $table->string('avatar')->nullable()->comment('头像');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('member_social_accounts');
-    }
-};

+ 0 - 43
database/migrations/2024_11_14_030706_create_member_real_auth_records_table.php

@@ -1,43 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('member_real_auth_records', function (Blueprint $table) {
-            $table->comment('用户实名认证记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->string('real_name')->default('')->comment('真实姓名');
-            $table->string('id_card')->default('')->comment('身份证号');
-            $table->string('id_card_front_photo')->default('')->comment('身份证正面照片');
-            $table->string('id_card_back_photo')->default('')->comment('身份证反面照片');
-            $table->string('id_card_hand_photo')->default('')->comment('手持身份证照片');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('state')->default('PENDING')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('member_real_auth_records');
-    }
-};

+ 0 - 44
database/migrations/2024_11_14_034951_create_coach_users_table.php

@@ -1,44 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_users', function (Blueprint $table) {
-            $table->comment('技师');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->unsignedBigInteger('info_record_id')->nullable()->comment('技师信息记录编号');
-            $table->unsignedBigInteger('real_auth_record_id')->nullable()->comment('技师实名认证记录编号');
-            $table->unsignedBigInteger('qualification_record_id')->nullable()->comment('技师资质认证记录编号');
-            $table->unsignedBigInteger('shop_id')->nullable()->comment('店铺编号');
-            $table->string('level')->nullable()->comment('技师等级');
-            $table->integer('virtual_order')->default(new \Illuminate\Database\Query\Expression('0'))->nullable()->comment('虚拟订单数');
-            $table->decimal('score')->default(new \Illuminate\Database\Query\Expression('5.0'))->nullable()->comment('评分');
-            $table->string('work_status')->default('rest')->comment('工作状态');
-            $table->string('virtual_status')->default('disable')->comment('虚拟状态');
-            $table->string('state')->default('pending')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_users');
-    }
-};

+ 0 - 46
database/migrations/2024_11_14_040012_create_coach_info_records_table.php

@@ -1,46 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_info_records', function (Blueprint $table) {
-            $table->comment('技师信息记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->string('nickname')->nullable()->comment('昵称');
-            $table->string('avatar')->nullable()->comment('头像');
-            $table->string('gender')->default('UNKNOWN')->comment('性别');
-            $table->string('mobile')->default('')->comment('服务电话');
-            $table->date('birthday')->nullable()->comment('出生日期');
-            $table->integer('work_years')->nullable()->comment('从业年份');
-            $table->string('intention_city')->nullable()->comment('意向城市');
-            $table->text('introduction')->nullable()->comment('个人简介');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('state')->default('PENDING')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_info_records');
-    }
-};

+ 0 - 43
database/migrations/2024_11_14_052608_create_coach_qual_records_table.php

@@ -1,43 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_qual_records', function (Blueprint $table) {
-            $table->comment('技师资质认证记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->string('qual_type')->default('')->comment('资质类型');
-            $table->string('qual_no')->nullable()->comment('资质证书编号');
-            $table->string('qual_photo')->default('')->comment('资质证书照片');
-            $table->date('valid_start')->nullable()->comment('有效期开始日期');
-            $table->date('valid_end')->nullable()->comment('有效期结束日期');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('state')->default('PENDING')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_qual_records');
-    }
-};

+ 0 - 41
database/migrations/2024_11_14_055814_create_coach_scores_table.php

@@ -1,41 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_scores', function (Blueprint $table) {
-            $table->comment('技师评分');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->integer('service_duration')->default(new \Illuminate\Database\Query\Expression('0'))->nullable()->comment('服务时长(分钟)');
-            $table->integer('order_count')->default(new \Illuminate\Database\Query\Expression('0'))->nullable()->comment('订单数量');
-            $table->decimal('good_rate')->default(new \Illuminate\Database\Query\Expression('0.00'))->nullable()->comment('好评率');
-            $table->decimal('efficiency')->default(new \Illuminate\Database\Query\Expression('0.00'))->nullable()->comment('服务效率');
-            $table->decimal('punctual_rate')->default(new \Illuminate\Database\Query\Expression('0.00'))->nullable()->comment('准时率');
-            $table->decimal('completion_rate')->default(new \Illuminate\Database\Query\Expression('0.00'))->nullable()->comment('完成率');
-            $table->decimal('rating_score')->default(new \Illuminate\Database\Query\Expression('5.0'))->nullable()->comment('评价得分');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_scores');
-    }
-};

+ 0 - 42
database/migrations/2024_11_14_060429_create_coach_locations_table.php

@@ -1,42 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_locations', function (Blueprint $table) {
-            $table->comment('技师定位');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->string('type')->default('CURRENT')->comment('地址类型');
-            $table->decimal('latitude')->comment('纬度');
-            $table->decimal('longitude')->comment('经度');
-            $table->string('province')->default('')->comment('省');
-            $table->string('city')->default('')->comment('市');
-            $table->string('district')->default('')->comment('区');
-            $table->string('location')->default('')->comment('定位地址');
-            $table->string('area_code')->default('')->comment('行政区划代码');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_locations');
-    }
-};

+ 0 - 54
database/migrations/2024_11_14_061044_create_order_table.php

@@ -1,54 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('order', function (Blueprint $table) {
-            $table->comment('订单');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->unsignedBigInteger('service_id')->comment('项目编号');
-            $table->unsignedBigInteger('channel_id')->nullable()->comment('渠道编号');
-            $table->unsignedBigInteger('shop_id')->nullable()->comment('店铺编号');
-            $table->unsignedBigInteger('customer_service_id')->nullable()->comment('跟单客服编号');
-            $table->string('order_type')->default('')->comment('订单类型');
-            $table->string('order_source')->default('PLATFORM')->comment('订单来源');
-            $table->decimal('total_amount')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('订单金额');
-            $table->decimal('service_amount')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('项目金额');
-            $table->decimal('traffic_amount')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('路程金额');
-            $table->json('service_snapshot')->nullable()->comment('项目快照');
-            $table->timestamp('service_time')->comment('服务时间');
-            $table->integer('distance')->default(new \Illuminate\Database\Query\Expression('0'))->nullable()->comment('目的地距离(米)');
-            $table->decimal('latitude')->comment('目的地纬度');
-            $table->decimal('longitude')->comment('目的地经度');
-            $table->string('location')->default('')->comment('目的地定位地址');
-            $table->string('address')->nullable()->comment('目的地详细地址');
-            $table->string('area_code')->default('')->comment('目的地行政区划代码');
-            $table->string('remark')->nullable()->comment('订单备注');
-            $table->string('state')->default('CREATED')->comment('订单状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('order');
-    }
-};

+ 0 - 39
database/migrations/2024_11_14_062258_create_order_exc_records_table.php

@@ -1,39 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('order_exc_records', function (Blueprint $table) {
-            $table->comment('订单异常记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('customer_service_id')->nullable()->comment('跟单客服编号');
-            $table->string('type')->default('')->comment('异常类型');
-            $table->string('reason')->default('')->comment('异常原因');
-            $table->string('remark')->nullable()->comment('备注');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('order_exc_records');
-    }
-};

+ 0 - 38
database/migrations/2024_11_14_064000_create_order_records_table.php

@@ -1,38 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('order_records', function (Blueprint $table) {
-            $table->comment('订单记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('object_id')->comment('对象编号');
-            $table->string('object_type')->default('')->comment('对象类型');
-            $table->string('state')->default('')->comment('记录状态');
-            $table->string('remark')->nullable()->comment('备注');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('order_records');
-    }
-};

+ 0 - 38
database/migrations/2024_11_14_064557_create_order_dist_records_table.php

@@ -1,38 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('order_dist_records', function (Blueprint $table) {
-            $table->comment('订单分销记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('object_id')->comment('对象编号');
-            $table->string('object_type')->default('')->comment('对象类型');
-            $table->string('dist_type')->default('')->comment('分销类型');
-            $table->decimal('amount')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('分销金额');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('order_dist_records');
-    }
-};

+ 0 - 36
database/migrations/2024_11_14_065116_create_order_grab_records_table.php

@@ -1,36 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('order_grab_records', function (Blueprint $table) {
-            $table->comment('订单抢单记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->string('state')->default('JOINED')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('order_grab_records');
-    }
-};

+ 0 - 39
database/migrations/2024_11_14_070022_create_order_comments_table.php

@@ -1,39 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('order_comments', function (Blueprint $table) {
-            $table->comment('订单评论');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->text('content')->nullable()->comment('评论内容');
-            $table->unsignedTinyInteger('rating')->default(new \Illuminate\Database\Query\Expression('5'))->comment('评论星级');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('order_comments');
-    }
-};

+ 0 - 41
database/migrations/2024_11_14_081022_create_wallet_table.php

@@ -1,41 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('wallet', function (Blueprint $table) {
-            $table->comment('钱包');
-            $table->increments('id');
-            $table->unsignedBigInteger('owner_id')->comment('所属主体编号');
-            $table->string('owner_type')->default('')->comment('钱包类型');
-            $table->decimal('total_balance')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('总余额');
-            $table->decimal('available_balance')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('可用余额');
-            $table->decimal('frozen_amount')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('冻结金额');
-            $table->decimal('total_income')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('累计收入');
-            $table->decimal('total_expense')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('累计支出');
-            $table->string('state')->default('ENABLE')->comment('状态:ENABLE-启用,DISABLE-禁用');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('wallet');
-    }
-};

+ 0 - 46
database/migrations/2024_11_14_085358_create_wallet_trans_records_table.php

@@ -1,46 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('wallet_trans_records', function (Blueprint $table) {
-            $table->comment('钱包交易记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('wallet_id')->comment('钱包编号');
-            $table->unsignedBigInteger('owner_id')->comment('业务类型编号');
-            $table->string('owner_type')->default('')->comment('业务类型(profit:分账 recharge:充值 withdraw:提现 refund:退款 payment:支付 gift:赠送 breach:违约 compensation:补偿)');
-            $table->string('trans_type')->default('')->comment('交易类型(income:收入 expense:支出)');
-            $table->string('storage_type')->default('')->comment('存储类型(balance:余额 recharge:充值)');
-            $table->decimal('amount')->comment('交易金额');
-            $table->decimal('before_balance')->comment('交易前余额');
-            $table->decimal('after_balance')->comment('交易后余额');
-            $table->decimal('before_recharge_balance')->comment('交易前充值余额');
-            $table->decimal('after_recharge_balance')->comment('交易后充值余额');
-            $table->dateTime('trans_time')->comment('交易时间');
-            $table->string('remark')->nullable()->comment('备注');
-            $table->string('state')->default('')->comment('交易状态(processing:进行中 success:成功 fail:失败 cancel:取消)');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('wallet_trans_records');
-    }
-};

+ 0 - 48
database/migrations/2024_11_14_091306_create_wallet_withdraw_records_table.php

@@ -1,48 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('wallet_withdraw_records', function (Blueprint $table) {
-            $table->comment('钱包提现记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('wallet_id')->comment('钱包编号');
-            $table->string('external_no')->nullable()->comment('外部交易单号');
-            $table->string('withdraw_type')->default('')->comment('提现方式');
-            $table->string('withdraw_account')->default('')->comment('提现账户');
-            $table->string('withdraw_account_name')->default('')->comment('提现账户名');
-            $table->decimal('amount')->comment('提现金额');
-            $table->decimal('fee')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('提现手续费');
-            $table->timestamp('withdraw_time')->nullable()->comment('提现时间');
-            $table->string('area_code')->default('')->comment('行政区划代码');
-            $table->string('remark')->nullable()->comment('备注');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('audit_state')->default('pending')->comment('审核状态');
-            $table->string('state')->default('processing')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('wallet_withdraw_records');
-    }
-};

+ 0 - 45
database/migrations/2024_11_14_103213_create_wallet_payment_records_table.php

@@ -1,45 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('wallet_payment_records', function (Blueprint $table) {
-            $table->comment('钱包支付记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('wallet_id')->comment('钱包编号');
-            $table->unsignedBigInteger('trans_record_id')->nullable()->comment('交易记录编号');
-            $table->string('payment_no')->default('')->comment('交易单号');
-            $table->string('payment_method')->default('')->comment('支付方式');
-            $table->decimal('total_amount')->comment('合计支付金额');
-            $table->decimal('actual_amount')->comment('实际支付金额');
-            $table->decimal('used_wallet_balance')->comment('使用钱包余额');
-            $table->decimal('used_recharge_balance')->comment('使用充值余额');
-            $table->timestamp('payment_time')->nullable()->comment('支付时间');
-            $table->string('remark')->nullable()->comment('备注');
-            $table->string('state')->default('pending')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('wallet_payment_records');
-    }
-};

+ 0 - 45
database/migrations/2024_11_14_104039_create_wallet_refund_records_table.php

@@ -1,45 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('wallet_refund_records', function (Blueprint $table) {
-            $table->comment('钱包退款记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('wallet_id')->comment('钱包编号');
-            $table->unsignedBigInteger('trans_record_id')->nullable()->comment('交易记录编号');
-            $table->string('external_no')->nullable()->comment('外部交易单号');
-            $table->string('refund_method')->default('')->comment('退款方式');
-            $table->decimal('total_refund_amount')->comment('合计退款金额');
-            $table->decimal('actual_refund_amount')->comment('实际退款金额');
-            $table->decimal('wallet_balance_refund_amount')->comment('钱包余额退款金额');
-            $table->decimal('recharge_balance_refund_amount')->comment('充值余额退款金额');
-            $table->timestamp('refund_time')->nullable()->comment('退款时间');
-            $table->string('remark')->nullable()->comment('备注');
-            $table->string('state')->default('pending')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('wallet_refund_records');
-    }
-};

+ 0 - 42
database/migrations/2024_11_14_104843_create_wallet_split_records_table.php

@@ -1,42 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('wallet_split_records', function (Blueprint $table) {
-            $table->comment('钱包分账记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('order_id')->comment('订单编号');
-            $table->unsignedBigInteger('rule_id')->comment('分账规则配置编号');
-            $table->string('split_type')->default('')->comment('分账类型(服务佣金、平台分成、邀请奖励、团队邀请奖励、推荐奖励)');
-            $table->decimal('amount')->comment('参与分账金额');
-            $table->decimal('split_ratio')->comment('分账比例');
-            $table->decimal('split_amount')->comment('分账金额');
-            $table->timestamp('entry_time')->nullable()->comment('入账时间');
-            $table->string('remark')->nullable()->comment('入账备注');
-            $table->string('state')->default('pending')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('wallet_split_records');
-    }
-};

+ 0 - 36
database/migrations/2024_11_14_105834_create_shop_infos_table.php

@@ -1,36 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('shop_infos', function (Blueprint $table) {
-            $table->comment('店铺');
-            $table->increments('id');
-            $table->unsignedBigInteger('auth_record_id')->nullable()->comment('店铺认证记录编号');
-            $table->unsignedBigInteger('salesperson_id')->nullable()->comment('业务员编号');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('shop_infos');
-    }
-};

+ 0 - 59
database/migrations/2024_11_14_110716_create_shop_auth_records_table.php

@@ -1,59 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('shop_auth_records', function (Blueprint $table) {
-            $table->comment('店铺认证记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('shop_id')->comment('店铺编号');
-            $table->string('shop_name')->default('')->comment('店铺名称');
-            $table->text('shop_desc')->nullable()->comment('店铺描述');
-            $table->string('shop_address')->default('')->comment('店铺地址');
-            $table->string('contact_phone')->default('')->comment('店铺联系电话');
-            $table->string('contact_name')->default('')->comment('店铺联系人');
-            $table->string('contact_id_card')->default('')->comment('店铺联系人身份证');
-            $table->string('id_card_front_photo')->default('')->comment('店铺联系人身份证正面');
-            $table->string('id_card_back_photo')->default('')->comment('店铺联系人身份证反面');
-            $table->string('business_license')->default('')->comment('店铺营业执照');
-            $table->string('license_front_photo')->default('')->comment('店铺营业执照正面');
-            $table->string('license_back_photo')->default('')->comment('店铺营业执照反面');
-            $table->string('storefront_photo')->default('')->comment('店铺门头照');
-            $table->string('storefront_front_photo')->default('')->comment('店铺门头照正面');
-            $table->string('storefront_back_photo')->default('')->comment('店铺门头照反面');
-            $table->decimal('longitude')->comment('店铺经营地址经度');
-            $table->decimal('latitude')->comment('店铺经营地址纬度');
-            $table->decimal('operating_area')->comment('店铺经营面积');
-            $table->integer('operating_years')->comment('店铺经营年限');
-            $table->integer('technician_count')->comment('店铺技师人数');
-            $table->json('business_hours')->nullable()->comment('店铺营业时间');
-            $table->decimal('rating')->nullable()->comment('评分');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回馈');
-            $table->string('state')->default('PENDING')->comment('审核状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('shop_auth_records');
-    }
-};

+ 0 - 37
database/migrations/2024_11_14_111822_create_project_cate_table.php

@@ -1,37 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('project_cate', function (Blueprint $table) {
-            $table->comment('项目分类');
-            $table->increments('id');
-            $table->string('name')->default('')->comment('项目分类名称');
-            $table->string('cover')->nullable()->comment('分类封面');
-            $table->integer('sort')->nullable()->comment('排序');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('project_cate');
-    }
-};

+ 0 - 41
database/migrations/2024_11_14_113520_create_shop_services_table.php

@@ -1,41 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('shop_services', function (Blueprint $table) {
-            $table->comment('店铺服务');
-            $table->increments('id');
-            $table->unsignedBigInteger('shop_id')->comment('店铺编号');
-            $table->unsignedBigInteger('service_id')->comment('服务项目编号');
-            $table->string('name')->default('')->comment('服务项目名称');
-            $table->string('cover')->nullable()->comment('服务项目封面');
-            $table->decimal('price')->comment('服务项目价格');
-            $table->integer('duration')->comment('服务时长(分钟)');
-            $table->string('type')->default('')->comment('服务类型');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('shop_services');
-    }
-};

+ 0 - 36
database/migrations/2024_11_14_115736_create_shop_coach_services_table.php

@@ -1,36 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('shop_coach_services', function (Blueprint $table) {
-            $table->comment('店铺技师服务项目');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->unsignedBigInteger('shop_service_id')->comment('店铺服务项目编号');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('shop_coach_services');
-    }
-};

+ 0 - 27
database/migrations/2024_11_14_120000_create_user_feedbacks_table.php

@@ -1,27 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    public function up()
-    {
-        Schema::create('user_feedbacks', function (Blueprint $table) {
-            $table->comment('用户反馈');
-            $table->increments('id');
-            $table->unsignedBigInteger('owner_id')->comment('用户编号');
-            $table->string('owner_type')->comment('用户类型');
-            $table->text('content')->comment('反馈内容');
-            $table->string('state')->default('enable')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    public function down()
-    {
-        Schema::dropIfExists('user_feedbacks');
-    }
-}; 

+ 0 - 38
database/migrations/2024_11_15_040819_create_agent_infos_table.php

@@ -1,38 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('agent_infos', function (Blueprint $table) {
-            $table->comment('代理商');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->unsignedBigInteger('info_record_id')->nullable()->comment('代理商信息记录编号');
-            $table->unsignedBigInteger('real_auth_record_id')->nullable()->comment('代理商实名认证记录编号');
-            $table->unsignedBigInteger('qual_record_id')->nullable()->comment('代理商资质认证记录编号');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('agent_infos');
-    }
-};

+ 0 - 44
database/migrations/2024_11_15_041123_create_agent_info_records_table.php

@@ -1,44 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('agent_info_records', function (Blueprint $table) {
-            $table->comment('代理商信息认证记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('agent_id')->comment('代理商编号');
-            $table->string('company_name')->default('')->comment('公司名称');
-            $table->string('company_address')->default('')->comment('公司地址');
-            $table->string('contact_name')->default('')->comment('联系人姓名');
-            $table->string('contact_mobile')->default('')->comment('联系人手机号');
-            $table->string('business_area')->default('')->comment('经营区域');
-            $table->string('business_scope')->default('')->comment('经营范围');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('state')->default('PENDING')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('agent_info_records');
-    }
-};

+ 0 - 43
database/migrations/2024_11_15_041634_create_agent_real_auth_records_table.php

@@ -1,43 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('agent_real_auth_records', function (Blueprint $table) {
-            $table->comment('代理商实名认证记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('agent_id')->comment('代理商编号');
-            $table->string('real_name')->default('')->comment('法人姓名');
-            $table->string('id_card')->default('')->comment('法人身份证号');
-            $table->string('id_card_front_photo')->default('')->comment('法人身份证正面照片');
-            $table->string('id_card_back_photo')->default('')->comment('法人身份证反面照片');
-            $table->string('business_license')->default('')->comment('营业执照照片');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('state')->default('PENDING')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('agent_real_auth_records');
-    }
-};

+ 0 - 44
database/migrations/2024_11_15_093359_create_sys_region_table.php

@@ -1,44 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('sys_region', function (Blueprint $table) {
-            $table->comment('行政区划');
-            $table->increments('id');
-            $table->string('cityName')->default('');
-            $table->integer('parentId');
-            $table->string('shortName')->default('');
-            $table->integer('depth');
-            $table->string('cityCode')->default('');
-            $table->string('zipCode')->default('');
-            $table->string('mergerName')->default('');
-            $table->string('longitude')->default('');
-            $table->string('latitude')->default('');
-            $table->string('pinyin')->default('');
-            $table->unsignedInteger('isUse')->nullable();
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('sys_region');
-    }
-};

+ 0 - 45
database/migrations/2024_11_18_040034_create_project_table.php

@@ -1,45 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('project', function (Blueprint $table) {
-            $table->comment('项目服务');
-            $table->increments('id');
-            $table->unsignedBigInteger('cate_id')->comment('项目分类编号');
-            $table->string('cover')->nullable()->comment('项目封面');
-            $table->string('title')->default('')->comment('项目标题');
-            $table->string('subtitle')->nullable()->comment('项目副标题');
-            $table->decimal('price')->comment('项目金额');
-            $table->decimal('original_price')->comment('项目原价');
-            $table->integer('sales')->default(new \Illuminate\Database\Query\Expression('0'))->nullable()->comment('虚拟销量');
-            $table->integer('duration')->comment('服务时长');
-            $table->text('project_desc')->nullable()->comment('项目介绍');
-            $table->text('service_desc')->nullable()->comment('服务说明');
-            $table->string('type')->default('')->comment('服务类型');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('project');
-    }
-};

+ 0 - 43
database/migrations/2024_11_18_051648_create_member_address_table.php

@@ -1,43 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('member_address', function (Blueprint $table) {
-            $table->comment('用户地址');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->comment('用户编号');
-            $table->string('location')->default('')->comment('定位地址');
-            $table->string('detail')->nullable()->comment('详细地址');
-            $table->string('province')->default('')->comment('省');
-            $table->string('city')->default('')->comment('市');
-            $table->string('district')->default('')->comment('区');
-            $table->decimal('longitude')->comment('经度');
-            $table->decimal('latitude')->comment('纬度');
-            $table->string('area_code')->default('')->comment('行政区划代码');
-            $table->string('is_default')->default('NO')->comment('是否默认地址');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('member_address');
-    }
-};

+ 0 - 35
database/migrations/2024_11_18_063954_create_sys_config_table.php

@@ -1,35 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('sys_config', function (Blueprint $table) {
-            $table->comment('系统设置');
-            $table->increments('id');
-            $table->string('key')->default('')->comment('配置项');
-            $table->json('value')->comment('配置值');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('sys_config');
-    }
-};

+ 0 - 36
database/migrations/2024_11_20_100445_create_agent_project_cate_table.php

@@ -1,36 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('agent_project_cate', function (Blueprint $table) {
-            $table->comment('代理商项目分类');
-            $table->increments('id');
-            $table->unsignedBigInteger('agent_id')->comment('代理商ID');
-            $table->unsignedBigInteger('cate_id')->comment('项目分类ID');
-            $table->string('state')->default('enable')->comment('状态(enable:启用 disable:禁用)');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('agent_project_cate');
-    }
-};

+ 0 - 39
database/migrations/2024_11_20_100525_create_agent_project_table.php

@@ -1,39 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('agent_project', function (Blueprint $table) {
-            $table->comment('代理商服务项目');
-            $table->increments('id');
-            $table->unsignedBigInteger('cate_id')->comment('代理商项目分类ID');
-            $table->unsignedBigInteger('project_id')->comment('项目ID');
-            $table->decimal('price')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('项目金额');
-            $table->integer('duration')->default(new \Illuminate\Database\Query\Expression('0'))->comment('服务时长(分钟)');
-            $table->integer('distance')->default(new \Illuminate\Database\Query\Expression('0'))->comment('接单距离(米)');
-            $table->string('state')->default('enable')->comment('状态(enable:启用 disable:禁用)');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('agent_project');
-    }
-};

+ 0 - 43
database/migrations/2024_11_20_131419_create_coach_real_auth_records_table.php

@@ -1,43 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_real_auth_records', function (Blueprint $table) {
-            $table->comment('技师实名认证记录');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师编号');
-            $table->string('real_name')->default('')->comment('真实姓名');
-            $table->string('id_card')->default('')->comment('身份证号');
-            $table->string('id_card_front_photo')->default('')->comment('身份证正面照片');
-            $table->string('id_card_back_photo')->default('')->comment('身份证反面照片');
-            $table->string('id_card_hand_photo')->default('')->comment('手持身份证照片');
-            $table->string('auditor')->nullable()->comment('审核人');
-            $table->timestamp('audit_time')->nullable()->comment('审核时间');
-            $table->string('audit_remark')->nullable()->comment('审核回执');
-            $table->string('state')->default('pending')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_real_auth_records');
-    }
-};

+ 0 - 41
database/migrations/2024_11_20_133233_create_coach_project_table.php

@@ -1,41 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('coach_project', function (Blueprint $table) {
-            $table->comment('技师开通服务项目');
-            $table->increments('id');
-            $table->unsignedBigInteger('coach_id')->comment('技师ID');
-            $table->unsignedBigInteger('project_id')->comment('项目ID');
-            $table->decimal('discount_amount')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('优惠金额');
-            $table->string('service_gender')->default('all')->comment('服务性别(all:不限 male:男 female:女)');
-            $table->integer('service_distance')->default(new \Illuminate\Database\Query\Expression('0'))->comment('服务距离(米)');
-            $table->string('traffic_fee_type')->default('free')->comment('收取路费(free:免费 one_way:单程 round_trip:双程)');
-            $table->decimal('traffic_fee')->default(new \Illuminate\Database\Query\Expression('0.00'))->comment('路费金额');
-            $table->string('state')->default('enable')->comment('状态(enable:启用 disable:禁用)');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('coach_project');
-    }
-};

+ 0 - 37
database/migrations/2024_11_21_144232_create_agent_project_config_table.php

@@ -1,37 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('agent_project_config', function (Blueprint $table) {
-            $table->comment('代理商项目设置');
-            $table->increments('id');
-            $table->unsignedBigInteger('agent_id')->nullable()->comment('代理商编号');
-            $table->decimal('base_price')->comment('服务的起步价');
-            $table->decimal('per_kilometer_fee')->comment('每公里的费用');
-            $table->string('state')->default('')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('agent_project_config');
-    }
-};

+ 0 - 38
database/migrations/2024_11_25_130010_create_market_dist_teams_table.php

@@ -1,38 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('market_dist_teams', function (Blueprint $table) {
-            $table->comment('我的分销团队');
-            $table->increments('id');
-            $table->unsignedBigInteger('object_id')->comment('对象编号');
-            $table->string('object_type')->default('')->comment('对象类型');
-            $table->unsignedBigInteger('user_id')->comment('被邀用户编号');
-            $table->string('level')->default('LEVEL_1')->comment('层级');
-            $table->string('state')->default('ENABLE')->comment('状态');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('market_dist_teams');
-    }
-};

+ 0 - 52
database/migrations/2024_11_25_155822_create_report_user_list_table.php

@@ -1,52 +0,0 @@
-<?php
-
-use Illuminate\Database\Migrations\Migration;
-use Illuminate\Database\Schema\Blueprint;
-use Illuminate\Support\Facades\Schema;
-
-return new class extends Migration
-{
-    /**
-     * Run the migrations.
-     *
-     * @return void
-     */
-    public function up()
-    {
-        Schema::create('report_user_list', function (Blueprint $table) {
-            $table->comment('临时用户列表');
-            $table->increments('id');
-            $table->unsignedBigInteger('user_id')->default(new \Illuminate\Database\Query\Expression('0'));
-            $table->string('nickname')->nullable()->comment('昵称');
-            $table->string('avatar')->nullable()->comment('头像');
-            $table->string('contact')->default('')->comment('手机号');
-            $table->timestamp('last_login_time')->nullable()->comment('最近登录时间');
-            $table->string('invite_code')->nullable()->comment('邀请码');
-            $table->string('qrcode')->nullable()->comment('二维码');
-            $table->string('user_status')->default('')->comment('状态');
-            $table->string('user_location')->nullable()->comment('定位地址');
-            $table->string('province')->nullable()->comment('省');
-            $table->string('city')->nullable()->comment('市');
-            $table->string('district')->nullable()->comment('区');
-            $table->decimal('wallet_balance')->nullable()->comment('可用余额');
-            $table->bigInteger('order_count')->default(new \Illuminate\Database\Query\Expression('0'));
-            $table->bigInteger('violation_count')->default(new \Illuminate\Database\Query\Expression('0'));
-            $table->decimal('avg_order_amount')->default(new \Illuminate\Database\Query\Expression('0.000000'));
-            $table->string('level1_inviter')->nullable()->comment('昵称');
-            $table->string('level2_inviter')->nullable()->comment('昵称');
-            $table->bigInteger('id');
-            $table->timestamps();
-            $table->softDeletes();
-        });
-    }
-
-    /**
-     * Reverse the migrations.
-     *
-     * @return void
-     */
-    public function down()
-    {
-        Schema::dropIfExists('report_user_list');
-    }
-};

+ 0 - 1
database/migrations/2024_xx_xx_add_foreign_key_to_orders_table.php

@@ -1 +0,0 @@
- 

+ 0 - 1
database/migrations/2024_xx_xx_insert_delivery_fee_config.php

@@ -1 +0,0 @@
- 

+ 0 - 1
database/migrations/xxxx_xx_xx_create_coach_users_table.php

@@ -1 +0,0 @@
- 

+ 0 - 0
doc/系统设计/系统架构/微信集成解决方案.md