« RackTables/0_20_11/Result/PatchCableConnectorCompat.pm
↑ Summary
RackTables/0_20_11/Result/PatchCableHeapLog.pm »
| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Schema::RackTables::0_20_11::Result::PatchCableHeap; | ||
| 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::PatchCableHeap | ||
| 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<PatchCableHeap> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 2 | __PACKAGE__->table("PatchCableHeap"); | |
| 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 pctype_id | ||
| 46 | |||
| 47 | data_type: 'integer' | ||
| 48 | extra: {unsigned => 1} | ||
| 49 | is_foreign_key: 1 | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =head2 end1_conn_id | ||
| 53 | |||
| 54 | data_type: 'integer' | ||
| 55 | extra: {unsigned => 1} | ||
| 56 | is_foreign_key: 1 | ||
| 57 | is_nullable: 0 | ||
| 58 | |||
| 59 | =head2 end2_conn_id | ||
| 60 | |||
| 61 | data_type: 'integer' | ||
| 62 | extra: {unsigned => 1} | ||
| 63 | is_foreign_key: 1 | ||
| 64 | is_nullable: 0 | ||
| 65 | |||
| 66 | =head2 amount | ||
| 67 | |||
| 68 | data_type: 'smallint' | ||
| 69 | default_value: 0 | ||
| 70 | extra: {unsigned => 1} | ||
| 71 | is_nullable: 0 | ||
| 72 | |||
| 73 | =head2 length | ||
| 74 | |||
| 75 | data_type: 'decimal' | ||
| 76 | default_value: 1.00 | ||
| 77 | extra: {unsigned => 1} | ||
| 78 | is_nullable: 0 | ||
| 79 | size: [5,2] | ||
| 80 | |||
| 81 | =head2 description | ||
| 82 | |||
| 83 | data_type: 'char' | ||
| 84 | is_nullable: 1 | ||
| 85 | size: 255 | ||
| 86 | |||
| 87 | =cut | ||
| 88 | |||
| 89 | 2 | __PACKAGE__->add_columns( | |
| 90 | "id", | ||
| 91 | { | ||
| 92 | data_type => "integer", | ||
| 93 | extra => { unsigned => 1 }, | ||
| 94 | is_auto_increment => 1, | ||
| 95 | is_nullable => 0, | ||
| 96 | }, | ||
| 97 | "pctype_id", | ||
| 98 | { | ||
| 99 | data_type => "integer", | ||
| 100 | extra => { unsigned => 1 }, | ||
| 101 | is_foreign_key => 1, | ||
| 102 | is_nullable => 0, | ||
| 103 | }, | ||
| 104 | "end1_conn_id", | ||
| 105 | { | ||
| 106 | data_type => "integer", | ||
| 107 | extra => { unsigned => 1 }, | ||
| 108 | is_foreign_key => 1, | ||
| 109 | is_nullable => 0, | ||
| 110 | }, | ||
| 111 | "end2_conn_id", | ||
| 112 | { | ||
| 113 | data_type => "integer", | ||
| 114 | extra => { unsigned => 1 }, | ||
| 115 | is_foreign_key => 1, | ||
| 116 | is_nullable => 0, | ||
| 117 | }, | ||
| 118 | "amount", | ||
| 119 | { | ||
| 120 | data_type => "smallint", | ||
| 121 | default_value => 0, | ||
| 122 | extra => { unsigned => 1 }, | ||
| 123 | is_nullable => 0, | ||
| 124 | }, | ||
| 125 | "length", | ||
| 126 | { | ||
| 127 | data_type => "decimal", | ||
| 128 | default_value => "1.00", | ||
| 129 | extra => { unsigned => 1 }, | ||
| 130 | is_nullable => 0, | ||
| 131 | size => [5, 2], | ||
| 132 | }, | ||
| 133 | "description", | ||
| 134 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 135 | ); | ||
| 136 | |||
| 137 | =head1 PRIMARY KEY | ||
| 138 | |||
| 139 | =over 4 | ||
| 140 | |||
| 141 | =item * L</id> | ||
| 142 | |||
| 143 | =back | ||
| 144 | |||
| 145 | =cut | ||
| 146 | |||
| 147 | 2 | __PACKAGE__->set_primary_key("id"); | |
| 148 | |||
| 149 | =head1 RELATIONS | ||
| 150 | |||
| 151 | =head2 patch_cable_connector_compat_pctype_id_end1_conn_id | ||
| 152 | |||
| 153 | Type: belongs_to | ||
| 154 | |||
| 155 | Related object: L<Schema::RackTables::0_20_11::Result::PatchCableConnectorCompat> | ||
| 156 | |||
| 157 | =cut | ||
| 158 | |||
| 159 | 2 | __PACKAGE__->belongs_to( | |
| 160 | "patch_cable_connector_compat_pctype_id_end1_conn_id", | ||
| 161 | "Schema::RackTables::0_20_11::Result::PatchCableConnectorCompat", | ||
| 162 | { connector_id => "end1_conn_id", pctype_id => "pctype_id" }, | ||
| 163 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 164 | ); | ||
| 165 | |||
| 166 | =head2 patch_cable_connector_compat_pctype_id_end2_conn_id | ||
| 167 | |||
| 168 | Type: belongs_to | ||
| 169 | |||
| 170 | Related object: L<Schema::RackTables::0_20_11::Result::PatchCableConnectorCompat> | ||
| 171 | |||
| 172 | =cut | ||
| 173 | |||
| 174 | 2 | __PACKAGE__->belongs_to( | |
| 175 | "patch_cable_connector_compat_pctype_id_end2_conn_id", | ||
| 176 | "Schema::RackTables::0_20_11::Result::PatchCableConnectorCompat", | ||
| 177 | { connector_id => "end2_conn_id", pctype_id => "pctype_id" }, | ||
| 178 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 179 | ); | ||
| 180 | |||
| 181 | =head2 patch_cable_heap_logs | ||
| 182 | |||
| 183 | Type: has_many | ||
| 184 | |||
| 185 | Related object: L<Schema::RackTables::0_20_11::Result::PatchCableHeapLog> | ||
| 186 | |||
| 187 | =cut | ||
| 188 | |||
| 189 | 2 | __PACKAGE__->has_many( | |
| 190 | "patch_cable_heap_logs", | ||
| 191 | "Schema::RackTables::0_20_11::Result::PatchCableHeapLog", | ||
| 192 | { "foreign.heap_id" => "self.id" }, | ||
| 193 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 194 | ); | ||
| 195 | |||
| 196 | |||
| 197 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10 | ||
| 198 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/beFAGhb4BGrtBauZheCYw | ||
| 199 | |||
| 200 | |||
| 201 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 202 | 2 | 1; | |