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