« blib/lib/App/Netdisco/DB/Result/L3DomainMember.pm
↑ Summary
blib/lib/App/Netdisco/DB/Result/Manufacturer.pm »
| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::Log; | ||
| 3 | |||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | use base 'App::Netdisco::DB::Result'; | ||
| 9 | __PACKAGE__->table("log"); | ||
| 10 | __PACKAGE__->add_columns( | ||
| 11 | "id", | ||
| 12 | { | ||
| 13 | data_type => "integer", | ||
| 14 | is_auto_increment => 1, | ||
| 15 | is_nullable => 0, | ||
| 16 | sequence => "log_id_seq", | ||
| 17 | }, | ||
| 18 | "creation", | ||
| 19 | { | ||
| 20 | data_type => "timestamp", | ||
| 21 | default_value => \"LOCALTIMESTAMP", | ||
| 22 | is_nullable => 1, | ||
| 23 | original => { default_value => \"LOCALTIMESTAMP" }, | ||
| 24 | }, | ||
| 25 | "class", | ||
| 26 | { data_type => "text", is_nullable => 1 }, | ||
| 27 | "entry", | ||
| 28 | { data_type => "text", is_nullable => 1 }, | ||
| 29 | "logfile", | ||
| 30 | { data_type => "text", is_nullable => 1 }, | ||
| 31 | ); | ||
| 32 | |||
| 33 | 1; |