PRAGMA user_version=2;
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE `users` (`is_admin` numeric,`is_locked` numeric,`uuid` text,`username` text NOT NULL UNIQUE,`password_salt` blob NOT NULL,`password_hash` blob NOT NULL,`server_id` text,`player_name` text collate nocase NOT NULL UNIQUE,`offline_uuid` text,`fallback_player` text,`preferred_language` text,`browser_token` text,`skin_hash` text,`skin_model` text,`cape_hash` text,`created_at` datetime,`name_last_changed_at` datetime,PRIMARY KEY (`uuid`));
INSERT INTO users VALUES(1,0,'d8783ef3-39f9-4bd9-af49-adfc778bf2b5','foo',X'24e51b055d01172da6bdea76f5708688',X'f969f3d96a28006ddfe376a5a38f5a81749d403a42f58cf2852c2c24477271ea',NULL,'foo','ab980ae0-02d3-3064-adcf-22d6ca24b404','d8783ef3-39f9-4bd9-af49-adfc778bf2b5','en','84ea8e23311b4049e0d7b9dbf1f7470d2e030e50e411096fe8f0968146ad9071',NULL,'classic',NULL,'2024-11-28 11:35:08.923943529-05:00','2024-11-28 11:35:08.92394374-05:00');
CREATE TABLE `clients` (`uuid` text,`client_token` text,`version` integer,`user_uuid` text,PRIMARY KEY (`uuid`),CONSTRAINT `fk_users_clients` FOREIGN KEY (`user_uuid`) REFERENCES `users`(`uuid`));
INSERT INTO clients VALUES('d76bcd64-0499-4c14-9826-2a40b84439cf','4236ebec07e34e13ab6890e3dac36fbf',0,'d8783ef3-39f9-4bd9-af49-adfc778bf2b5');
CREATE TABLE `invites` (`code` text,`created_at` datetime,PRIMARY KEY (`code`));
CREATE INDEX `idx_users_cape_hash` ON `users`(`cape_hash`);
CREATE INDEX `idx_users_skin_hash` ON `users`(`skin_hash`);
CREATE INDEX `idx_users_browser_token` ON `users`(`browser_token`);
COMMIT;
