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