1 |
use strict; |
2 |
use warnings; |
3 |
|
4 |
package A3C::Model::Organization; |
5 |
use Jifty::DBI::Schema; |
6 |
|
7 |
use A3C::Record schema { |
8 |
|
9 |
column uid => |
10 |
label is _('UID'), |
11 |
is indexed, |
12 |
is distinct, |
13 |
is mandatory; |
14 |
|
15 |
column o => |
16 |
label is _('Naziv matične ustanove'), |
17 |
is mandatory; |
18 |
|
19 |
column l => |
20 |
label is _('Mjesto'), |
21 |
hist is 'Zagreb', |
22 |
is mandatory; |
23 |
|
24 |
column postalAddress => |
25 |
label is _('Poštanska adresa'), |
26 |
render as 'textarea', |
27 |
is mandatory; |
28 |
|
29 |
column postalCode => |
30 |
label is _('Poštanski broj'), |
31 |
hint is 'HR-10000'; |
32 |
|
33 |
column street => |
34 |
label is _('Ulica i kućni broj'); |
35 |
|
36 |
column hrEduOrgUniqueNumber => |
37 |
label is _('hrEduOrgUniqueNumber'), |
38 |
is mandatory; |
39 |
|
40 |
column telephoneNumber => |
41 |
label is _('Broj telefona'); |
42 |
|
43 |
}; |
44 |
|
45 |
# Your model-specific methods go here. |
46 |
|
47 |
1; |
48 |
|