« RackTables/0_20_8/Result/PortAllowedVLAN.pm
↑ Summary
RackTables/0_20_8/Result/PortInnerInterface.pm »
| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_8::Result::PortCompat; | ||
| 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_8::Result::PortCompat | ||
| 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<PortCompat> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("PortCompat"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 type1 | ||
| 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 type2 | ||
| 47 | |||
| 48 | data_type: 'integer' | ||
| 49 | default_value: 0 | ||
| 50 | extra: {unsigned => 1} | ||
| 51 | is_foreign_key: 1 | ||
| 52 | is_nullable: 0 | ||
| 53 | |||
| 54 | =cut | ||
| 55 | |||
| 56 | __PACKAGE__->add_columns( | ||
| 57 | "type1", | ||
| 58 | { | ||
| 59 | data_type => "integer", | ||
| 60 | default_value => 0, | ||
| 61 | extra => { unsigned => 1 }, | ||
| 62 | is_foreign_key => 1, | ||
| 63 | is_nullable => 0, | ||
| 64 | }, | ||
| 65 | "type2", | ||
| 66 | { | ||
| 67 | data_type => "integer", | ||
| 68 | default_value => 0, | ||
| 69 | extra => { unsigned => 1 }, | ||
| 70 | is_foreign_key => 1, | ||
| 71 | is_nullable => 0, | ||
| 72 | }, | ||
| 73 | ); | ||
| 74 | |||
| 75 | =head1 UNIQUE CONSTRAINTS | ||
| 76 | |||
| 77 | =head2 C<type1_2> | ||
| 78 | |||
| 79 | =over 4 | ||
| 80 | |||
| 81 | =item * L</type1> | ||
| 82 | |||
| 83 | =item * L</type2> | ||
| 84 | |||
| 85 | =back | ||
| 86 | |||
| 87 | =cut | ||
| 88 | |||
| 89 | __PACKAGE__->add_unique_constraint("type1_2", ["type1", "type2"]); | ||
| 90 | |||
| 91 | =head1 RELATIONS | ||
| 92 | |||
| 93 | =head2 type1 | ||
| 94 | |||
| 95 | Type: belongs_to | ||
| 96 | |||
| 97 | Related object: L<Schema::RackTables::0_20_8::Result::PortOuterInterface> | ||
| 98 | |||
| 99 | =cut | ||
| 100 | |||
| 101 | __PACKAGE__->belongs_to( | ||
| 102 | "type1", | ||
| 103 | "Schema::RackTables::0_20_8::Result::PortOuterInterface", | ||
| 104 | { id => "type1" }, | ||
| 105 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 106 | ); | ||
| 107 | |||
| 108 | =head2 type2 | ||
| 109 | |||
| 110 | Type: belongs_to | ||
| 111 | |||
| 112 | Related object: L<Schema::RackTables::0_20_8::Result::PortOuterInterface> | ||
| 113 | |||
| 114 | =cut | ||
| 115 | |||
| 116 | __PACKAGE__->belongs_to( | ||
| 117 | "type2", | ||
| 118 | "Schema::RackTables::0_20_8::Result::PortOuterInterface", | ||
| 119 | { id => "type2" }, | ||
| 120 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 121 | ); | ||
| 122 | |||
| 123 | |||
| 124 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08 | ||
| 125 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Atb3ir57SSkAAp5NwMrTRQ | ||
| 126 | |||
| 127 | |||
| 128 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 129 | 1; |