Skip to content

Instantly share code, notes, and snippets.

@marcusramberg
Created November 30, 2008 16:58
Show Gist options
  • Save marcusramberg/30477 to your computer and use it in GitHub Desktop.
Save marcusramberg/30477 to your computer and use it in GitHub Desktop.
package iwatchthis::Schema::Openid;
# Created by DBIx::Class::Schema::Loader v0.03007 @ 2006-11-30 17:47:08
use strict;
use warnings;
use base 'DBIx::Class';
__PACKAGE__->load_components( "UTF8Columns","ResultSetManager", "Core");
__PACKAGE__->table("openid");
__PACKAGE__->add_columns(
"user",
{ data_type => "BIGINT", default_value => undef, is_nullable => 0, size => 20 },
"id",
{
data_type => "VARCHAR",
default_value => undef,
is_nullable => 1,
size => 255,
},
);
__PACKAGE__->utf8_columns(qw/id/);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("id", ["id"]);
__PACKAGE__->has_many('persons','iwatchthis::Schema::Person',{'foreign.user'=>'self.id'});
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment