| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateThirdloginsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('thirdlogins', function (Blueprint $table) {
- $table->increments('id');
- $table->integer('uid')->comment('会员id');
- $table->integer('utype')->comment('会员类型:1企业,2个人');
- $table->tinyInteger('type')->comment('第三方类型:1qq,2微信电脑端,3微信公众号,4微信小程序');
- $table->tinyInteger('subsite_id')->comment('所属分站');
- $table->string('openid')->comment('openid');
- $table->string('unionid')->comment('unionid 微信用户才有')->nullable();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('thirdlogins');
- }
- }
|