File Coverage

blib/lib/Perl5/CoreSmokeDB/Schema/Result/SmokeConfig.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1 3     3   1422 use utf8;
  3         5  
  3         16  
2              
3             # Created by DBIx::Class::Schema::Loader
4             # DO NOT MODIFY THE FIRST PART OF THIS FILE
5              
6             =head1 NAME
7              
8             Perl5::CoreSmokeDB::Schema::Result::SmokeConfig
9              
10             =cut
11              
12             use strict;
13 3     3   123 use warnings;
  3         7  
  3         54  
14 3     3   12  
  3         6  
  3         68  
15             use base 'DBIx::Class::Core';
16 3     3   15  
  3         3  
  3         538  
17             =head1 COMPONENTS LOADED
18              
19             =over 4
20              
21             =item * L<DBIx::Class::InflateColumn::DateTime>
22              
23             =back
24              
25             =cut
26              
27             __PACKAGE__->load_components("InflateColumn::DateTime");
28              
29             =head1 TABLE: C<smoke_config>
30              
31             =cut
32              
33             __PACKAGE__->table("smoke_config");
34              
35             =head1 ACCESSORS
36              
37             =head2 id
38              
39             data_type: 'integer'
40             is_auto_increment: 1
41             is_nullable: 0
42             sequence: 'smoke_config_id_seq'
43              
44             =head2 md5
45              
46             data_type: 'text'
47             is_nullable: 0
48             original: {data_type => "varchar"}
49              
50             =head2 config
51              
52             data_type: 'text'
53             is_nullable: 1
54             original: {data_type => "varchar"}
55              
56             =cut
57              
58             __PACKAGE__->add_columns(
59             "id",
60             {
61             data_type => "integer",
62             is_auto_increment => 1,
63             is_nullable => 0,
64             sequence => "smoke_config_id_seq",
65             },
66             "md5",
67             {
68             data_type => "text",
69             is_nullable => 0,
70             original => { data_type => "varchar" },
71             },
72             "config",
73             {
74             data_type => "text",
75             is_nullable => 1,
76             original => { data_type => "varchar" },
77             },
78             );
79              
80             =head1 PRIMARY KEY
81              
82             =over 4
83              
84             =item * L</id>
85              
86             =back
87              
88             =cut
89              
90             __PACKAGE__->set_primary_key("id");
91              
92             =head1 UNIQUE CONSTRAINTS
93              
94             =head2 C<smoke_config_md5_key>
95              
96             =over 4
97              
98             =item * L</md5>
99              
100             =back
101              
102             =cut
103              
104             __PACKAGE__->add_unique_constraint("smoke_config_md5_key", ["md5"]);
105              
106             =head1 RELATIONS
107              
108             =head2 reports
109              
110             Type: has_many
111              
112             Related object: L<Perl5::CoreSmokeDB::Schema::Result::Report>
113              
114             =cut
115              
116             __PACKAGE__->has_many(
117             "reports",
118             "Perl5::CoreSmokeDB::Schema::Result::Report",
119             { "foreign.sconfig_id" => "self.id" },
120             { cascade_copy => 0, cascade_delete => 0 },
121             );
122              
123              
124             # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-09-06 09:15:22
125             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:DEINsU6dlw5NyLK/K/pFaQ
126              
127              
128             # You can replace this text with custom code or comments, and it will be preserved on regeneration
129             1;