2 package Slists
::Schema
::Result
::List
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Slists::Schema::Result::List
18 use MooseX
::MarkAsMethods autoclean
=> 1;
19 extends
'DBIx::Class::Core';
21 =head1 COMPONENTS LOADED
25 =item * L<DBIx::Class::InflateColumn::DateTime>
27 =item * L<DBIx::Class::TimeStamp>
29 =item * L<DBIx::Class::PassphraseColumn>
35 __PACKAGE__
->load_components("InflateColumn::DateTime", "TimeStamp", "PassphraseColumn");
37 =head1 TABLE: C<lists>
41 __PACKAGE__
->table("lists");
64 data_type: 'timestamp'
69 data_type: 'timestamp'
74 __PACKAGE__
->add_columns(
76 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
78 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
80 { data_type
=> "text", is_nullable
=> 1 },
82 { data_type
=> "timestamp", is_nullable
=> 1 },
84 { data_type
=> "timestamp", is_nullable
=> 1 },
97 __PACKAGE__
->set_primary_key("id");
105 Related object: L<Slists::Schema::Result::ListItem>
109 __PACKAGE__
->has_many(
111 "Slists::Schema::Result::ListItem",
112 { "foreign.list_id" => "self.id" },
113 { cascade_copy
=> 0, cascade_delete
=> 0 },
120 Related object: L<Slists::Schema::Result::User>
124 __PACKAGE__
->belongs_to(
126 "Slists::Schema::Result::User",
131 on_delete
=> "NO ACTION",
132 on_update
=> "NO ACTION",
137 # Created by DBIx::Class::Schema::Loader v0.07033 @ 2013-01-27 14:24:58
138 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OeF6u7zvM8S+dDaHW068DA
140 # Enable automatic date handling
142 __PACKAGE__
->add_columns(
144 { data_type
=> 'timestamp', set_on_create
=> 1 },
146 { data_type
=> 'timestamp', set_on_create
=> 1, set_on_update
=> 1 },
149 # You can replace this text with custom code or comments, and it will be preserved on regeneration
150 __PACKAGE__
->meta->make_immutable;