Files
Django_kube/django_code/cloudmanager/sql/cloudmanager_machine.sql
T

14 lines
748 B
SQL

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);