| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_5::Result::VSIPs; | ||
| 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_5::Result::VSIPs | ||
| 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<VSIPs> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("VSIPs"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 vs_id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_foreign_key: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 vip | ||
| 46 | |||
| 47 | data_type: 'varbinary' | ||
| 48 | is_nullable: 0 | ||
| 49 | size: 16 | ||
| 50 | |||
| 51 | =head2 vsconfig | ||
| 52 | |||
| 53 | data_type: 'text' | ||
| 54 | is_nullable: 1 | ||
| 55 | |||
| 56 | =head2 rsconfig | ||
| 57 | |||
| 58 | data_type: 'text' | ||
| 59 | is_nullable: 1 | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | __PACKAGE__->add_columns( | ||
| 64 | "vs_id", | ||
| 65 | { | ||
| 66 | data_type => "integer", | ||
| 67 | extra => { unsigned => 1 }, | ||
| 68 | is_foreign_key => 1, | ||
| 69 | is_nullable => 0, | ||
| 70 | }, | ||
| 71 | "vip", | ||
| 72 | { data_type => "varbinary", is_nullable => 0, size => 16 }, | ||
| 73 | "vsconfig", | ||
| 74 | { data_type => "text", is_nullable => 1 }, | ||
| 75 | "rsconfig", | ||
| 76 | { data_type => "text", is_nullable => 1 }, | ||
| 77 | ); | ||
| 78 | |||
| 79 | =head1 PRIMARY KEY | ||
| 80 | |||
| 81 | =over 4 | ||
| 82 | |||
| 83 | =item * L</vs_id> | ||
| 84 | |||
| 85 | =item * L</vip> | ||
| 86 | |||
| 87 | =back | ||
| 88 | |||
| 89 | =cut | ||
| 90 | |||
| 91 | __PACKAGE__->set_primary_key("vs_id", "vip"); | ||
| 92 | |||
| 93 | =head1 RELATIONS | ||
| 94 | |||
| 95 | =head2 v | ||
| 96 | |||
| 97 | Type: belongs_to | ||
| 98 | |||
| 99 | Related object: L<Schema::RackTables::0_20_5::Result::VS> | ||
| 100 | |||
| 101 | =cut | ||
| 102 | |||
| 103 | __PACKAGE__->belongs_to( | ||
| 104 | "v", | ||
| 105 | "Schema::RackTables::0_20_5::Result::VS", | ||
| 106 | { id => "vs_id" }, | ||
| 107 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" }, | ||
| 108 | ); | ||
| 109 | |||
| 110 | =head2 vsenabled_ips | ||
| 111 | |||
| 112 | Type: has_many | ||
| 113 | |||
| 114 | Related object: L<Schema::RackTables::0_20_5::Result::VSEnabledIPs> | ||
| 115 | |||
| 116 | =cut | ||
| 117 | |||
| 118 | __PACKAGE__->has_many( | ||
| 119 | "vsenabled_ips", | ||
| 120 | "Schema::RackTables::0_20_5::Result::VSEnabledIPs", | ||
| 121 | { "foreign.vip" => "self.vip", "foreign.vs_id" => "self.vs_id" }, | ||
| 122 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 123 | ); | ||
| 124 | |||
| 125 | |||
| 126 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:25 | ||
| 127 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iMLrq0ufn2qew9P0jgNTOQ | ||
| 128 | |||
| 129 | |||
| 130 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 131 | 1; |