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