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

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 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/Atom.pm ↑ Summary blib/lib/RackTables/Schema/Result/AttributeMap.pm »
1 package RackTables::Schema::Result::Attribute;
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::Attribute
18  
19 =cut
20  
21 1 __PACKAGE__->table("Attribute");
22  
23 =head1 ACCESSORS
24  
25 =head2 id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 type
33  
34 data_type: 'enum'
35 extra: {list => ["string","uint","float","dict"]}
36 is_nullable: 1
37  
38 =head2 name
39  
40 data_type: 'char'
41 is_nullable: 1
42 size: 64
43  
44 =cut
45  
46 1 __PACKAGE__->add_columns(
47 "id",
48 {
49 data_type => "integer",
50 extra => { unsigned => 1 },
51 is_auto_increment => 1,
52 is_nullable => 0,
53 },
54 "type",
55 {
56 data_type => "enum",
57 extra => { list => ["string", "uint", "float", "dict"] },
58 is_nullable => 1,
59 },
60 "name",
61 { data_type => "char", is_nullable => 1, size => 64 },
62 );
63 1 __PACKAGE__->set_primary_key("id");
64 1 __PACKAGE__->add_unique_constraint("name", ["name"]);
65  
66 =head1 RELATIONS
67  
68 =head2 attribute_maps
69  
70 Type: has_many
71  
72 Related object: L<RackTables::Schema::Result::AttributeMap>
73  
74 =cut
75  
76 1 __PACKAGE__->has_many(
77 "attribute_maps",
78 "RackTables::Schema::Result::AttributeMap",
79 { "foreign.attr_id" => "self.id" },
80 { cascade_copy => 0, cascade_delete => 0 },
81 );
82  
83  
84 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vwBohNJOvsB/0da3KpXrRQ
86  
87  
88 # You can replace this text with custom code or comments, and it will be preserved on regeneration
89 1 __PACKAGE__->meta->make_immutable;
90 1 1;
« blib/lib/RackTables/Schema/Result/Atom.pm ↑ Summary blib/lib/RackTables/Schema/Result/AttributeMap.pm »