| 1 | 2 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Schema::RackTables::0_20_11::Result::AttributeValue; | ||
| 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::AttributeValue | ||
| 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<AttributeValue> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 2 | __PACKAGE__->table("AttributeValue"); | |
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 object_id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_foreign_key: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 object_tid | ||
| 46 | |||
| 47 | data_type: 'integer' | ||
| 48 | default_value: 0 | ||
| 49 | extra: {unsigned => 1} | ||
| 50 | is_foreign_key: 1 | ||
| 51 | is_nullable: 0 | ||
| 52 | |||
| 53 | =head2 attr_id | ||
| 54 | |||
| 55 | data_type: 'integer' | ||
| 56 | extra: {unsigned => 1} | ||
| 57 | is_foreign_key: 1 | ||
| 58 | is_nullable: 0 | ||
| 59 | |||
| 60 | =head2 string_value | ||
| 61 | |||
| 62 | data_type: 'char' | ||
| 63 | is_nullable: 1 | ||
| 64 | size: 255 | ||
| 65 | |||
| 66 | =head2 uint_value | ||
| 67 | |||
| 68 | data_type: 'integer' | ||
| 69 | extra: {unsigned => 1} | ||
| 70 | is_nullable: 1 | ||
| 71 | |||
| 72 | =head2 float_value | ||
| 73 | |||
| 74 | data_type: 'float' | ||
| 75 | is_nullable: 1 | ||
| 76 | |||
| 77 | =cut | ||
| 78 | |||
| 79 | 2 | __PACKAGE__->add_columns( | |
| 80 | "object_id", | ||
| 81 | { | ||
| 82 | data_type => "integer", | ||
| 83 | extra => { unsigned => 1 }, | ||
| 84 | is_foreign_key => 1, | ||
| 85 | is_nullable => 0, | ||
| 86 | }, | ||
| 87 | "object_tid", | ||
| 88 | { | ||
| 89 | data_type => "integer", | ||
| 90 | default_value => 0, | ||
| 91 | extra => { unsigned => 1 }, | ||
| 92 | is_foreign_key => 1, | ||
| 93 | is_nullable => 0, | ||
| 94 | }, | ||
| 95 | "attr_id", | ||
| 96 | { | ||
| 97 | data_type => "integer", | ||
| 98 | extra => { unsigned => 1 }, | ||
| 99 | is_foreign_key => 1, | ||
| 100 | is_nullable => 0, | ||
| 101 | }, | ||
| 102 | "string_value", | ||
| 103 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 104 | "uint_value", | ||
| 105 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, | ||
| 106 | "float_value", | ||
| 107 | { data_type => "float", is_nullable => 1 }, | ||
| 108 | ); | ||
| 109 | |||
| 110 | =head1 PRIMARY KEY | ||
| 111 | |||
| 112 | =over 4 | ||
| 113 | |||
| 114 | =item * L</object_id> | ||
| 115 | |||
| 116 | =item * L</attr_id> | ||
| 117 | |||
| 118 | =back | ||
| 119 | |||
| 120 | =cut | ||
| 121 | |||
| 122 | 2 | __PACKAGE__->set_primary_key("object_id", "attr_id"); | |
| 123 | |||
| 124 | =head1 RELATIONS | ||
| 125 | |||
| 126 | =head2 attribute_map | ||
| 127 | |||
| 128 | Type: belongs_to | ||
| 129 | |||
| 130 | Related object: L<Schema::RackTables::0_20_11::Result::AttributeMap> | ||
| 131 | |||
| 132 | =cut | ||
| 133 | |||
| 134 | 2 | __PACKAGE__->belongs_to( | |
| 135 | "attribute_map", | ||
| 136 | "Schema::RackTables::0_20_11::Result::AttributeMap", | ||
| 137 | { attr_id => "attr_id", objtype_id => "object_tid" }, | ||
| 138 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 139 | ); | ||
| 140 | |||
| 141 | =head2 object | ||
| 142 | |||
| 143 | Type: belongs_to | ||
| 144 | |||
| 145 | Related object: L<Schema::RackTables::0_20_11::Result::Object> | ||
| 146 | |||
| 147 | =cut | ||
| 148 | |||
| 149 | 2 | __PACKAGE__->belongs_to( | |
| 150 | "object", | ||
| 151 | "Schema::RackTables::0_20_11::Result::Object", | ||
| 152 | { id => "object_id", objtype_id => "object_tid" }, | ||
| 153 | { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 154 | ); | ||
| 155 | |||
| 156 | |||
| 157 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2016-05-12 22:07:10 | ||
| 158 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YDWdVPwvt157vxFLx6g1WQ | ||
| 159 | |||
| 160 | |||
| 161 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 162 | 2 | 1; | |