summaryrefslogtreecommitdiff
path: root/lib/TFLMonitor/Schema/Line.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/TFLMonitor/Schema/Line.pm')
-rw-r--r--lib/TFLMonitor/Schema/Line.pm82
1 files changed, 71 insertions, 11 deletions
diff --git a/lib/TFLMonitor/Schema/Line.pm b/lib/TFLMonitor/Schema/Line.pm
index 5cf6e64..cbccbe7 100644
--- a/lib/TFLMonitor/Schema/Line.pm
+++ b/lib/TFLMonitor/Schema/Line.pm
@@ -1,34 +1,94 @@
+use utf8;
package TFLMonitor::Schema::Line;
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+TFLMonitor::Schema::Line
+
+=cut
+
use strict;
use warnings;
-use base 'DBIx::Class';
+use base 'DBIx::Class::Core';
+
+=head1 TABLE: C<line>
+
+=cut
-__PACKAGE__->load_components("Core");
__PACKAGE__->table("line");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'int'
+ is_nullable: 0
+
+=head2 name
+
+ data_type: 'varchar'
+ is_nullable: 0
+ size: 255
+
+=cut
+
__PACKAGE__->add_columns(
"id",
- { data_type => "INT", default_value => undef, is_nullable => 1, size => undef },
+ { data_type => "int", is_nullable => 0 },
"name",
- {
- data_type => "VARCHAR",
- default_value => undef,
- is_nullable => 0,
- size => 255,
- },
+ { data_type => "varchar", is_nullable => 0, size => 255 },
);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
__PACKAGE__->set_primary_key("id");
+
+=head1 UNIQUE CONSTRAINTS
+
+=head2 C<name_unique>
+
+=over 4
+
+=item * L</name>
+
+=back
+
+=cut
+
__PACKAGE__->add_unique_constraint("name_unique", ["name"]);
+
+=head1 RELATIONS
+
+=head2 line_statuses
+
+Type: has_many
+
+Related object: L<TFLMonitor::Schema::LineStatus>
+
+=cut
+
__PACKAGE__->has_many(
"line_statuses",
"TFLMonitor::Schema::LineStatus",
{ "foreign.line_id" => "self.id" },
+ undef,
);
-# Created by DBIx::Class::Schema::Loader v0.04006 @ 2010-06-21 23:15:30
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZwKNYS6AzGFRfM7vnAMqTQ
+# Created by DBIx::Class::Schema::Loader v0.07040 @ 2014-06-21 15:59:21
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wkLwtPnKtkjsrMtvsUzijw
# You can replace this text with custom content, and it will be preserved on regeneration