8 |
|
|
9 |
use Arh::Record schema { |
use Arh::Record schema { |
10 |
|
|
11 |
|
column filename => |
12 |
|
label is _("Picture filename"); |
13 |
|
# is immutable, |
14 |
|
# is indexed, |
15 |
|
# is unique; |
16 |
|
|
17 |
|
column content => |
18 |
|
label is _('Picture'), |
19 |
|
type is 'bytea', |
20 |
|
render as 'Upload', |
21 |
|
is mandatory; |
22 |
|
|
23 |
column campaign => |
column campaign => |
24 |
label is _("Part of campaign"), |
label is _("Part of campaign"), |
25 |
refers_to Arh::Model::Campaign, |
refers_to Arh::Model::Campaign, |
27 |
is indexed, |
is indexed, |
28 |
since '0.0.4'; |
since '0.0.4'; |
29 |
|
|
|
column filename => |
|
|
label is _("Picture filename"), |
|
|
is mandatory, |
|
|
is indexed, |
|
|
is unique; |
|
|
|
|
30 |
column type => |
column type => |
31 |
label is _("Type of picture"), |
label is _("Type of picture"), |
32 |
refers_to Arh::Model::PictureType, |
refers_to Arh::Model::PictureType, |