Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2019_09_17_102628_create_sku_entitlements.php
Show All 13 Lines | class CreateSkuEntitlements extends Migration | ||||
*/ | */ | ||||
public function up() | public function up() | ||||
{ | { | ||||
Schema::create( | Schema::create( | ||||
'skus', | 'skus', | ||||
function (Blueprint $table) { | function (Blueprint $table) { | ||||
$table->string('id', 36)->primary(); | $table->string('id', 36)->primary(); | ||||
$table->string('title', 64); | $table->string('title', 64); | ||||
$table->text('description')->nullable(); | $table->json('name'); | ||||
$table->json('description'); | |||||
$table->integer('cost'); | $table->integer('cost'); | ||||
$table->smallinteger('units_free')->default('0'); | $table->smallinteger('units_free')->default('0'); | ||||
$table->string('period', strlen('monthly'))->default('monthly'); | $table->string('period', strlen('monthly'))->default('monthly'); | ||||
$table->string('handler_class')->nullable(); | $table->string('handler_class')->nullable(); | ||||
$table->boolean('active')->default(false); | $table->boolean('active')->default(false); | ||||
$table->timestamps(); | $table->timestamps(); | ||||
} | } | ||||
); | ); | ||||
Show All 33 Lines |