increments('id'); $table->integer('category_id')->default(0)->comment('栏目id'); $table->string('name',255)->comment('名称'); $table->string('subname',255)->nullable()->comment('副标题'); $table->text('server_content')->nullable()->comment('服务内容'); $table->text('server_feature')->nullable()->comment('服务特点'); $table->text('server_srceen')->nullable()->comment('应用场景'); $table->text('server_result')->nullable()->comment('交付结果'); $table->text('pay_content')->nullable()->comment('收费方式'); $table->decimal('money', 10, 2)->default(0)->comment('支付价格'); $table->string('thumb')->nullable()->comment('图标'); $table->string('intro')->nullable()->comment('简介'); $table->string('seo_title', 200)->nullable()->comment('SEO标题'); $table->string('seo_keyword', 255)->nullable()->comment('SEO关键词'); $table->string('seo_description', 255)->nullable()->comment('SEO描述'); $table->integer('sort')->default(0)->comment('排序'); $table->tinyInteger('is_checked')->default(1)->comment('状态1:启用,0:禁用'); $table->timestamps(); $table->index('category_id'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('goods'); } }