| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?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_behavior}}".
- *
- * @property int $id
- * @property int $mall_id 商城ID
- * @property int|null $status 状态[-1:删除;0:禁用;1启用]
- * @property int $created_at 创建时间
- */
- class AddonsSmartFormTemplateUserBehavior extends \common\models\base\BaseActiveRecord
- {
- const ADDONS_NAME = 'SmartForm';
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%addons_smart_form_template_user_behavior}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['smart_form_template_id','user_id','behavior_type'], 'required'],
- [['smart_form_template_id','user_id','behavior_type','is_submit','diy_page_id'], 'integer'],
- [['month_day'], 'string', 'max' => 10],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => '主键' ,
- 'smart_form_template_id' => '智能装修表单管理id',
- 'user_id' => '用户id',
- 'diy_page_id' => '使用页面id',
- 'behavior_type' => '提交类型[0:访问;1:提交]',
- 'is_submit' => '访问类型是否已提交[0:否;1是]',
- 'month_day' => '访问年月日',
- 'created_at' => '添加时间',
- 'updated_at' => '添加时间',
- ];
- }
-
- }
|