Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create table if not exists projekty (
- id_projektu numeric(4) primary key,
- opis_projektu char(20) not null ,
- data_rozpoczecia date default now(),
- data_zakonczenia date check(data_rozpoczecia<data_zakonczenia),
- fundusz numeric(7,2),
- unique (opis_projektu)
- );
- create table if not exists przydzialy(
- id_projektu numeric(4) not null references projekty(id_projektu),
- id_prac numeric(4) not null references pracownicy(id_prac),
- od date default now(),
- "do" date CHECK(od<"do"),
- stawka numeric(7,2),
- rola char(20) ,
- check(rola in ('KIERUJACY','ANALITYK','PROGRAMISTA') ),
- primary key(id_projektu,id_prac)
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement