分类图片上传和用户等级图片上传
This commit is contained in:
@@ -16,10 +16,10 @@ return new class extends Migration
|
||||
if (! Schema::hasTable('customer_level')) {
|
||||
Schema::create('customer_level', function (Blueprint $table) {
|
||||
$table->increments('id')->comment('等级ID');
|
||||
$table->integer('icon')->nullable()->comment('等级图标ID');
|
||||
$table->string('name', 50)->comment('等级名称(如:一级客户、二级客户)');
|
||||
$table->integer('sort')->default(0)->comment('排序');
|
||||
$table->integer('status')->default(1)->comment('状态(1正常 0停用)');
|
||||
$table->string('remark', 255)->default('')->comment('备注');
|
||||
$table->timestamps();
|
||||
$table->comment('客户等级表');
|
||||
});
|
||||
|
||||
@@ -17,6 +17,7 @@ return new class extends Migration
|
||||
Schema::create('product_category', function (Blueprint $table) {
|
||||
$table->increments('id')->comment('分类ID');
|
||||
$table->integer('parent_id')->default(0)->comment('父级分类ID(0为顶级)');
|
||||
$table->integer('icon')->nullable()->comment('商品图标');
|
||||
$table->string('name', 50)->comment('分类名称');
|
||||
$table->integer('sort')->default(0)->comment('排序(采购单导出按此排序)');
|
||||
$table->integer('status')->default(1)->comment('状态(1正常 0停用)');
|
||||
@@ -34,10 +35,12 @@ return new class extends Migration
|
||||
$table->integer('supplier_id')->default(0)->comment('默认供应商ID');
|
||||
$table->string('name', 100)->comment('品名');
|
||||
$table->string('spec', 100)->default('')->comment('规格/包规');
|
||||
$table->string('grade', 50)->default('')->comment('商品等级');
|
||||
$table->string('unit', 20)->default('斤')->comment('计价单位(斤/件/箱等)');
|
||||
$table->string('image', 255)->default('')->comment('商品图片');
|
||||
$table->text('content')->default('')->comment('商品图文详情');
|
||||
$table->integer('sort')->default(0)->comment('排序');
|
||||
$table->integer('shelf_life')->default(0)->comment('保质期');
|
||||
$table->integer('stock')->default(0)->comment('库存');
|
||||
$table->integer('status')->default(1)->comment('状态(1上架 0下架)');
|
||||
$table->string('remark', 255)->default('')->comment('备注');
|
||||
$table->timestamps();
|
||||
@@ -48,7 +51,7 @@ return new class extends Migration
|
||||
});
|
||||
}
|
||||
|
||||
// 商品等级价格表(A2 价格策略:同一商品对不同客户等级显示不同单价)
|
||||
// 商品等级价格表
|
||||
if (! Schema::hasTable('product_price')) {
|
||||
Schema::create('product_price', function (Blueprint $table) {
|
||||
$table->increments('id')->comment('价格ID');
|
||||
|
||||
@@ -56,6 +56,8 @@ class SysDataSeeder extends Seeder
|
||||
['id' => 5, 'name' => '系统附件', 'sort' => 4, 'describe' => '系统附件分组', 'created_at' => $date, 'updated_at' => $date],
|
||||
['id' => 6, 'name' => '其他文件', 'sort' => 5, 'describe' => '其他文件分组', 'created_at' => $date, 'updated_at' => $date],
|
||||
['id' => 7, 'name' => '临时文件', 'sort' => 6, 'describe' => '临时文件分组,用于存放临时上传的文件', 'created_at' => $date, 'updated_at' => $date],
|
||||
['id' => 8, 'name' => '等级图片', 'sort' => 7, 'describe' => '存放等级图片', 'created_at' => $date, 'updated_at' => $date],
|
||||
['id' => 9, 'name' => '分类图片', 'sort' => 8, 'describe' => '存放商品分类图片', 'created_at' => $date, 'updated_at' => $date],
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user