generated from liutk/owl-admin-base
34 lines
1023 B
PHP
34 lines
1023 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(): void
|
||
{
|
||
Schema::create('contacts', function (Blueprint $table) {
|
||
$table->id();
|
||
$table->string('name')->nullable()->comment('姓名');
|
||
$table->string('phone')->nullable()->comment('电话');
|
||
$table->string('company')->nullable()->comment('公司名称');
|
||
$table->unsignedTinyInteger('type')->nullable()->comment('业务需求');
|
||
$table->string('content')->nullable()->comment('项目概况与备注');
|
||
$table->unsignedTinyInteger('status')->default(0)->comment('状态:0未处理,1已处理');
|
||
$table->timestamps();
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Reverse the migrations.
|
||
*/
|
||
public function down(): void
|
||
{
|
||
Schema::dropIfExists('contacts');
|
||
}
|
||
};
|