File: | blib/lib/MySQL/Util/Lite/ForeignKeyColumn.pm |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | code |
---|---|---|---|---|---|
1 | package MySQL::Util::Lite::ForeignKeyColumn; | ||||
2 | |||||
3 | our $VERSION = '0.01'; | ||||
4 | |||||
5 | 1 1 1 | use Modern::Perl; | |||
6 | 1 1 1 | use Moose; | |||
7 | 1 1 1 | use namespace::autoclean; | |||
8 | 1 1 1 | use Method::Signatures; | |||
9 | 1 1 1 | use Data::Printer alias => 'pdump'; | |||
10 | |||||
11 | has name => ( | ||||
12 | is => 'ro', | ||||
13 | isa => 'Str', | ||||
14 | required => 1, | ||||
15 | ); | ||||
16 | |||||
17 | has table_name => ( | ||||
18 | is => 'ro', | ||||
19 | isa => 'Str', | ||||
20 | required => 1, | ||||
21 | ); | ||||
22 | |||||
23 | has schema_name => ( | ||||
24 | is => 'ro', | ||||
25 | isa => 'Str', | ||||
26 | required => 1, | ||||
27 | ); | ||||
28 | |||||
29 | has parent_column_name => ( | ||||
30 | is => 'ro', | ||||
31 | isa => 'Str', | ||||
32 | required => 1, | ||||
33 | ); | ||||
34 | |||||
35 | has parent_table_name => ( | ||||
36 | is => 'ro', | ||||
37 | isa => 'Str', | ||||
38 | required => 1, | ||||
39 | |||||
40 | ); | ||||
41 | |||||
42 | has parent_schema_name => ( | ||||
43 | is => 'ro', | ||||
44 | isa => 'Str', | ||||
45 | required => 1, | ||||
46 | ); | ||||
47 | |||||
48 | 1; |