Changeset View
Changeset View
Standalone View
Standalone View
src/database/migrations/2019_09_17_102628_create_sku_entitlements.php
Show All 20 Lines | public function up() | ||||
$table->string('title', 64); | $table->string('title', 64); | ||||
$table->json('name'); | $table->json('name'); | ||||
$table->json('description'); | $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->timestamp('created_at')->useCurrent(); | ||||
$table->timestamp('updated_at')->useCurrent(); | |||||
} | } | ||||
); | ); | ||||
Schema::create( | Schema::create( | ||||
'entitlements', | 'entitlements', | ||||
function (Blueprint $table) { | function (Blueprint $table) { | ||||
$table->string('id', 36)->primary(); | $table->string('id', 36)->primary(); | ||||
$table->bigInteger('entitleable_id'); | $table->bigInteger('entitleable_id'); | ||||
Show All 25 Lines |