aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost/Schema/Result/Log.pm
blob: 87fb8d96b34273ee076f8fe49709389f422be806 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package Fripost::Schema::Result::Log;

use 5.010_000;
use warnings;
use strict;

use base qw/DBIx::Class::Core/;

# mysql> describe log;
# +-------+-------------+------+-----+-------------------+----------------+
# | Field | Type        | Null | Key | Default           | Extra          |
# +-------+-------------+------+-----+-------------------+----------------+
# | id    | int(11)     | NO   | PRI | NULL              | auto_increment | 
# | user  | varchar(20) | NO   |     |                   |                | 
# | event | text        | NO   |     | NULL              |                | 
# | date  | timestamp   | NO   |     | CURRENT_TIMESTAMP |                | 
# +-------+-------------+------+-----+-------------------+----------------+
# 4 rows in set (0.00 sec)

__PACKAGE__->load_components(qw/InflateColumn::DateTime/);

__PACKAGE__->table('mailbox');
__PACKAGE__->add_columns(qw/ id user event /);
__PACKAGE__->add_columns(
    date => { data_type => 'datetime', timezone => "Europe/Stockholm", locale => "se_SV" },
);
  
__PACKAGE__->set_primary_key('id');

=head1 NAME

Fripost::Schema::Result::Log - 

=head1 AUTHOR

Stefan Kangas C<< <skangas at skangas.se> >>

=head1 COPYRIGHT

Copyright 2010,2011 Stefan Kangas, all rights reserved.

=head1 LICENSE

This program is free software; you can redistribute it and/or modify it
under the same terms as perl itself.

=cut

1; # End of Log.pm