Temporarily finish the migrations and models.

This commit is contained in:
catsworld
2016-06-07 18:07:50 +08:00
parent 25a87fe4e8
commit b252545ebd
8 changed files with 28 additions and 61 deletions
+3 -1
View File
@@ -30,4 +30,6 @@ Route::group(['middleware' => ['web']], function () {
//
});
Route::get('/good', 'GoodController@getList');
Route::get('/good', [
"uses" => "GoodController@getList"
]);
@@ -1,35 +0,0 @@
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTransactionsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('transactions', function (Blueprint $table) {
$table->increments('id');
$table->integer('trans_id');
$table->integer('buyer_id');
$table->integer('seller_id');
$table->integer('good_id');
$table->integer('status');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('transactions');
}
}