123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateWeiXinsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('wei_xins', function (Blueprint $table) {
- $table->increments('id');
- $table->string('name')->comment('公众号名称');
- $table->string('number')->comment('微信号');
- $table->string('app_token')->comment('AppToken');
- $table->string('app_id')->comment('AppId');
- $table->string('app_secret')->comment('AppSecret');
- $table->string('encoding_ase_key')->comment('消息加解密密钥')->nullable();
- $table->string('images')->comment('微信二维码图片')->nullable();
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('wei_xins');
- }
- }
|