TimestampBehavior::class, 'value' => time() ] ]; } /** * {@inheritdoc} */ public function rules() { return [ [['id', 'store_id', 'created_at', 'updated_at', 'is_delete', 'start_time', 'end_time', 'attendance'], 'integer'], [['name', 'address', 'company_form', 'institution_form'], 'string'], [['id'], 'unique'], // 主键唯一性 ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'store_id' => '商城ID', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'is_delete' => '是否删除:0=否;1=是;', 'name' => '活动名称', 'address' => '活动地址', 'start_time' => '开始时间', 'end_time' => '结束时间', 'attendance' => '参会人数限制', 'company_form' => '企业报名表单(JSON)', 'institution_form' => '机构报名表单(JSON)', 'cover_pic' => '封面图', ]; } }