| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\plugins\product_traceability\models;
- use yii\behaviors\TimestampBehavior;
- use yii\db\ActiveRecord;
- /**
- *
- * Class ProductBatchProcessLog
- * @package app\plugins\product_traceability\models
- * @property integer $id
- * @property integer $store_id
- * @property integer $product_id
- * @property integer $product_batch_id
- * @property integer $product_batch_process_id
- * @property integer $state
- * @property integer $is_delete
- * @property string $created_at
- * @property string $updated_at
- */
- class ProductBatchProcessLog extends ActiveRecord
- {
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- public static function tableName()
- {
- return '{{%product_batch_process_log}}';
- }
- public function rules()
- {
- return [
- [['store_id', 'product_id', 'product_batch_id', 'product_batch_process_id' ], 'required'],
- [['store_id', 'created_at', 'updated_at', 'is_delete', 'product_id', 'product_batch_id', 'product_batch_process_id', 'state' ], 'integer'],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => '商城id',
- 'product_id' => '产品id',
- 'product_batch_id' => '批次id',
- 'product_batch_process_id' => '批次流程id',
- 'state' => '状态 0-未提交 1-已提交',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'is_delete' => 'Is Delete',
- ];
- }
- }
|