2018_10_20_181746_create_subsites_table.php 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateSubsitesTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. public function up()
  13. {
  14. Schema::create('subsites', function (Blueprint $table) {
  15. $table->increments('id');
  16. $table->string('sitename')->comment('分站名称');
  17. $table->tinyInteger('effective')->index()->default('1')->comment('分站状态')->nullable();
  18. $table->string('domain')->comment('分站域名');
  19. $table->integer('tpl')->comment('分站模板');
  20. $table->integer('order')->index()->comment('排序')->nullable();
  21. $table->string('logo')->comment('网站logo')->nullable();
  22. $table->string('logo_white')->comment('网站Logo(白底)')->nullable();
  23. $table->string('logo_mini')->comment('网站Logo mini')->nullable();
  24. $table->string('logo_white_mini')->comment('网站Logo mini(白底)')->nullable();
  25. $table->string('site_name')->comment('网站名称')->nullable();
  26. $table->string('site_keyword')->comment('网站默认关键字')->nullable();
  27. $table->string('site_description')->comment('网站默认描述')->nullable();
  28. $table->string('district')->index()->comment('分站地区');
  29. $table->string('districtname')->comment('分站地区名称');
  30. $table->string('map_ak')->comment('百度地图AK')->nullable();
  31. $table->string('map_x')->comment('默认中心点X坐标')->nullable();
  32. $table->string('map_y')->comment('默认中心点Y坐标')->nullable();
  33. $table->tinyInteger('is_open')->index()->default('0')->comment('是否开启微信公众号平台')->nullable();
  34. $table->string('app_id')->comment('微信AppID')->nullable();
  35. $table->string('app_secret')->comment('AppSecret')->nullable();
  36. $table->string('app_token')->comment('AppToken')->nullable();
  37. $table->string('aes_key')->comment('EncodingAESKey, 消息加密密钥')->nullable();
  38. $table->string('wechat_name')->comment('公众号名称')->nullable();
  39. $table->string('wechat_id')->comment('微信号')->nullable();
  40. $table->string('wechat_qrcode')->comment('微信二维码')->nullable();
  41. $table->smallInteger('max_level')->comment('默认缩放级别')->nullable();
  42. $table->timestamps();
  43. $table->softDeletes();
  44. });
  45. }
  46. /**
  47. * Reverse the migrations.
  48. *
  49. * @return void
  50. */
  51. public function down()
  52. {
  53. Schema::dropIfExists('subsites');
  54. }
  55. }