You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
956 B
PHP
40 lines
956 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateProfitsharingsTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('profitsharings', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->bigInteger('hospital')->default(0)->index();
|
|
$table->tinyInteger('type')->comment('1-商户 MERCHANT_ID 2-个人 PERSONAL_OPENID');
|
|
$table->string('account', 50);
|
|
$table->string('formula', 200);
|
|
$table->decimal('max')->comment('最大金额 0-不限制');
|
|
$table->string('desc', 80);
|
|
$table->tinyInteger('status');
|
|
$table->tinyInteger('del')->default(2);
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('profitsharings');
|
|
}
|
|
}
|