From b2c392e5c55cee361992b91df345d386f23f4b01 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Mon, 26 Feb 2024 16:33:37 -0500 Subject: [PATCH] Update scouter database --- database-scripts/10_create.sql | 103 --------------------------- database-scripts/create.sql | 104 ++++++++++++++++++++++++++++ database-scripts/creature.sql | 20 ++++++ database-scripts/creature_type.sql | 4 ++ database-scripts/layout.sql | 3 + database-scripts/moon.sql | 9 +++ database-scripts/moon_tier.sql | 4 ++ database-scripts/risk_level.sql | 7 ++ database-scripts/scrap.sql | 1 + database-scripts/spawn_chance.sql | 1 + database-scripts/viable_weather.sql | 37 ++++++++++ scouter.db | Bin 0 -> 77824 bytes 12 files changed, 190 insertions(+), 103 deletions(-) delete mode 100644 database-scripts/10_create.sql create mode 100644 database-scripts/create.sql create mode 100644 database-scripts/creature.sql create mode 100644 database-scripts/creature_type.sql create mode 100644 database-scripts/layout.sql create mode 100644 database-scripts/moon.sql create mode 100644 database-scripts/moon_tier.sql create mode 100644 database-scripts/risk_level.sql create mode 100644 database-scripts/scrap.sql create mode 100644 database-scripts/spawn_chance.sql create mode 100644 database-scripts/viable_weather.sql create mode 100644 scouter.db diff --git a/database-scripts/10_create.sql b/database-scripts/10_create.sql deleted file mode 100644 index 6230c98..0000000 --- a/database-scripts/10_create.sql +++ /dev/null @@ -1,103 +0,0 @@ -create table if not exists moon_tier -( - moon_tier_id int primary key, - tier_name text not null -); - -create table if not exists risk_level -( - risk_level_id int primary key, - risk_level_name text not null -); - -create table if not exists layout -( - layout_id int primary key, - layout_name text not null -); - -create table if not exists weather -( - weather_id int primary key, - weather_name text not null, - effect text -); - -create table if not exists moon -( - moon_id int primary key, - moon_name text not null, - risk_level_id int not null, - cost int not null, - default_layout_id int not null, - map_size_multiplier real not null, - min_scrap int not null, - max_scrap int not null, - outside_max_power int not null, - inside_max_power int not null, - moon_tier_id int not null, - foreign key (risk_level_id) - references risk_level (risk_level_id), - foreign key (default_layout_id) - references layout (layout_id), - foreign key (moon_tier_id) - references moon_tier (moon_tier_id) -); - -create table if not exists creature_type -( - creature_type_id int primary key, - type_name text not null -); - -create table if not exists creature -( - creature_id int primary key, - creature_name text not null, - creature_nickname text, - health int, - power_level int not null, - max_spawn int not null, - stunnable int not null, - stun_multiplier real, - door_open_speed real, - hostile int not null, - creature_type_id int not null, - favorite_moon_id int not null, - foreign key (creature_type_id) - references creature_type (creature_type_id), - foreign key (favorite_moon_id) - references moon (moon_id) -); - -create table if not exists scrap -( - scrap_id int primary key, - scrap_name text not null, - min_value int not null, - max_value int not null, - weight int not null, - conductive int not null, - two_handed int not null -); - -create table if not exists viable_weather -( - moon_id int not null, - weather_id int not null, - foreign key (moon_id) - references moon (moon_id), - foreign key (weather_id) - references weather (weather_id) -); - -create table if not exists spawn_chance -( - moon_id int not null, - creature_id int not null, - spawn_chance real not null, - foreign key (moon_id) - references moon (moon_id), - foreign key (creature_id) - references creature (creature_id) -); diff --git a/database-scripts/create.sql b/database-scripts/create.sql new file mode 100644 index 0000000..d1c0add --- /dev/null +++ b/database-scripts/create.sql @@ -0,0 +1,104 @@ +create table creature_type +( + creature_type_id int + primary key, + type_name text not null +); + +create table layout +( + layout_id int + primary key, + layout_name text not null +); + +create table moon_tier +( + moon_tier_id int + primary key, + tier_name text not null +); + +create table risk_level +( + risk_level_id int + primary key, + risk_level_name text not null +); + +create table moon +( + moon_id int + primary key, + moon_name text not null, + risk_level_id int not null + references risk_level, + cost int not null, + default_layout_id int not null + references layout, + map_size_multiplier real not null, + min_scrap int not null, + max_scrap int not null, + outside_max_power int not null, + inside_max_power int not null, + moon_tier_id int not null + references moon_tier +); + +create table creature +( + creature_id int + primary key, + creature_name text not null, + creature_nickname text, + health int, + power_level int not null, + max_spawn int not null, + stunnable int not null, + stun_multiplier real, + door_open_speed real, + hostile int not null, + creature_type_id int not null + references creature_type, + favorite_moon_id int not null + references moon +); + +create table scrap +( + scrap_id int + primary key, + scrap_name text not null, + min_value int not null, + max_value int not null, + weight int not null, + conductive int not null, + two_handed int not null +); + +create table spawn_chance +( + moon_id int not null + references moon, + creature_id int not null + references creature, + spawn_chance real not null +); + +create table weather +( + weather_id int + primary key, + weather_name text not null, + effect text +); + +create table viable_weather +( + moon_id int not null + references moon, + weather_id int not null + references weather +); + + diff --git a/database-scripts/creature.sql b/database-scripts/creature.sql new file mode 100644 index 0000000..c0de889 --- /dev/null +++ b/database-scripts/creature.sql @@ -0,0 +1,20 @@ +insert into main.creature (creature_id, creature_name, creature_nickname, health, power_level, max_spawn, stunnable, stun_multiplier, door_open_speed, hostile, creature_type_id, favorite_moon_id) +values (1, 'Snare Flea', 'Head Bug', 2, 1, 4, 1, 3, 4.35, 1, 2, 2), + (2, 'Bunker Spider', null, 5, 3, 1, 1, 1, 6.67, 1, 2, 1), + (3, 'Hoarding Bug', 'Yippee Bug', 2, 1, 8, 1, 0.5, 0.67, 1, 2, 2), + (4, 'Bracken', 'Flower Man', 3, 3, 1, 1, 0.25, 0.8, 1, 2, 3), + (5, 'Thumper', null, 4, 3, 4, 1, 1, 3.33, 1, 2, 4), + (6, 'Hygrodere', 'Goo', null, 1, 2, 1, 4, 0, 1, 2, 4), + (7, 'Ghost Girl', null, null, 2, 1, 0, null, 0.25, 1, 3, 6), + (8, 'Spore Lizard', null, null, 1, 2, 1, 0.6, 3.33, 1, 2, 1), + (9, 'Nutcracker', null, 5, 1, 10, 1, 0.5, 0.5, 1, 2, 6), + (10, 'Coil-Head', null, null, 1, 5, 1, 3.25, 16.67, 1, 2, 4), + (11, 'Jester', null, null, 3, 1, 1, 0.6, 2, 1, 2, 6), + (12, 'Masked', 'Mimic', 4, 1, 10, 1, 0.75, 0.25, 1, 3, 6), + (13, 'Eyeless Dog', null, 12, 2, 8, 1, 0.7, null, 1, 1, 8), + (14, 'Forest Keeper', 'Giant', null, 3, 3, 1, 1.2, null, 1, 1, 3), + (15, 'Earth Leviathan', 'Worm', null, 2, 3, 0, null, null, 1, 1, 2), + (16, 'Baboon Hawk', null, 6, 1, 15, 1, 0.4, null, 1, 1, 5), + (17, 'Circuit Bees', null, null, 1, 6, 0, null, null, 1, 1, 5), + (18, 'Manticoil', null, 2, 1, 16, 1, 1.1, null, 0, 1, 4), + (19, 'Roaming Locusts', null, null, 1, 16, 0, null, null, 0, 1, 1); \ No newline at end of file diff --git a/database-scripts/creature_type.sql b/database-scripts/creature_type.sql new file mode 100644 index 0000000..ef3bb86 --- /dev/null +++ b/database-scripts/creature_type.sql @@ -0,0 +1,4 @@ +insert into main.creature_type (creature_type_id, type_name) +values (1, 'Outside'), + (2, 'Inside'), + (3, 'Hybrid'); \ No newline at end of file diff --git a/database-scripts/layout.sql b/database-scripts/layout.sql new file mode 100644 index 0000000..dc379e3 --- /dev/null +++ b/database-scripts/layout.sql @@ -0,0 +1,3 @@ +insert into main.layout (layout_id, layout_name) +values (1, 'Factory'), + (2, 'Mansion'); \ No newline at end of file diff --git a/database-scripts/moon.sql b/database-scripts/moon.sql new file mode 100644 index 0000000..67b555b --- /dev/null +++ b/database-scripts/moon.sql @@ -0,0 +1,9 @@ +insert into main.moon (moon_id, moon_name, risk_level_id, cost, default_layout_id, map_size_multiplier, min_scrap, max_scrap, outside_max_power, inside_max_power, moon_tier_id) +values (1, '41-Experimentation', 4, 0, 1, 1, 0, 11, 8, 4, 1), + (2, '220-Assurance', 6, 0, 1, 1, 13, 16, 8, 6, 1), + (3, '56-Vow', 5, 0, 1, 1.15, 10, 12, 6, 7, 1), + (4, '21-Offense', 4, 0, 1, 1.25, 14, 17, 8, 12, 2), + (5, '61-March', 4, 0, 1, 2, 18, 25, 12, 14, 2), + (6, '85-Rend', 3, 550, 2, 1.2, 18, 25, 6, 10, 3), + (7, '7-Dine', 2, 600, 2, 1.3, 20, 27, 6, 15, 3), + (8, '8-Titan', 1, 700, 1, 2.35, 23, 37, 7, 18, 3); \ No newline at end of file diff --git a/database-scripts/moon_tier.sql b/database-scripts/moon_tier.sql new file mode 100644 index 0000000..19fcfbd --- /dev/null +++ b/database-scripts/moon_tier.sql @@ -0,0 +1,4 @@ +insert into main.moon_tier (moon_tier_id, tier_name) +values (1, 'Tier 1'), + (2, 'Tier 2'), + (3, 'Tier 3'); \ No newline at end of file diff --git a/database-scripts/risk_level.sql b/database-scripts/risk_level.sql new file mode 100644 index 0000000..714f4c3 --- /dev/null +++ b/database-scripts/risk_level.sql @@ -0,0 +1,7 @@ +insert into main.risk_level (risk_level_id, risk_level_name) +values (1, 'S+'), + (2, 'S'), + (3, 'A'), + (4, 'B'), + (5, 'C'), + (6, 'D'); \ No newline at end of file diff --git a/database-scripts/scrap.sql b/database-scripts/scrap.sql new file mode 100644 index 0000000..1c8a0e7 --- /dev/null +++ b/database-scripts/scrap.sql @@ -0,0 +1 @@ +; \ No newline at end of file diff --git a/database-scripts/spawn_chance.sql b/database-scripts/spawn_chance.sql new file mode 100644 index 0000000..1c8a0e7 --- /dev/null +++ b/database-scripts/spawn_chance.sql @@ -0,0 +1 @@ +; \ No newline at end of file diff --git a/database-scripts/viable_weather.sql b/database-scripts/viable_weather.sql new file mode 100644 index 0000000..990077a --- /dev/null +++ b/database-scripts/viable_weather.sql @@ -0,0 +1,37 @@ +insert into main.viable_weather (moon_id, weather_id) +values (1, 1), + (1, 2), + (1, 4), + (1, 5), + (1, 6), + (1, 3), + (2, 1), + (2, 2), + (2, 3), + (2, 5), + (2, 6), + (3, 1), + (3, 5), + (3, 3), + (3, 4), + (3, 6), + (4, 1), + (4, 2), + (4, 3), + (4, 6), + (4, 5), + (5, 1), + (5, 5), + (5, 3), + (5, 4), + (5, 6), + (6, 1), + (6, 3), + (6, 6), + (7, 1), + (7, 5), + (7, 6), + (8, 1), + (8, 3), + (8, 4), + (8, 6); \ No newline at end of file diff --git a/scouter.db b/scouter.db new file mode 100644 index 0000000000000000000000000000000000000000..0c9641717473fe8f9543c3ae6064015ec27b0019 GIT binary patch literal 77824 zcmeI5ZEPGz8OQg1Z`Zdseu-JGu9I~VW1GZKCv9mP6+3pFq$Qzh99}9aowj#td&znC zy0>S?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