2020_10_17_100407_crete_docter_times.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. class CreteDocterTimes extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. // 医生时间段服务设置
  15. Schema::create('docter_times', function (Blueprint $table) {
  16. $table->bigIncrements('id');
  17. $table->integer('docter_id')->comment("医生id");
  18. $table->decimal('base_price',8,2)->nullable()->comment("基础价格");
  19. $table->decimal('step_price',8,2)->nullable()->comment("步进价格");
  20. $table->string('service_time',2000)->nullable()->comment("服务时间(00点到24点的索引)");
  21. $table->integer('person')->nullable()->comment("服务人次");
  22. $table->integer('type')->nullable()->comment("类型(1=电话咨询,2=图文咨询,3=门诊预约,4=疫苗接种预约,5=儿保预约,6=服务包,7=充值)");
  23. $table->integer('relation_id')->nullable()->comment("关联id(为门诊预约时,关联机构id)");
  24. $table->timestamps();
  25. });
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('docter_times');
  35. }
  36. }