hujiao-gui/database/migrations/2021_03_19_164406_node.php

35 lines
846 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class Node extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('node', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->comment('节点名称');
$table->tinyInteger('sort')->default(10)->comment('排序');
$table->tinyInteger('type')->default(1)->comment('默认11表示公共2客户跟进3订单生产4财务付款');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('node');
}
}