Adding bodymass support
This commit is contained in:
@@ -11,7 +11,18 @@ create table account (
|
||||
id serial primary key,
|
||||
name varchar not null,
|
||||
login varchar not null,
|
||||
birthdate date not null
|
||||
birthdate date not null,
|
||||
bodymass integer,
|
||||
constraint fk_bodymass foreign key (bodymass) references bodymass(id)
|
||||
);
|
||||
create table bodymass (
|
||||
id serial primary key,
|
||||
account integer not null,
|
||||
time timestamptz not null,
|
||||
kilos numeric(4,1) not null,
|
||||
constraint fk_account foreign key (account) references account(id),
|
||||
constraint unique_account_time unique (account, time),
|
||||
constraint time_not_infty check (time <> 'infinity'::timestamptz)
|
||||
);
|
||||
create table training (
|
||||
id serial primary key,
|
||||
|
||||
Reference in New Issue
Block a user