package SQL::Translator::Object::Column;
use Moose;
-use MooseX::Types::Moose qw(Bool Int Str);
+use MooseX::Types::Moose qw(Bool Int Maybe Str);
use SQL::Translator::Types qw(Trigger);
extends 'SQL::Translator::Object';
required => 1
);
-has 'type' => (
+has 'data_type' => (
is => 'rw',
isa => Str,
required => 1
has 'size' => (
is => 'rw',
- isa => Int,
+ isa => Maybe[Int],
required => 1
);
default => 0
);
-has 'is_primary_key' => (
- is => 'rw',
- isa => Bool,
- required => 1,
- default => 0
-);
-
-has 'is_foriegn_key' => (
- is => 'rw',
- isa => Bool,
- required => 1,
- default => 0
-);
-
-has 'is_unique' => (
- is => 'rw',
- isa => Bool,
- required => 1,
- default => 0
-);
-
has 'default_value' => (
is => 'rw',
isa => Str,
package SQL::Translator::Object::Procedure;
use Moose;
-use MooseX::Types::Moose qw(HashRef Int Str);
+use MooseX::Types::Moose qw(HashRef Int Maybe Str);
use SQL::Translator::Types qw();
use SQL::Translator::Object::Schema;
extends 'SQL::Translator::Object';