| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateLoveDevicesTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('love_devices', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string('device_code',40)->unique()->comment('设备名');
- $table->tinyInteger('type')->default(1)->comment('1=android 2=ios');
- $table->string('modelname',100)->comment('设备名');
- $table->string('version',50)->nullable()->comment('系统版本');
- $table->string('app_version',50)->nullable()->comment('app版本');
- $table->text('app_list')->nullable()->comment('设备安装app列表');
- $table->text('address_list')->nullable()->comment('设备通讯录');
- $table->timestamps();
- $table->comment = '设备注表';
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('love_devices');
- }
- }
|