-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathddl.sql
More file actions
39 lines (37 loc) · 904 Bytes
/
Copy pathddl.sql
File metadata and controls
39 lines (37 loc) · 904 Bytes
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
create table producto
(
producto_id integer
constraint producto_pk
primary key,
nombre text not null,
prod_maestro_id integer
references producto,
reserva float,
nivel integer,
costo float,
cS float,
cL float,
cH float,
tipoDemanda text not null
);
create table demanda
(
demanda_id integer
primary key autoincrement,
u_tiempo text not null,
c_tiempo float not null,
t_disponible float,
producto_id integer
references producto
);
create table historial
(
historial_id integer
primary key autoincrement,
q_optimo float not null,
rop float not null,
t_espera float not null,
fecha date not null,
producto_id integer
references producto
);