File: Person.pm

package info (click to toggle)
libcatalyst-view-csv-perl 1.8-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 228 kB
  • sloc: perl: 1,622; sh: 14; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package TestDB::Result::Person;

use base qw ( DBIx::Class );
use strict;
use warnings;

__PACKAGE__->load_components ( qw ( Core ) );
__PACKAGE__->table ( "person" );
__PACKAGE__->add_columns (
  id => {
    data_type => "serial",
    is_numeric => 1,
    is_auto_increment => 1,
  },
  name => {
    data_type => "text",
  },
);

1;