Created
June 28, 2009 17:09
-
-
Save amiri/137316 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package MoosifierTest::Schema::Statistic; | |
use Moose; | |
use MoosifierTest::Types::Library; | |
extends 'DBIx::Class'; | |
has 'accessdate' => ( | |
isa => Int, | |
is => 'rw', | |
required => 0 | |
); | |
has 'createdate' => ( | |
isa => Int, | |
is => 'rw', | |
required => 0 | |
); | |
has 'deleted' => ( | |
isa => Value, | |
is => 'rw', | |
required => 0 | |
); | |
has 'deviceid' => ( | |
isa => Int, | |
is => 'ro', | |
required => 0 | |
); | |
has 'percentage' => ( | |
isa => Value, | |
is => 'rw', | |
required => 0 | |
); | |
has 'playcounter' => ( | |
isa => Int, | |
is => 'rw', | |
required => 0 | |
); | |
has 'rating' => ( | |
isa => Int, | |
is => 'rw', | |
required => 0 | |
); | |
has 'uniqueid' => ( | |
isa => SimpleStr, | |
is => 'rw', | |
required => 0 | |
); | |
has 'url' => ( | |
isa => Uri, | |
is => 'ro', | |
required => 0 | |
); | |
use namespace::clean -except => [ 'meta' ]; | |
__PACKAGE__->load_components("Core"); | |
__PACKAGE__->table("statistics"); | |
__PACKAGE__->add_columns( | |
"url", | |
{ | |
data_type => "VARCHAR", | |
default_value => undef, | |
is_nullable => 1, | |
size => 1024, | |
}, | |
"deviceid", | |
{ | |
data_type => "INTEGER", | |
default_value => undef, | |
is_nullable => 1, | |
size => undef, | |
}, | |
"createdate", | |
{ | |
data_type => "INTEGER", | |
default_value => undef, | |
is_nullable => 1, | |
size => undef, | |
}, | |
"accessdate", | |
{ | |
data_type => "INTEGER", | |
default_value => undef, | |
is_nullable => 1, | |
size => undef, | |
}, | |
"percentage", | |
{ | |
data_type => "FLOAT", | |
default_value => undef, | |
is_nullable => 1, | |
size => undef, | |
}, | |
"rating", | |
{ data_type => "INTEGER", default_value => 0, is_nullable => 1, size => undef }, | |
"playcounter", | |
{ | |
data_type => "INTEGER", | |
default_value => undef, | |
is_nullable => 1, | |
size => undef, | |
}, | |
"uniqueid", | |
{ | |
data_type => "VARCHAR", | |
default_value => undef, | |
is_nullable => 1, | |
size => 32, | |
}, | |
"deleted", | |
{ data_type => "BOOL", default_value => 0, is_nullable => 1, size => undef }, | |
); | |
__PACKAGE__->set_primary_key("url", "deviceid"); | |
__PACKAGE__->add_unique_constraint("uniqueid_unique", ["uniqueid"]); | |
# Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-06-28 12:21:01 | |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:/vYA4Sx1yyjBAOGIf/p/6g | |
# You can replace this text with custom content, and it will be preserved on regeneration | |
__PACKAGE__->meta->make_immutable(inline_constructor => '0'); | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment