blib/lib/auto/share/dist/Dancer2/skel/tutorial/lib/AppFile/Schema/Result/Entry.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 21 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 [d2% appname %2d]::Schema::Result::Entry;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 =head1 NAME
8  
9 [d2% appname %2d]::Schema::Result::Entry
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<entries>
31  
32 =cut
33  
34 __PACKAGE__->table("entries");
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 title
45  
46 data_type: 'text'
47 is_nullable: 0
48  
49 =head2 summary
50  
51 data_type: 'text'
52 is_nullable: 0
53  
54 =head2 content
55  
56 data_type: 'text'
57 is_nullable: 0
58  
59 =head2 created_at
60  
61 data_type: 'timestamp'
62 default_value: current_timestamp
63 is_nullable: 1
64  
65 =cut
66  
67 __PACKAGE__->add_columns(
68 "id",
69 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
70 "title",
71 { data_type => "text", is_nullable => 0 },
72 "summary",
73 { data_type => "text", is_nullable => 0 },
74 "content",
75 { data_type => "text", is_nullable => 0 },
76 "created_at",
77 {
78 data_type => "timestamp",
79 default_value => \"current_timestamp",
80 is_nullable => 1,
81 },
82 );
83  
84 =head1 PRIMARY KEY
85  
86 =over 4
87  
88 =item * L</id>
89  
90 =back
91  
92 =cut
93  
94 __PACKAGE__->set_primary_key("id");
95  
96  
97 # Created by DBIx::Class::Schema::Loader v0.07052 @ 2025-01-17 22:29:56
98 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Bc6T9MmYLjX+chsg3HDmDQ
99  
100  
101 # You can replace this text with custom code or comments, and it will be preserved on regeneration
102 1;