| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | |||
| 3 | package Interchange6::Schema::Result::Setting; | ||
| 4 | |||
| 5 | =head1 NAME | ||
| 6 | |||
| 7 | Interchange6::Schema::Result::Setting | ||
| 8 | |||
| 9 | =cut | ||
| 10 | |||
| 11 | 2 | ▶ | use Interchange6::Schema::Candy; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | =head1 ACCESSORS | ||
| 14 | |||
| 15 | =head2 settings_id | ||
| 16 | |||
| 17 | Primary key. | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 2 | primary_column settings_id => { | |
| 22 | data_type => "integer", | ||
| 23 | is_auto_increment => 1, | ||
| 24 | sequence => "settings_settings_id_seq", | ||
| 25 | }; | ||
| 26 | |||
| 27 | =head2 scope | ||
| 28 | |||
| 29 | Scope of this setting. | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | 2 | column scope => { data_type => "varchar", size => 32 }; | |
| 34 | |||
| 35 | =head2 site | ||
| 36 | |||
| 37 | Site (shop) that this setting applies to. | ||
| 38 | |||
| 39 | Defaults to empty string. | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 2 | column site => | |
| 44 | { data_type => "varchar", default_value => "", size => 32 }; | ||
| 45 | |||
| 46 | =head2 name | ||
| 47 | |||
| 48 | Name of this setting. | ||
| 49 | |||
| 50 | =cut | ||
| 51 | |||
| 52 | 2 | column name => { data_type => "varchar", size => 32 }; | |
| 53 | |||
| 54 | =head2 value | ||
| 55 | |||
| 56 | Value of this setting. | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | 2 | column value => { data_type => "text" }; | |
| 61 | |||
| 62 | =head2 category | ||
| 63 | |||
| 64 | Category of this setting. | ||
| 65 | |||
| 66 | Defaults to empty string. | ||
| 67 | |||
| 68 | =cut | ||
| 69 | |||
| 70 | 2 | column category => | |
| 71 | { data_type => "varchar", default_value => "", size => 32 }; | ||
| 72 | |||
| 73 | 2 | 1; | |