-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_data.sql
More file actions
81 lines (78 loc) · 1.41 KB
/
Copy pathtest_data.sql
File metadata and controls
81 lines (78 loc) · 1.41 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
-- Insertar datos de prueba para testing
-- Primero, insertar un cliente de prueba
INSERT INTO clientes (id, nombre, telefono, email, tipo_cliente)
VALUES (
'test-client-001',
'Juan Pérez Test',
'81-1234-5678',
'juan.test@email.com',
'particular'
) ON CONFLICT (id) DO NOTHING;
-- Insertar una cotización de prueba
INSERT INTO cotizaciones (
id,
cliente_id,
vehiculo,
descripcion_trabajo,
precio,
status,
anticipo,
pago1,
liquidacion,
created_at
) VALUES (
'test-quote-001',
'test-client-001',
'Honda Civic 2020',
'Reparación de motor y cambio de aceite',
15000.00,
'pendiente',
0,
0,
0,
NOW()
) ON CONFLICT (id) DO NOTHING;
-- Insertar otra cotización para probar diferentes estados
INSERT INTO cotizaciones (
id,
cliente_id,
vehiculo,
descripcion_trabajo,
precio,
status,
anticipo,
pago1,
liquidacion,
created_at
) VALUES (
'test-quote-002',
'test-client-001',
'Toyota Corolla 2019',
'Pintura completa y reparación de carrocería',
25000.00,
'en_proceso',
5000,
0,
0,
NOW()
) ON CONFLICT (id) DO NOTHING;
-- Insertar un vehículo de prueba
INSERT INTO vehiculos (
id,
folio,
cliente_id,
marca,
modelo,
status_vehiculo,
problema_reportado,
created_at
) VALUES (
'test-vehicle-001',
'VEH-001',
'test-client-001',
'Honda',
'Civic',
'recibido',
'Motor hace ruido extraño',
NOW()
) ON CONFLICT (id) DO NOTHING;