« blib/lib/App/Netdisco/DB/Result/Admin.pm
↑ Summary
blib/lib/App/Netdisco/DB/Result/DeviceBrowser.pm »
| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::Community; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use base 'App::Netdisco::DB::Result'; | ||
| 8 | __PACKAGE__->table("community"); | ||
| 9 | __PACKAGE__->add_columns( | ||
| 10 | "ip", | ||
| 11 | { data_type => "inet", is_nullable => 0 }, | ||
| 12 | "snmp_comm_rw", | ||
| 13 | { data_type => "text", is_nullable => 1 }, | ||
| 14 | "snmp_auth_tag_read", | ||
| 15 | { data_type => "text", is_nullable => 1 }, | ||
| 16 | "snmp_auth_tag_write", | ||
| 17 | { data_type => "text", is_nullable => 1 }, | ||
| 18 | ); | ||
| 19 | __PACKAGE__->set_primary_key("ip"); | ||
| 20 | |||
| 21 | 1; |