| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::Process; | ||
| 3 | |||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | use base 'App::Netdisco::DB::Result'; | ||
| 9 | __PACKAGE__->table("process"); | ||
| 10 | __PACKAGE__->add_columns( | ||
| 11 | "controller", | ||
| 12 | { data_type => "integer", is_nullable => 0 }, | ||
| 13 | "device", | ||
| 14 | { data_type => "inet", is_nullable => 0 }, | ||
| 15 | "action", | ||
| 16 | { data_type => "text", is_nullable => 0 }, | ||
| 17 | "status", | ||
| 18 | { data_type => "text", is_nullable => 1 }, | ||
| 19 | "count", | ||
| 20 | { data_type => "integer", is_nullable => 1 }, | ||
| 21 | "creation", | ||
| 22 | { | ||
| 23 | data_type => "timestamp", | ||
| 24 | default_value => \"LOCALTIMESTAMP", | ||
| 25 | is_nullable => 1, | ||
| 26 | original => { default_value => \"LOCALTIMESTAMP" }, | ||
| 27 | }, | ||
| 28 | ); | ||
| 29 | |||
| 30 | |||
| 31 | 1; |