| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Schema::RackTables::0_20_11::Result::VSEnabledIPs; | ||
| 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_11::Result::VSEnabledIPs | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 2 | ▶ | use base 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 2 | __PACKAGE__->load_components("InflateColumn::DateTime"); | |
| 29 | |||
| 30 | =head1 TABLE: C<VSEnabledIPs> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 2 | __PACKAGE__->table("VSEnabledIPs"); | |
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 object_id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_foreign_key: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 vs_id | ||
| 46 | |||
| 47 | data_type: 'integer' | ||
| 48 | extra: {unsigned => 1} | ||
| 49 | is_foreign_key: 1 | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =head2 vip | ||
| 53 | |||
| 54 | data_type: 'varbinary' | ||
| 55 | is_foreign_key: 1 | ||
| 56 | is_nullable: 0 | ||
| 57 | size: 16 | ||
| 58 | |||
| 59 | =head2 rspool_id | ||
| 60 | |||
| 61 | data_type: 'integer' | ||
| 62 | extra: {unsigned => 1} | ||
| 63 | is_foreign_key: 1 | ||
| 64 | is_nullable: 0 | ||
| 65 | |||
| 66 | =head2 prio | ||
| 67 | |||
| 68 | data_type: 'varchar' | ||
| 69 | is_nullable: 1 | ||
| 70 | size: 255 | ||
| 71 | |||
| 72 | =head2 vsconfig | ||
| 73 | |||
| 74 | data_type: 'text' | ||
| 75 | is_nullable: 1 | ||
| 76 | |||
| 77 | =head2 rsconfig | ||
| 78 | |||
| 79 | data_type: 'text' | ||
| 80 | is_nullable: 1 | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | 2 | __PACKAGE__->add_columns( | |
| 85 | "object_id", | ||
| 86 | { | ||
| 87 | data_type => "integer", | ||
| 88 | extra => { unsigned => 1 }, | ||
| 89 | is_foreign_key => 1, | ||
| 90 | is_nullable => 0, | ||
| 91 | }, | ||
| 92 | "vs_id", | ||
| 93 | { | ||
| 94 | data_type => "integer", | ||
| 95 | extra => { unsigned => 1 }, | ||
| 96 | is_foreign_key => 1, | ||
| 97 | is_nullable => 0, | ||
| 98 | }, | ||
| 99 | "vip", | ||
| 100 | { data_type => "varbinary", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 101 | "rspool_id", | ||
| 102 | { | ||
| 103 | data_type => "integer", | ||
| 104 | extra => { unsigned => 1 }, | ||
| 105 | is_foreign_key => 1, | ||
| 106 | is_nullable => 0, | ||
| 107 | }, | ||
| 108 | "prio", | ||
| 109 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 110 | "vsconfig", | ||
| 111 | { data_type => "text", is_nullable => 1 }, | ||
| 112 | "rsconfig", | ||
| 113 | { data_type => "text", is_nullable => 1 }, | ||
| 114 | ); | ||
| 115 | |||
| 116 | =head1 PRIMARY KEY | ||
| 117 | |||
| 118 | =over 4 | ||
| 119 | |||
| 120 | =item * L</object_id> | ||
| 121 | |||
| 122 | =item * L</vs_id> | ||
| 123 | |||
| 124 | =item * L</vip> | ||
| 125 | |||
| 126 | =item * L</rspool_id> | ||
| 127 | |||
| 128 | =back | ||
| 129 | |||
| 130 | =cut | ||
| 131 | |||
| 132 | 2 | __PACKAGE__->set_primary_key("object_id", "vs_id", "vip", "rspool_id"); | |
| 133 | |||
| 134 | =head1 RELATIONS | ||
| 135 | |||
| 136 | =head2 object | ||
| 137 | |||
| 138 | Type: belongs_to | ||
| 139 | |||
| 140 | Related object: L<Schema::RackTables::0_20_11::Result::Object> | ||
| 141 | |||
| 142 | =cut | ||
| 143 | |||
| 144 | 2 | __PACKAGE__->belongs_to( | |
| 145 | "object", | ||
| 146 | "Schema::RackTables::0_20_11::Result::Object", | ||
| 147 | { id => "object_id" }, | ||
| 148 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||
| 149 | ); | ||
| 150 | |||
| 151 | =head2 rspool | ||
| 152 | |||
| 153 | Type: belongs_to | ||
| 154 | |||
| 155 | Related object: L<Schema::RackTables::0_20_11::Result::IPv4RSPool> | ||
| 156 | |||
| 157 | =cut | ||
| 158 | |||
| 159 | 2 | __PACKAGE__->belongs_to( | |
| 160 | "rspool", | ||
| 161 | "Schema::RackTables::0_20_11::Result::IPv4RSPool", | ||
| 162 | { id => "rspool_id" }, | ||
| 163 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||
| 164 | ); | ||
| 165 | |||
| 166 | =head2 vsip | ||
| 167 | |||
| 168 | Type: belongs_to | ||
| 169 | |||
| 170 | Related object: L<Schema::RackTables::0_20_11::Result::VSIPs> | ||
| 171 | |||
| 172 | =cut | ||
| 173 | |||
| 174 | 2 | __PACKAGE__->belongs_to( | |
| 175 | "vsip", | ||
| 176 | "Schema::RackTables::0_20_11::Result::VSIPs", | ||
| 177 | { vip => "vip", vs_id => "vs_id" }, | ||
| 178 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||
| 179 | ); | ||
| 180 | |||
| 181 | |||
| 182 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10 | ||
| 183 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CbfPp0U1yQP75tkE7+7CPw | ||
| 184 | |||
| 185 | |||
| 186 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 187 | 2 | 1; | |