« TaskPipe/SchemaTemplate_Project/Result/Thread.pm
↑ Summary
TaskPipe/SchemaTemplate_Project/Result/Xbranch.pm »
| 1 | use utf8; | ||
| 2 | package TaskPipe::SchemaTemplate_Project::Result::XBranchError; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use base 'DBIx::Class::Core'; | ||
| 7 | |||
| 8 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 9 | __PACKAGE__->table("xbranch_error"); | ||
| 10 | |||
| 11 | __PACKAGE__->add_columns( | ||
| 12 | "id", | ||
| 13 | { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 }, | ||
| 14 | "xbranch_id", | ||
| 15 | { data_type => "bigint", is_nullable => 1 }, | ||
| 16 | "error_id", | ||
| 17 | { data_type => "bigint", is_nullable => 1 }, | ||
| 18 | ); | ||
| 19 | |||
| 20 | __PACKAGE__->set_primary_key("id"); | ||
| 21 | __PACKAGE__->add_unique_constraint("xbranch_id", ["xbranch_id", "error_id"]); | ||
| 22 | |||
| 23 | =head1 NAME | ||
| 24 | |||
| 25 | TaskPipe::SchemaTemplate_Project::Result::XBranchError - schema template for project C<xbranch_error> table | ||
| 26 | |||
| 27 | =head1 DESCRIPTION | ||
| 28 | |||
| 29 | Schema Template for the xbranch_error table | ||
| 30 | |||
| 31 | =head1 AUTHOR | ||
| 32 | |||
| 33 | Tom Gracey <tomgracey@gmail.com> | ||
| 34 | |||
| 35 | =head1 COPYRIGHT AND LICENSE | ||
| 36 | |||
| 37 | Copyright (c) Tom Gracey 2018 | ||
| 38 | |||
| 39 | TaskPipe is free software, licensed under | ||
| 40 | |||
| 41 | The GNU Public License Version 3 | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 1; |