]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Schema/Result/Account.pm
1589333de1493d2947b0c62d960bb54e4a6ba2a8
1 package Chatty
::Schema
::Result
::Account
;
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");
18 Chatty::Schema::Result::Account
22 __PACKAGE__-
>table("account");
45 default_value: 'active'
50 __PACKAGE__-
>add_columns(
52 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
54 { data_type
=> "text", is_nullable
=> 1 },
56 { data_type
=> "text", is_nullable
=> 1 },
58 { data_type
=> "text", default_value
=> "active", is_nullable
=> 1 },
60 __PACKAGE__-
>set_primary_key("id");
68 Related object: L<Chatty::Schema::Result::Message>
72 __PACKAGE__-
>has_many(
74 "Chatty::Schema::Result::Message",
75 { "foreign.author" => "self.id" },
76 { cascade_copy
=> 0, cascade_delete
=> 0 },
80 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-12 22:20:29
81 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D8HUHJmSfJwylSeDYjfeHA
84 # You can replace this text with custom code or comments, and it will be preserved on regeneration
85 __PACKAGE__-
>meta->make_immutable;
This page took 0.033589 seconds and 4 git commands to generate.