« blib/lib/OpusVL/AppKit/Schema/AppKitAuthDB/Result/RoleAllowed.pm
↑ Summary
blib/lib/OpusVL/AppKit/Schema/AppKitAuthDB/Result/UsersData.pm »
| 1 | package OpusVL::AppKit::Schema::AppKitAuthDB::Result::User; | ||
| 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 base 'DBIx::Class::Core'; | ||
| 10 | |||
| 11 | __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp"); | ||
| 12 | |||
| 13 | |||
| 14 | __PACKAGE__->table("users"); | ||
| 15 | |||
| 16 | |||
| 17 | __PACKAGE__->add_columns( | ||
| 18 | "id", | ||
| 19 | { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, | ||
| 20 | "username", | ||
| 21 | { data_type => "text", is_nullable => 0 }, | ||
| 22 | "password", | ||
| 23 | { data_type => "text", is_nullable => 0 }, | ||
| 24 | "email", | ||
| 25 | { data_type => "text", is_nullable => 0 }, | ||
| 26 | "name", | ||
| 27 | { data_type => "text", is_nullable => 0 }, | ||
| 28 | "tel", | ||
| 29 | { data_type => "text", is_nullable => 1 }, | ||
| 30 | "status", | ||
| 31 | { data_type => "text", default_value => "active", is_nullable => 0 }, | ||
| 32 | "last_login", | ||
| 33 | { data_type => 'timestamp', is_nullable => 1 }, | ||
| 34 | "last_failed_login", | ||
| 35 | { data_type => 'timestamp', is_nullable => 1 }, | ||
| 36 | ); | ||
| 37 | __PACKAGE__->set_primary_key("id"); | ||
| 38 | __PACKAGE__->add_unique_constraint("user_index", ["username"]); | ||
| 39 | |||
| 40 | |||
| 41 | __PACKAGE__->has_many( | ||
| 42 | "users_datas", | ||
| 43 | "OpusVL::AppKit::Schema::AppKitAuthDB::Result::UsersData", | ||
| 44 | { "foreign.users_id" => "self.id" }, | ||
| 45 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 46 | ); | ||
| 47 | |||
| 48 | |||
| 49 | __PACKAGE__->has_many( | ||
| 50 | "users_roles", | ||
| 51 | "OpusVL::AppKit::Schema::AppKitAuthDB::Result::UsersRole", | ||
| 52 | { "foreign.users_id" => "self.id" }, | ||
| 53 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 54 | ); | ||
| 55 | |||
| 56 | |||
| 57 | __PACKAGE__->has_many( | ||
| 58 | "users_parameters", | ||
| 59 | "OpusVL::AppKit::Schema::AppKitAuthDB::Result::UsersParameter", | ||
| 60 | { "foreign.users_id" => "self.id" }, | ||
| 61 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 62 | ); | ||
| 63 | |||
| 64 | |||
| 65 | # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-05-24 12:56:09 | ||
| 66 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UaxbxFRL86+fBRmFpWtSSQ | ||
| 67 | |||
| 68 | use Moose; | ||
| 69 | use OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB::Result::User; | ||
| 70 | with 'OpusVL::AppKit::RolesFor::Schema::AppKitAuthDB::Result::User'; | ||
| 71 | __PACKAGE__->setup_authdb; | ||
| 72 | |||
| 73 | __END__ | ||
| 74 | |||
| 75 | =pod | ||
| 76 | |||
| 77 | =encoding UTF-8 | ||
| 78 | |||
| 79 | =head1 NAME | ||
| 80 | |||
| 81 | OpusVL::AppKit::Schema::AppKitAuthDB::Result::User | ||
| 82 | |||
| 83 | =head1 VERSION | ||
| 84 | |||
| 85 | version 2.24 | ||
| 86 | |||
| 87 | =head1 NAME | ||
| 88 | |||
| 89 | OpusVL::AppKit::Schema::AppKitAuthDB::Result::User | ||
| 90 | |||
| 91 | =head1 ACCESSORS | ||
| 92 | |||
| 93 | =head2 id | ||
| 94 | |||
| 95 | data_type: 'integer' | ||
| 96 | is_auto_increment: 1 | ||
| 97 | is_nullable: 0 | ||
| 98 | |||
| 99 | =head2 username | ||
| 100 | |||
| 101 | data_type: 'text' | ||
| 102 | is_nullable: 0 | ||
| 103 | |||
| 104 | =head2 password | ||
| 105 | |||
| 106 | data_type: 'text' | ||
| 107 | is_nullable: 0 | ||
| 108 | |||
| 109 | =head2 email | ||
| 110 | |||
| 111 | data_type: 'text' | ||
| 112 | is_nullable: 0 | ||
| 113 | |||
| 114 | =head2 name | ||
| 115 | |||
| 116 | data_type: 'text' | ||
| 117 | is_nullable: 0 | ||
| 118 | |||
| 119 | =head2 tel | ||
| 120 | |||
| 121 | data_type: 'text' | ||
| 122 | is_nullable: 0 | ||
| 123 | |||
| 124 | =head2 status | ||
| 125 | |||
| 126 | data_type: 'text' | ||
| 127 | default_value: 'active' | ||
| 128 | is_nullable: 0 | ||
| 129 | |||
| 130 | =head1 RELATIONS | ||
| 131 | |||
| 132 | =head2 users_datas | ||
| 133 | |||
| 134 | Type: has_many | ||
| 135 | |||
| 136 | Related object: L<OpusVL::AppKit::Schema::AppKitAuthDB::Result::UsersData> | ||
| 137 | |||
| 138 | =head2 users_roles | ||
| 139 | |||
| 140 | Type: has_many | ||
| 141 | |||
| 142 | Related object: L<OpusVL::AppKit::Schema::AppKitAuthDB::Result::UsersRole> | ||
| 143 | |||
| 144 | =head2 users_parameters | ||
| 145 | |||
| 146 | Type: has_many | ||
| 147 | |||
| 148 | Related object: L<OpusVL::AppKit::Schema::AppKitAuthDB::Result::UsersParameter> | ||
| 149 | |||
| 150 | =head1 AUTHOR | ||
| 151 | |||
| 152 | OpusVL - www.opusvl.com | ||
| 153 | |||
| 154 | =head1 COPYRIGHT AND LICENSE | ||
| 155 | |||
| 156 | This software is copyright (c) 2010 by OpusVL - www.opusvl.com. | ||
| 157 | |||
| 158 | This is free software; you can redistribute it and/or modify it under | ||
| 159 | the same terms as the Perl 5 programming language system itself. | ||
| 160 | |||
| 161 | =cut |