| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- namespace addons\SmartForm\common\models;
- use common\enums\StatusEnum;
- use common\models\mall\MallAddons;
- use common\models\user\User;
- use Yii;
- use yii\db\Exception;
- /**
- * This is the model class for table "{{%addons_smart_form_template_user_form_info}}".
- *
- * @property int $id
- * @property int $mall_id 商城ID
- * @property int|null $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at 创建时间
- * @property int $updated_at 修改时间
- */
- class AddonsSmartFormTemplateUserFormInfo extends \common\models\base\BaseActiveRecord
- {
- const ADDONS_NAME = 'SmartForm';
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_smart_form_template_user_form_info}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['smart_form_template_id','user_id','smart_form_template_user_form_id','smart_form_components_id'], 'required'],
- [['smart_form_template_id','user_id','smart_form_template_user_form_id','smart_form_components_id','created_at','updated_at'], 'integer'],
- [['col_value'], 'string'],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键' ,
- 'smart_form_template_id' => '智能装修表单管理id',
- 'smart_form_template_user_form_id' => '用户填写智能表单id',
- 'user_id' => '用户id',
- 'smart_form_components_id' => '智能装修表单明细字段id',
- 'smart_form_components_code' => '智能装修组件标识',
- 'smart_form_components_title' => '标题',
- 'col_value' => '填写字段值',
- 'created_at' => '创建时间',
- 'updated_at' => '修改时间',
- ];
- }
- public function getColumn()
- {
- return $this->hasOne(AddonsSmartFormTemplateColumn::class, ['id' => 'smart_form_components_id']);
- }
- }
|