parent
7587543de3
commit
744437c72b
@ -0,0 +1,8 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
class OrderAgreement extends SoftDeletesModel
|
||||||
|
{
|
||||||
|
protected $table = "order_agreements";
|
||||||
|
}
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
class CreateOrderAgreements extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('order_agreements', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->integer('order_id')->nullable()->comment('订单id');
|
||||||
|
$table->integer('paramedic_id')->nullable()->comment('护工id');
|
||||||
|
// 护工签名图片
|
||||||
|
$table->string('paramedic_sign_id')->nullable()->comment('护工签名图片');
|
||||||
|
// 客户id
|
||||||
|
$table->integer('customer_id')->nullable()->comment('客户id');
|
||||||
|
// 客户签名图片
|
||||||
|
$table->string('customer_sign_id')->nullable()->comment('客户签名图片');
|
||||||
|
// 文件id
|
||||||
|
$table->integer('file_id')->nullable()->comment('文件id');
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('adverse');
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue