]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Schema/Result/Message.pm
792713dc545dc3f8c2b0994f17e066a0bb332bc9
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'
57 __PACKAGE__-
>add_columns(
59 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
61 { data_type
=> "timestamp", default_value
=> \"NOW
", is_nullable => 1 },
63 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
65 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
67 { data_type => "text
", is_nullable => 1 },
69 __PACKAGE__->set_primary_key("id
");
77 Related object: L<Chatty::Schema::Result::Room>
81 __PACKAGE__->belongs_to(
83 "Chatty
::Schema
::Result
::Room
",
88 on_delete => "CASCADE
",
89 on_update => "CASCADE
",
97 Related object: L<Chatty::Schema::Result::Account>
101 __PACKAGE__->belongs_to(
103 "Chatty
::Schema
::Result
::Account
",
108 on_delete => "CASCADE
",
109 on_update => "CASCADE
",
114 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-13 18:47:53
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:q1cq2bWftQPoo8huOftzMQ
118 # You can replace this text with custom code or comments, and it will be preserved on regeneration
119 __PACKAGE__->meta->make_immutable;
This page took 0.036398 seconds and 4 git commands to generate.