]>
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'
61 __PACKAGE__-
>add_columns(
63 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
65 { data_type
=> "text", is_nullable
=> 1 },
67 { data_type
=> "text", is_nullable
=> 1 },
69 { data_type
=> "text", is_nullable
=> 0 },
71 { data_type
=> "text", default_value
=> "active", is_nullable
=> 1 },
73 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
75 __PACKAGE__-
>set_primary_key("id");
76 __PACKAGE__-
>add_unique_constraint("username_unique", ["username"]);
84 Related object: L<Chatty::Schema::Result::Room>
88 __PACKAGE__-
>belongs_to(
90 "Chatty::Schema::Result::Room",
91 { id
=> "current_room" },
95 on_delete
=> "CASCADE",
96 on_update
=> "CASCADE",
104 Related object: L<Chatty::Schema::Result::Message>
108 __PACKAGE__-
>has_many(
110 "Chatty::Schema::Result::Message",
111 { "foreign.author" => "self.id" },
112 { cascade_copy
=> 0, cascade_delete
=> 0 },
116 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-17 20:21:50
117 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jbeLiaDPsjHNHj5O11tPFA
120 # You can replace this text with custom code or comments, and it will be preserved on regeneration
121 __PACKAGE__-
>meta->make_immutable;
This page took 0.037473 seconds and 4 git commands to generate.