| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_7::Result::Config; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Schema::RackTables::0_20_7::Result::Config | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | use strict; | ||
| 14 | use warnings; | ||
| 15 | |||
| 16 | use base 'DBIx::Class::Core'; | ||
| 17 | |||
| 18 | =head1 COMPONENTS LOADED | ||
| 19 | |||
| 20 | =over 4 | ||
| 21 | |||
| 22 | =item * L<DBIx::Class::InflateColumn::DateTime> | ||
| 23 | |||
| 24 | =back | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 29 | |||
| 30 | =head1 TABLE: C<Config> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("Config"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 varname | ||
| 39 | |||
| 40 | data_type: 'char' | ||
| 41 | is_nullable: 0 | ||
| 42 | size: 32 | ||
| 43 | |||
| 44 | =head2 varvalue | ||
| 45 | |||
| 46 | data_type: 'text' | ||
| 47 | is_nullable: 0 | ||
| 48 | |||
| 49 | =head2 vartype | ||
| 50 | |||
| 51 | data_type: 'enum' | ||
| 52 | default_value: 'string' | ||
| 53 | extra: {list => ["string","uint"]} | ||
| 54 | is_nullable: 0 | ||
| 55 | |||
| 56 | =head2 emptyok | ||
| 57 | |||
| 58 | data_type: 'enum' | ||
| 59 | default_value: 'no' | ||
| 60 | extra: {list => ["yes","no"]} | ||
| 61 | is_nullable: 0 | ||
| 62 | |||
| 63 | =head2 is_hidden | ||
| 64 | |||
| 65 | data_type: 'enum' | ||
| 66 | default_value: 'yes' | ||
| 67 | extra: {list => ["yes","no"]} | ||
| 68 | is_nullable: 0 | ||
| 69 | |||
| 70 | =head2 is_userdefined | ||
| 71 | |||
| 72 | data_type: 'enum' | ||
| 73 | default_value: 'no' | ||
| 74 | extra: {list => ["yes","no"]} | ||
| 75 | is_nullable: 0 | ||
| 76 | |||
| 77 | =head2 description | ||
| 78 | |||
| 79 | data_type: 'text' | ||
| 80 | is_nullable: 1 | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | __PACKAGE__->add_columns( | ||
| 85 | "varname", | ||
| 86 | { data_type => "char", is_nullable => 0, size => 32 }, | ||
| 87 | "varvalue", | ||
| 88 | { data_type => "text", is_nullable => 0 }, | ||
| 89 | "vartype", | ||
| 90 | { | ||
| 91 | data_type => "enum", | ||
| 92 | default_value => "string", | ||
| 93 | extra => { list => ["string", "uint"] }, | ||
| 94 | is_nullable => 0, | ||
| 95 | }, | ||
| 96 | "emptyok", | ||
| 97 | { | ||
| 98 | data_type => "enum", | ||
| 99 | default_value => "no", | ||
| 100 | extra => { list => ["yes", "no"] }, | ||
| 101 | is_nullable => 0, | ||
| 102 | }, | ||
| 103 | "is_hidden", | ||
| 104 | { | ||
| 105 | data_type => "enum", | ||
| 106 | default_value => "yes", | ||
| 107 | extra => { list => ["yes", "no"] }, | ||
| 108 | is_nullable => 0, | ||
| 109 | }, | ||
| 110 | "is_userdefined", | ||
| 111 | { | ||
| 112 | data_type => "enum", | ||
| 113 | default_value => "no", | ||
| 114 | extra => { list => ["yes", "no"] }, | ||
| 115 | is_nullable => 0, | ||
| 116 | }, | ||
| 117 | "description", | ||
| 118 | { data_type => "text", is_nullable => 1 }, | ||
| 119 | ); | ||
| 120 | |||
| 121 | =head1 PRIMARY KEY | ||
| 122 | |||
| 123 | =over 4 | ||
| 124 | |||
| 125 | =item * L</varname> | ||
| 126 | |||
| 127 | =back | ||
| 128 | |||
| 129 | =cut | ||
| 130 | |||
| 131 | __PACKAGE__->set_primary_key("varname"); | ||
| 132 | |||
| 133 | =head1 RELATIONS | ||
| 134 | |||
| 135 | =head2 user_configs | ||
| 136 | |||
| 137 | Type: has_many | ||
| 138 | |||
| 139 | Related object: L<Schema::RackTables::0_20_7::Result::UserConfig> | ||
| 140 | |||
| 141 | =cut | ||
| 142 | |||
| 143 | __PACKAGE__->has_many( | ||
| 144 | "user_configs", | ||
| 145 | "Schema::RackTables::0_20_7::Result::UserConfig", | ||
| 146 | { "foreign.varname" => "self.varname" }, | ||
| 147 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 148 | ); | ||
| 149 | |||
| 150 | |||
| 151 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:14 | ||
| 152 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bMQRAPCfJlgp0kUklBpZyg | ||
| 153 | |||
| 154 | |||
| 155 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 156 | 1; |