| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- /**
- * Class CreateImServicesTable.
- */
- class CreateImServicesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('im_services', function(Blueprint $table) {
- $table->increments('id');
- $table->integer('m_id')->index('m_id')->comment('客服绑定的会员ID');
- $table->string('nickname')->comment('客服昵称');
- $table->string('head_img')->comment('客服头像');
- $table->string('account')->index('account')->comment('客服账号');
- $table->char('password',32)->comment('账号密码');
- $table->char('encrypt',6)->comment('加密字符串');
- $table->tinyInteger('status')->default(1)->index('status')->comment('客服状态 1:在线,2:下线');
- $table->tinyInteger('is_del')->default(0)->index('is_del')->comment('是否删除 0:否,1:是');
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::drop('im_services');
- }
- }
|