blib/lib/RackTables/Schema/Result/EntityLink.pm

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/Dictionary.pm ↑ Summary blib/lib/RackTables/Schema/Result/File.pm »
1 package RackTables::Schema::Result::EntityLink;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::EntityLink
18  
19 =cut
20  
21 1 __PACKAGE__->table("EntityLink");
22  
23 =head1 ACCESSORS
24  
25 =head2 id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 parent_entity_type
33  
34 data_type: 'enum'
35 extra: {list => ["ipv4net","ipv4rspool","ipv4vs","ipv6net","object","rack","user"]}
36 is_nullable: 0
37  
38 =head2 parent_entity_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_nullable: 0
43  
44 =head2 child_entity_type
45  
46 data_type: 'enum'
47 extra: {list => ["file","object"]}
48 is_nullable: 0
49  
50 =head2 child_entity_id
51  
52 data_type: 'integer'
53 extra: {unsigned => 1}
54 is_nullable: 0
55  
56 =cut
57  
58 1 __PACKAGE__->add_columns(
59 "id",
60 {
61 data_type => "integer",
62 extra => { unsigned => 1 },
63 is_auto_increment => 1,
64 is_nullable => 0,
65 },
66 "parent_entity_type",
67 {
68 data_type => "enum",
69 extra => {
70 list => [
71 "ipv4net",
72 "ipv4rspool",
73 "ipv4vs",
74 "ipv6net",
75 "object",
76 "rack",
77 "user",
78 ],
79 },
80 is_nullable => 0,
81 },
82 "parent_entity_id",
83 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
84 "child_entity_type",
85 {
86 data_type => "enum",
87 extra => { list => ["file", "object"] },
88 is_nullable => 0,
89 },
90 "child_entity_id",
91 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
92 );
93 1 __PACKAGE__->set_primary_key("id");
94 1 __PACKAGE__->add_unique_constraint(
95 "EntityLink-unique",
96 [
97 "parent_entity_type",
98 "parent_entity_id",
99 "child_entity_type",
100 "child_entity_id",
101 ],
102 );
103  
104  
105 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
106 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ATYOD30L0SEcsfWclmHk5Q
107  
108  
109 # You can replace this text with custom code or comments, and it will be preserved on regeneration
110 1 __PACKAGE__->meta->make_immutable;
111 1 1;
« blib/lib/RackTables/Schema/Result/Dictionary.pm ↑ Summary blib/lib/RackTables/Schema/Result/File.pm »