---- file 2 ---- package ORI::Schema::Result::Contenttype; extends 'DBIx::Class::Core'; __PACKAGE__->table("contenttypes"); __PACKAGE__->add_columns( "id" => { data_type => "integer" }, "text" => { data_type => "text" }, ); __PACKAGE__->set_primary_key("id"); _PACKAGE__->has_many( "contentlinks" => "ORI::Schema::Result::Contentlink", { "foreign.content_id" => "self.id" }, ); __PACKAGE__->many_to_many("repos", "contentlinks", "repo");