package My::Namespace::DB::AstroTerrains; use strict; use warnings; use base 'DBIx::Class'; __PACKAGE__->load_components("Core"); __PACKAGE__->table("astro_terrains"); __PACKAGE__->add_columns( "id", { data_type => "TINYINT", default_value => undef, is_nullable => 0, size => 3 }, "name", { data_type => "VARCHAR", default_value => "", 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:etM2yf14f59YAtaOo8ltSg __PACKAGE__->has_many( astros => 'My::Namespace::DB::Astros', { 'foreign.astro_terrain_id' => 'self.id' }, { cascade_delete => 0 }, ); 1;