]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Schema/Result/Account.pm
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", "TimeStamp");
18 Chatty::Schema::Result::Account
22 __PACKAGE__-
>table("account");
50 default_value: 'active'
55 __PACKAGE__-
>add_columns(
57 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
59 { data_type
=> "text", is_nullable
=> 1 },
61 { data_type
=> "text", is_nullable
=> 1 },
63 { data_type
=> "text", is_nullable
=> 0 },
65 { data_type
=> "text", default_value
=> "active", is_nullable
=> 1 },
67 __PACKAGE__-
>set_primary_key("id");
68 __PACKAGE__-
>add_unique_constraint("username_unique", ["username"]);
76 Related object: L<Chatty::Schema::Result::Message>
80 __PACKAGE__-
>has_many(
82 "Chatty::Schema::Result::Message",
83 { "foreign.author" => "self.id" },
84 { cascade_copy
=> 0, cascade_delete
=> 0 },
88 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-13 16:46:39
89 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pPJdUbHgHvUo4FxblDaJ2g
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.039353 seconds and 4 git commands to generate.