| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_16_0::Result::AttributeMap; | ||
| 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_16_0::Result::AttributeMap | ||
| 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<AttributeMap> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("AttributeMap"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 objtype_id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | default_value: 1 | ||
| 42 | extra: {unsigned => 1} | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 attr_id | ||
| 46 | |||
| 47 | data_type: 'integer' | ||
| 48 | default_value: 1 | ||
| 49 | extra: {unsigned => 1} | ||
| 50 | is_nullable: 0 | ||
| 51 | |||
| 52 | =head2 chapter_no | ||
| 53 | |||
| 54 | data_type: 'integer' | ||
| 55 | extra: {unsigned => 1} | ||
| 56 | is_nullable: 0 | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | __PACKAGE__->add_columns( | ||
| 61 | "objtype_id", | ||
| 62 | { | ||
| 63 | data_type => "integer", | ||
| 64 | default_value => 1, | ||
| 65 | extra => { unsigned => 1 }, | ||
| 66 | is_nullable => 0, | ||
| 67 | }, | ||
| 68 | "attr_id", | ||
| 69 | { | ||
| 70 | data_type => "integer", | ||
| 71 | default_value => 1, | ||
| 72 | extra => { unsigned => 1 }, | ||
| 73 | is_nullable => 0, | ||
| 74 | }, | ||
| 75 | "chapter_no", | ||
| 76 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 }, | ||
| 77 | ); | ||
| 78 | |||
| 79 | =head1 UNIQUE CONSTRAINTS | ||
| 80 | |||
| 81 | =head2 C<objtype_id> | ||
| 82 | |||
| 83 | =over 4 | ||
| 84 | |||
| 85 | =item * L</objtype_id> | ||
| 86 | |||
| 87 | =item * L</attr_id> | ||
| 88 | |||
| 89 | =back | ||
| 90 | |||
| 91 | =cut | ||
| 92 | |||
| 93 | __PACKAGE__->add_unique_constraint("objtype_id", ["objtype_id", "attr_id"]); | ||
| 94 | |||
| 95 | |||
| 96 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:04:58 | ||
| 97 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CfIZofAB0QInlCyjlb3ACQ | ||
| 98 | |||
| 99 | |||
| 100 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 101 | 1; |