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