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