blib/lib/RackTables/Schema/Result/FileLink.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/File.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4Address.pm »
1 package RackTables::Schema::Result::FileLink;
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::FileLink
18  
19 =cut
20  
21 1 __PACKAGE__->table("FileLink");
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 file_id
33  
34 data_type: 'integer'
35 extra: {unsigned => 1}
36 is_foreign_key: 1
37 is_nullable: 0
38  
39 =head2 entity_type
40  
41 data_type: 'enum'
42 default_value: 'object'
43 extra: {list => ["ipv4net","ipv4rspool","ipv4vs","object","rack","user","ipv6net"]}
44 is_nullable: 0
45  
46 =head2 entity_id
47  
48 data_type: 'integer'
49 is_nullable: 0
50  
51 =cut
52  
53 1 __PACKAGE__->add_columns(
54 "id",
55 {
56 data_type => "integer",
57 extra => { unsigned => 1 },
58 is_auto_increment => 1,
59 is_nullable => 0,
60 },
61 "file_id",
62 {
63 data_type => "integer",
64 extra => { unsigned => 1 },
65 is_foreign_key => 1,
66 is_nullable => 0,
67 },
68 "entity_type",
69 {
70 data_type => "enum",
71 default_value => "object",
72 extra => {
73 list => [
74 "ipv4net",
75 "ipv4rspool",
76 "ipv4vs",
77 "object",
78 "rack",
79 "user",
80 "ipv6net",
81 ],
82 },
83 is_nullable => 0,
84 },
85 "entity_id",
86 { data_type => "integer", is_nullable => 0 },
87 );
88 1 __PACKAGE__->set_primary_key("id");
89 1 __PACKAGE__->add_unique_constraint("FileLink-unique", ["file_id", "entity_type", "entity_id"]);
90  
91 =head1 RELATIONS
92  
93 =head2 file
94  
95 Type: belongs_to
96  
97 Related object: L<RackTables::Schema::Result::File>
98  
99 =cut
100  
101 1 __PACKAGE__->belongs_to(
102 "file",
103 "RackTables::Schema::Result::File",
104 { id => "file_id" },
105 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
106 );
107  
108  
109 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
110 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kTzazKavCMOag9oebgN8Zw
111  
112  
113 # You can replace this text with custom code or comments, and it will be preserved on regeneration
114 1 __PACKAGE__->meta->make_immutable;
115 1 1;
« blib/lib/RackTables/Schema/Result/File.pm ↑ Summary blib/lib/RackTables/Schema/Result/IPv4Address.pm »