initial import of DBIx-Class-InflateColumn-IP 0.02000 from CPAN
[dbsrgits/DBIx-Class-InflateColumn-IP.git] / t / lib / DBICTest / Schema / Network.pm
CommitLineData
3a889a03 1package # hide from PAUSE
2 DBICTest::Schema::Network;
3
4use base qw/DBIx::Class/;
5
6__PACKAGE__->load_components(qw/InflateColumn::IP Core/);
7__PACKAGE__->table('network');
8
9__PACKAGE__->add_columns(
10 netname => {
11 data_type => 'text',
12 is_nullable => 0,
13 },
14 address => {
15 data_type => 'varchar',
16 size => '18',
17 is_nullable => 0,
18 is_ip => 1,
19 ip_format => 'cidr',
20 }
21);
22
23__PACKAGE__->set_primary_key('netname');
24__PACKAGE__->add_unique_constraint(address => [ qw/address/ ]);
25
261;