| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace app\models;
- use Yii;
- use yii\behaviors\TimestampBehavior;
- /**
- * This is the model class for table "cyy_event_form_detail".
- *
- * @property int $id
- * @property int|null $store_id
- * @property int|null $created_at
- * @property int|null $updated_at
- * @property int|null $is_delete 是否删除:0=否;1=是;
- * @property int|null $event_user_id event_user表关联ID
- * @property int|null $user_id 用户ID
- * @property int|null $event_id 活动ID
- * @property int|null $form_type 表单类型:1=企业;2=机构;
- * @property string|null $key 表单key
- * @property string|null $value 表单value
- * @property string $type 表单信息类型
- */
- class EventFormDetail extends \yii\db\ActiveRecord
- {
- public static function tableName()
- {
- return 'cyy_event_form_detail';
- }
- public function behaviors()
- {
- return [
- [
- // 自动更新创建和更新时间
- 'class' => TimestampBehavior::class,
- 'value' => time()
- ]
- ];
- }
- public function rules()
- {
- return [
- [['store_id', 'created_at', 'updated_at', 'event_user_id', 'user_id', 'event_id', 'form_type', 'is_delete'], 'integer'],
- [['type'], 'required'],
- [['key', 'value', 'type'], 'string', 'max' => 255],
- ];
- }
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => '商城ID',
- 'is_delete' => '是否删除',
- 'created_at' => '创建时间',
- 'updated_at' => '更新时间',
- 'event_user_id' => 'event_user表关联ID',
- 'user_id' => '用户ID',
- 'event_id' => '活动ID',
- 'form_type' => '表单类型',
- 'key' => '字段名(key)',
- 'value' => '字段值',
- 'type' => '字段类型',
- ];
- }
- }
|