2018_05_11_094238_create_album_user.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateAlbumUser extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('album_user', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('username',100)->comment('名称');
  17. $table->string('wechat_open_id',100)->comment('微信open_id');
  18. $table->string('wechat_union_id',100)->comment('微信union_id');
  19. $table->string('avatar',255)->comment('头像链接');
  20. $table->unsignedInteger('is_delete')->default(0)->comment('Is_delete');
  21. $table->unsignedinteger('store_id')->comment('商户号');
  22. $table->unsignedInteger('is_dealer')->comment('是否为经销商');
  23. $table->string('phone',20)->nullable()->default('')->comment('电话');
  24. $table->timestamps();
  25. });
  26. }
  27. /**
  28. * Reverse the migrations.
  29. *
  30. * @return void
  31. */
  32. public function down()
  33. {
  34. Schema::dropIfExists('album_user');
  35. }
  36. }