TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'], ActiveRecord::EVENT_BEFORE_UPDATE => ['updated_at'] ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [['store_id', 'user_id', 'saas_id', 'cloud_user_id', 'currency_yewu_id', 'currency_id', 'is_status', 'is_open', 'shop_status'], 'integer'], [['money', 'money_total', 'frozen', 'withdraw', 'user_percent', 'agent_percent', 'recommend_percent', 'store_percent', 'store_recommend_percent', 'pay_percent', 'shop_user_percent', 'shop_agent_percent'], 'number'], [['currency_code'], 'string', 'max' => 50], [['huifu_id'], 'string', 'max' => 255], [['created_at', 'updated_at'], 'safe'] ]; } }