<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSwpAgendasZhTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('swp_agendas_zh', function (Blueprint $table) {
            $table->string('id', 36)->primary();
            $table->string('agenda_id', 36);
            $table->string('title')->nullable();
            $table->text('content')->nullable();
            $table->boolean('info_status')->nullable();
            $table->integer('viewer')->nullable();
            $table->string('slug')->nullable();
            $table->date('event_date')->nullable();
            $table->string('userid_created', 36)->nullable();
            $table->string('userid_updated', 36)->nullable();
            $table->timestamps();
            $table->string('keys')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('swp_agendas_zh');
    }
}