@@ -57,12 +57,12 @@ class DreamInfoModel extends BaseModel
public function dreamImgs()
{
- return $this->hasMany('App\Models\dreamImages','dream_id','id');
+ return $this->hasMany('App\Models\DreamImages','dream_id','id');
}
public function dreamImgsFirst()
- return $this->hasOne('App\Models\dreamImages','dream_id','id');
+ return $this->hasOne('App\Models\DreamImages','dream_id','id');
// 支持过的梦想
@@ -0,0 +1,34 @@
+<?php
+
+use Illuminate\Support\Facades\Schema;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Database\Migrations\Migration;
+class CreateSystemInfoTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create('system_info', function (Blueprint $table) {
+ $table->increments('id');
+ $table->integer('user_id')->comment('当前用户ID');
+ $table->integer('other_id')->comment('充值对象ID');
+ $table->integer('coin')->comment('充值梦想币数量');
+ $table->timestamps();
+ });
+ }
+ * Reverse the migrations.
+ public function down()
+ Schema::dropIfExists('system_info');
+}