Beispiel #1
0
 public static function _schema(\Illuminate\Database\Schema\Blueprint $table)
 {
     $table = parent::_schema($table);
     $table->longText('desc')->nullable();
     $table->text('title')->nullable();
     $table->enum('type', ['调研', '测试'])->default('调研');
     return $table;
 }
 public static function _schema(\Illuminate\Database\Schema\Blueprint $table)
 {
     $table = parent::_schema($table);
     $table->unsignedInteger('step');
     $table->unsignedInteger('quiz_user_results_id');
     $table->unsignedInteger('quiz_id');
     $table->text('options')->nullable();
     $table->longText('text')->nullable();
     return $table;
 }
 public static function _schema(\Illuminate\Database\Schema\Blueprint $table)
 {
     $table = parent::_schema($table);
     $table->unsignedInteger('quiz_id');
     $table->unsignedInteger('user_id');
     $table->unsignedInteger('current_step')->default(0);
     $table->text('token')->nullable();
     $table->enum('status', ['未开始', '进行中', '完成', '中止']);
     $table->longText('result_text')->nullable();
     $table->longText('score')->nullable();
     $table->index(['user_id', 'quiz_id']);
     return $table;
 }
 public static function _schema(Blueprint $table)
 {
     $table = parent::_schema($table);
     $table->string('name');
     $table->string('title');
     $table->text('desc')->nullable();
     $table->text('logo')->nullable();
     $table->text('partner_id')->nullable();
     $table->text('partner_key')->nullable();
     $table->text('seller_email')->nullable();
     $table->text('options')->nullable();
     return $table;
 }
 public static function _schema(Blueprint $table)
 {
     $table = parent::_schema($table);
     $table->string('order_no', 100)->unique();
     //订单号
     $table->bigInteger('user_id');
     //用户id
     $table->integer('payment_id')->references('id')->on('payments');
     //支付方式
     $table->integer('need_pay');
     //应付价格
     $table->integer('total');
     //总价
     $table->longText('goods')->nullable();
     //商品详细信息
     return $table;
 }