index on training_data(training_id)
This commit is contained in:
parent
b22ce1392d
commit
f5f2b60700
3
init.sql
3
init.sql
@ -15,4 +15,5 @@ create table if not exists training_data(
|
|||||||
distance float not null,
|
distance float not null,
|
||||||
kcal int not null,
|
kcal int not null,
|
||||||
constraint fk_training_id foreign key(training_id) references training(id) on delete cascade
|
constraint fk_training_id foreign key(training_id) references training(id) on delete cascade
|
||||||
);
|
);
|
||||||
|
create index if not exists idx_training_data_training_id on training_data(training_id);
|
Loading…
x
Reference in New Issue
Block a user