1 |
dpavlin |
1.3 |
drop table certifikati; /* RA: */ |
2 |
dpavlin |
1.1 |
create table certifikati ( |
3 |
|
|
sif_edukacije int4 not null, |
4 |
|
|
sif_radnika varchar(7) not null, |
5 |
|
|
sif_ustanove int4 not null, |
6 |
|
|
naziv text, |
7 |
|
|
titula text, |
8 |
|
|
dat_izdavanja date, |
9 |
|
|
dat_polaganja date, |
10 |
|
|
dat_vrijedi_do date, |
11 |
|
|
xxxx text |
12 |
|
|
); |
13 |
|
|
|
14 |
dpavlin |
1.3 |
drop table edukacije; /* RA: */ |
15 |
dpavlin |
1.1 |
create table edukacije ( |
16 |
|
|
sifra int4 not null, |
17 |
|
|
sif_radnika varchar(7) not null, |
18 |
|
|
naziv text, |
19 |
dpavlin |
1.2 |
sif_ustanove int4, |
20 |
dpavlin |
1.1 |
datum_upisa date, |
21 |
|
|
datum_zavrsetka date, |
22 |
|
|
ukupno_ispita int2, |
23 |
|
|
polozenih_ispita int2, |
24 |
|
|
ukupno_semestara int2, |
25 |
|
|
polozenih_semestara int2, |
26 |
|
|
zavrsio_ispitom boolean, |
27 |
|
|
sif_qualification int4 not null, |
28 |
dpavlin |
1.2 |
sif_tecaja int4, |
29 |
dpavlin |
1.1 |
stupanj_str_jezika int2, |
30 |
dpavlin |
1.2 |
sif_stranog_jezika int4, |
31 |
dpavlin |
1.1 |
date_lupdate date, |
32 |
dpavlin |
1.2 |
sif_strucna_sprema int4, |
33 |
dpavlin |
1.1 |
grad_odrzavanja_tecaja text, |
34 |
|
|
titula text |
35 |
|
|
); |
36 |
|
|
|
37 |
dpavlin |
1.3 |
drop table izvan_plive; /* RA: */ |
38 |
dpavlin |
1.1 |
create table izvan_plive ( |
39 |
|
|
sif_radnika varchar(7) not null, |
40 |
|
|
tvrtka text, |
41 |
|
|
radno_mjesto text, |
42 |
|
|
zadaci text, |
43 |
|
|
datum_od date, |
44 |
|
|
datum_do date, |
45 |
|
|
id int4, |
46 |
|
|
date_lupdate date default 'now' |
47 |
|
|
); |
48 |
|
|
|
49 |
dpavlin |
1.3 |
drop table nagrade; /* RA: */ |
50 |
dpavlin |
1.1 |
create table nagrade ( |
51 |
|
|
sif_radnika varchar(7) not null, |
52 |
|
|
naziv text not null, |
53 |
|
|
opis text, |
54 |
|
|
sif_ustanove int4, |
55 |
|
|
urucitelj text, |
56 |
|
|
godina text, |
57 |
|
|
id int4, |
58 |
|
|
date_lupdate date default 'now' |
59 |
|
|
); |
60 |
|
|
|
61 |
dpavlin |
1.3 |
drop table o_meni; /* RA: */ |
62 |
dpavlin |
1.1 |
create table o_meni ( |
63 |
|
|
sif_radnika varchar(7) not null, |
64 |
|
|
opis text, |
65 |
|
|
datum_lupdate date default 'now' |
66 |
|
|
); |
67 |
|
|
|
68 |
|
|
/* MULTILINGUAL */ |
69 |
dpavlin |
1.3 |
drop table obrazovna_ustanova; /* RA: */ |
70 |
dpavlin |
1.1 |
create table obrazovna_ustanova ( |
71 |
|
|
sifra int4 not null, |
72 |
|
|
naziv text not null, |
73 |
|
|
grad text, |
74 |
|
|
datum_lupdate date default 'now', |
75 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
76 |
|
|
); |
77 |
|
|
|
78 |
|
|
/* MULTILINGUAL */ |
79 |
dpavlin |
1.3 |
drop table org_jed; /* RA: */ |
80 |
dpavlin |
1.1 |
create table org_jed ( |
81 |
|
|
sifra text not null, |
82 |
|
|
opis text, |
83 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
84 |
|
|
); |
85 |
|
|
|
86 |
|
|
/* MULTILINGUAL */ |
87 |
dpavlin |
1.3 |
drop table osoba; /* RA: */ |
88 |
dpavlin |
1.1 |
create table osoba ( |
89 |
|
|
sif_radnika varchar(7) not null, |
90 |
|
|
ime varchar(100) not null, |
91 |
|
|
prezime varchar(100) not null, |
92 |
|
|
naziv_struke text, |
93 |
|
|
sif_org_jed text, |
94 |
|
|
radna_jedinica text, |
95 |
|
|
radno_mjesto text, |
96 |
|
|
spol varchar(1), |
97 |
|
|
datum_rodjenja date, |
98 |
|
|
stupanj_str_spreme text, |
99 |
|
|
smjer text, |
100 |
|
|
titula text, /* IZBACITI!!! (dup od edukacija.titula) */ |
101 |
|
|
telefon varchar(50), |
102 |
|
|
email varchar(250), |
103 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
104 |
|
|
); |
105 |
|
|
|
106 |
dpavlin |
1.3 |
drop table qualification; /* RA: */ |
107 |
dpavlin |
1.1 |
create table qualification ( |
108 |
|
|
sifra int4 not null, |
109 |
|
|
opis text |
110 |
|
|
); |
111 |
|
|
|
112 |
dpavlin |
1.3 |
drop table radovi; /* RA: */ |
113 |
dpavlin |
1.1 |
create table radovi ( |
114 |
|
|
rbr int4 not null, |
115 |
|
|
sif_str_skupa int4, |
116 |
|
|
xxxx int4, |
117 |
|
|
sif_radnika varchar(7) not null, |
118 |
|
|
godina varchar(4), |
119 |
|
|
naziv_rada_knjige text, |
120 |
|
|
naziv_casopisa text, |
121 |
|
|
datum_lupdate date default 'now' |
122 |
|
|
); |
123 |
|
|
|
124 |
|
|
/* MULTILINGUAL */ |
125 |
dpavlin |
1.3 |
drop table stupanj_str_jezika; /* RA: */ |
126 |
dpavlin |
1.1 |
create table stupanj_str_jezika ( |
127 |
|
|
sifra int4 not null, |
128 |
|
|
stupanj text, |
129 |
|
|
opis text, |
130 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
131 |
|
|
); |
132 |
|
|
|
133 |
|
|
/* MULTILINGUAL */ |
134 |
dpavlin |
1.3 |
drop table strani_jezik; /* RA: */ |
135 |
dpavlin |
1.1 |
create table strani_jezik ( |
136 |
|
|
sifra int4 not null, |
137 |
|
|
opis text, |
138 |
|
|
datum_lupdate date default 'now', |
139 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
140 |
|
|
); |
141 |
|
|
|
142 |
|
|
/* MULTILINGUAL */ |
143 |
dpavlin |
1.3 |
drop table strucne_spreme; /* RA: */ |
144 |
dpavlin |
1.1 |
create table strucne_spreme ( |
145 |
|
|
stupanj text not null, |
146 |
|
|
sif_vrsta_str_spreme int4, |
147 |
|
|
sif_str_spreme int4, |
148 |
|
|
sap text, |
149 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
150 |
|
|
); |
151 |
|
|
|
152 |
dpavlin |
1.3 |
drop table strucni_skupovi; /* RA: */ |
153 |
dpavlin |
1.1 |
create table strucni_skupovi ( |
154 |
|
|
rbr int4 not null, |
155 |
|
|
naziv text, |
156 |
|
|
sif_radnika varchar(7) not null, /* KEY */ |
157 |
|
|
grad text, |
158 |
|
|
datum_od date, |
159 |
|
|
datum_do date, |
160 |
|
|
datum_lupdate date default 'now' |
161 |
|
|
); |
162 |
|
|
|
163 |
|
|
/* MULTILINGUAL */ |
164 |
dpavlin |
1.3 |
drop table tecajevi; /* RA: */ |
165 |
dpavlin |
1.1 |
create table tecajevi ( |
166 |
|
|
sifra int4 not null, |
167 |
|
|
naziv text not null, |
168 |
|
|
xxxx text, |
169 |
|
|
sif_qualification int4, |
170 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
171 |
|
|
); |
172 |
|
|
|
173 |
dpavlin |
1.3 |
drop table u_plivi; /* RA: */ |
174 |
dpavlin |
1.1 |
create table u_plivi ( |
175 |
|
|
sif_radnika varchar(7) not null, |
176 |
|
|
radno_mjesto text, |
177 |
|
|
zadaci text, |
178 |
|
|
datum_od date, |
179 |
|
|
datum_do date, |
180 |
|
|
id int4, |
181 |
|
|
date_lupdate date default 'now' |
182 |
|
|
); |
183 |
|
|
|
184 |
|
|
/* MULTILINGUAL */ |
185 |
dpavlin |
1.3 |
drop table ustanove; /* RA: */ |
186 |
dpavlin |
1.1 |
create table ustanove ( |
187 |
|
|
sifra int4 not null, |
188 |
|
|
naziv varchar(250) not null, |
189 |
|
|
grad text, |
190 |
|
|
mjesto text, /* IZBACITI U FINALNOJ VERZIJI!!! */ |
191 |
|
|
date_lupdate date default 'now', |
192 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
193 |
|
|
); |
194 |
|
|
|
195 |
|
|
/* MULTILINGUAL */ |
196 |
dpavlin |
1.3 |
drop table vrsta_strucne_spreme; /* RA: */ |
197 |
dpavlin |
1.1 |
create table vrsta_strucne_spreme ( |
198 |
|
|
sifra int4 not null, |
199 |
|
|
opis text, |
200 |
|
|
language varchar(2) not null default 'HR' /* RA: */ |
201 |
|
|
); |