1 |
dpavlin |
2 |
use strict; |
2 |
|
|
use warnings; |
3 |
|
|
|
4 |
|
|
package Arh::Model::Unit; |
5 |
|
|
use Jifty::DBI::Schema; |
6 |
|
|
|
7 |
|
|
use Arh::Record schema { |
8 |
|
|
|
9 |
|
|
column name => |
10 |
|
|
type is 'text', |
11 |
|
|
label is _("Name"), |
12 |
|
|
is mandatory; |
13 |
|
|
|
14 |
|
|
column number => |
15 |
|
|
type is 'text', |
16 |
|
|
label is _("Number"), |
17 |
|
|
is mandatory; |
18 |
|
|
|
19 |
|
|
column material => |
20 |
|
|
label is _("Material"), |
21 |
|
|
refers_to Arh::Model::UnitMaterial; |
22 |
|
|
|
23 |
|
|
column dimensions => |
24 |
|
|
label is _("Dimensions"), |
25 |
|
|
hit is _("Separate values with ; (semicolumn)"), |
26 |
|
|
type is 'text'; |
27 |
|
|
|
28 |
|
|
column position => |
29 |
|
|
label is _("Place of discovery"), |
30 |
|
|
type is 'text'; |
31 |
|
|
|
32 |
|
|
column description => |
33 |
|
|
label is _("Description"); |
34 |
|
|
|
35 |
|
|
column chronology => |
36 |
|
|
label is _("Chronology"), |
37 |
|
|
refers_to Arh::Model::Chronology, |
38 |
|
|
since '0.0.2'; |
39 |
|
|
|
40 |
|
|
column location => |
41 |
|
|
label is _("Current location"), |
42 |
|
|
refers_to Arh::Model::Location; |
43 |
|
|
|
44 |
|
|
}; |
45 |
|
|
|
46 |
|
|
# Your model-specific methods go here. |
47 |
|
|
|
48 |
|
|
1; |
49 |
|
|
|