« blib/lib/RackTables/Schema/Result/VLANSTRule.pm
↑ Summary
blib/lib/RackTables/Schema/Result/VLANSwitchTemplate.pm »
| 1 | package RackTables::Schema::Result::VLANSwitch; | ||
| 2 | |||
| 3 | # Created by DBIx::Class::Schema::Loader | ||
| 4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | extends 'DBIx::Class::Core'; | |
| 13 | |||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | RackTables::Schema::Result::VLANSwitch | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 1 | __PACKAGE__->table("VLANSwitch"); | |
| 22 | |||
| 23 | =head1 ACCESSORS | ||
| 24 | |||
| 25 | =head2 object_id | ||
| 26 | |||
| 27 | data_type: 'integer' | ||
| 28 | extra: {unsigned => 1} | ||
| 29 | is_foreign_key: 1 | ||
| 30 | is_nullable: 0 | ||
| 31 | |||
| 32 | =head2 domain_id | ||
| 33 | |||
| 34 | data_type: 'integer' | ||
| 35 | extra: {unsigned => 1} | ||
| 36 | is_foreign_key: 1 | ||
| 37 | is_nullable: 0 | ||
| 38 | |||
| 39 | =head2 template_id | ||
| 40 | |||
| 41 | data_type: 'integer' | ||
| 42 | extra: {unsigned => 1} | ||
| 43 | is_foreign_key: 1 | ||
| 44 | is_nullable: 0 | ||
| 45 | |||
| 46 | =head2 mutex_rev | ||
| 47 | |||
| 48 | data_type: 'integer' | ||
| 49 | default_value: 0 | ||
| 50 | extra: {unsigned => 1} | ||
| 51 | is_nullable: 0 | ||
| 52 | |||
| 53 | =head2 out_of_sync | ||
| 54 | |||
| 55 | data_type: 'enum' | ||
| 56 | default_value: 'yes' | ||
| 57 | extra: {list => ["yes","no"]} | ||
| 58 | is_nullable: 0 | ||
| 59 | |||
| 60 | =head2 last_errno | ||
| 61 | |||
| 62 | data_type: 'integer' | ||
| 63 | default_value: 0 | ||
| 64 | extra: {unsigned => 1} | ||
| 65 | is_nullable: 0 | ||
| 66 | |||
| 67 | =head2 last_change | ||
| 68 | |||
| 69 | data_type: 'timestamp' | ||
| 70 | datetime_undef_if_invalid: 1 | ||
| 71 | default_value: '0000-00-00 00:00:00' | ||
| 72 | is_nullable: 0 | ||
| 73 | |||
| 74 | =head2 last_push_started | ||
| 75 | |||
| 76 | data_type: 'timestamp' | ||
| 77 | datetime_undef_if_invalid: 1 | ||
| 78 | default_value: '0000-00-00 00:00:00' | ||
| 79 | is_nullable: 0 | ||
| 80 | |||
| 81 | =head2 last_push_finished | ||
| 82 | |||
| 83 | data_type: 'timestamp' | ||
| 84 | datetime_undef_if_invalid: 1 | ||
| 85 | default_value: '0000-00-00 00:00:00' | ||
| 86 | is_nullable: 0 | ||
| 87 | |||
| 88 | =head2 last_error_ts | ||
| 89 | |||
| 90 | data_type: 'timestamp' | ||
| 91 | datetime_undef_if_invalid: 1 | ||
| 92 | default_value: '0000-00-00 00:00:00' | ||
| 93 | is_nullable: 0 | ||
| 94 | |||
| 95 | =cut | ||
| 96 | |||
| 97 | 1 | __PACKAGE__->add_columns( | |
| 98 | "object_id", | ||
| 99 | { | ||
| 100 | data_type => "integer", | ||
| 101 | extra => { unsigned => 1 }, | ||
| 102 | is_foreign_key => 1, | ||
| 103 | is_nullable => 0, | ||
| 104 | }, | ||
| 105 | "domain_id", | ||
| 106 | { | ||
| 107 | data_type => "integer", | ||
| 108 | extra => { unsigned => 1 }, | ||
| 109 | is_foreign_key => 1, | ||
| 110 | is_nullable => 0, | ||
| 111 | }, | ||
| 112 | "template_id", | ||
| 113 | { | ||
| 114 | data_type => "integer", | ||
| 115 | extra => { unsigned => 1 }, | ||
| 116 | is_foreign_key => 1, | ||
| 117 | is_nullable => 0, | ||
| 118 | }, | ||
| 119 | "mutex_rev", | ||
| 120 | { | ||
| 121 | data_type => "integer", | ||
| 122 | default_value => 0, | ||
| 123 | extra => { unsigned => 1 }, | ||
| 124 | is_nullable => 0, | ||
| 125 | }, | ||
| 126 | "out_of_sync", | ||
| 127 | { | ||
| 128 | data_type => "enum", | ||
| 129 | default_value => "yes", | ||
| 130 | extra => { list => ["yes", "no"] }, | ||
| 131 | is_nullable => 0, | ||
| 132 | }, | ||
| 133 | "last_errno", | ||
| 134 | { | ||
| 135 | data_type => "integer", | ||
| 136 | default_value => 0, | ||
| 137 | extra => { unsigned => 1 }, | ||
| 138 | is_nullable => 0, | ||
| 139 | }, | ||
| 140 | "last_change", | ||
| 141 | { | ||
| 142 | data_type => "timestamp", | ||
| 143 | datetime_undef_if_invalid => 1, | ||
| 144 | default_value => "0000-00-00 00:00:00", | ||
| 145 | is_nullable => 0, | ||
| 146 | }, | ||
| 147 | "last_push_started", | ||
| 148 | { | ||
| 149 | data_type => "timestamp", | ||
| 150 | datetime_undef_if_invalid => 1, | ||
| 151 | default_value => "0000-00-00 00:00:00", | ||
| 152 | is_nullable => 0, | ||
| 153 | }, | ||
| 154 | "last_push_finished", | ||
| 155 | { | ||
| 156 | data_type => "timestamp", | ||
| 157 | datetime_undef_if_invalid => 1, | ||
| 158 | default_value => "0000-00-00 00:00:00", | ||
| 159 | is_nullable => 0, | ||
| 160 | }, | ||
| 161 | "last_error_ts", | ||
| 162 | { | ||
| 163 | data_type => "timestamp", | ||
| 164 | datetime_undef_if_invalid => 1, | ||
| 165 | default_value => "0000-00-00 00:00:00", | ||
| 166 | is_nullable => 0, | ||
| 167 | }, | ||
| 168 | ); | ||
| 169 | 1 | __PACKAGE__->add_unique_constraint("object_id", ["object_id"]); | |
| 170 | |||
| 171 | =head1 RELATIONS | ||
| 172 | |||
| 173 | =head2 domain | ||
| 174 | |||
| 175 | Type: belongs_to | ||
| 176 | |||
| 177 | Related object: L<RackTables::Schema::Result::VLANDomain> | ||
| 178 | |||
| 179 | =cut | ||
| 180 | |||
| 181 | 1 | __PACKAGE__->belongs_to( | |
| 182 | "domain", | ||
| 183 | "RackTables::Schema::Result::VLANDomain", | ||
| 184 | { id => "domain_id" }, | ||
| 185 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 186 | ); | ||
| 187 | |||
| 188 | =head2 object | ||
| 189 | |||
| 190 | Type: belongs_to | ||
| 191 | |||
| 192 | Related object: L<RackTables::Schema::Result::RackObject> | ||
| 193 | |||
| 194 | =cut | ||
| 195 | |||
| 196 | 1 | __PACKAGE__->belongs_to( | |
| 197 | "object", | ||
| 198 | "RackTables::Schema::Result::RackObject", | ||
| 199 | { id => "object_id" }, | ||
| 200 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 201 | ); | ||
| 202 | |||
| 203 | =head2 template | ||
| 204 | |||
| 205 | Type: belongs_to | ||
| 206 | |||
| 207 | Related object: L<RackTables::Schema::Result::VLANSwitchTemplate> | ||
| 208 | |||
| 209 | =cut | ||
| 210 | |||
| 211 | 1 | __PACKAGE__->belongs_to( | |
| 212 | "template", | ||
| 213 | "RackTables::Schema::Result::VLANSwitchTemplate", | ||
| 214 | { id => "template_id" }, | ||
| 215 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 216 | ); | ||
| 217 | |||
| 218 | |||
| 219 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02 | ||
| 220 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q3TtMQobd5IqqG+R3wMIfw | ||
| 221 | |||
| 222 | |||
| 223 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 224 | 1 | __PACKAGE__->meta->make_immutable; | |
| 225 | 1 | 1; | |