blib/lib/RackTables/Schema/Result/RackObjectHistory.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/RackObject.pm ↑ Summary blib/lib/RackTables/Schema/Result/RackRow.pm »
1 package RackTables::Schema::Result::RackObjectHistory;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::RackObjectHistory
18  
19 =cut
20  
21 1 __PACKAGE__->table("RackObjectHistory");
22  
23 =head1 ACCESSORS
24  
25 =head2 id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_foreign_key: 1
30 is_nullable: 1
31  
32 =head2 name
33  
34 data_type: 'char'
35 is_nullable: 1
36 size: 255
37  
38 =head2 label
39  
40 data_type: 'char'
41 is_nullable: 1
42 size: 255
43  
44 =head2 objtype_id
45  
46 data_type: 'integer'
47 extra: {unsigned => 1}
48 is_nullable: 1
49  
50 =head2 asset_no
51  
52 data_type: 'char'
53 is_nullable: 1
54 size: 64
55  
56 =head2 has_problems
57  
58 data_type: 'enum'
59 default_value: 'no'
60 extra: {list => ["yes","no"]}
61 is_nullable: 0
62  
63 =head2 comment
64  
65 data_type: 'text'
66 is_nullable: 1
67  
68 =head2 ctime
69  
70 data_type: 'timestamp'
71 datetime_undef_if_invalid: 1
72 default_value: current_timestamp
73 is_nullable: 0
74  
75 =head2 user_name
76  
77 data_type: 'char'
78 is_nullable: 1
79 size: 64
80  
81 =cut
82  
83 1 __PACKAGE__->add_columns(
84 "id",
85 {
86 data_type => "integer",
87 extra => { unsigned => 1 },
88 is_foreign_key => 1,
89 is_nullable => 1,
90 },
91 "name",
92 { data_type => "char", is_nullable => 1, size => 255 },
93 "label",
94 { data_type => "char", is_nullable => 1, size => 255 },
95 "objtype_id",
96 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
97 "asset_no",
98 { data_type => "char", is_nullable => 1, size => 64 },
99 "has_problems",
100 {
101 data_type => "enum",
102 default_value => "no",
103 extra => { list => ["yes", "no"] },
104 is_nullable => 0,
105 },
106 "comment",
107 { data_type => "text", is_nullable => 1 },
108 "ctime",
109 {
110 data_type => "timestamp",
111 datetime_undef_if_invalid => 1,
112 default_value => \"current_timestamp",
113 is_nullable => 0,
114 },
115 "user_name",
116 { data_type => "char", is_nullable => 1, size => 64 },
117 );
118  
119 =head1 RELATIONS
120  
121 =head2 id
122  
123 Type: belongs_to
124  
125 Related object: L<RackTables::Schema::Result::RackObject>
126  
127 =cut
128  
129 1 __PACKAGE__->belongs_to(
130 "id",
131 "RackTables::Schema::Result::RackObject",
132 { id => "id" },
133 {
134 is_deferrable => 1,
135 join_type => "LEFT",
136 on_delete => "CASCADE",
137 on_update => "CASCADE",
138 },
139 );
140  
141  
142 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bNoKq/FcIzs2OFsXmRXwkA
144  
145  
146 # You can replace this text with custom code or comments, and it will be preserved on regeneration
147 1 __PACKAGE__->meta->make_immutable;
148 1 1;
« blib/lib/RackTables/Schema/Result/RackObject.pm ↑ Summary blib/lib/RackTables/Schema/Result/RackRow.pm »