love_php/database/migrations/2018_11_12_152914_create_meets.php
2026-04-02 09:20:51 +08:00

38 lines
1.0 KiB
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\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMeets extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('appointments', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->comment('名称');
$table->integer('num')->default(0)->comment('次数');
$table->enum('type',['active','passive'])->default('active')->comment('类型 active主动passive被动');
$table->decimal('price', 9,2)->default(0)->comment('价格');
$table->integer('is_recommend')->default(0)->comment('是否推荐');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('appointments');
}
}