diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2014-06-21 16:00:07 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2014-06-21 16:00:44 +0000 |
commit | 819c3967f3843e815ea7fd96796b7a0f69d62055 (patch) | |
tree | 408d36b84d752cdd1a64d04b9c6d965c3450e31f /lib/TFLMonitor/Schema/LineStatus.pm | |
parent | add licence (diff) | |
download | TFLMonitor-master.tar.gz TFLMonitor-master.tar.bz2 TFLMonitor-master.zip |
Diffstat (limited to 'lib/TFLMonitor/Schema/LineStatus.pm')
-rw-r--r-- | lib/TFLMonitor/Schema/LineStatus.pm | 104 |
1 files changed, 75 insertions, 29 deletions
diff --git a/lib/TFLMonitor/Schema/LineStatus.pm b/lib/TFLMonitor/Schema/LineStatus.pm index c6bb3c2..1718bad 100644 --- a/lib/TFLMonitor/Schema/LineStatus.pm +++ b/lib/TFLMonitor/Schema/LineStatus.pm @@ -1,45 +1,91 @@ +use utf8; package TFLMonitor::Schema::LineStatus; +# Created by DBIx::Class::Schema::Loader +# DO NOT MODIFY THE FIRST PART OF THIS FILE + +=head1 NAME + +TFLMonitor::Schema::LineStatus + +=cut + use strict; use warnings; -use base 'DBIx::Class'; +use base 'DBIx::Class::Core'; + +=head1 TABLE: C<line_status> + +=cut -__PACKAGE__->load_components("Core"); __PACKAGE__->table("line_status"); + +=head1 ACCESSORS + +=head2 time + + data_type: 'datetime' + is_nullable: 0 + +=head2 line_id + + data_type: 'int' + is_foreign_key: 1 + is_nullable: 0 + +=head2 status_code + + data_type: 'varchar' + is_foreign_key: 1 + is_nullable: 0 + size: 255 + +=head2 is_active + + data_type: 'boolean' + is_nullable: 0 + +=head2 details + + data_type: 'text' + is_nullable: 1 + +=cut + __PACKAGE__->add_columns( "time", - { - data_type => "DATETIME", - default_value => undef, - is_nullable => 0, - size => undef, - }, + { data_type => "datetime", is_nullable => 0 }, "line_id", - { data_type => "INT", default_value => undef, is_nullable => 0, size => undef }, + { data_type => "int", is_foreign_key => 1, is_nullable => 0 }, "status_code", - { - data_type => "VARCHAR", - default_value => undef, - is_nullable => 0, - size => 255, - }, + { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 255 }, "is_active", - { - data_type => "BOOLEAN", - default_value => undef, - is_nullable => 0, - size => undef, - }, + { data_type => "boolean", is_nullable => 0 }, "details", - { - data_type => "TEXT", - default_value => undef, - is_nullable => 1, - size => undef, - }, + { data_type => "text", is_nullable => 1 }, ); + +=head1 RELATIONS + +=head2 line_id + +Type: belongs_to + +Related object: L<TFLMonitor::Schema::Line> + +=cut + __PACKAGE__->belongs_to("line_id", "TFLMonitor::Schema::Line", { id => "line_id" }); + +=head2 status_code + +Type: belongs_to + +Related object: L<TFLMonitor::Schema::Status> + +=cut + __PACKAGE__->belongs_to( "status_code", "TFLMonitor::Schema::Status", @@ -47,8 +93,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.04006 @ 2010-06-21 23:15:30 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1b6y2NC79YSXgyECT4uEzQ +# Created by DBIx::Class::Schema::Loader v0.07040 @ 2014-06-21 15:59:21 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:IwWvmSHYpZfObvzpX/oTNQ # You can replace this text with custom content, and it will be preserved on regeneration |