26 lines
767 B
PHP
26 lines
767 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('suppliers', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('code')->unique()->comment('供应商编码');
|
|
$table->string('name')->comment('供应商名称');
|
|
$table->string('contact')->nullable()->comment('联系人');
|
|
$table->string('phone')->nullable()->comment('联系电话');
|
|
$table->string('address')->nullable()->comment('地址');
|
|
$table->text('remark')->nullable()->comment('备注');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
};
|