]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Schema/Result/Room.pm
1 package Chatty
::Schema
::Result
::Room
;
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::Room
22 __PACKAGE__-
>table("room");
39 data_type: 'timestamp'
45 __PACKAGE__-
>add_columns(
47 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
49 { data_type
=> "text", is_nullable
=> 1 },
51 { data_type
=> "timestamp", default_value
=> \"NOW
", is_nullable => 1 },
53 __PACKAGE__->set_primary_key("id
");
61 Related object: L<Chatty::Schema::Result::Account>
65 __PACKAGE__->has_many(
67 "Chatty
::Schema
::Result
::Account
",
68 { "foreign
.current_room
" => "self
.id
" },
69 { cascade_copy => 0, cascade_delete => 0 },
76 Related object: L<Chatty::Schema::Result::Message>
80 __PACKAGE__->has_many(
82 "Chatty
::Schema
::Result
::Message
",
83 { "foreign
.room
" => "self
.id
" },
84 { cascade_copy => 0, cascade_delete => 0 },
88 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-13 18:47:53
89 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2QSf3vZfv8xVbUKtsKsvDg
92 # You can replace this text with custom code or comments, and it will be preserved on regeneration
93 __PACKAGE__->meta->make_immutable;
This page took 0.033018 seconds and 4 git commands to generate.