| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_8::Result::IPv6Network; | ||
| 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_8::Result::IPv6Network | ||
| 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<IPv6Network> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("IPv6Network"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_auto_increment: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 ip | ||
| 46 | |||
| 47 | data_type: 'binary' | ||
| 48 | is_nullable: 0 | ||
| 49 | size: 16 | ||
| 50 | |||
| 51 | =head2 mask | ||
| 52 | |||
| 53 | data_type: 'integer' | ||
| 54 | extra: {unsigned => 1} | ||
| 55 | is_nullable: 0 | ||
| 56 | |||
| 57 | =head2 last_ip | ||
| 58 | |||
| 59 | data_type: 'binary' | ||
| 60 | is_nullable: 0 | ||
| 61 | size: 16 | ||
| 62 | |||
| 63 | =head2 name | ||
| 64 | |||
| 65 | data_type: 'char' | ||
| 66 | is_nullable: 1 | ||
| 67 | size: 255 | ||
| 68 | |||
| 69 | =head2 comment | ||
| 70 | |||
| 71 | data_type: 'text' | ||
| 72 | is_nullable: 1 | ||
| 73 | |||
| 74 | =cut | ||
| 75 | |||
| 76 | __PACKAGE__->add_columns( | ||
| 77 | "id", | ||
| 78 | { | ||
| 79 | data_type => "integer", | ||
| 80 | extra => { unsigned => 1 }, | ||
| 81 | is_auto_increment => 1, | ||
| 82 | is_nullable => 0, | ||
| 83 | }, | ||
| 84 | "ip", | ||
| 85 | { data_type => "binary", is_nullable => 0, size => 16 }, | ||
| 86 | "mask", | ||
| 87 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, | ||
| 88 | "last_ip", | ||
| 89 | { data_type => "binary", is_nullable => 0, size => 16 }, | ||
| 90 | "name", | ||
| 91 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 92 | "comment", | ||
| 93 | { data_type => "text", is_nullable => 1 }, | ||
| 94 | ); | ||
| 95 | |||
| 96 | =head1 PRIMARY KEY | ||
| 97 | |||
| 98 | =over 4 | ||
| 99 | |||
| 100 | =item * L</id> | ||
| 101 | |||
| 102 | =back | ||
| 103 | |||
| 104 | =cut | ||
| 105 | |||
| 106 | __PACKAGE__->set_primary_key("id"); | ||
| 107 | |||
| 108 | =head1 UNIQUE CONSTRAINTS | ||
| 109 | |||
| 110 | =head2 C<ip> | ||
| 111 | |||
| 112 | =over 4 | ||
| 113 | |||
| 114 | =item * L</ip> | ||
| 115 | |||
| 116 | =item * L</mask> | ||
| 117 | |||
| 118 | =back | ||
| 119 | |||
| 120 | =cut | ||
| 121 | |||
| 122 | __PACKAGE__->add_unique_constraint("ip", ["ip", "mask"]); | ||
| 123 | |||
| 124 | =head1 RELATIONS | ||
| 125 | |||
| 126 | =head2 vlanipv6s | ||
| 127 | |||
| 128 | Type: has_many | ||
| 129 | |||
| 130 | Related object: L<Schema::RackTables::0_20_8::Result::VLANIPv6> | ||
| 131 | |||
| 132 | =cut | ||
| 133 | |||
| 134 | __PACKAGE__->has_many( | ||
| 135 | "vlanipv6s", | ||
| 136 | "Schema::RackTables::0_20_8::Result::VLANIPv6", | ||
| 137 | { "foreign.ipv6net_id" => "self.id" }, | ||
| 138 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 139 | ); | ||
| 140 | |||
| 141 | |||
| 142 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08 | ||
| 143 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J5AG/ST1rMbphxuHP5vCLQ | ||
| 144 | |||
| 145 | |||
| 146 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 147 | 1; |