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