« TaskPipe/SchemaTemplate_Global/Result/Daemon.pm
↑ Summary
TaskPipe/SchemaTemplate_Global/Result/OpenProxy.pm »
| 1 | use utf8; | ||
| 2 | package TaskPipe::SchemaTemplate_Global::Result::Job; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use base 'DBIx::Class::Core'; | ||
| 7 | |||
| 8 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 9 | __PACKAGE__->table("job"); | ||
| 10 | |||
| 11 | __PACKAGE__->add_columns( | ||
| 12 | "id", | ||
| 13 | { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 }, | ||
| 14 | "name", | ||
| 15 | { data_type => "varchar", is_nullable => 0, size => 255 }, | ||
| 16 | "project", | ||
| 17 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 18 | "pid", | ||
| 19 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 20 | "shell", | ||
| 21 | { data_type => "varchar", is_nullable => 1, size => 255 }, | ||
| 22 | "orig_cmd", | ||
| 23 | { data_type => "text", is_nullable => 1 }, | ||
| 24 | "created_dt", | ||
| 25 | { | ||
| 26 | data_type => "datetime", | ||
| 27 | datetime_undef_if_invalid => 1, | ||
| 28 | is_nullable => 1, | ||
| 29 | }, | ||
| 30 | "conf", | ||
| 31 | { data_type => "mediumtext", is_nullable => 1 }, | ||
| 32 | ); | ||
| 33 | |||
| 34 | __PACKAGE__->set_primary_key("id"); | ||
| 35 | |||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | TaskPipe::SchemaTemplate_Global::Result::Job - global schema template for C<job> source | ||
| 40 | |||
| 41 | =head1 DESCRIPTION | ||
| 42 | |||
| 43 | Schema Template for the job table | ||
| 44 | |||
| 45 | =head1 AUTHOR | ||
| 46 | |||
| 47 | Tom Gracey <tomgracey@gmail.com> | ||
| 48 | |||
| 49 | =head1 COPYRIGHT AND LICENSE | ||
| 50 | |||
| 51 | Copyright (c) Tom Gracey 2018 | ||
| 52 | |||
| 53 | TaskPipe is free software, licensed under | ||
| 54 | |||
| 55 | The GNU Public License Version 3 | ||
| 56 | |||
| 57 | =cut | ||
| 58 | |||
| 59 | |||
| 60 | 1; |