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

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 30 / 30 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/TagStorage.pm ↑ Summary blib/lib/RackTables/Schema/Result/UserAccount.pm »
1 package RackTables::Schema::Result::TagTree;
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::TagTree
18  
19 =cut
20  
21 1 __PACKAGE__->table("TagTree");
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_id
33  
34 data_type: 'integer'
35 extra: {unsigned => 1}
36 is_foreign_key: 1
37 is_nullable: 1
38  
39 =head2 tag
40  
41 data_type: 'char'
42 is_nullable: 1
43 size: 255
44  
45 =cut
46  
47 1 __PACKAGE__->add_columns(
48 "id",
49 {
50 data_type => "integer",
51 extra => { unsigned => 1 },
52 is_auto_increment => 1,
53 is_nullable => 0,
54 },
55 "parent_id",
56 {
57 data_type => "integer",
58 extra => { unsigned => 1 },
59 is_foreign_key => 1,
60 is_nullable => 1,
61 },
62 "tag",
63 { data_type => "char", is_nullable => 1, size => 255 },
64 );
65 1 __PACKAGE__->set_primary_key("id");
66 1 __PACKAGE__->add_unique_constraint("tag", ["tag"]);
67  
68 =head1 RELATIONS
69  
70 =head2 tag_storages
71  
72 Type: has_many
73  
74 Related object: L<RackTables::Schema::Result::TagStorage>
75  
76 =cut
77  
78 1 __PACKAGE__->has_many(
79 "tag_storages",
80 "RackTables::Schema::Result::TagStorage",
81 { "foreign.tag_id" => "self.id" },
82 { cascade_copy => 0, cascade_delete => 0 },
83 );
84  
85 =head2 parent
86  
87 Type: belongs_to
88  
89 Related object: L<RackTables::Schema::Result::TagTree>
90  
91 =cut
92  
93 1 __PACKAGE__->belongs_to(
94 "parent",
95 "RackTables::Schema::Result::TagTree",
96 { id => "parent_id" },
97 {
98 is_deferrable => 1,
99 join_type => "LEFT",
100 on_delete => "CASCADE",
101 on_update => "CASCADE",
102 },
103 );
104  
105 =head2 tag_trees
106  
107 Type: has_many
108  
109 Related object: L<RackTables::Schema::Result::TagTree>
110  
111 =cut
112  
113 1 __PACKAGE__->has_many(
114 "tag_trees",
115 "RackTables::Schema::Result::TagTree",
116 { "foreign.parent_id" => "self.id" },
117 { cascade_copy => 0, cascade_delete => 0 },
118 );
119  
120  
121 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
122 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VNr5kbAZMb6QJueW4wmRyA
123  
124  
125 # You can replace this text with custom code or comments, and it will be preserved on regeneration
126 1 __PACKAGE__->meta->make_immutable;
127 1 1;
« blib/lib/RackTables/Schema/Result/TagStorage.pm ↑ Summary blib/lib/RackTables/Schema/Result/UserAccount.pm »