whjused пре 4 година
родитељ
комит
8508b9b0f5

+ 9 - 0
app/Models/ServiceApply.php

xqd
@@ -0,0 +1,9 @@
+<?php
+
+namespace App\Models;
+
+use Illuminate\Database\Eloquent\Model;
+
+class ServiceApply extends Model
+{
+}

+ 40 - 0
database/migrations/2020_11_17_033808_alert_cmds_user.php

xqd
@@ -0,0 +1,40 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AlertCmdsUser extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::table('cdms_users',function (Blueprint $table){
+            $table->addColumn('integer','docter_id')->comment('医生id')->nullable(true)->after('org_id');
+        });
+
+        Schema::table('cdms_roles',function (Blueprint $table){
+            $table->addColumn('integer','org_id')->comment('医生id')->after('id');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::table('cdms_users',function (Blueprint $table){
+            $table->dropColumn('docter_id');
+        });
+
+        Schema::table('cdms_roles',function (Blueprint $table){
+            $table->dropColumn('org_id');
+        });
+    }
+}

+ 35 - 0
database/migrations/2020_11_24_065951_add_table_bm_service_apply.php

xqd
@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddTableBmServiceApply extends Migration
+{
+    /**
+     * Run the migrations.
+     *
+     * @return void
+     */
+    public function up()
+    {
+        Schema::create('service_applys', function (Blueprint $table) {
+           $table->increments('id')->comment('自增id');
+           $table->integer('docter_id')->comment('医生id')->nullable(false)->unsigned();
+           $table->integer('service_type')->comment('服务类别 1 图文 2 电话 3 门诊')->nullable(false)->unsigned();
+           $table->integer('status')->comment('审核状态 1 审核 2 已通过 3 已拒绝')->nullable(false)->unsigned();
+           $table->dateTime('created_at')->comment('创建时间');
+           $table->dateTime('updated_at')->comment('更新时间');
+        });
+    }
+
+    /**
+     * Reverse the migrations.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::drop('service_apply');
+    }
+}

+ 1 - 1
routes/web.php

xqd
@@ -12,5 +12,5 @@
 */
 
 Route::get('/', function () {
-    return view('welcome');
+    return redirect('/admin');
 });