重构现代化 FastAPI 后端项目框架
This commit is contained in:
15
resources/sql/drop/0.base.sql
Normal file
15
resources/sql/drop/0.base.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
drop table if exists _region;
|
||||
|
||||
drop table if exists _pattern;
|
||||
|
||||
drop table if exists _curve;
|
||||
|
||||
drop table if exists _link;
|
||||
|
||||
drop table if exists _node;
|
||||
|
||||
drop type if exists _curve_type;
|
||||
|
||||
drop type if exists _link_type;
|
||||
|
||||
drop type if exists _node_type;
|
||||
3
resources/sql/drop/1.title.sql
Normal file
3
resources/sql/drop/1.title.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [TITLE]
|
||||
|
||||
drop table if exists title;
|
||||
5
resources/sql/drop/10.status.sql
Normal file
5
resources/sql/drop/10.status.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [STATUS]
|
||||
|
||||
drop table if exists status;
|
||||
|
||||
drop type if exists link_status;
|
||||
3
resources/sql/drop/11.patterns.sql
Normal file
3
resources/sql/drop/11.patterns.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [PATTERNS]
|
||||
|
||||
drop table if exists patterns;
|
||||
3
resources/sql/drop/12.curves.sql
Normal file
3
resources/sql/drop/12.curves.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [CURVES]
|
||||
|
||||
drop table if exists curves;
|
||||
3
resources/sql/drop/13.controls.sql
Normal file
3
resources/sql/drop/13.controls.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [CONTROLS]
|
||||
|
||||
drop table if exists controls;
|
||||
3
resources/sql/drop/14.rules.sql
Normal file
3
resources/sql/drop/14.rules.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [RULES]
|
||||
|
||||
drop table if exists rules;
|
||||
9
resources/sql/drop/15.energy.sql
Normal file
9
resources/sql/drop/15.energy.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- [ENERGY]
|
||||
|
||||
drop table if exists energy_pump_effic;
|
||||
|
||||
drop table if exists energy_pump_pattern;
|
||||
|
||||
drop table if exists energy_pump_price;
|
||||
|
||||
drop table if exists energy;
|
||||
3
resources/sql/drop/16.emitters.sql
Normal file
3
resources/sql/drop/16.emitters.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [EMITTERS]
|
||||
|
||||
drop table if exists emitters;
|
||||
3
resources/sql/drop/17.quality.sql
Normal file
3
resources/sql/drop/17.quality.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [QUALITY]
|
||||
|
||||
drop table if exists quality;
|
||||
5
resources/sql/drop/18.sources.sql
Normal file
5
resources/sql/drop/18.sources.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [SOURCES]
|
||||
|
||||
drop table if exists sources;
|
||||
|
||||
drop type if exists sources_type;
|
||||
9
resources/sql/drop/19.reactions.sql
Normal file
9
resources/sql/drop/19.reactions.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
-- [REACTIONS]
|
||||
|
||||
drop table if exists reactions_tank;
|
||||
|
||||
drop table if exists reactions_pipe_wall;
|
||||
|
||||
drop table if exists reactions_pipe_bulk;
|
||||
|
||||
drop table if exists reactions;
|
||||
3
resources/sql/drop/2.junctions.sql
Normal file
3
resources/sql/drop/2.junctions.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [JUNCTIONS]
|
||||
|
||||
drop table if exists junctions;
|
||||
5
resources/sql/drop/20.mixing.sql
Normal file
5
resources/sql/drop/20.mixing.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [MIXING]
|
||||
|
||||
drop table if exists mixing;
|
||||
|
||||
drop type if exists mixing_model;
|
||||
3
resources/sql/drop/21.times.sql
Normal file
3
resources/sql/drop/21.times.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [TIMES]
|
||||
|
||||
drop table if exists times;
|
||||
3
resources/sql/drop/22.report.sql
Normal file
3
resources/sql/drop/22.report.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [REPORT]
|
||||
|
||||
drop table if exists report;
|
||||
5
resources/sql/drop/23.options.sql
Normal file
5
resources/sql/drop/23.options.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [OPTIONS]
|
||||
|
||||
drop table if exists options_v3;
|
||||
|
||||
drop table if exists options;
|
||||
5
resources/sql/drop/24.coordinates.sql
Normal file
5
resources/sql/drop/24.coordinates.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [COORDINATES]
|
||||
|
||||
drop index if exists coordinates_gist;
|
||||
|
||||
drop table if exists coordinates;
|
||||
3
resources/sql/drop/25.vertices.sql
Normal file
3
resources/sql/drop/25.vertices.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [VERTICES]
|
||||
|
||||
drop table if exists vertices;
|
||||
3
resources/sql/drop/26.labels.sql
Normal file
3
resources/sql/drop/26.labels.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [LABELS]
|
||||
|
||||
drop table if exists labels;
|
||||
3
resources/sql/drop/27.backdrop.sql
Normal file
3
resources/sql/drop/27.backdrop.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [BACKDROP]
|
||||
|
||||
drop table if exists backdrop;
|
||||
1
resources/sql/drop/28.end.sql
Normal file
1
resources/sql/drop/28.end.sql
Normal file
@@ -0,0 +1 @@
|
||||
-- [END]
|
||||
3
resources/sql/drop/29.scada_device.sql
Normal file
3
resources/sql/drop/29.scada_device.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
drop table if exists scada_device;
|
||||
|
||||
drop type if exists scada_device_type;
|
||||
3
resources/sql/drop/3.reservoirs.sql
Normal file
3
resources/sql/drop/3.reservoirs.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [RESERVOIRS]
|
||||
|
||||
drop table if exists reservoirs;
|
||||
1
resources/sql/drop/30.scada_device_data.sql
Normal file
1
resources/sql/drop/30.scada_device_data.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists scada_device_data;
|
||||
5
resources/sql/drop/31.scada_element.sql
Normal file
5
resources/sql/drop/31.scada_element.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
drop table if exists scada_element;
|
||||
|
||||
drop type if exists scada_element_status;
|
||||
|
||||
drop type if exists scada_model_type;
|
||||
17
resources/sql/drop/32.region.sql
Normal file
17
resources/sql/drop/32.region.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
drop table if exists temp_vd_topology;
|
||||
|
||||
drop table if exists temp_link_2;
|
||||
|
||||
drop table if exists temp_link_1;
|
||||
|
||||
drop table if exists temp_node;
|
||||
|
||||
drop index if exists temp_region_gist;
|
||||
|
||||
drop table if exists temp_region;
|
||||
|
||||
drop index if exists region_gist;
|
||||
|
||||
drop table if exists region;
|
||||
|
||||
drop type if exists region_type;
|
||||
1
resources/sql/drop/33.dma.sql
Normal file
1
resources/sql/drop/33.dma.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists region_dma;
|
||||
1
resources/sql/drop/34.sa.sql
Normal file
1
resources/sql/drop/34.sa.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists region_sa;
|
||||
1
resources/sql/drop/35.vd.sql
Normal file
1
resources/sql/drop/35.vd.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists region_vd;
|
||||
1
resources/sql/drop/36.wda.sql
Normal file
1
resources/sql/drop/36.wda.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists region_wda;
|
||||
3
resources/sql/drop/37.history_patterns_flows.sql
Normal file
3
resources/sql/drop/37.history_patterns_flows.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- WMH
|
||||
-- 2025/01/12
|
||||
drop table if exists history_patterns_flows;
|
||||
3
resources/sql/drop/38.scada_info.sql
Normal file
3
resources/sql/drop/38.scada_info.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- WMH
|
||||
-- 2025/01/12
|
||||
drop table if exists scada_info;
|
||||
5
resources/sql/drop/39.users.sql
Normal file
5
resources/sql/drop/39.users.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- 王名豪
|
||||
-- 2025/03/23
|
||||
-- 删除user这张表
|
||||
|
||||
drop table if exists users;
|
||||
5
resources/sql/drop/4.tanks.sql
Normal file
5
resources/sql/drop/4.tanks.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [TANKS]
|
||||
|
||||
drop table if exists tanks;
|
||||
|
||||
drop type if exists tanks_overflow;
|
||||
6
resources/sql/drop/40.scheme_list.sql
Normal file
6
resources/sql/drop/40.scheme_list.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- [SCHEME_LIST]
|
||||
-- 王名豪
|
||||
-- 2025/03/23
|
||||
-- 删除scheme_list这张表
|
||||
|
||||
drop table if exists scheme_list;
|
||||
6
resources/sql/drop/41.pipe_risk_probability.sql
Normal file
6
resources/sql/drop/41.pipe_risk_probability.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- [PIPE_RISK_PROBABILITY]
|
||||
-- 王名豪
|
||||
-- 2025/04/16
|
||||
-- 删除pipe_risk_probability这张表
|
||||
|
||||
drop table if exists pipe_risk_probability;
|
||||
6
resources/sql/drop/42.sensor_placement.sql
Normal file
6
resources/sql/drop/42.sensor_placement.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- [SENSOR_PLACEMENT]
|
||||
-- 王名豪
|
||||
-- 2025/04/18
|
||||
-- 删除sensor_placement这张表
|
||||
|
||||
drop table if exists sensor_placement;
|
||||
6
resources/sql/drop/43.burst_locate_result.sql
Normal file
6
resources/sql/drop/43.burst_locate_result.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- [BURST_LOCATE_RESULT]
|
||||
-- 王名豪
|
||||
-- 2025/04/19
|
||||
-- 删除burst_locate_result这张表
|
||||
|
||||
drop table if exists burst_locate_result;
|
||||
5
resources/sql/drop/5.pipes.sql
Normal file
5
resources/sql/drop/5.pipes.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [PIPES]
|
||||
|
||||
drop table if exists pipes;
|
||||
|
||||
drop type if exists pipes_status;
|
||||
3
resources/sql/drop/6.pumps.sql
Normal file
3
resources/sql/drop/6.pumps.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [PUMPS]
|
||||
|
||||
drop table if exists pumps;
|
||||
5
resources/sql/drop/7.valves.sql
Normal file
5
resources/sql/drop/7.valves.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [VALVES]
|
||||
|
||||
drop table if exists valves;
|
||||
|
||||
drop type if exists valves_type;
|
||||
5
resources/sql/drop/8.tags.sql
Normal file
5
resources/sql/drop/8.tags.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
-- [TAGS]
|
||||
|
||||
drop table if exists tags_link;
|
||||
|
||||
drop table if exists tags_node;
|
||||
3
resources/sql/drop/9.demands.sql
Normal file
3
resources/sql/drop/9.demands.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- [DEMANDS]
|
||||
|
||||
drop table if exists demands;
|
||||
1
resources/sql/drop/extension_data.sql
Normal file
1
resources/sql/drop/extension_data.sql
Normal file
@@ -0,0 +1 @@
|
||||
drop table if exists extension_data;
|
||||
13
resources/sql/drop/operation.sql
Normal file
13
resources/sql/drop/operation.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
drop table if exists operation_table;
|
||||
|
||||
drop type if exists operation_table_option;
|
||||
|
||||
drop table if exists batch_operation;
|
||||
|
||||
drop table if exists restore_operation;
|
||||
|
||||
drop table if exists snapshot_operation;
|
||||
|
||||
drop table if exists current_operation;
|
||||
|
||||
drop table if exists operation;
|
||||
Reference in New Issue
Block a user