| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Schema::RackTables::0_20_11::Result::PatchCableType; | ||
| 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_11::Result::PatchCableType | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 2 | ▶ | use base 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 2 | __PACKAGE__->load_components("InflateColumn::DateTime"); | |
| 29 | |||
| 30 | =head1 TABLE: C<PatchCableType> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 2 | __PACKAGE__->table("PatchCableType"); | |
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_auto_increment: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 origin | ||
| 46 | |||
| 47 | data_type: 'enum' | ||
| 48 | default_value: 'custom' | ||
| 49 | extra: {list => ["default","custom"]} | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =head2 pctype | ||
| 53 | |||
| 54 | data_type: 'char' | ||
| 55 | is_nullable: 0 | ||
| 56 | size: 64 | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | 2 | __PACKAGE__->add_columns( | |
| 61 | "id", | ||
| 62 | { | ||
| 63 | data_type => "integer", | ||
| 64 | extra => { unsigned => 1 }, | ||
| 65 | is_auto_increment => 1, | ||
| 66 | is_nullable => 0, | ||
| 67 | }, | ||
| 68 | "origin", | ||
| 69 | { | ||
| 70 | data_type => "enum", | ||
| 71 | default_value => "custom", | ||
| 72 | extra => { list => ["default", "custom"] }, | ||
| 73 | is_nullable => 0, | ||
| 74 | }, | ||
| 75 | "pctype", | ||
| 76 | { data_type => "char", is_nullable => 0, size => 64 }, | ||
| 77 | ); | ||
| 78 | |||
| 79 | =head1 PRIMARY KEY | ||
| 80 | |||
| 81 | =over 4 | ||
| 82 | |||
| 83 | =item * L</id> | ||
| 84 | |||
| 85 | =back | ||
| 86 | |||
| 87 | =cut | ||
| 88 | |||
| 89 | 2 | __PACKAGE__->set_primary_key("id"); | |
| 90 | |||
| 91 | =head1 UNIQUE CONSTRAINTS | ||
| 92 | |||
| 93 | =head2 C<pctype_per_origin> | ||
| 94 | |||
| 95 | =over 4 | ||
| 96 | |||
| 97 | =item * L</pctype> | ||
| 98 | |||
| 99 | =item * L</origin> | ||
| 100 | |||
| 101 | =back | ||
| 102 | |||
| 103 | =cut | ||
| 104 | |||
| 105 | 2 | __PACKAGE__->add_unique_constraint("pctype_per_origin", ["pctype", "origin"]); | |
| 106 | |||
| 107 | =head1 RELATIONS | ||
| 108 | |||
| 109 | =head2 patch_cable_connector_compats | ||
| 110 | |||
| 111 | Type: has_many | ||
| 112 | |||
| 113 | Related object: L<Schema::RackTables::0_20_11::Result::PatchCableConnectorCompat> | ||
| 114 | |||
| 115 | =cut | ||
| 116 | |||
| 117 | 2 | __PACKAGE__->has_many( | |
| 118 | "patch_cable_connector_compats", | ||
| 119 | "Schema::RackTables::0_20_11::Result::PatchCableConnectorCompat", | ||
| 120 | { "foreign.pctype_id" => "self.id" }, | ||
| 121 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 122 | ); | ||
| 123 | |||
| 124 | =head2 patch_cable_oifcompats | ||
| 125 | |||
| 126 | Type: has_many | ||
| 127 | |||
| 128 | Related object: L<Schema::RackTables::0_20_11::Result::PatchCableOIFCompat> | ||
| 129 | |||
| 130 | =cut | ||
| 131 | |||
| 132 | 2 | __PACKAGE__->has_many( | |
| 133 | "patch_cable_oifcompats", | ||
| 134 | "Schema::RackTables::0_20_11::Result::PatchCableOIFCompat", | ||
| 135 | { "foreign.pctype_id" => "self.id" }, | ||
| 136 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 137 | ); | ||
| 138 | |||
| 139 | =head2 connectors | ||
| 140 | |||
| 141 | Type: many_to_many | ||
| 142 | |||
| 143 | Composing rels: L</patch_cable_connector_compats> -> connector | ||
| 144 | |||
| 145 | =cut | ||
| 146 | |||
| 147 | 2 | __PACKAGE__->many_to_many("connectors", "patch_cable_connector_compats", "connector"); | |
| 148 | |||
| 149 | =head2 oifs | ||
| 150 | |||
| 151 | Type: many_to_many | ||
| 152 | |||
| 153 | Composing rels: L</patch_cable_oifcompats> -> oif | ||
| 154 | |||
| 155 | =cut | ||
| 156 | |||
| 157 | 2 | __PACKAGE__->many_to_many("oifs", "patch_cable_oifcompats", "oif"); | |
| 158 | |||
| 159 | |||
| 160 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10 | ||
| 161 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VfzFk16rOjSQVhHmLKshOA | ||
| 162 | |||
| 163 | |||
| 164 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 165 | 2 | 1; | |