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