ソースを参照

Merge branch 'gq' of http://git.9026.com/roobe/miao

Mike 8 年 前
コミット
692455ec3e

+ 2 - 2
server/app/Models/DreamInfoModel.php

xqd
@@ -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');
     }
 
 //    支持过的梦想

+ 34 - 0
server/database/migrations/2017_06_05_020433_create_system_info_table.php

xqd
@@ -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.
+     *
+     * @return void
+     */
+    public function down()
+    {
+        Schema::dropIfExists('system_info');
+    }
+}