lib/MojoMojo/Schema/Result/Journal.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/MojoMojo/Schema/Result/Entry.pm ↑ Summary lib/MojoMojo/Schema/Result/Link.pm »
1 package MojoMojo::Schema::Result::Journal;
2  
3 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 40 ▶use parent qw/MojoMojo::Schema::Base::Result/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 40 __PACKAGE__->load_components( "Core" );
9 40 __PACKAGE__->table("journal");
10 40 __PACKAGE__->add_columns(
11 "pageid",
12 { data_type => "INTEGER", is_nullable => 0, size => undef },
13 "name",
14 { data_type => "VARCHAR", is_nullable => 0, size => 100 },
15 "dateformat",
16 { data_type => "VARCHAR", is_nullable => 0, size => 20, default => "%F" },
17 "defaultlocation",
18 { data_type => "VARCHAR", is_nullable => 0, size => 100 },
19 );
20 40 __PACKAGE__->set_primary_key("pageid");
21 40 __PACKAGE__->has_many( "entries", "MojoMojo::Schema::Result::Entry", { "foreign.journal" => "self.pageid" } );
22 40 __PACKAGE__->belongs_to( "pageid", "MojoMojo::Schema::Result::Page", { id => "pageid" } );
23  
24 =head1 NAME
25  
26 MojoMojo::Schema::Result::Journal - store journals
27  
28 =head1 AUTHOR
29  
30 Marcus Ramberg <mramberg@cpan.org>
31  
32 =head1 LICENSE
33  
34 This library is free software. You can redistribute it and/or modify
35 it under the same terms as Perl itself.
36  
37 =cut
38  
39 40 1;
« lib/MojoMojo/Schema/Result/Entry.pm ↑ Summary lib/MojoMojo/Schema/Result/Link.pm »