Commit | Line | Data |
c5051351 |
1 | package SQL::Translator::Object::Schema; |
2 | use Moose; |
109263d0 |
3 | use MooseX::Types::Moose qw(HashRef Str); |
c0e05758 |
4 | use SQL::Translator::Types qw(Procedure Table View); |
cc73c25e |
5 | extends 'SQL::Translator::Object'; |
c5051351 |
6 | |
109263d0 |
7 | has 'name' => ( |
8 | is => 'rw', |
9 | isa => Str, |
10 | required => 1, |
11 | default => '__DEFAULT__' |
12 | ); |
13 | |
14 | has 'tables' => ( |
15 | is => 'rw', |
16 | isa => HashRef[Table], |
17 | required => 0 |
18 | ); |
19 | |
20 | has 'views' => ( |
21 | is => 'rw', |
22 | isa => HashRef[View], |
23 | required => 0 |
24 | ); |
25 | |
26 | has 'procedures' => ( |
27 | is => 'rw', |
28 | isa => HashRef[Procedure], |
29 | required => 0 |
30 | ); |
c5051351 |
31 | |
32 | 1; |