]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Schema/Result/Room.pm
53516f3050d20ddb1e57eccccf5e9242a8b4e73a
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'
40 default_value: current_timestamp
45 __PACKAGE__-
>add_columns(
47 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
49 { data_type
=> "text", is_nullable
=> 1 },
52 data_type
=> "timestamp",
53 default_value
=> \"current_timestamp
",
57 __PACKAGE__->set_primary_key("id
");
58 __PACKAGE__->add_unique_constraint("name_unique
", ["name
"]);
66 Related object: L<Chatty::Schema::Result::Account>
70 __PACKAGE__->has_many(
72 "Chatty
::Schema
::Result
::Account
",
73 { "foreign
.current_room
" => "self
.id
" },
74 { cascade_copy => 0, cascade_delete => 0 },
81 Related object: L<Chatty::Schema::Result::Message>
85 __PACKAGE__->has_many(
87 "Chatty
::Schema
::Result
::Message
",
88 { "foreign
.room
" => "self
.id
" },
89 { cascade_copy => 0, cascade_delete => 0 },
93 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-17 20:21:50
94 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U0zHyxd2zFVEnATmgpd+Ag
97 # You can replace this text with custom code or comments, and it will be preserved on regeneration
98 __PACKAGE__->meta->make_immutable;
This page took 0.044121 seconds and 4 git commands to generate.