TimestampBehavior::class, 'attributes' => [ ActiveRecord::EVENT_BEFORE_INSERT => 'created_at', ActiveRecord::EVENT_BEFORE_UPDATE => 'updated_at' ] ] ]; } /** * @inheritdoc */ public function rules() { return [ [["id", "store_id", "is_delete", "status", "created_at", "updated_at", "saas_id"], 'integer'], [["username", "password", 'rules'], 'string'] ]; } /** * @inheritdoc */ public function attributeLabels() { return [ "id" => "", "username" => "用户名", "password" => "密码", "store_id" => "商城id", "is_delete" => "是否删除", "status" => "状态 0关闭 1开启", "created_at" => "", "updated_at" => "", "rules" => "规则", "saas_id" => '联盟用户id' ]; } }