« blib/lib/Strehler/Schema/Result/ConfiguredTag.pm
↑ Summary
blib/lib/Strehler/Schema/Result/Description.pm »
| 1 | use utf8; | ||
| 2 | package Strehler::Schema::Result::Content; | ||
| 3 | $Strehler::Schema::Result::Content::VERSION = '1.6.8'; | ||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Strehler::Schema::Result::Content | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | use strict; | ||
| 14 | use warnings; | ||
| 15 | |||
| 16 | use base 'DBIx::Class::Core'; | ||
| 17 | |||
| 18 | =head1 COMPONENTS LOADED | ||
| 19 | |||
| 20 | =over 4 | ||
| 21 | |||
| 22 | =item * L<DBIx::Class::InflateColumn::DateTime> | ||
| 23 | |||
| 24 | =back | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 29 | |||
| 30 | =head1 TABLE: C<CONTENTS> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("CONTENTS"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | is_auto_increment: 1 | ||
| 42 | is_nullable: 0 | ||
| 43 | |||
| 44 | =head2 article | ||
| 45 | |||
| 46 | data_type: 'integer' | ||
| 47 | is_foreign_key: 1 | ||
| 48 | is_nullable: 1 | ||
| 49 | |||
| 50 | =head2 title | ||
| 51 | |||
| 52 | data_type: 'varchar' | ||
| 53 | is_nullable: 1 | ||
| 54 | size: 120 | ||
| 55 | |||
| 56 | =head2 slug | ||
| 57 | |||
| 58 | data_type: 'varchar' | ||
| 59 | is_nullable: 1 | ||
| 60 | size: 120 | ||
| 61 | |||
| 62 | =head2 text | ||
| 63 | |||
| 64 | data_type: 'longtext' | ||
| 65 | is_nullable: 1 | ||
| 66 | |||
| 67 | =head2 language | ||
| 68 | |||
| 69 | data_type: 'varchar' | ||
| 70 | is_nullable: 1 | ||
| 71 | size: 2 | ||
| 72 | |||
| 73 | =cut | ||
| 74 | |||
| 75 | __PACKAGE__->add_columns( | ||
| 76 | "id", | ||
| 77 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 78 | "article", | ||
| 79 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, | ||
| 80 | "title", | ||
| 81 | { data_type => "varchar", is_nullable => 1, size => 120 }, | ||
| 82 | "slug", | ||
| 83 | { data_type => "varchar", is_nullable => 1, size => 120 }, | ||
| 84 | "text", | ||
| 85 | { data_type => "longtext", is_nullable => 1 }, | ||
| 86 | "language", | ||
| 87 | { data_type => "varchar", is_nullable => 1, size => 2 }, | ||
| 88 | ); | ||
| 89 | |||
| 90 | =head1 PRIMARY KEY | ||
| 91 | |||
| 92 | =over 4 | ||
| 93 | |||
| 94 | =item * L</id> | ||
| 95 | |||
| 96 | =back | ||
| 97 | |||
| 98 | =cut | ||
| 99 | |||
| 100 | __PACKAGE__->set_primary_key("id"); | ||
| 101 | |||
| 102 | =head1 RELATIONS | ||
| 103 | |||
| 104 | =head2 article | ||
| 105 | |||
| 106 | Type: belongs_to | ||
| 107 | |||
| 108 | Related object: L<Strehler::Schema::Result::Article> | ||
| 109 | |||
| 110 | =cut | ||
| 111 | |||
| 112 | __PACKAGE__->belongs_to( | ||
| 113 | "article", | ||
| 114 | "Strehler::Schema::Result::Article", | ||
| 115 | { id => "article" }, | ||
| 116 | { | ||
| 117 | is_deferrable => 1, | ||
| 118 | join_type => "LEFT", | ||
| 119 | on_delete => "RESTRICT", | ||
| 120 | on_update => "RESTRICT", | ||
| 121 | }, | ||
| 122 | ); | ||
| 123 | |||
| 124 | |||
| 125 | # Created by DBIx::Class::Schema::Loader v0.07037 @ 2014-03-15 15:14:27 | ||
| 126 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gTAMB3/GWlgXY7HL4nWNZw | ||
| 127 | |||
| 128 | |||
| 129 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 130 | |||
| 131 | 1; |