/* Generic data suitable for all kind of boats
 * SPDX-License-Identifier: WTFPL
 */

/* absolutely minimal data set */

-- Trick to get pk value 0 for autoincrement
INSERT INTO user (userid, login, pass, displayname, role) VALUES (0, '', '', 'SYSTEM', 'vessel');
UPDATE user SET userid=0 WHERE userid=1;

INSERT INTO user (userid, login, pass, displayname, role) VALUES
(1, 'captain', '$2y$10$naVMnC4S6bZ3IakxLJPJK.iSazlkYxVLeiRt9CB/j0jSExQZU1SCK', 'Captain', 'captain');

INSERT INTO settings (userid, sno, valint) VALUES
(0, 0, 1), -- Database schema version
(1, 1, 0); -- No vessel for captain

/* list of lists needed */
INSERT INTO dropdown (ddid, ddval, ddtext) VALUES
(0, 0, 'list of lists'),
(0, 1, 'hull type'),
(0, 2, 'company type'),
(0, 3, 'storage type'),
(0, 4, 'equipment category'),
(0, 5, 'provision category'),
(0, 6, 'provision unit'),
(0, 7, 'fuse type'),
(0, 8 , 'unit');

INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
(2, 1, 'Supplier', 'fixed'),
(2, 2, 'Manufacturer', 'fixed'),
(2, 9, 'Generic', 'fixed');

INSERT INTO dropdown (ddid, ddval, ddtext, flags) VALUES
(3, 0, 'Generic', 'fixed'),
(3, 1, 'Tank', 'fixed');
