| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::NodeMonitor; | ||
| 3 | |||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | use base 'App::Netdisco::DB::Result'; | ||
| 9 | __PACKAGE__->table("node_monitor"); | ||
| 10 | __PACKAGE__->add_columns( | ||
| 11 | "mac", | ||
| 12 | { data_type => "macaddr", is_nullable => 0 }, | ||
| 13 | "matchoui", | ||
| 14 | { data_type => "boolean", is_nullable => 1 }, | ||
| 15 | "active", | ||
| 16 | { data_type => "boolean", is_nullable => 1 }, | ||
| 17 | "why", | ||
| 18 | { data_type => "text", is_nullable => 1 }, | ||
| 19 | "cc", | ||
| 20 | { data_type => "text", is_nullable => 1 }, | ||
| 21 | "date", | ||
| 22 | { | ||
| 23 | data_type => "timestamp", | ||
| 24 | default_value => \"LOCALTIMESTAMP", | ||
| 25 | is_nullable => 1, | ||
| 26 | original => { default_value => \"LOCALTIMESTAMP" }, | ||
| 27 | }, | ||
| 28 | ); | ||
| 29 | __PACKAGE__->set_primary_key("mac"); | ||
| 30 | |||
| 31 | |||
| 32 | 1; |