| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?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 ProductBatchProcess
- * @package app\plugins\product_traceability\models
- * @property integer $id
- * @property integer $store_id
- * @property string $process_name
- * @property integer $process_user_id
- * @property integer $product_batch_id
- * @property integer $is_delete
- * @property string $created_at
- * @property string $updated_at
- * @property string $sort
- */
- class ProductBatchProcess extends ActiveRecord
- {
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- public static function tableName()
- {
- return '{{%product_batch_process}}';
- }
- public function rules()
- {
- return [
- [['store_id', 'process_name', 'process_user_id', 'product_batch_id', ], 'required'],
- [['store_id', 'created_at', 'updated_at', 'is_delete', 'product_batch_id', 'sort'], 'integer'],
- [['process_name',], 'string', 'max' => 255],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => '商城id',
- 'process_name' => '流程名称',
- 'process_user_id' => '流程操作用户',
- 'product_batch_id' => '批次id',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'is_delete' => 'Is Delete',
- 'sort' => 'sort',
- ];
- }
- }
|