adding DBIx schema files
[chaz/chatty] / lib / Chatty / Schema / Result / Account.pm
1 package Chatty::Schema::Result::Account;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use Moose;
10 use MooseX::NonMoose;
11 use namespace::autoclean;
12 extends 'DBIx::Class::Core';
13
14 __PACKAGE__->load_components("InflateColumn::DateTime");
15
16 =head1 NAME
17
18 Chatty::Schema::Result::Account
19
20 =cut
21
22 __PACKAGE__->table("account");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31
32 =head2 username
33
34 data_type: 'text'
35 is_nullable: 1
36
37 =head2 password
38
39 data_type: 'text'
40 is_nullable: 1
41
42 =head2 status
43
44 data_type: 'text'
45 default_value: 'active'
46 is_nullable: 1
47
48 =cut
49
50 __PACKAGE__->add_columns(
51 "id",
52 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
53 "username",
54 { data_type => "text", is_nullable => 1 },
55 "password",
56 { data_type => "text", is_nullable => 1 },
57 "status",
58 { data_type => "text", default_value => "active", is_nullable => 1 },
59 );
60 __PACKAGE__->set_primary_key("id");
61
62 =head1 RELATIONS
63
64 =head2 messages
65
66 Type: has_many
67
68 Related object: L<Chatty::Schema::Result::Message>
69
70 =cut
71
72 __PACKAGE__->has_many(
73 "messages",
74 "Chatty::Schema::Result::Message",
75 { "foreign.author" => "self.id" },
76 { cascade_copy => 0, cascade_delete => 0 },
77 );
78
79
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
82
83
84 # You can replace this text with custom code or comments, and it will be preserved on regeneration
85 __PACKAGE__->meta->make_immutable;
86 1;
This page took 0.032521 seconds and 4 git commands to generate.