File: User.pm

package info (click to toggle)
libdancer-plugin-dbic-perl 0.2104-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 196 kB
  • sloc: perl: 48; makefile: 13; sh: 4
file content (13 lines) | stat: -rw-r--r-- 304 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
package Foo::Result::User;
use base 'DBIx::Class::Core';
use strict;
use warnings;

__PACKAGE__->table("user");
__PACKAGE__->add_columns(
  name => { data_type => "varchar", is_nullable => 0, size => 100 },
  age  => { data_type => "int", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("name");

1;