You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateEmployeeBankTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('uc_employee_bank_t', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->bigInteger('employee_id');
|
|
$table->string('super_bank_name')->comment('银行名');
|
|
$table->string('bank_name')->comment('开户行');
|
|
$table->string('bank_code')->comment('开户行号');
|
|
$table->string('bank_num')->unique()->comment('银行卡号');
|
|
$table->string('bank_man')->comment('开户人');
|
|
$table->decimal('maximum', 10, 2)->default(0)->comment('最大值');
|
|
$table->tinyInteger('priority')->default(1)->comment('排序');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('uc_employee_bank_t');
|
|
}
|
|
}
|
|
|