X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fchatty;a=blobdiff_plain;f=lib%2FChatty%2FSchema%2FResult%2FAccount.pm;h=8e55393f2f67a0c5bc92729a19bee7cd92d34001;hp=1589333de1493d2947b0c62d960bb54e4a6ba2a8;hb=e872d7b7c02a1006e4481271d902ad1ca1e0b8d4;hpb=9a7bfdb65af033380ae3c9242b2b3815bdc2bdc5 diff --git a/lib/Chatty/Schema/Result/Account.pm b/lib/Chatty/Schema/Result/Account.pm index 1589333..8e55393 100644 --- a/lib/Chatty/Schema/Result/Account.pm +++ b/lib/Chatty/Schema/Result/Account.pm @@ -11,7 +11,7 @@ use MooseX::NonMoose; use namespace::autoclean; extends 'DBIx::Class::Core'; -__PACKAGE__->load_components("InflateColumn::DateTime"); +__PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp"); =head1 NAME @@ -29,6 +29,11 @@ __PACKAGE__->table("account"); is_auto_increment: 1 is_nullable: 0 +=head2 email + + data_type: 'text' + is_nullable: 1 + =head2 username data_type: 'text' @@ -37,7 +42,7 @@ __PACKAGE__->table("account"); =head2 password data_type: 'text' - is_nullable: 1 + is_nullable: 0 =head2 status @@ -50,14 +55,17 @@ __PACKAGE__->table("account"); __PACKAGE__->add_columns( "id", { data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, + "email", + { data_type => "text", is_nullable => 1 }, "username", { data_type => "text", is_nullable => 1 }, "password", - { data_type => "text", is_nullable => 1 }, + { data_type => "text", is_nullable => 0 }, "status", { data_type => "text", default_value => "active", is_nullable => 1 }, ); __PACKAGE__->set_primary_key("id"); +__PACKAGE__->add_unique_constraint("username_unique", ["username"]); =head1 RELATIONS @@ -77,8 +85,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-12 22:20:29 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D8HUHJmSfJwylSeDYjfeHA +# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-13 16:46:39 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pPJdUbHgHvUo4FxblDaJ2g # You can replace this text with custom code or comments, and it will be preserved on regeneration