| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_18_1::Result::UserAccount; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Schema::RackTables::0_18_1::Result::UserAccount | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | use strict; | ||
| 14 | use warnings; | ||
| 15 | |||
| 16 | use base 'DBIx::Class::Core'; | ||
| 17 | |||
| 18 | =head1 COMPONENTS LOADED | ||
| 19 | |||
| 20 | =over 4 | ||
| 21 | |||
| 22 | =item * L<DBIx::Class::InflateColumn::DateTime> | ||
| 23 | |||
| 24 | =back | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 29 | |||
| 30 | =head1 TABLE: C<UserAccount> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("UserAccount"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 user_id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_auto_increment: 1 | ||
| 43 | is_nullable: 0 | ||
| 44 | |||
| 45 | =head2 user_name | ||
| 46 | |||
| 47 | data_type: 'char' | ||
| 48 | default_value: (empty string) | ||
| 49 | is_nullable: 0 | ||
| 50 | size: 64 | ||
| 51 | |||
| 52 | =head2 user_password_hash | ||
| 53 | |||
| 54 | data_type: 'char' | ||
| 55 | is_nullable: 1 | ||
| 56 | size: 40 | ||
| 57 | |||
| 58 | =head2 user_realname | ||
| 59 | |||
| 60 | data_type: 'char' | ||
| 61 | is_nullable: 1 | ||
| 62 | size: 64 | ||
| 63 | |||
| 64 | =cut | ||
| 65 | |||
| 66 | __PACKAGE__->add_columns( | ||
| 67 | "user_id", | ||
| 68 | { | ||
| 69 | data_type => "integer", | ||
| 70 | extra => { unsigned => 1 }, | ||
| 71 | is_auto_increment => 1, | ||
| 72 | is_nullable => 0, | ||
| 73 | }, | ||
| 74 | "user_name", | ||
| 75 | { data_type => "char", default_value => "", is_nullable => 0, size => 64 }, | ||
| 76 | "user_password_hash", | ||
| 77 | { data_type => "char", is_nullable => 1, size => 40 }, | ||
| 78 | "user_realname", | ||
| 79 | { data_type => "char", is_nullable => 1, size => 64 }, | ||
| 80 | ); | ||
| 81 | |||
| 82 | =head1 PRIMARY KEY | ||
| 83 | |||
| 84 | =over 4 | ||
| 85 | |||
| 86 | =item * L</user_id> | ||
| 87 | |||
| 88 | =back | ||
| 89 | |||
| 90 | =cut | ||
| 91 | |||
| 92 | __PACKAGE__->set_primary_key("user_id"); | ||
| 93 | |||
| 94 | =head1 UNIQUE CONSTRAINTS | ||
| 95 | |||
| 96 | =head2 C<user_name> | ||
| 97 | |||
| 98 | =over 4 | ||
| 99 | |||
| 100 | =item * L</user_name> | ||
| 101 | |||
| 102 | =back | ||
| 103 | |||
| 104 | =cut | ||
| 105 | |||
| 106 | __PACKAGE__->add_unique_constraint("user_name", ["user_name"]); | ||
| 107 | |||
| 108 | |||
| 109 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:39 | ||
| 110 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:scZiekeXVuw42BC7ZvDDrg | ||
| 111 | |||
| 112 | |||
| 113 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 114 | 1; |