-- Copyright 2025-2026 Thomas Hintz

-- This file is part of Nassella.

-- Nassella is free software: you can redistribute it and/or modify it under the
-- terms of the GNU Affero General Public License as published by the Free
-- Software Foundation, either version 3 of the License, or (at your option) any
-- later version.

-- Nassella is distributed in the hope that it will be useful, but WITHOUT ANY
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

-- You should have received a copy of the GNU Affero General Public License
-- along with Nassella. If not, see <https://www.gnu.org/licenses/>.

drop index user_terraform_state_user_id_instance_id_idx;
drop table user_terraform_state;

drop index deployments_user_id_instance_id_idx;
drop table deployments;

drop type deployment_status;

drop index user_app_configs_user_id_instance_id_idx;
drop table user_app_configs;

drop index user_selected_apps_user_id_instance_id_idx;
drop table user_selected_apps;

drop index user_service_configs_user_id_instance_id_idx;
drop table user_service_configs;

drop index instances_user_id_instance_id_idx;
drop table instances;

drop index users_username_idx;
drop table users;
