Add (ai gen)
This commit is contained in:
@@ -18,7 +18,7 @@ public function up(): void
|
||||
$table->string('country_iso');
|
||||
$table->bigInteger('epoch');
|
||||
$table->string('filename');
|
||||
$table->timestamp('last_ai_written_at');
|
||||
$table->timestamp('last_ai_written_at')->nullable();
|
||||
$table->integer('write_counts')->default(0);
|
||||
$table->timestamps();
|
||||
$table->foreign('category_id')->references('id')->on('categories');
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('shopee_seller_categories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('seller');
|
||||
$table->foreignId('category_id');
|
||||
$table->timestamp('last_ai_written_at')->nullable();
|
||||
$table->integer('write_counts')->default(0);
|
||||
$table->timestamps();
|
||||
$table->foreign('category_id')->references('id')->on('categories');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('shopee_seller_categories');
|
||||
}
|
||||
};
|
||||
533
database/seeders/ShopeeTechCategorySeeder.php
Normal file
533
database/seeders/ShopeeTechCategorySeeder.php
Normal file
@@ -0,0 +1,533 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Category;
|
||||
use App\Models\ShopeeSellerCategory;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ShopeeTechCategorySeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$shopee_sellers = [
|
||||
'akaso.my',
|
||||
'anbiux.os',
|
||||
'andoer.os',
|
||||
'aputure.os',
|
||||
'azdome.os',
|
||||
'blackmagicdesignbrandstore',
|
||||
'canon.os',
|
||||
'eatechnology.os',
|
||||
'daytech.os',
|
||||
'ddpai.my',
|
||||
'djimalaysia',
|
||||
'tianyi2017.my',
|
||||
'ezvizmalaysia.os',
|
||||
'gnet.os',
|
||||
'gopro.os',
|
||||
'goprolifestyle.os',
|
||||
'goprolifestyle.my',
|
||||
'goqmy.os',
|
||||
'hikvisionmy.os',
|
||||
'troniq',
|
||||
'imoumalaysia',
|
||||
'imoumalaysia.os',
|
||||
'insta360.os',
|
||||
'jiekemi.my',
|
||||
'jiwei.my',
|
||||
'olympusmalaysia.os',
|
||||
'obsbot.os',
|
||||
'paperang.os',
|
||||
'kodakphotoprinterandcamera',
|
||||
'selens.os',
|
||||
'safecam.os',
|
||||
'sony.os',
|
||||
'southocean',
|
||||
'srihome.os',
|
||||
'v380malaysia',
|
||||
'xiaovv.my.os',
|
||||
'yimalaysia.os',
|
||||
'anker.os',
|
||||
'alienworld.os',
|
||||
'amazfit.os',
|
||||
'amazingthingmy',
|
||||
'amazme',
|
||||
'ampaudio.os',
|
||||
'ankerinnovationmyofficial',
|
||||
'ansty.os',
|
||||
'aolonmalaysia.os',
|
||||
'aolonstore.my',
|
||||
'arzpower.os',
|
||||
'asusmobile.os',
|
||||
'audiotechnica.os',
|
||||
'audiotechnica.os.ecogadget',
|
||||
'aukey.official',
|
||||
'samsungsenq.os',
|
||||
'awei.os',
|
||||
'beoplay.os',
|
||||
'baseus.official.local',
|
||||
'baseusofficial.os',
|
||||
'belkin.os',
|
||||
'blackshark.os',
|
||||
'blackviewofficial.my',
|
||||
'blitzwolf.my',
|
||||
'bosemalaysia',
|
||||
'boyastore1.my',
|
||||
'unioncamera.my',
|
||||
'casestudi.os',
|
||||
'catalystofficialstore',
|
||||
'megaworldmall.os',
|
||||
'cloud555101.os',
|
||||
'comsat.os',
|
||||
'coros.os',
|
||||
'creativemy',
|
||||
'dasherprime',
|
||||
'defunc.os',
|
||||
'xiaomilocalstore.os',
|
||||
'directd.official',
|
||||
'disney3c.my',
|
||||
'disneyaudio.official.my',
|
||||
'dizo.os',
|
||||
'dizo.official.my',
|
||||
'earfun.os',
|
||||
'ecoflowos',
|
||||
'ecoflow.os',
|
||||
'edifiermalaysia.os',
|
||||
'elago.os',
|
||||
'ec.os',
|
||||
'energizerpowerbank',
|
||||
'eposgaming.os',
|
||||
'esr.official',
|
||||
'essager.os',
|
||||
'eydmalaysia',
|
||||
'eydstore.my',
|
||||
'flashgadgets.os',
|
||||
'fitbit.os',
|
||||
'flashgadgets.os',
|
||||
'bigbox1168.os',
|
||||
'fonken.os',
|
||||
'freeyondmalaysia',
|
||||
'gadgetsworld666.os',
|
||||
'garmin.os',
|
||||
'linez1x2c3v4286.os',
|
||||
'gloryfitmalaysia',
|
||||
'goalzeromy.os',
|
||||
'goojodoq.os',
|
||||
'gsshop.tw.os',
|
||||
'realfit.official.os',
|
||||
'halosure.os',
|
||||
'handphoneworld',
|
||||
'harmankardon.os',
|
||||
'hayloudirect2.my',
|
||||
'hayloumalaysia.os',
|
||||
'haylou.os',
|
||||
'hdoorlink.os',
|
||||
'skill.my',
|
||||
'hellomalaysia',
|
||||
'hocomalaysiaofficial',
|
||||
'hoda.os',
|
||||
'honor.os',
|
||||
'huaweios',
|
||||
'ienjoy.my',
|
||||
'ibeli',
|
||||
'iclevermalaysia',
|
||||
'idmixmalaysia.os',
|
||||
'ksnycoach.os',
|
||||
'infinitylifestyleos',
|
||||
'infinitylabmy.os',
|
||||
'infinix.shop',
|
||||
'infinix.officialstore',
|
||||
'inku3663.os',
|
||||
'innergie.os',
|
||||
'iqoo.os',
|
||||
'itskinsmy',
|
||||
'itworld.store',
|
||||
'iwalkmy',
|
||||
'j5create.os',
|
||||
'jabenmalaysia',
|
||||
'jabra.os',
|
||||
'jbl.os',
|
||||
'jlab.os',
|
||||
'joway.os',
|
||||
'joyroomshop.my',
|
||||
'joyroommy',
|
||||
'jvcmalaysia',
|
||||
'jystore01.os',
|
||||
'kaxoe.os',
|
||||
'kieslect.os',
|
||||
'klipsch.os',
|
||||
'kuulaaofficial.my',
|
||||
'lammcou.os',
|
||||
'lanex.os',
|
||||
'leagoo.os',
|
||||
'lenovo.tech.my',
|
||||
'thinkplus.my',
|
||||
'lenovo.official.my',
|
||||
'lenovothinkplus.my',
|
||||
'llano.os',
|
||||
'logitech.os',
|
||||
'mcdodo.os',
|
||||
'mcdodoofficial.os',
|
||||
'machinesos',
|
||||
'maimo.os',
|
||||
'ldniomalaysia.os',
|
||||
'maono.my',
|
||||
'marshall.os',
|
||||
'miglobal.os',
|
||||
'mionee.my',
|
||||
'miworldmy',
|
||||
'mjshop.os',
|
||||
'moft.us.my',
|
||||
'mojoskins',
|
||||
'momax.os',
|
||||
'mnsteraudiostore.my',
|
||||
'soundpeats.os',
|
||||
'monsteraudio.my',
|
||||
'moshitw.os',
|
||||
'lenovo.moto.os',
|
||||
'moxom.my',
|
||||
'mpow.official',
|
||||
'myeestore',
|
||||
'nillkin.os',
|
||||
'nillkin.my.os',
|
||||
'niye.os',
|
||||
'macpied.os',
|
||||
'nokiaaudio.os',
|
||||
'nokiamobile',
|
||||
'mynomad',
|
||||
'nothingos',
|
||||
'tecombee.my',
|
||||
'oppoos',
|
||||
'eary.my',
|
||||
'officialarareestore',
|
||||
'divoomstore',
|
||||
'thatsos',
|
||||
'oneplusos',
|
||||
'oneplusmy.os',
|
||||
'onikuma.os',
|
||||
'oppofbs',
|
||||
'oraimo.os',
|
||||
'orico.os',
|
||||
'bestaccessoriessolutionstore',
|
||||
'otterboxofficialmalaysia',
|
||||
'oukitelofficialstore.my',
|
||||
'pinengmalaysia.os',
|
||||
'phl.os',
|
||||
'kodakphotoprinterandcamera',
|
||||
'picoxr',
|
||||
'sptonline88',
|
||||
'pinergy.os',
|
||||
'pitakaofficial',
|
||||
'plextone.os',
|
||||
'pococertifiedstore.os',
|
||||
'pocolocal.os',
|
||||
'poco.os',
|
||||
'polarwatch.os',
|
||||
'popsockets.my',
|
||||
'prodamalaysia.os',
|
||||
'qcy.os',
|
||||
'qoovi.my',
|
||||
'wyzeos',
|
||||
'realmeos',
|
||||
'realme.outlet',
|
||||
'recci.my',
|
||||
'redclick',
|
||||
'redmagicos',
|
||||
'nubiaredmagic.my',
|
||||
'remax.os',
|
||||
'remaxmalaysia.os',
|
||||
'rhinoshieldofficialmalaysia',
|
||||
'ringke.em',
|
||||
'ringkeofficial.os',
|
||||
'ringke.my',
|
||||
'rjconcept.os',
|
||||
'rolton.os',
|
||||
'pantrade.os',
|
||||
'selens.os',
|
||||
'suntaiho.os',
|
||||
'sabbat.os',
|
||||
'samsungaccessoriesos',
|
||||
'samsungmalaysiaos',
|
||||
'samsungmobileos',
|
||||
'samsung.swap',
|
||||
'sandisk.os',
|
||||
'satugadgetofficialstore',
|
||||
'scosche.my',
|
||||
'sennheiser.os',
|
||||
'senqarros',
|
||||
'sentriq.my',
|
||||
'shidu.os',
|
||||
'shokz.os',
|
||||
'sigelei.os',
|
||||
'smartdevilofficialstore.my',
|
||||
'soaiy.my',
|
||||
'sonicgear.os',
|
||||
'sony.my',
|
||||
'sony.os',
|
||||
'sonystoreonline.os',
|
||||
'soul.os',
|
||||
'soundpeatsaudio.my',
|
||||
'distexpressspigen',
|
||||
'spriselocalstore.my',
|
||||
'sptofficialstore',
|
||||
'sudio.os',
|
||||
'summer.store',
|
||||
'switchos',
|
||||
'switcheasyofficialmalaysia',
|
||||
'syncomalaysia',
|
||||
'wowancore.os',
|
||||
'topk.os',
|
||||
'taotronics.os',
|
||||
'teclast.os',
|
||||
'tecnomalaysia',
|
||||
'samsung.thehopzos',
|
||||
'thronmaxmalaysia',
|
||||
'thunderos',
|
||||
'toockiflagshipstore.my',
|
||||
'topkofficial.os',
|
||||
'tranya.os',
|
||||
'tresgadget',
|
||||
'tribitmalaysia',
|
||||
'tronsmart.malaysia',
|
||||
'ugreen.os',
|
||||
'ugreenofficial',
|
||||
'ugreen.my',
|
||||
'umidigi.my',
|
||||
'uniqmy',
|
||||
'unitek.os',
|
||||
'urbanrepublic.samsung',
|
||||
'usams.os',
|
||||
'vinnfier.os',
|
||||
'youxuan888.my',
|
||||
'vention.os',
|
||||
'visiongadgetry.os',
|
||||
'smartmi.os',
|
||||
'vivomalaysia.os',
|
||||
'vivo.fbs',
|
||||
'wiresto.os',
|
||||
'wanbo.my.official',
|
||||
'xiaomiglobal.os',
|
||||
'xiaomicertifiedstore.os',
|
||||
'xinji.os',
|
||||
'plextoneofficial.os',
|
||||
'yamahaav.os',
|
||||
'yanmaielectronic.os',
|
||||
'yimalaysia.os',
|
||||
'yisen.os',
|
||||
'yoobao',
|
||||
'zaggbrands.os',
|
||||
'zeblazeofficial.my',
|
||||
'zmi.os',
|
||||
'ztemalaysia.os',
|
||||
'zuzg.os',
|
||||
'omthingos',
|
||||
'70mai.os',
|
||||
'apes',
|
||||
'acerosmy',
|
||||
'armaggeddon.os',
|
||||
'acasisofficialshop.os',
|
||||
'acer.os.clicknet',
|
||||
'acer.os.justit',
|
||||
'acer.os.nbp',
|
||||
'acer.os.pcimage',
|
||||
'adatamalaysia.os',
|
||||
'alcatroz.os',
|
||||
'ampcomchina.my',
|
||||
'aoc.os',
|
||||
'apacer.my',
|
||||
'apcbyschneiderelectric.os',
|
||||
'focuscomputerarp',
|
||||
'asrocklink2buy',
|
||||
'asuslaptop.os',
|
||||
'asus.os.mybest',
|
||||
'asus.os.onetech',
|
||||
'asus.os.superbmultimedia',
|
||||
'asuspc.os',
|
||||
'aulamy.os',
|
||||
'aula.official.my',
|
||||
'aula.os',
|
||||
'avitastore.sns',
|
||||
'avitastore.sns',
|
||||
'benqmalaysia',
|
||||
'o9tech.os',
|
||||
'bmax.os',
|
||||
'brother.os',
|
||||
'lenovo.os.brightstar',
|
||||
'canonprinteros',
|
||||
'jb.canon',
|
||||
'canonbb',
|
||||
'canonswk',
|
||||
'canonallit.os',
|
||||
'canon.os.pcimage',
|
||||
'canon.pineapple',
|
||||
'canon.sunshine',
|
||||
'lenovo.os.etika',
|
||||
'philipsmonitoros',
|
||||
'cliptec',
|
||||
'colorful.os',
|
||||
'coolermaster.my',
|
||||
'crucialmalaysia',
|
||||
'cytron.os',
|
||||
'dareumyofficial',
|
||||
'deli.os',
|
||||
'dell.commercialstore',
|
||||
'deluxworld.my',
|
||||
'dereofficial.os',
|
||||
'macospice.my',
|
||||
'diymore.my',
|
||||
'dlink.os',
|
||||
'dmes.os',
|
||||
'docooler.os',
|
||||
'edifiermalaysia.os',
|
||||
'elitesoftasia.os',
|
||||
'epson.os',
|
||||
'eset.os',
|
||||
'cardy0728.os',
|
||||
'fantech.os',
|
||||
'flashgadgets.os',
|
||||
'flujomalaysia.os',
|
||||
'fnatic.os',
|
||||
'fujitsu.os.nbp',
|
||||
'stanley1968.os',
|
||||
'gamingfreak.malaysia',
|
||||
'gigabytenb.os',
|
||||
'gigabyte.os',
|
||||
'goldenfir.my',
|
||||
'gracepc.os',
|
||||
'lipolakeu.os',
|
||||
'hponlinestore',
|
||||
'hpstore.pineapple',
|
||||
'hpbestbuy',
|
||||
'hpclicknet',
|
||||
'hphexacom',
|
||||
'hp.nbp',
|
||||
'hp.onetech',
|
||||
'hppcimage',
|
||||
'sns.hpstore',
|
||||
'hp.mobilitysquare',
|
||||
'hpaoneplus',
|
||||
'hpstore.mono',
|
||||
'hpsuperbmultimedia',
|
||||
'hpssd.os',
|
||||
'huaweios',
|
||||
'huionmy.my',
|
||||
'huion.os',
|
||||
'huntkey.os',
|
||||
'hydersonmalaysia.my',
|
||||
'ibeli',
|
||||
'ibuyonlinenow',
|
||||
'llanoofficialstore.my',
|
||||
'jaditoner',
|
||||
'jan0103.os',
|
||||
'jayacom.my',
|
||||
'jumper.my',
|
||||
'kioxia.os',
|
||||
'leaven.os',
|
||||
'lenovo.my.os',
|
||||
'lenovo.os.mybest',
|
||||
'lenovo.os.clicknet',
|
||||
'lenovo.os.eit',
|
||||
'lenovo.os.grex',
|
||||
'lenovo.os.onetech',
|
||||
'lenovo.os.pcimage',
|
||||
'lenovo.os.wit',
|
||||
'lenovo.os.nbp',
|
||||
'lenovo.os.tmt',
|
||||
'lexarmalaysia.os',
|
||||
'lgmytechstore.os',
|
||||
'livinggears',
|
||||
'logitech.os',
|
||||
'logitechg.os',
|
||||
'mcafee.os',
|
||||
'machenike.my',
|
||||
'machinesos',
|
||||
'miiiw.os',
|
||||
'canonmit',
|
||||
'mofii.os',
|
||||
'moft.us.my',
|
||||
'mon.king.my',
|
||||
'monodigital.os',
|
||||
'msi.os',
|
||||
'msi.os.eit',
|
||||
'msi.os.eit',
|
||||
'navotech.os',
|
||||
'northbayou',
|
||||
'netgear.os',
|
||||
'nvidia.geforce.official.store',
|
||||
'ookas',
|
||||
'oricoofficialstore.my',
|
||||
'pantumofficialstore',
|
||||
'philipsaccessories.os',
|
||||
'picoxr',
|
||||
'play3c.os',
|
||||
'prolink',
|
||||
'qnap.official',
|
||||
'haveatech.os',
|
||||
'rapoo.os',
|
||||
'razer.os',
|
||||
'eyooso..my',
|
||||
'rfsolutionsenterprise',
|
||||
'rigear.os',
|
||||
'royalkludge.os',
|
||||
'rkgamingos.my',
|
||||
'roccat.os',
|
||||
'rog.os',
|
||||
'royalkludgeofficialstore.my',
|
||||
'samsungmemoryos',
|
||||
'skullcandy.os',
|
||||
'sricomputers',
|
||||
'salpido.os',
|
||||
'samsungmonitoros',
|
||||
'samsungviewnet.os',
|
||||
'sandisk.os',
|
||||
'seagate.os',
|
||||
'senqarros',
|
||||
'delltechpartner',
|
||||
'siliconpowermy.os',
|
||||
'steelseriesofficialstore',
|
||||
'strontium.os',
|
||||
'sunfar3c.os',
|
||||
'switchos',
|
||||
'synology.os',
|
||||
'toshiba.os',
|
||||
'targus.os',
|
||||
'teamgroupmy.os',
|
||||
'tecware.os',
|
||||
'tendamalaysia',
|
||||
'thrustmaster.os',
|
||||
'thunderobotglobalstore.my',
|
||||
'titanarmy.os',
|
||||
'totolinkmalaysia',
|
||||
'tplinkmy.os',
|
||||
'transcend.os',
|
||||
'trendmicro.os',
|
||||
'turtlebeach.os',
|
||||
'uagmalaysia',
|
||||
'veikk.os',
|
||||
'ventionmy.os',
|
||||
'ventionofficial.my',
|
||||
'viewnet.os',
|
||||
'wacom.os',
|
||||
'wavlink.os',
|
||||
'wd.os',
|
||||
'xppenglobal.os',
|
||||
'xppen.os',
|
||||
'smart.life.my',
|
||||
];
|
||||
|
||||
$category = Category::where('country_locale_slug','my')->where('name','Technology')->first();
|
||||
|
||||
foreach ($shopee_sellers as $seller)
|
||||
{
|
||||
$shopee_seller_category = new ShopeeSellerCategory;
|
||||
$shopee_seller_category->seller = $seller;
|
||||
$shopee_seller_category->category_id = $category->id;
|
||||
$shopee_seller_category->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user