« blib/lib/RackTables/Schema/Result/IPv6Address.pm
↑ Summary
blib/lib/RackTables/Schema/Result/IPv6Network.pm »
| 1 | package RackTables::Schema::Result::IPv6Allocation; | ||
| 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::IPv6Allocation | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 1 | __PACKAGE__->table("IPv6Allocation"); | |
| 22 | |||
| 23 | =head1 ACCESSORS | ||
| 24 | |||
| 25 | =head2 object_id | ||
| 26 | |||
| 27 | data_type: 'integer' | ||
| 28 | default_value: 0 | ||
| 29 | extra: {unsigned => 1} | ||
| 30 | is_foreign_key: 1 | ||
| 31 | is_nullable: 0 | ||
| 32 | |||
| 33 | =head2 ip | ||
| 34 | |||
| 35 | data_type: 'binary' | ||
| 36 | is_nullable: 0 | ||
| 37 | size: 16 | ||
| 38 | |||
| 39 | =head2 name | ||
| 40 | |||
| 41 | data_type: 'char' | ||
| 42 | default_value: (empty string) | ||
| 43 | is_nullable: 0 | ||
| 44 | size: 255 | ||
| 45 | |||
| 46 | =head2 type | ||
| 47 | |||
| 48 | data_type: 'enum' | ||
| 49 | extra: {list => ["regular","shared","virtual","router"]} | ||
| 50 | is_nullable: 1 | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | 1 | __PACKAGE__->add_columns( | |
| 55 | "object_id", | ||
| 56 | { | ||
| 57 | data_type => "integer", | ||
| 58 | default_value => 0, | ||
| 59 | extra => { unsigned => 1 }, | ||
| 60 | is_foreign_key => 1, | ||
| 61 | is_nullable => 0, | ||
| 62 | }, | ||
| 63 | "ip", | ||
| 64 | { data_type => "binary", is_nullable => 0, size => 16 }, | ||
| 65 | "name", | ||
| 66 | { data_type => "char", default_value => "", is_nullable => 0, size => 255 }, | ||
| 67 | "type", | ||
| 68 | { | ||
| 69 | data_type => "enum", | ||
| 70 | extra => { list => ["regular", "shared", "virtual", "router"] }, | ||
| 71 | is_nullable => 1, | ||
| 72 | }, | ||
| 73 | ); | ||
| 74 | 1 | __PACKAGE__->set_primary_key("object_id", "ip"); | |
| 75 | |||
| 76 | =head1 RELATIONS | ||
| 77 | |||
| 78 | =head2 object | ||
| 79 | |||
| 80 | Type: belongs_to | ||
| 81 | |||
| 82 | Related object: L<RackTables::Schema::Result::RackObject> | ||
| 83 | |||
| 84 | =cut | ||
| 85 | |||
| 86 | 1 | __PACKAGE__->belongs_to( | |
| 87 | "object", | ||
| 88 | "RackTables::Schema::Result::RackObject", | ||
| 89 | { id => "object_id" }, | ||
| 90 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 91 | ); | ||
| 92 | |||
| 93 | |||
| 94 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02 | ||
| 95 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CjlfN4klrcGGwLt80O9njQ | ||
| 96 | |||
| 97 | |||
| 98 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 99 | 1 | __PACKAGE__->meta->make_immutable; | |
| 100 | 1 | 1; | |