TimestampBehavior::class, 'value' => time() ] ]; } public function rules() { return [ [['store_id', 'created_at', 'updated_at', 'event_id', 'user_id', 'apply_status', 'apply_time', 'sign_time', 'form_type', 'is_delete'], 'integer'], [['company_code', 'company_name', 'company_address', 'real_name', 'phone', 'identity_card', 'reason_refusal'], 'string', 'max' => 255], [['hotel', 'restaurant', 'itinerary'], 'string'], [['event_id', 'user_id', 'real_name', 'phone'], 'required'], [['apply_status'], 'in', 'range' => [self::APPLY_PENDING, self::APPLY_APPROVED, self::APPLY_REJECTED]], ]; } public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城ID', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'is_delete' => '是否删除', 'event_id' => '活动ID', 'user_id' => '用户ID', 'company_code' => '统一信用代码', 'company_name' => '公司名称', 'company_address' => '公司地址', 'real_name' => '姓名', 'phone' => '手机号', 'identity_card' => '身份证号', 'hotel' => '住宿信息', 'restaurant' => '餐食信息', 'itinerary' => '行程信息', 'apply_status' => '审核状态', 'apply_time' => '审核时间', 'reason_refusal' => '拒绝原因', 'sign_time' => '首次签到时间', 'form_type' => '表单类型:1=企业;2=机构;' ]; } }