blib/lib/Strehler/Schema/RSS/Result/Rsschannel.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package Strehler::Schema::RSS::Result::Rsschannel;
3 $Strehler::Schema::RSS::Result::Rsschannel::VERSION = '1.1.2';
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 Strehler::Schema::RSS::Result::Rsschannel
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<RSSCHANNELS>
31  
32 =cut
33  
34 __PACKAGE__->table("RSSCHANNELS");
35  
36 =head1 ACCESSORS
37  
38 =head2 id
39  
40 data_type: 'integer'
41 is_auto_increment: 1
42 is_nullable: 0
43  
44 =head2 link
45  
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 120
49  
50 =head2 entity_type
51  
52 data_type: 'varchar'
53 is_nullable: 1
54 size: 100
55  
56 =head2 category
57  
58 data_type: 'integer'
59 is_foreign_key: 1
60 is_nullable: 1
61  
62 =head2 deep
63  
64 data_type: 'tinyint'
65 is_nullable: 1
66  
67 =head2 title_field
68  
69 data_type: 'varchar'
70 is_nullable: 1
71 size: 100
72  
73 =head2 description_field
74  
75 data_type: 'varchar'
76 is_nullable: 1
77 size: 100
78  
79 =head2 link_field
80  
81 data_type: 'varchar'
82 is_nullable: 1
83 size: 100
84  
85 =head2 link_template
86  
87 data_type: 'varchar'
88 is_nullable: 1
89 size: 100
90  
91 =head2 order_by
92  
93 data_type: 'varchar'
94 is_nullable: 1
95 size: 10
96  
97 =head2 published
98  
99 data_type: 'tinyint'
100 is_nullable: 1
101  
102 =cut
103  
104 __PACKAGE__->add_columns(
105 "id",
106 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
107 "link",
108 { data_type => "varchar", is_nullable => 1, size => 120 },
109 "entity_type",
110 { data_type => "varchar", is_nullable => 1, size => 100 },
111 "category",
112 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
113 "deep",
114 { data_type => "tinyint", is_nullable => 1 },
115 "title_field",
116 { data_type => "varchar", is_nullable => 1, size => 100 },
117 "description_field",
118 { data_type => "varchar", is_nullable => 1, size => 100 },
119 "link_field",
120 { data_type => "varchar", is_nullable => 1, size => 100 },
121 "link_template",
122 { data_type => "varchar", is_nullable => 1, size => 100 },
123 "order_by",
124 { data_type => "varchar", is_nullable => 1, size => 64 },
125 "published",
126 { data_type => "tinyint", is_nullable => 1 },
127 );
128  
129 =head1 PRIMARY KEY
130  
131 =over 4
132  
133 =item * L</id>
134  
135 =back
136  
137 =cut
138  
139 __PACKAGE__->set_primary_key("id");
140  
141 =head1 RELATIONS
142  
143 =head2 category
144  
145 Type: belongs_to
146  
147 Related object: L<Strehler::Schema::RSS::Result::Category>
148  
149 =cut
150  
151 __PACKAGE__->belongs_to(
152 "category",
153 "Strehler::Schema::Result::Category",
154 { id => "category" },
155 {
156 is_deferrable => 1,
157 join_type => "LEFT",
158 on_delete => "RESTRICT",
159 on_update => "RESTRICT",
160 },
161 );
162  
163 =head2 rsschannel_headers
164  
165 Type: has_many
166  
167 Related object: L<Strehler::Schema::RSS::Result::RsschannelHeader>
168  
169 =cut
170  
171 __PACKAGE__->has_many(
172 "rsschannel_headers",
173 "Strehler::Schema::RSS::Result::RsschannelHeader",
174 { "foreign.rsschannel" => "self.id" },
175 { cascade_copy => 0, cascade_delete => 0 },
176 );
177  
178  
179 # Created by DBIx::Class::Schema::Loader v0.07037 @ 2015-06-10 19:30:24
180 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:o4LDBRYojYLHoaiH7WwKsw
181  
182  
183 # You can replace this text with custom code or comments, and it will be preserved on regeneration
184 1;