aboutsummaryrefslogtreecommitdiff
path: root/perl/lib/Wallet/Schema/Result/Duo.pm
blob: d392e29de581d1f72090085a3af9712eada5bde0 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Wallet schema for Duo metadata.
#
# Written by Jon Robertson <jonrober@stanford.edu>
# Copyright 2014
#     The Board of Trustees of the Leland Stanford Junior University
#
# See LICENSE for licensing terms.

package Wallet::Schema::Result::Duo;

use strict;
use warnings;

use base 'DBIx::Class::Core';

our $VERSION = '1.04';

=for stopwords
keytab enctype

=head1 NAME

Wallet::Schema::Result::Duo - Wallet schema for Duo metadata

=head1 DESCRIPTION

=cut

__PACKAGE__->table("duo");

=head1 ACCESSORS

=head2 du_name

  data_type: 'varchar'
  is_nullable: 0
  size: 255

=head2 du_key

  data_type: 'varchar'
  is_nullable: 0
  size: 255

=cut

__PACKAGE__->add_columns(
  "du_name",
  { data_type => "varchar", is_nullable => 0, size => 255 },
  "du_type",
  { data_type => "varchar", is_nullable => 0, size => 16 },
  "du_key",
  { data_type => "varchar", is_nullable => 0, size => 255 },
);
__PACKAGE__->set_primary_key("du_name", "du_type");

__PACKAGE__->belongs_to(
                        'object',
                        'Wallet::Schema::Result::Object',
                        {
                            'foreign.ob_type' => 'self.du_type',
                            'foreign.ob_name' => 'self.du_name',
                        },
                       );
1;