Files
netdisco/lib/App/Netdisco/DB/Result/NodeMonitor.pm
2019-05-27 12:49:56 +01:00

36 lines
783 B
Perl

use utf8;
package App::Netdisco::DB::Result::NodeMonitor;
use strict;
use warnings;
use base 'DBIx::Class::Core';
__PACKAGE__->table("node_monitor");
__PACKAGE__->add_columns(
"mac",
{ data_type => "macaddr", is_nullable => 0 },
"matchoui",
{ data_type => "boolean", is_nullable => 1 },
"active",
{ data_type => "boolean", is_nullable => 1 },
"why",
{ data_type => "text", is_nullable => 1 },
"cc",
{ data_type => "text", is_nullable => 1 },
"date",
{
data_type => "timestamp",
default_value => \"current_timestamp",
is_nullable => 1,
original => { default_value => \"now()" },
},
);
__PACKAGE__->set_primary_key("mac");
# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;