| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- use yii\db\ActiveRecord;
- use yii\behaviors\TimestampBehavior;
- /**
- * Class StoreSyncLog
- * @package app\modules\common\models
- *
- * @property integer $id
- * @property integer $from_store_id
- * @property string $to_store_ids
- * @property integer $status
- * @property string $created_at
- * @property string $updated_at
- * @property integer $result
- * @property integer $sync_id
- * @property string $goods_info
- * @property string $pintuan
- * @property string $bargain
- * @property string $diy
- * @property string $seckill
- * @property string $shareConfig
- * @property string $shareHolderConfig
- * @property string $videoGoods
- * @property string $integralStore
- * @property string $workerConfig
- * @property string $article
- * @property string $topic
- */
- class StoreSyncLog extends ActiveRecord
- {
- public static function tableName()
- {
- return '{{%store_sync_log}}';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- public function rules()
- {
- return [
- [['from_store_id', 'status', 'result', 'sync_id'], 'integer'],
- [['to_store_ids', 'goods_info', 'pintuan', 'bargain', 'diy', 'seckill', 'shareConfig', 'shareHolderConfig', 'videoGoods', 'integralStore', 'workerConfig', 'article', 'topic'], 'string'],
- [['create_at', 'update_at'], 'safe'],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'from_store_id' => '来源商城',
- 'to_store_ids' => '同步到商城,多个',
- 'status' => '状态, 0:等待执行,1:执行完成',
- 'create_at' => '创建时间',
- 'update_at' => '更新时间',
- 'result' => '0:排队中,1:执行成功, 2:执行失败',
- 'sync_id' => '任务id',
- 'goods_info' => '商品同步信息',
- 'pintuan' => '拼团信息',
- 'bargain' => '砍价信息',
- 'diy' => '装修信息',
- 'seckill' => '秒杀信息',
- 'shareConfig' => '分销信息',
- 'shareHolderConfig' => '股东信息',
- 'videoGoods' => '短视频信息',
- 'integralStore' => '积分商城信息',
- 'workerConfig' => '上门服务',
- 'article' => '文章',
- 'topic' => '专题',
- ];
- }
- }
|