-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinsert.sql
More file actions
129 lines (118 loc) · 4.44 KB
/
Copy pathinsert.sql
File metadata and controls
129 lines (118 loc) · 4.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
INSERT INTO PROFESSOR_RESPONSAVEL (CREF, nome) VALUES
('123456GBA', 'João da Silva'),
('789012GBA', 'Maria Oliveira'),
('345678GBA', 'Carlos Pereira');
INSERT INTO PLANO (nome, valor) VALUES
('Mensal', '100.00'),
('Trimestral', '270.00'),
('Anual', '1000.00');
INSERT INTO GRUPO_MUSCULAR (nome_musculo) VALUES
('Peito'),
('Costas'),
('Perna'),
('Biceps'),
('Triceps'),
('Ombro');
INSERT INTO TREINO (tipo, qtd_sessoes) VALUES
('A', 12),
('B', 12),
('C', 12);
INSERT INTO TREINO_GRUPO (tipo, nome_musculo) VALUES
('A', 'Peito'),
('A', 'Triceps'),
('B', 'Costas'),
('B', 'Biceps'),
('C', 'Perna'),
('C', 'Ombro');
INSERT INTO EXERCICIO (nome_musculo, nome_exercicio, descricao) VALUES
('Peito', 'Supino', 'Deitado, barra ao peito'),
('Triceps', 'Polia', 'Em pé, puxar corda para baixo'),
('Costas', 'Puxada', 'Sentado, puxar barra à frente'),
('Biceps', 'Rosca', 'Em pé, halteres alternados'),
('Perna', 'Agachamento', 'Agachamento livre com barra'),
('Ombro', 'Elevação', 'Elevação lateral com halteres');
INSERT INTO TREINO_EXERCICIO (tipo, nome_musculo, nome_exercicio) VALUES
('A', 'Peito', 'Supino'),
('A', 'Triceps', 'Polia'),
('B', 'Costas', 'Puxada'),
('B', 'Biceps', 'Rosca'),
('C', 'Perna', 'Agachamento'),
('C', 'Ombro', 'Elevação');
INSERT INTO ALUNO (matricula, nome, data_nascimento, nome_plano, CREF) VALUES
('2025001', 'Ana Souza', '2000-05-15', 'Mensal', '123456GBA'),
('2025002', 'Bruno Costa', '1998-11-20', 'Anual', '789012GBA'),
('2025003', 'Carla Dias', '2002-02-10', 'Trimestral', '345678GBA');
INSERT INTO MENSALIDADE (data, matricula, status) VALUES
('2024-01-10', '2025002', TRUE),
('2024-03-08', '2025003', TRUE),
('2024-03-05', '2025001', TRUE),
('2024-04-05', '2025001', TRUE),
('2025-04-05', '2025001', TRUE),
('2025-05-05', '2025001', TRUE),
('2025-01-10', '2025002', TRUE),
('2025-05-20', '2025003', TRUE);
INSERT INTO MENSALIDADE_PLANO (data, matricula, nome_plano) VALUES
('2024-01-10', '2025002', 'Anual'),
('2024-03-08', '2025003', 'Trimestral'),
('2024-03-05', '2025001', 'Mensal'),
('2024-04-05', '2025001', 'Mensal'),
('2025-04-05', '2025001', 'Mensal'),
('2025-05-05', '2025001', 'Mensal'),
('2025-01-10', '2025002', 'Anual'),
('2025-05-20', '2025003', 'Trimestral');
INSERT INTO ALUNO_TREINO (matricula, tipo, data_treino, numero_sessao) VALUES
('2025001', 'A', '2025-05-07', 1),
('2025001', 'A', '2025-06-05', 1),
('2025001', 'A', '2025-04-05', 2),
('2025001', 'A', '2025-06-07', 1),
('2025002', 'B', '2025-06-07', 1),
('2025002', 'B', '2025-05-07', 1),
('2025003', 'C', '2025-06-07', 1),
('2025001', 'A', '2025-06-08', 2),
('2025001', 'A', '2025-06-09', 3),
('2025001', 'A', '2025-06-10', 4),
('2025001', 'A', '2025-06-11', 5),
('2025001', 'A', '2025-06-12', 6),
('2025001', 'A', '2025-06-13', 7),
('2025001', 'A', '2025-06-14', 8),
('2025001', 'A', '2025-06-15', 9),
('2025001', 'A', '2025-06-16', 10),
('2025001', 'A', '2025-06-17', 11),
('2025001', 'A', '2025-06-18', 12),
('2025002', 'B', '2025-06-08', 2),
('2025002', 'B', '2025-06-09', 3),
('2025002', 'B', '2025-06-10', 4),
('2025002', 'B', '2025-06-11', 5),
('2025002', 'B', '2025-06-12', 6),
('2025002', 'B', '2025-06-13', 7),
('2025002', 'B', '2025-06-14', 8),
('2025002', 'B', '2025-06-15', 9),
('2025002', 'B', '2025-06-16', 10),
('2025002', 'B', '2025-06-17', 11),
('2025002', 'B', '2025-06-18', 12),
('2025003', 'C', '2025-06-08', 2),
('2025003', 'C', '2025-06-09', 3),
('2025003', 'C', '2025-06-10', 4),
('2025003', 'C', '2025-06-11', 5),
('2025003', 'C', '2025-06-12', 6),
('2025003', 'C', '2025-06-13', 7),
('2025003', 'C', '2025-06-14', 8),
('2025003', 'C', '2025-06-15', 9),
('2025003', 'C', '2025-06-16', 10),
('2025003', 'C', '2025-06-17', 11),
('2025002', 'B', '2025-06-20', 12),
('2025001', 'A', '2025-06-25', 11),
('2025003', 'C', '2025-05-18', 12),
('2025003', 'C', '2025-05-07', 10),
('2025003', 'C', '2025-05-19', 15),
('2025003', 'C', '2025-05-10', 20),
('2025001', 'A', '2025-05-05', 11);
INSERT INTO ANAMINESE (cod, peso, altura, gordura, massa, matricula, tipo, data_treino) VALUES
('ANM000', 90, 1.70, 22.5, 50.8, '2025001', 'A', '2025-05-07'),
('ANM002', 80.0, 1.80, 18.0, 65.6, '2025002', 'B', '2025-06-07'),
('ANM003', 58.0, 1.65, 25.0, 43.5, '2025003', 'C', '2025-06-07'),
('ANM006', 92.0, 1.70, 23.0, 50.0, '2025001', 'A', '2025-04-05'),
('ANM007', 90.0, 1.70, 22.5, 50.8, '2025001', 'A', '2025-05-05'),
('ANM008', 88.0, 1.70, 21.5, 51.0, '2025001', 'A', '2025-06-05'),
('ANM004', 85.0, 1.80, 18.5, 65.0, '2025002', 'B', '2025-05-07'),
('ANM005', 60.0, 1.65, 25.5, 44.5, '2025003', 'C', '2025-05-07');