package My::Namespace::DB::Bases; use strict; use warnings; use base 'DBIx::Class'; __PACKAGE__->load_components("Core"); __PACKAGE__->table("bases"); __PACKAGE__->add_columns( "id", { data_type => "BIGINT", default_value => undef, is_nullable => 0, size => 20 }, "astro_id", { data_type => "BIGINT", default_value => undef, is_nullable => 0, size => 20 }, "profile_id", { data_type => "BIGINT", default_value => undef, is_nullable => 0, size => 20 }, ... lots of other columns removed for brevity ... "last_update", { data_type => "TIMESTAMP", default_value => "CURRENT_TIMESTAMP", is_nullable => 0, size => 14, }, ); __PACKAGE__->set_primary_key("id"); # Created by DBIx::Class::Schema::Loader v0.04003 @ 2008-01-26 00:53:23 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RlHYEvMg3JniB7RL4miPvA __PACKAGE__->belongs_to( profile => 'My::Namespace::DB::Profiles', { 'foreign.id' => 'self.profile_id' }, ); __PACKAGE__->belongs_to( astro => 'My::Namespace::DB::Astros', { 'foreign.id' => 'self.astro_id' }, { cascade_delete => 0 }, ); 1;