| 1 | use utf8; | ||
| 2 | package TaskPipe::SchemaTemplate_Project::Result::Error; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use base 'DBIx::Class::Core'; | ||
| 8 | |||
| 9 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 10 | __PACKAGE__->table("error"); | ||
| 11 | __PACKAGE__->add_columns( | ||
| 12 | "id", | ||
| 13 | { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 }, | ||
| 14 | "job_id", | ||
| 15 | { data_type => "bigint", is_nullable => 1 }, | ||
| 16 | "history_index", | ||
| 17 | { data_type => "bigint", is_nullable => 1 }, | ||
| 18 | "tag", | ||
| 19 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 20 | "task_name", | ||
| 21 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 22 | "input_dd", | ||
| 23 | { data_type => "text", is_nullable => 1 }, | ||
| 24 | "param_dd", | ||
| 25 | { data_type => "text", is_nullable => 1 }, | ||
| 26 | "pinterp_dd", | ||
| 27 | { data_type => "text", is_nullable => 1 }, | ||
| 28 | "xbranch_ids", | ||
| 29 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 30 | "thread_id", | ||
| 31 | { data_type => "bigint", is_nullable => 1 }, | ||
| 32 | "message", | ||
| 33 | { data_type => "text", is_nullable => 1 }, | ||
| 34 | ); | ||
| 35 | |||
| 36 | __PACKAGE__->set_primary_key("id"); | ||
| 37 | |||
| 38 | =head1 NAME | ||
| 39 | |||
| 40 | TaskPipe::SchemaTemplate_Project::Result::Error - schema template for the project C<error> table | ||
| 41 | |||
| 42 | =head1 DESCRIPTION | ||
| 43 | |||
| 44 | Schema Template for the error table | ||
| 45 | |||
| 46 | =head1 AUTHOR | ||
| 47 | |||
| 48 | Tom Gracey <tomgracey@gmail.com> | ||
| 49 | |||
| 50 | =head1 COPYRIGHT AND LICENSE | ||
| 51 | |||
| 52 | Copyright (c) Tom Gracey 2018 | ||
| 53 | |||
| 54 | TaskPipe is free software, licensed under | ||
| 55 | |||
| 56 | The GNU Public License Version 3 | ||
| 57 | |||
| 58 | =cut | ||
| 59 | |||
| 60 | 1; |