Added quota table and model.
This commit is contained in:
parent
2370c90170
commit
14698083f8
13275 changed files with 1397800 additions and 18 deletions
|
|
@ -16,9 +16,9 @@ class CreateSeasonsTable extends Migration
|
|||
Schema::create('seasons', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name',100);
|
||||
$table->integer('rounds')->default(36);
|
||||
$table->boolean('active')->default(true);
|
||||
$table->timestamps();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateQuotasTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('quotas', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->integer('season_id');
|
||||
$table->string('qtype',100);
|
||||
$table->string('name',100);
|
||||
$table->integer('order')->default(1);
|
||||
$table->integer('prc')->default(0);
|
||||
|
||||
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('quotas');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue