-
Notifications
You must be signed in to change notification settings - Fork 7
/
population.sql
12 lines (12 loc) · 887 Bytes
/
population.sql
1
2
3
4
5
6
7
8
9
10
11
12
USE testemed;
DELETE FROM paciente WHERE cpf IN ('78160552009', '12345678901');
INSERT INTO paciente (id, cpf, nome, email, estaAtivo, senha, telefone, possuiPlanoSaude, planosSaude, historico, imagemUrl, role)
VALUES
(uuid(), '78160552009', 'Emerson Laranja', '[email protected]', true, 'Senh@forte123', '34999335522', true, '[2]', "['sinusite,moderado']", 'https://img.freepik.com/fotos-gratis/designer-trabalhando-no-modelo-3d_23-2149371896.jpg', 'PACIENTE'),
(uuid(), '12345678901', 'Joana Silva', '[email protected]', true, 'MinhaSenha123', '34999887766', true, '[1, 3]', "['rinite,leve', 'asma,médio']", 'https://img.freepik.com/fotos-premium/retrato-de-uma-jovem-brasileira-sorridente-em-um-vestido-mexicano-ai-gerado_632984-139.jpg', 'PACIENTE');
SELECT
CONCAT('KILL ', id, ';')
FROM INFORMATION_SCHEMA.PROCESSLIST
WHERE User = 'root'
AND Host = 'db'
AND db = 'testemed';