summaryrefslogtreecommitdiff
path: root/lib/TFLMonitor/Schema/LineStatus.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TFLMonitor/Schema/LineStatus.pm')
-rw-r--r--lib/TFLMonitor/Schema/LineStatus.pm104
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