« RackTables/0_19_11/Result/PortAllowedVLAN.pm
↑ Summary
RackTables/0_19_11/Result/PortInnerInterface.pm »
| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_19_11::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_19_11::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_nullable: 0 | ||
| 44 | |||
| 45 | =head2 type2 | ||
| 46 | |||
| 47 | data_type: 'integer' | ||
| 48 | default_value: 0 | ||
| 49 | extra: {unsigned => 1} | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | __PACKAGE__->add_columns( | ||
| 55 | "type1", | ||
| 56 | { | ||
| 57 | data_type => "integer", | ||
| 58 | default_value => 0, | ||
| 59 | extra => { unsigned => 1 }, | ||
| 60 | is_nullable => 0, | ||
| 61 | }, | ||
| 62 | "type2", | ||
| 63 | { | ||
| 64 | data_type => "integer", | ||
| 65 | default_value => 0, | ||
| 66 | extra => { unsigned => 1 }, | ||
| 67 | is_nullable => 0, | ||
| 68 | }, | ||
| 69 | ); | ||
| 70 | |||
| 71 | =head1 UNIQUE CONSTRAINTS | ||
| 72 | |||
| 73 | =head2 C<type1_2> | ||
| 74 | |||
| 75 | =over 4 | ||
| 76 | |||
| 77 | =item * L</type1> | ||
| 78 | |||
| 79 | =item * L</type2> | ||
| 80 | |||
| 81 | =back | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | __PACKAGE__->add_unique_constraint("type1_2", ["type1", "type2"]); | ||
| 86 | |||
| 87 | |||
| 88 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:48 | ||
| 89 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sx+bL0H2kYw9uh/ekbLyzw | ||
| 90 | |||
| 91 | |||
| 92 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 93 | 1; |