2010-10-06 13:46:29 +02:00
|
|
|
--
|
|
|
|
-- Table: basepacket
|
|
|
|
--
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO basepacket (basepacket_code, description, sorting, valid, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('PAC/DW', 'Dynamic-Web/Base', 300, true, 100);
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO basepacket (basepacket_code, description, sorting, valid, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('PAC/SW', 'Static-Web/Base', 400, true, 200);
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO basepacket (basepacket_code, description, sorting, valid, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('PAC/WEB', 'Web/Base', 100, true, 300);
|
2013-04-25 12:08:39 +02:00
|
|
|
INSERT INTO basepacket (basepacket_code, description, sorting, valid, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('SRV/MGD', 'Managed Server', 200, true, 400);
|
2010-10-06 13:46:29 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Table: basecomponent
|
|
|
|
--
|
|
|
|
INSERT INTO basecomponent (basecomponent_code, description, sorting, valid)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('MULTI', 'Monatliches Datenvolumen in GB', 100, true);
|
2010-10-06 13:46:29 +02:00
|
|
|
INSERT INTO basecomponent (basecomponent_code, description, sorting, valid)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('TRAFFIC', 'Monatliches Datenvolumen in GB', 200, true);
|
2010-10-06 13:46:29 +02:00
|
|
|
INSERT INTO basecomponent (basecomponent_code, description, sorting, valid)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('QUOTA', 'Festplattenspeicherplatz in MB', 300, true);
|
2010-10-06 13:46:29 +02:00
|
|
|
INSERT INTO basecomponent (basecomponent_code, description, sorting, valid)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('DAEMON', 'Nutzung eines eigenen Servers/Daemons', 400, true);
|
2010-10-06 13:46:29 +02:00
|
|
|
INSERT INTO basecomponent (basecomponent_code, description, sorting, valid)
|
2013-04-29 20:01:09 +02:00
|
|
|
VALUES ('MIRROR', 'Echtzeitspiegelung der Daten', 500, true);
|
|
|
|
INSERT INTO basecomponent (basecomponent_code, description, sorting, valid)
|
|
|
|
VALUES ('BACKUP', 'Nächtliches Backup', 600, true);
|
2010-10-06 13:46:29 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Table: component
|
|
|
|
--
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 1, 1, 1, 1, 1, false, 100 FROM basepacket, basecomponent WHERE basepacket_code='PAC/DW' AND basecomponent_code='MULTI';
|
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
|
|
|
SELECT basepacket_id, basecomponent_id, 1, 1, 1, 1, 1, false, 200 FROM basepacket, basecomponent WHERE basepacket_code='PAC/SW' AND basecomponent_code='MULTI';
|
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
|
|
|
SELECT basepacket_id, basecomponent_id, 1, 1, 1, 1, 1, false, 300 FROM basepacket, basecomponent WHERE basepacket_code='PAC/WEB' AND basecomponent_code='MULTI';
|
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
|
|
|
SELECT basepacket_id, basecomponent_id, 128, 40960, 128, 128, 128, false, 101 FROM basepacket, basecomponent WHERE basepacket_code='PAC/DW' AND basecomponent_code='QUOTA';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 512, 40960, 512, 512, 512, false, 201 FROM basepacket, basecomponent WHERE basepacket_code='PAC/SW' AND basecomponent_code='QUOTA';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 512, 40960, 512, 512, 0, false, 301 FROM basepacket, basecomponent WHERE basepacket_code='PAC/WEB' AND basecomponent_code='QUOTA';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 2, 40960, 2, 2, 2, false, 102 FROM basepacket, basecomponent WHERE basepacket_code='PAC/DW' AND basecomponent_code='TRAFFIC';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 4, 40960, 4, 4, 4, false, 202 FROM basepacket, basecomponent WHERE basepacket_code='PAC/SW' AND basecomponent_code='TRAFFIC';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 5, 40960, 5, 5, 0, false, 302 FROM basepacket, basecomponent WHERE basepacket_code='PAC/WEB' AND basecomponent_code='TRAFFIC';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 4, 0, 1, 0, false, 103 FROM basepacket, basecomponent WHERE basepacket_code='PAC/DW' AND basecomponent_code='DAEMON';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 0, 0, 1, 0, false, 203 FROM basepacket, basecomponent WHERE basepacket_code='PAC/SW' AND basecomponent_code='DAEMON';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 4, 0, 1, 0, false, 303 FROM basepacket, basecomponent WHERE basepacket_code='PAC/WEB' AND basecomponent_code='DAEMON';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 1, 1, 1, 1, false, 104 FROM basepacket, basecomponent WHERE basepacket_code='PAC/DW' AND basecomponent_code='MIRROR';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 1, 1, 1, 1, false, 204 FROM basepacket, basecomponent WHERE basepacket_code='PAC/SW' AND basecomponent_code='MIRROR';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 1, 1, 1, 1, false, 304 FROM basepacket, basecomponent WHERE basepacket_code='PAC/WEB' AND basecomponent_code='MIRROR';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 1, 1, 1, 1, false, 105 FROM basepacket, basecomponent WHERE basepacket_code='PAC/DW' AND basecomponent_code='BACKUP';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 1, 1, 1, 1, false, 205 FROM basepacket, basecomponent WHERE basepacket_code='PAC/SW' AND basecomponent_code='BACKUP';
|
2013-04-23 17:39:58 +02:00
|
|
|
INSERT INTO component (basepacket_id, basecomponent_id, min_quantity, max_quantity, default_quantity, increment_quantity, include_quantity, admin_only, article_number)
|
2013-04-29 20:01:09 +02:00
|
|
|
SELECT basepacket_id, basecomponent_id, 0, 1, 1, 1, 1, false, 305 FROM basepacket, basecomponent WHERE basepacket_code='PAC/WEB' AND basecomponent_code='BACKUP';
|
2011-03-25 17:47:54 +01:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Table: business_partner
|
|
|
|
--
|
2013-04-29 12:11:31 +02:00
|
|
|
INSERT INTO business_partner (member_id, member_code, member_since, shares_signed, free, indicator_vat, exempt_vat)
|
|
|
|
VALUES (10000, 'hsh00-hsh', current_date, 0, TRUE, 'NET', FALSE);
|
2011-03-25 17:47:54 +01:00
|
|
|
|
|
|
|
--
|
|
|
|
-- table: contact
|
|
|
|
--
|
|
|
|
INSERT INTO contact (bp_id, salut, first_name, last_name, firma, email)
|
|
|
|
SELECT bp_id, 'Herr', 'Uwe', 'Mueller', 'Hostsharing eG', 'service@hostsharing.net' FROM business_partner WHERE member_id=10000;
|
|
|
|
|
|
|
|
--
|
|
|
|
-- table: bank_account
|
|
|
|
--
|
2013-04-23 21:26:34 +02:00
|
|
|
INSERT INTO bank_account (bp_id, autodebit_ga, autodebit_ar, autodebit_op,
|
|
|
|
bank_customer, bank_account, bank_code, bank_name)
|
|
|
|
SELECT bp_id, false, false, false, '', '', '', '' FROM business_partner WHERE member_id=10000;
|
2011-03-25 17:47:54 +01:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Table: inet_addr
|
|
|
|
--
|
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
2011-12-16 14:37:59 +01:00
|
|
|
VALUES (inet '176.9.242.67', 'address 67');
|
2011-03-25 17:47:54 +01:00
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
2011-12-16 14:37:59 +01:00
|
|
|
VALUES (inet '176.9.242.72', 'address 72');
|
2011-03-25 17:47:54 +01:00
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
2011-12-16 14:37:59 +01:00
|
|
|
VALUES (inet '176.9.242.73', 'address 73');
|
2011-03-25 17:47:54 +01:00
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
2011-12-16 14:37:59 +01:00
|
|
|
VALUES (inet '176.9.242.74', 'address 74');
|
2011-03-25 17:47:54 +01:00
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
2011-12-16 14:37:59 +01:00
|
|
|
VALUES (inet '176.9.242.75', 'address 75');
|
2011-03-25 17:47:54 +01:00
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
2011-12-16 14:37:59 +01:00
|
|
|
VALUES (inet '176.9.242.76', 'address 76');
|
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
|
|
|
VALUES (inet '176.9.242.77', 'address 77');
|
|
|
|
INSERT INTO inet_addr (inet_addr, description)
|
|
|
|
VALUES (inet '176.9.242.78', 'address 78');
|
2011-03-25 17:47:54 +01:00
|
|
|
|
|
|
|
--
|
|
|
|
-- Table: Hive
|
|
|
|
--
|
|
|
|
INSERT INTO hive (hive_name, inet_addr_id, description)
|
2012-04-05 16:17:54 +02:00
|
|
|
SELECT 'h99', inet_addr_id, 'Test Hive h99' FROM inet_addr WHERE inet_addr = inet '176.9.242.67';
|
2011-03-25 17:47:54 +01:00
|
|
|
|
|
|
|
--
|
|
|
|
-- table: packet
|
|
|
|
--
|
2013-04-25 14:32:02 +02:00
|
|
|
INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id, free)
|
|
|
|
SELECT 'hsh00', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id, true FROM business_partner, hive, inet_addr
|
2012-04-05 20:36:02 +02:00
|
|
|
WHERE hive_name='h99' AND inet_addr = inet '176.9.242.72' AND member_id = 10000;
|
2013-04-25 14:32:02 +02:00
|
|
|
INSERT INTO packet (packet_name, bp_id, hive_id, created, cur_inet_addr_id, free)
|
|
|
|
SELECT 'hsh01', business_partner.bp_id, hive.hive_id, current_date, inet_addr.inet_addr_id, true FROM business_partner, hive, inet_addr
|
2012-04-05 20:45:52 +02:00
|
|
|
WHERE hive_name='h99' AND inet_addr = inet '176.9.242.73' AND member_id = 10000;
|
2011-05-19 13:06:51 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- table: packet_component
|
|
|
|
--
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 1, packet.packet_id, 2, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh00';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 2, packet.packet_id, 128, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh00';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 3, packet.packet_id, 0, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh00';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 4, packet.packet_id, 0, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh00';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 5, packet.packet_id, 0, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh00';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 1, packet.packet_id, 2, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh01';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 2, packet.packet_id, 128, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh01';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 3, packet.packet_id, 0, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh01';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 4, packet.packet_id, 0, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh01';
|
|
|
|
INSERT INTO packet_component (basepacket_id, basecomponent_id, packet_id, quantity, created)
|
|
|
|
SELECT 1, 5, packet.packet_id, 0, current_date FROM packet
|
|
|
|
WHERE packet.packet_name = 'hsh01';
|
|
|
|
|
2011-03-25 17:47:54 +01:00
|
|
|
--
|
|
|
|
-- table: unixuser
|
|
|
|
--
|
|
|
|
INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid)
|
|
|
|
SELECT 'hsh00', 'packet hsh00', '/bin/bash', '/home/pacs/hsh00', FALSE, packet_id, 10001 FROM packet
|
|
|
|
WHERE packet_name='hsh00';
|
|
|
|
INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid)
|
|
|
|
SELECT 'hsh01', 'packet hsh01', '/bin/bash', '/home/pacs/hsh01', FALSE, packet_id, 10002 FROM packet
|
|
|
|
WHERE packet_name='hsh01';
|
|
|
|
INSERT INTO unixuser (name, comment, shell, homedir, locked, packet_id, userid)
|
2011-05-05 20:12:04 +02:00
|
|
|
SELECT 'hsh01-ad', 'hostmaster ad', '/bin/bash', '/home/pacs/hsh01/users/ad', FALSE, packet_id, 10003 FROM packet
|
2011-03-25 17:47:54 +01:00
|
|
|
WHERE packet_name='hsh01';
|
2012-07-18 18:18:26 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- table: domain_option
|
|
|
|
--
|
|
|
|
INSERT INTO domain_option (domain_option_name)
|
2012-09-20 20:24:55 +02:00
|
|
|
VALUES ('backupmxforexternalmx');
|
|
|
|
INSERT INTO domain_option (domain_option_name)
|
|
|
|
VALUES ('greylisting');
|
|
|
|
INSERT INTO domain_option (domain_option_name)
|
|
|
|
VALUES ('htdocsfallback');
|
|
|
|
INSERT INTO domain_option (domain_option_name)
|
|
|
|
VALUES ('includes');
|
|
|
|
INSERT INTO domain_option (domain_option_name)
|
|
|
|
VALUES ('indexes');
|
2012-07-18 18:18:26 +02:00
|
|
|
INSERT INTO domain_option (domain_option_name)
|
2012-09-20 20:24:55 +02:00
|
|
|
VALUES ('multiviews');
|
2012-10-31 11:37:07 +01:00
|
|
|
INSERT INTO domain_option (domain_option_name)
|
|
|
|
VALUES ('php');
|
2013-04-18 11:57:16 +02:00
|
|
|
|
|
|
|
--
|
|
|
|
-- table: price_list
|
|
|
|
--
|
|
|
|
INSERT INTO price_list VALUES (1, 'Default Price List');
|
|
|
|
|
|
|
|
--
|
|
|
|
-- table: customer_price_list_mapping
|
|
|
|
--
|
|
|
|
INSERT INTO customer_price_list_mapping (SELECT bp_id, 1 FROM business_partner);
|
|
|
|
|
|
|
|
|