This commit is contained in:
2025-01-19 17:15:58 +03:00
parent 40369fb515
commit b18378bcb1
41 changed files with 1257 additions and 30 deletions

View File

@ -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');
}
};