/[hr-web]/inc/shema.sql
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/shema.sql

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26