« blib/lib/RackTables/Schema/Result/IPv4Allocation.pm
↑ Summary
blib/lib/RackTables/Schema/Result/IPv4NAT.pm »
| 1 | package RackTables::Schema::Result::IPv4LB; | ||
| 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::IPv4LB | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 1 | __PACKAGE__->table("IPv4LB"); | |
| 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: 1 | ||
| 31 | |||
| 32 | =head2 rspool_id | ||
| 33 | |||
| 34 | data_type: 'integer' | ||
| 35 | extra: {unsigned => 1} | ||
| 36 | is_foreign_key: 1 | ||
| 37 | is_nullable: 1 | ||
| 38 | |||
| 39 | =head2 vs_id | ||
| 40 | |||
| 41 | data_type: 'integer' | ||
| 42 | extra: {unsigned => 1} | ||
| 43 | is_foreign_key: 1 | ||
| 44 | is_nullable: 1 | ||
| 45 | |||
| 46 | =head2 prio | ||
| 47 | |||
| 48 | data_type: 'integer' | ||
| 49 | extra: {unsigned => 1} | ||
| 50 | is_nullable: 1 | ||
| 51 | |||
| 52 | =head2 vsconfig | ||
| 53 | |||
| 54 | data_type: 'text' | ||
| 55 | is_nullable: 1 | ||
| 56 | |||
| 57 | =head2 rsconfig | ||
| 58 | |||
| 59 | data_type: 'text' | ||
| 60 | is_nullable: 1 | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | 1 | __PACKAGE__->add_columns( | |
| 65 | "object_id", | ||
| 66 | { | ||
| 67 | data_type => "integer", | ||
| 68 | extra => { unsigned => 1 }, | ||
| 69 | is_foreign_key => 1, | ||
| 70 | is_nullable => 1, | ||
| 71 | }, | ||
| 72 | "rspool_id", | ||
| 73 | { | ||
| 74 | data_type => "integer", | ||
| 75 | extra => { unsigned => 1 }, | ||
| 76 | is_foreign_key => 1, | ||
| 77 | is_nullable => 1, | ||
| 78 | }, | ||
| 79 | "vs_id", | ||
| 80 | { | ||
| 81 | data_type => "integer", | ||
| 82 | extra => { unsigned => 1 }, | ||
| 83 | is_foreign_key => 1, | ||
| 84 | is_nullable => 1, | ||
| 85 | }, | ||
| 86 | "prio", | ||
| 87 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, | ||
| 88 | "vsconfig", | ||
| 89 | { data_type => "text", is_nullable => 1 }, | ||
| 90 | "rsconfig", | ||
| 91 | { data_type => "text", is_nullable => 1 }, | ||
| 92 | ); | ||
| 93 | 1 | __PACKAGE__->add_unique_constraint("LB-VS", ["object_id", "vs_id"]); | |
| 94 | |||
| 95 | =head1 RELATIONS | ||
| 96 | |||
| 97 | =head2 object | ||
| 98 | |||
| 99 | Type: belongs_to | ||
| 100 | |||
| 101 | Related object: L<RackTables::Schema::Result::RackObject> | ||
| 102 | |||
| 103 | =cut | ||
| 104 | |||
| 105 | 1 | __PACKAGE__->belongs_to( | |
| 106 | "object", | ||
| 107 | "RackTables::Schema::Result::RackObject", | ||
| 108 | { id => "object_id" }, | ||
| 109 | { | ||
| 110 | is_deferrable => 1, | ||
| 111 | join_type => "LEFT", | ||
| 112 | on_delete => "CASCADE", | ||
| 113 | on_update => "CASCADE", | ||
| 114 | }, | ||
| 115 | ); | ||
| 116 | |||
| 117 | =head2 rspool | ||
| 118 | |||
| 119 | Type: belongs_to | ||
| 120 | |||
| 121 | Related object: L<RackTables::Schema::Result::IPv4RSPool> | ||
| 122 | |||
| 123 | =cut | ||
| 124 | |||
| 125 | 1 | __PACKAGE__->belongs_to( | |
| 126 | "rspool", | ||
| 127 | "RackTables::Schema::Result::IPv4RSPool", | ||
| 128 | { id => "rspool_id" }, | ||
| 129 | { | ||
| 130 | is_deferrable => 1, | ||
| 131 | join_type => "LEFT", | ||
| 132 | on_delete => "CASCADE", | ||
| 133 | on_update => "CASCADE", | ||
| 134 | }, | ||
| 135 | ); | ||
| 136 | |||
| 137 | =head2 v | ||
| 138 | |||
| 139 | Type: belongs_to | ||
| 140 | |||
| 141 | Related object: L<RackTables::Schema::Result::IPv4VS> | ||
| 142 | |||
| 143 | =cut | ||
| 144 | |||
| 145 | 1 | __PACKAGE__->belongs_to( | |
| 146 | "v", | ||
| 147 | "RackTables::Schema::Result::IPv4VS", | ||
| 148 | { id => "vs_id" }, | ||
| 149 | { | ||
| 150 | is_deferrable => 1, | ||
| 151 | join_type => "LEFT", | ||
| 152 | on_delete => "CASCADE", | ||
| 153 | on_update => "CASCADE", | ||
| 154 | }, | ||
| 155 | ); | ||
| 156 | |||
| 157 | |||
| 158 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02 | ||
| 159 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:w9ne9tNvNpp9rvsukcGOzA | ||
| 160 | |||
| 161 | |||
| 162 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 163 | 1 | __PACKAGE__->meta->make_immutable; | |
| 164 | 1 | 1; | |