| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?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 ProductBatchProcessForm
- * @package app\plugins\product_traceability\models
- * @property integer $id
- * @property integer $store_id
- * @property integer $product_batch_process_id
- * @property string $name
- * @property string $type
- * @property integer $required
- * @property string $default
- * @property string $tip
- * @property integer $sort
- * @property integer $is_delete
- * @property string $created_at
- * @property string $updated_at
- */
- class ProductBatchProcessSheet extends ActiveRecord
- {
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- public static function tableName()
- {
- return '{{%product_batch_process_sheet}}';
- }
- public function rules()
- {
- return [
- [['store_id', 'product_batch_process_id', 'required', 'sort' ], 'required'],
- [['store_id', 'created_at', 'updated_at', 'is_delete', 'product_batch_process_id', 'required', 'sort'], 'integer'],
- [['name', 'type', 'default', 'tip'], 'string', 'max' => 255],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => '商城id',
- 'product_batch_process_id' => '流程id',
- 'name' => '名称',
- 'type' => '类型',
- 'required' => '必填项',
- 'default' => '默认值',
- 'tip' => '提示语',
- 'sort' => '排序',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'is_delete' => 'Is Delete',
- ];
- }
- }
|