This commit is contained in:
ludo
2024-02-19 23:51:32 +01:00
parent 15a6621a56
commit 869b148e20
18 changed files with 440 additions and 85 deletions

View File

@@ -15,15 +15,16 @@ return new class extends Migration
{
Schema::create('shop_articles', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('article_nature_id')->nullable()->index('family_id');
$table->unsignedInteger('article_nature_id')->nullable()->index('article_nature_id');
$table->string('product_type', 100)->nullable();
$table->unsignedInteger('product_id')->nullable();
$table->string('ref', 50)->nullable()->unique('ref');
$table->string('name')->nullable();
$table->string('slug')->nullable()->unique('slug');
$table->unsignedInteger('hash')->nullable();
$table->text('description')->nullable();
$table->tinyInteger('visible')->nullable();
$table->unsignedTinyInteger('homepage')->nullable();
$table->tinyInteger('visible')->nullable()->index('visible');
$table->unsignedTinyInteger('homepage')->nullable()->index('homepage');
$table->unsignedSmallInteger('created_by')->nullable();
$table->unsignedSmallInteger('updated_by')->nullable();
$table->unsignedSmallInteger('deleted_by')->nullable();

View File

@@ -18,8 +18,8 @@ return new class extends Migration
$table->unsignedInteger('category_id')->nullable()->index('category_id');
$table->string('name', 50)->nullable();
$table->text('description')->nullable();
$table->tinyInteger('visible')->nullable();
$table->unsignedTinyInteger('homepage')->nullable();
$table->tinyInteger('visible')->nullable()->index('visible');
$table->unsignedTinyInteger('homepage')->nullable()->index('homepage');
$table->unsignedSmallInteger('created_by')->nullable();
$table->unsignedSmallInteger('updated_by')->nullable();
$table->unsignedSmallInteger('deleted_by')->nullable();

View File

@@ -17,7 +17,7 @@ return new class extends Migration
$table->increments('id');
$table->unsignedInteger('tariff_id')->nullable()->index('tariff_id');
$table->unsignedInteger('sale_channel_id')->nullable()->index('sale_channel_id');
$table->unsignedTinyInteger('status_id')->nullable();
$table->unsignedTinyInteger('status_id')->nullable()->index('status_id');
$table->string('name', 100)->nullable();
$table->unsignedSmallInteger('created_by')->nullable();
$table->unsignedSmallInteger('updated_by')->nullable();