gq 8 vuotta sitten
vanhempi
commit
338bfcca2e

+ 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');
+    }
+}