cards
This commit is contained in:
@ -16,6 +16,7 @@ return new class extends Migration
|
||||
$table->increments('id')->from(105545);
|
||||
$table->string('path')->nullable(false);
|
||||
$table->string('title')->nullable(false);
|
||||
$table->text('settings')->nullable();
|
||||
|
||||
$table->integer('status')->default(1);
|
||||
$table->timestamps();
|
||||
@ -30,6 +31,35 @@ return new class extends Migration
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
\kernel\App::$db->schema->create('card_program', function (Blueprint $table) {
|
||||
$table->increments('id')->from(71);
|
||||
$table->string('slug')->nullable(false)->unique();
|
||||
$table->string('title')->nullable(false);
|
||||
|
||||
$table->integer('status')->default(1);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
\kernel\App::$db->schema->create('card_program_conditions', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer("card_program_id")->nullable(false);
|
||||
$table->string('slug')->nullable(false)->unique();
|
||||
$table->string('title')->nullable(false);
|
||||
$table->string('type')->nullable(false);
|
||||
$table->string('value');
|
||||
|
||||
$table->integer('status')->default(1);
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
\kernel\App::$db->schema->create('card_card_program', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('card_program_id')->nullable(false);
|
||||
$table->string('card_id')->nullable(false);
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
\kernel\App::$db->schema->create('card', function (Blueprint $table) {
|
||||
$table->increments('id')->from(105545);
|
||||
$table->integer('user_id')->nullable(false);
|
||||
@ -56,6 +86,9 @@ return new class extends Migration
|
||||
{
|
||||
\kernel\App::$db->schema->dropIfExists('card');
|
||||
\kernel\App::$db->schema->dropIfExists('card_template');
|
||||
\kernel\App::$db->schema->dropIfExists('card_card_program');
|
||||
\kernel\App::$db->schema->dropIfExists('card_program_conditions');
|
||||
\kernel\App::$db->schema->dropIfExists('card_program');
|
||||
\kernel\App::$db->schema->dropIfExists('card_file');
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user