796a7978a69e447da07fb6307c6556b5da01e57e
[chaz/chatty] / lib / Chatty / Schema / Result / Message.pm
1 package Chatty::Schema::Result::Message;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use Moose;
10 use MooseX::NonMoose;
11 use namespace::autoclean;
12 extends 'DBIx::Class::Core';
13
14 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
15
16 =head1 NAME
17
18 Chatty::Schema::Result::Message
19
20 =cut
21
22 __PACKAGE__->table("message");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31
32 =head2 posted
33
34 data_type: 'timestamp'
35 is_nullable: 1
36
37 =head2 author
38
39 data_type: 'integer'
40 is_foreign_key: 1
41 is_nullable: 1
42
43 =head2 content
44
45 data_type: 'text'
46 is_nullable: 1
47
48 =cut
49
50 __PACKAGE__->add_columns(
51 "id",
52 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53 "posted",
54 { data_type => "timestamp", is_nullable => 1 },
55 "author",
56 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
57 "content",
58 { data_type => "text", is_nullable => 1 },
59 );
60 __PACKAGE__->set_primary_key("id");
61
62 =head1 RELATIONS
63
64 =head2 author
65
66 Type: belongs_to
67
68 Related object: L<Chatty::Schema::Result::Account>
69
70 =cut
71
72 __PACKAGE__->belongs_to(
73 "author",
74 "Chatty::Schema::Result::Account",
75 { id => "author" },
76 {
77 is_deferrable => 1,
78 join_type => "LEFT",
79 on_delete => "CASCADE",
80 on_update => "CASCADE",
81 },
82 );
83
84
85 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-13 16:46:39
86 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dgMXiWuIhmCQeExkpcxorA
87
88
89 # You can replace this text with custom code or comments, and it will be preserved on regeneration
90 __PACKAGE__->meta->make_immutable;
91 1;
This page took 0.032513 seconds and 3 git commands to generate.