Skip to content

Commit

Permalink
Backup v0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Cry199 committed Feb 21, 2024
1 parent e05d631 commit 7677430
Showing 1 changed file with 47 additions and 23 deletions.
70 changes: 47 additions & 23 deletions src/main/java/br/com/wmjc/db/script/db.sql
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
-- H2 2.1.214;
;
CREATE USER IF NOT EXISTS "SA" SALT '5f388b1ea1f057a7' HASH '3c4f9c37788cadb45e3535881d6015478e02a0e3faa3bb2d203521776ab09621' ADMIN;
CREATE USER IF NOT EXISTS "SA" SALT 'ac9c8aa6182a3bdb' HASH '6e1c9eaba70b504353ce8526ffa311dc0d7f5047acfc91f303f619010db67e84' ADMIN;
CREATE MEMORY TABLE "PUBLIC"."PERFIL_DO_USARIO"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 130) NOT NULL,
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 131) NOT NULL,
"IDDOUSER" INTEGER NOT NULL,
"NOMEDOPERFIL" CHARACTER VARYING(255),
"IMGFERFIL" CHARACTER VARYING(255),
"TIPODEUSER" ENUM('admin', 'user') NOT NULL
);
ALTER TABLE "PUBLIC"."PERFIL_DO_USARIO" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_F" PRIMARY KEY("ID");
-- 6 +/- SELECT COUNT(*) FROM PUBLIC.PERFIL_DO_USARIO;
-- 7 +/- SELECT COUNT(*) FROM PUBLIC.PERFIL_DO_USARIO;
INSERT INTO "PUBLIC"."PERFIL_DO_USARIO" VALUES
(1, 1, 'Cry', 'https://i.pinimg.com/originals/b7/74/31/b774312c2fd5ef61bcb101e0b1656559.gif', 'user'),
(2, 2, 'Maria', 'https://i.pinimg.com/564x/06/33/bc/0633bc914d7ba9f6446840f5351f040b.jpg', 'admin'),
(3, 3, 'PerfilCarlos', 'https://i.pinimg.com/564x/80/a7/be/80a7be7b17dd175244fca8f8fa714e18.jpg', 'user'),
(5, 18, 'Sa', 'https://i.pinimg.com/originals/8f/2d/6c/8f2d6c21a6d012e3a059da279bf3e1c2.gif', 'user'),
(126, 5, NULL, NULL, 'user'),
(129, 22, 'GIPHY', 'https://i.pinimg.com/originals/e3/33/ab/e333abb4204cec74ed091568d2481dc1.gif', 'user');
(129, 22, 'GIPHY', 'https://i.pinimg.com/originals/e3/33/ab/e333abb4204cec74ed091568d2481dc1.gif', 'user'),
(130, 23, 'Max 10', 'https://i.pinimg.com/originals/12/1d/75/121d7557a37958c1c0121fdfa5272a3e.gif', 'user');
CREATE MEMORY TABLE "PUBLIC"."JOGOS"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 25) NOT NULL,
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 26) NOT NULL,
"IDDOUSER" INTEGER NOT NULL,
"NOMEDOJOGO" CHARACTER VARYING(255),
"NOMEDATABALADOJOGO" CHARACTER VARYING(255),
"DESCRICAODOJOGO" CHARACTER VARYING(255),
"CAPADOJOGO" CHARACTER VARYING(255)
);
ALTER TABLE "PUBLIC"."JOGOS" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_4" PRIMARY KEY("ID");
-- 19 +/- SELECT COUNT(*) FROM PUBLIC.JOGOS;
-- 20 +/- SELECT COUNT(*) FROM PUBLIC.JOGOS;
INSERT INTO "PUBLIC"."JOGOS" VALUES
(1, 1, 'Crash', 'Crash', U&'Crash Bandicoot \00c3\00a9 uma franquia de jogos eletr\00c3\00b4nicos de plataforma desenvolvida originalmente pela Naughty Dog para o console da PlayStation. A s\00c3\00a9rie passou por v\00c3\00a1rias desenvolvedoras e foi publicada em diversas plataformas posteriormente.', 'https://i.pinimg.com/564x/c8/09/2c/c8092cef75614edd6b0a8293248eec80.jpg'),
(2, 1, 'PalWord', 'Tabela2', 'Pals', 'https://i.pinimg.com/originals/3c/66/7f/3c667f6c5e88aec4f092f87a9e7a1159.gif'),
Expand All @@ -46,9 +47,10 @@ INSERT INTO "PUBLIC"."JOGOS" VALUES
(21, 18, 'Teste', 'teste', 'Teste', 'https://i.pinimg.com/originals/56/1c/c0/561cc0652213064129196112c4216f3d.gif'),
(22, 18, 'Teste', 'teste', 'Teste', 'https://i.pinimg.com/originals/6d/c2/0e/6dc20e84b4e791e88f4cf3ebdf1164c2.gif'),
(23, 18, 'Te', 'te', 'TE12saa', 'https://i.pinimg.com/originals/6d/c2/0e/6dc20e84b4e791e88f4cf3ebdf1164c2.gif'),
(24, 18, 'Apenas', 'apenas', 'Apenas1s', 'https://i.pinimg.com/originals/8a/5f/4b/8a5f4bc9a0b64d0e12b84c94addb9d29.gif');
(24, 18, 'Apenas', 'apenas', 'Apenas1s', 'https://i.pinimg.com/originals/8a/5f/4b/8a5f4bc9a0b64d0e12b84c94addb9d29.gif'),
(25, 23, 'Bento', 'bento', 'Max', 'https://i.pinimg.com/originals/72/7c/0d/727c0ddf111b9db085d7dc7909ae3eae.gif');
CREATE MEMORY TABLE "PUBLIC"."COMENTARIOSPERFIL"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 95) NOT NULL,
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 97) NOT NULL,
"IDDOUSER" INTEGER NOT NULL,
"IDPERFIL" INTEGER NOT NULL,
"COMENTARIO" CHARACTER VARYING
Expand Down Expand Up @@ -76,13 +78,13 @@ INSERT INTO "PUBLIC"."COMENTARIOSPERFIL" VALUES
(93, 18, 129, 'DDD'),
(94, 18, 5, 'Mds o Cara e muito bom dsadasda ');
CREATE MEMORY TABLE "PUBLIC"."COMENTARIODEJOGO"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 36) NOT NULL,
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 40) NOT NULL,
"IDDOUSER" INTEGER NOT NULL,
"IDJOGO" INTEGER NOT NULL,
"COMENTARIO" CHARACTER VARYING
);
ALTER TABLE "PUBLIC"."COMENTARIODEJOGO" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_1E" PRIMARY KEY("ID");
-- 26 +/- SELECT COUNT(*) FROM PUBLIC.COMENTARIODEJOGO;
-- 30 +/- SELECT COUNT(*) FROM PUBLIC.COMENTARIODEJOGO;
INSERT INTO "PUBLIC"."COMENTARIODEJOGO" VALUES
(1, 1, 1, U&'Coment\00e1rio 1'),
(2, 2, 2, U&'Coment\00e1rio 2'),
Expand All @@ -109,9 +111,13 @@ INSERT INTO "PUBLIC"."COMENTARIODEJOGO" VALUES
(32, 1, 15, 'dsda'),
(33, 1, 16, U&'Mds que bom (\00ef\00bf\00a3y\00e2\0096\00bd,\00ef\00bf\00a3)\00e2\0095\00ad '),
(34, 5, 16, 'Mds que jogo Hor'),
(35, 5, 1, 'aaa');
(35, 5, 1, 'aaa'),
(36, 5, 22, 'Apenas'),
(37, 130, 4, 'DAdasdasda'),
(38, 130, 25, 'Adasda'),
(39, 130, 1, '1231');
CREATE MEMORY TABLE "PUBLIC"."USE"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 23) NOT NULL,
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 24) NOT NULL,
"NAME" CHARACTER VARYING(255) NOT NULL,
"SOBRENOME" CHARACTER VARYING(255),
"SENHA" CHARACTER VARYING(255) NOT NULL,
Expand All @@ -120,7 +126,7 @@ CREATE MEMORY TABLE "PUBLIC"."USE"(
"USERNAME" CHARACTER VARYING(255)
);
ALTER TABLE "PUBLIC"."USE" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_1" PRIMARY KEY("ID");
-- 15 +/- SELECT COUNT(*) FROM PUBLIC.USE;
-- 16 +/- SELECT COUNT(*) FROM PUBLIC.USE;
INSERT INTO "PUBLIC"."USE" VALUES
(1, U&'Jo\00e3o', 'Silva', 'senha123', 'joao@gmail.com', 'user', U&'Jo\00e3o123'),
(2, 'Maria', 'Santos', 'senha456', 'maria@gmail.com', 'admin', 'Maria2'),
Expand All @@ -136,7 +142,8 @@ INSERT INTO "PUBLIC"."USE" VALUES
(19, 'Caua', 'Ribeiro', 'sa', 'sa', 'user', 'CauaRibeiro'),
(20, 'Caua', 'Ribeiro', 'Sa1', 'sa1', 'user', 'CauaRibeiro'),
(21, 'Gui', '2', '2', '2', 'user', 'Gui2'),
(22, 'testAdmin', 'testAdmin', 'testAdmin', 'testAdmin', 'admin', 'testAdmintestAdmin');
(22, 'testAdmin', 'testAdmin', 'testAdmin', 'testAdmin', 'admin', 'testAdmintestAdmin'),
(23, 'Bento', 'Bento', 'Bento', 'Bento', 'user', 'BentoBento');
CREATE MEMORY TABLE "PUBLIC"."CRASH"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 2) NOT NULL,
"TEXTO" CHARACTER VARYING(255) NOT NULL,
Expand All @@ -152,13 +159,13 @@ CREATE MEMORY TABLE "PUBLIC"."CRASH"(
INSERT INTO "PUBLIC"."CRASH" VALUES
(1, '1', '1', 1, '1', 1, '1', 1, 'https://i.pinimg.com/originals/d1/72/02/d17202b45b42ba5fd7cce2f2ae298881.gif');
CREATE MEMORY TABLE "PUBLIC"."HISTORICO_DE_JOGADAS"(
"ID_JOGADA" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 22) NOT NULL,
"ID_JOGADA" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 30) NOT NULL,
"ID_USUARIO" INTEGER NOT NULL,
"ID_DO_JOGO" INTEGER NOT NULL,
"DATA_HORA" TIMESTAMP NOT NULL
);
ALTER TABLE "PUBLIC"."HISTORICO_DE_JOGADAS" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_13" PRIMARY KEY("ID_JOGADA");
-- 9 +/- SELECT COUNT(*) FROM PUBLIC.HISTORICO_DE_JOGADAS;
-- 11 +/- SELECT COUNT(*) FROM PUBLIC.HISTORICO_DE_JOGADAS;
INSERT INTO "PUBLIC"."HISTORICO_DE_JOGADAS" VALUES
(2, 18, 2, TIMESTAMP '2024-02-12 08:29:06'),
(6, 18, 3, TIMESTAMP '2024-02-12 08:55:59'),
Expand All @@ -167,8 +174,10 @@ INSERT INTO "PUBLIC"."HISTORICO_DE_JOGADAS" VALUES
(12, 18, 18, TIMESTAMP '2024-02-12 10:33:03'),
(14, 18, 21, TIMESTAMP '2024-02-12 10:46:19'),
(15, 18, 22, TIMESTAMP '2024-02-12 10:47:14'),
(20, 18, 1, TIMESTAMP '2024-02-12 11:11:59'),
(21, 18, 24, TIMESTAMP '2024-02-12 13:10:03');
(25, 18, 24, TIMESTAMP '2024-02-18 14:14:44'),
(26, 18, 1, TIMESTAMP '2024-02-18 16:57:34'),
(27, 23, 25, TIMESTAMP '2024-02-18 17:01:31'),
(29, 23, 2, TIMESTAMP '2024-02-18 17:02:56');
CREATE MEMORY TABLE "PUBLIC"."TABELA2"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL,
"TEXTO" CHARACTER VARYING(255) NOT NULL,
Expand Down Expand Up @@ -210,20 +219,21 @@ CREATE MEMORY TABLE "PUBLIC"."HELLTAKER"(
INSERT INTO "PUBLIC"."HELLTAKER" VALUES
(1, '1', '1', 1, '1', 1, '1', 1, 'https://i.pinimg.com/originals/e1/16/57/e11657178c20760516d5b0214ca08b4a.gif');
CREATE MEMORY TABLE "PUBLIC"."JOGOS_MAIS_JOGADOS"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 10) NOT NULL,
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 11) NOT NULL,
"IDJOGO" INTEGER NOT NULL,
"QUANTIDADE_JOGADAS" INTEGER NOT NULL
);
ALTER TABLE "PUBLIC"."JOGOS_MAIS_JOGADOS" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_F9" PRIMARY KEY("ID");
-- 7 +/- SELECT COUNT(*) FROM PUBLIC.JOGOS_MAIS_JOGADOS;
-- 8 +/- SELECT COUNT(*) FROM PUBLIC.JOGOS_MAIS_JOGADOS;
INSERT INTO "PUBLIC"."JOGOS_MAIS_JOGADOS" VALUES
(2, 1, 17),
(3, 2, 10),
(2, 1, 24),
(3, 2, 12),
(4, 3, 15),
(5, 5, 0),
(7, 21, 2),
(8, 23, 0),
(9, 24, 2);
(9, 24, 4),
(10, 25, 1);
CREATE MEMORY TABLE "PUBLIC"."TUMBLR"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 2) NOT NULL,
"TEXTO" CHARACTER VARYING(255) NOT NULL,
Expand Down Expand Up @@ -308,6 +318,20 @@ CREATE MEMORY TABLE "PUBLIC"."APENAS"(
-- 1 +/- SELECT COUNT(*) FROM PUBLIC.APENAS;
INSERT INTO "PUBLIC"."APENAS" VALUES
(1, '1', '1', 1, '1', 1, '1', 1, 'https://i.pinimg.com/originals/8a/5f/4b/8a5f4bc9a0b64d0e12b84c94addb9d29.gif');
CREATE MEMORY TABLE "PUBLIC"."BENTO"(
"ID" INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1 RESTART WITH 2) NOT NULL,
"TEXTO" CHARACTER VARYING(255) NOT NULL,
"OP1" CHARACTER VARYING NOT NULL,
"REF1" INTEGER NOT NULL,
"OP2" CHARACTER VARYING NOT NULL,
"REF2" INTEGER NOT NULL,
"OP3" CHARACTER VARYING NOT NULL,
"REF3" INTEGER NOT NULL,
"IMAGE" CHARACTER VARYING NOT NULL
);
-- 1 +/- SELECT COUNT(*) FROM PUBLIC.BENTO;
INSERT INTO "PUBLIC"."BENTO" VALUES
(1, '1', '1', 1, '1', 1, '1', 1, 'https://i.pinimg.com/originals/72/7c/0d/727c0ddf111b9db085d7dc7909ae3eae.gif');
ALTER TABLE "PUBLIC"."COMENTARIOSPERFIL" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_E92" FOREIGN KEY("IDPERFIL") REFERENCES "PUBLIC"."PERFIL_DO_USARIO"("ID") NOCHECK;
ALTER TABLE "PUBLIC"."JOGOS" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_43" FOREIGN KEY("IDDOUSER") REFERENCES "PUBLIC"."USE"("ID") NOCHECK;
ALTER TABLE "PUBLIC"."HISTORICO_DE_JOGADAS" ADD CONSTRAINT "PUBLIC"."CONSTRAINT_138" FOREIGN KEY("ID_USUARIO") REFERENCES "PUBLIC"."USE"("ID") NOCHECK;
Expand Down

0 comments on commit 7677430

Please sign in to comment.