| 1 | use utf8; | ||
| 2 | package Rapi::Blog::DB::Result::TrkSectionSection; | ||
| 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("trk_section_sections"); | ||
| 16 | __PACKAGE__->add_columns( | ||
| 17 | "id", | ||
| 18 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 19 | "section_id", | ||
| 20 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||
| 21 | "subsection_id", | ||
| 22 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, | ||
| 23 | "depth", | ||
| 24 | { data_type => "integer", is_nullable => 0 }, | ||
| 25 | ); | ||
| 26 | __PACKAGE__->set_primary_key("id"); | ||
| 27 | __PACKAGE__->belongs_to( | ||
| 28 | "section", | ||
| 29 | "Rapi::Blog::DB::Result::Section", | ||
| 30 | { id => "section_id" }, | ||
| 31 | { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 32 | ); | ||
| 33 | __PACKAGE__->belongs_to( | ||
| 34 | "subsection", | ||
| 35 | "Rapi::Blog::DB::Result::Section", | ||
| 36 | { id => "subsection_id" }, | ||
| 37 | { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 38 | ); | ||
| 39 | |||
| 40 | |||
| 41 | # Created by DBIx::Class::Schema::Loader v0.07045 @ 2017-10-04 18:42:02 | ||
| 42 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cqlld59BvUwz8XGlZDYAXQ | ||
| 43 | |||
| 44 | |||
| 45 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 46 | __PACKAGE__->meta->make_immutable; | ||
| 47 | 1; |