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