File: WithTimeStamp.pm

package info (click to toggle)
libdbix-class-encodedcolumn-perl 0.00020-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 236 kB
  • sloc: perl: 616; sql: 48; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (5)
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
package # hide from PAUSE
    DigestTest::Schema::WithTimeStamp;

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

__PACKAGE__->load_components(qw/TimeStamp EncodedColumn/);
__PACKAGE__->table('test_with_timestamp');
__PACKAGE__->add_columns(
  id => {
    data_type => 'int',
    is_nullable => 0,
    is_auto_increment => 1
  },
  bcrypt_1 => {
    data_type => 'text',
    is_nullable => 1,
    size => 60,
    encode_column => 1,
    encode_class  => 'Crypt::Eksblowfish::Bcrypt',
    encode_check_method => 'bcrypt_1_check',
  },
  bcrypt_2 => {
    data_type => 'text',
    is_nullable => 1,
    size => 59,
    encode_column => 1,
    encode_class  => 'Crypt::Eksblowfish::Bcrypt',
    encode_args   => {key_nul => 0, cost => 6 },
    encode_check_method => 'bcrypt_2_check',
  },
);

__PACKAGE__->set_primary_key('id');

1;