mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
use Illuminate\Database\Migrations\Migration;
|
||
|
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
|
||
|
|
class CreateSuppliersTable extends Migration
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the migrations.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function up()
|
||
|
|
{
|
||
|
|
Schema::create('suppliers', function (Blueprint $table) {
|
||
|
|
$table->bigIncrements('id');
|
||
|
|
$table->string('supplier_name')->comment('供应商名称');
|
||
|
|
$table->string('company_name',100)->nullable()->comment('公司名称');
|
||
|
|
$table->string('address')->nullable()->comment('地址');
|
||
|
|
$table->string('link_tel',100)->nullable()->comment('联系方式');
|
||
|
|
$table->string('payment_account',100)->nullable()->comment('支付方式');
|
||
|
|
$table->string('agent_name')->nullable()->comment('代理人名称');
|
||
|
|
$table->Integer('agent_id')->nullable()->comment('代理人id');
|
||
|
|
|
||
|
|
$table->index('supplier_name');
|
||
|
|
$table->timestamps();
|
||
|
|
});
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Reverse the migrations.
|
||
|
|
*
|
||
|
|
* @return void
|
||
|
|
*/
|
||
|
|
public function down()
|
||
|
|
{
|
||
|
|
Schema::dropIfExists('suppliers');
|
||
|
|
}
|
||
|
|
}
|