]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Schema/Result/Message.pm
1 package Chatty
::Schema
::Result
::Message
;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
11 use namespace
::autoclean
;
12 extends
'DBIx::Class::Core';
14 __PACKAGE__-
>load_components("InflateColumn::DateTime", "TimeStamp");
18 Chatty::Schema::Result::Message
22 __PACKAGE__-
>table("message");
34 data_type: 'timestamp'
35 default_value: current_timestamp
57 __PACKAGE__-
>add_columns(
59 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
62 data_type
=> "timestamp",
63 default_value
=> \"current_timestamp
",
67 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
69 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
71 { data_type => "text
", is_nullable => 1 },
73 __PACKAGE__->set_primary_key("id
");
81 Related object: L<Chatty::Schema::Result::Room>
85 __PACKAGE__->belongs_to(
87 "Chatty
::Schema
::Result
::Room
",
92 on_delete => "CASCADE
",
93 on_update => "CASCADE
",
101 Related object: L<Chatty::Schema::Result::Account>
105 __PACKAGE__->belongs_to(
107 "Chatty
::Schema
::Result
::Account
",
112 on_delete => "CASCADE
",
113 on_update => "CASCADE
",
118 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-17 20:21:50
119 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:R28y3tHGM5FZTILUAO/0XA
122 # You can replace this text with custom code or comments, and it will be preserved on regeneration
123 __PACKAGE__->meta->make_immutable;
This page took 0.037883 seconds and 4 git commands to generate.