« blib/lib/App/Netdisco/DB/Result/SNMPObject.pm
↑ Summary
blib/lib/App/Netdisco/DB/Result/Statistics.pm »
| 1 | use utf8; | ||
| 2 | package App::Netdisco::DB::Result::Session; | ||
| 3 | |||
| 4 | |||
| 5 | use strict; | ||
| 6 | use warnings; | ||
| 7 | |||
| 8 | use base 'App::Netdisco::DB::Result'; | ||
| 9 | __PACKAGE__->table("sessions"); | ||
| 10 | __PACKAGE__->add_columns( | ||
| 11 | "id", | ||
| 12 | { data_type => "char", is_nullable => 0, size => 32 }, | ||
| 13 | "creation", | ||
| 14 | { | ||
| 15 | data_type => "timestamp", | ||
| 16 | default_value => \"LOCALTIMESTAMP", | ||
| 17 | is_nullable => 1, | ||
| 18 | original => { default_value => \"LOCALTIMESTAMP" }, | ||
| 19 | }, | ||
| 20 | "a_session", | ||
| 21 | { data_type => "text", is_nullable => 1 }, | ||
| 22 | ); | ||
| 23 | __PACKAGE__->set_primary_key("id"); | ||
| 24 | |||
| 25 | 1; |