adding all the files , still work in progress but getting there , needs to move scale_up function to somrthing not managed by REQUEST

This commit is contained in:
pierre geeraert
2026-03-25 22:53:36 +00:00
parent 1e8afcbc44
commit b38f2a8b2f
8 changed files with 41 additions and 30 deletions
@@ -0,0 +1,13 @@
drop table IF EXISTS machine;
CREATE TABLE IF NOT EXISTS machine (
id integer NOT NULL PRIMARY KEY,
namespace varchar(100) NOT null,
name varchar(100) NOT null,
hour_behaviour_id integer NOT null,
day_behaviour_id integer NOT null,
replicas integer NOT null
);
INSERT into machine (id, namespace, name, hour_behaviour_id, day_behaviour_id,replicas) VALUES (1, 'echo', 'echo-server', 0, 1,1);
INSERT into machine (id, namespace, name, hour_behaviour_id, day_behaviour_id,replicas) VALUES (2, 'wiki', 'wikijs', 1, 1,2);
INSERT into machine (id, namespace, name, hour_behaviour_id, day_behaviour_id,replicas) VALUES (3, 'book', 'bookstack-db', 2, 1,1);