DBIx-Class-Schema-Diff
view release on metacpan or search on metacpan
t/lib/TestSchema/Sakila/Result/Actor.pm view on Meta::CPAN
is_auto_increment: 1
is_nullable: 0
=head2 first_name
data_type: 'varchar'
is_nullable: 0
size: 45
=head2 last_name
data_type: 'varchar'
is_nullable: 0
size: 45
=head2 last_update
data_type: 'timestamp'
datetime_undef_if_invalid: 1
default_value: current_timestamp
is_nullable: 0
=cut
__PACKAGE__->add_columns(
"actor_id",
{
data_type => "smallint",
extra => { unsigned => 1 },
is_auto_increment => 1,
is_nullable => 0,
},
"first_name",
{ data_type => "varchar", is_nullable => 0, size => 45 },
"last_name",
{ data_type => "varchar", is_nullable => 0, size => 45 },
"last_update",
{
data_type => "timestamp",
datetime_undef_if_invalid => 1,
default_value => \"current_timestamp",
is_nullable => 0,
},
);
__PACKAGE__->set_primary_key("actor_id");
=head1 RELATIONS
=head2 film_actors
Type: has_many
Related object: L<TestSchema::Sakila::Result::FilmActor>
=cut
__PACKAGE__->has_many(
"film_actors",
"TestSchema::Sakila::Result::FilmActor",
{ "foreign.actor_id" => "self.actor_id" },
{ cascade_copy => 0, cascade_delete => 0 },
);
# Created by DBIx::Class::Schema::Loader v0.07010 @ 2013-02-17 16:15:04
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UTtfCAGXGENKnwGIwF6paA
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
( run in 1.361 second using v1.01-cache-2.11-cpan-98e64b0badf )