2018_02_06_164525_create_card_setting_table.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateCardSettingTable extends Migration
  6. {
  7. /**
  8. * Run the migrations.
  9. *
  10. * @return void
  11. */
  12. // 名片模板基础设置表
  13. public function up()
  14. {
  15. Schema::create('card_setting', function (Blueprint $table) {
  16. $table->increments('id');
  17. $table->tinyInteger('banner_padding_top')->comment('轮播图上边距')->default(2);
  18. $table->tinyInteger('banner_padding_button')->comment('轮播图下边距')->default(2);
  19. $table->tinyInteger('banner_padding_left')->comment('轮播图左边距')->default(2);
  20. $table->tinyInteger('banner_padding_right')->comment('轮播图右边距')->default(2);
  21. $table->string('base_color')->comment('主体颜色')->default('#ffffff');
  22. $table->string('font_color')->comment('字体颜色')->default('#dbbc60');
  23. $table->tinyInteger('menu_number')->comment('轮播图下方导航菜单个数')->default(4);
  24. $table->tinyInteger('title_style')->comment('标题样式居中靠左无标题')->default(1);
  25. $table->string('title_font_color')->comment('标题颜色')->default('#dbbc60');
  26. $table->string('title_base_color')->comment('标题背景颜色')->default('#dbbc60');
  27. $table->tinyInteger('show_number')->comment('展示栏目数')->default(2);
  28. $table->tinyInteger('show_style')->comment('展示栏目方式')->default(1);
  29. $table->timestamps();
  30. });
  31. }
  32. /**
  33. * Reverse the migrations.
  34. *
  35. * @return void
  36. */
  37. public function down()
  38. {
  39. Schema::dropIfExists('card_setting');
  40. }
  41. }