| 1 | use utf8; | ||
| 2 | package Rapi::Demo::Chinook::DB::Result::MediaType; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | use strict; | ||
| 8 | use warnings; | ||
| 9 | |||
| 10 | use Moose; | ||
| 11 | use MooseX::NonMoose; | ||
| 12 | use MooseX::MarkAsMethods autoclean => 1; | ||
| 13 | extends 'DBIx::Class::Core'; | ||
| 14 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 15 | __PACKAGE__->table("MediaType"); | ||
| 16 | __PACKAGE__->add_columns( | ||
| 17 | "mediatypeid", | ||
| 18 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 19 | "name", | ||
| 20 | { data_type => "nvarchar", is_nullable => 1, size => 120 }, | ||
| 21 | ); | ||
| 22 | __PACKAGE__->set_primary_key("mediatypeid"); | ||
| 23 | __PACKAGE__->has_many( | ||
| 24 | "tracks", | ||
| 25 | "Rapi::Demo::Chinook::DB::Result::Track", | ||
| 26 | { "foreign.mediatypeid" => "self.mediatypeid" }, | ||
| 27 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 28 | ); | ||
| 29 | |||
| 30 | |||
| 31 | # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-09-12 15:36:29 | ||
| 32 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:i2KIMgZBZJnsgkwIHtfWUQ | ||
| 33 | |||
| 34 | |||
| 35 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 36 | __PACKAGE__->meta->make_immutable; | ||
| 37 | 1; |