lib/Rapi/Blog/DB/Result/Hit.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 34 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 Rapi::Blog::DB::Result::Hit;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 use strict;
8 use warnings;
9  
10 use Moose;
11 use MooseX::NonMoose;
12 use MooseX::MarkAsMethods autoclean => 1;
13 extends 'DBIx::Class::Core';
14 __PACKAGE__->load_components("InflateColumn::DateTime");
15 __PACKAGE__->table("hit");
16 __PACKAGE__->add_columns(
17 "id",
18 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
19 "post_id",
20 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
21 "ts",
22 { data_type => "datetime", is_nullable => 0 },
23 "client_ip",
24 { data_type => "varchar", is_nullable => 1, size => 16 },
25 "client_hostname",
26 { data_type => "varchar", is_nullable => 1, size => 255 },
27 "uri",
28 { data_type => "varchar", is_nullable => 1, size => 512 },
29 "method",
30 { data_type => "varchar", is_nullable => 1, size => 8 },
31 "user_agent",
32 { data_type => "varchar", is_nullable => 1, size => 1024 },
33 "referer",
34 { data_type => "varchar", is_nullable => 1, size => 512 },
35 "serialized_request",
36 { data_type => "text", is_nullable => 1 },
37 );
38 __PACKAGE__->set_primary_key("id");
39 __PACKAGE__->belongs_to(
40 "post",
41 "Rapi::Blog::DB::Result::Post",
42 { id => "post_id" },
43 {
44 is_deferrable => 0,
45 join_type => "LEFT",
46 on_delete => "CASCADE",
47 on_update => "CASCADE",
48 },
49 );
50 __PACKAGE__->has_many(
51 "preauth_action_events",
52 "Rapi::Blog::DB::Result::PreauthActionEvent",
53 { "foreign.hit_id" => "self.id" },
54 { cascade_copy => 0, cascade_delete => 0 },
55 );
56  
57  
58 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2018-10-28 02:04:56
59 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c1TGt5mrSyCobHmzHF8/Yg
60  
61 __PACKAGE__->load_components('+Rapi::Blog::DB::Component::SafeResult');
62  
63 # You can replace this text with custom code or comments, and it will be preserved on regeneration
64 __PACKAGE__->meta->make_immutable;
65 1;