MetaSetup neu generiert
[kivitendo-erp.git] / SL / DB / MetaSetup / AuthUser.pm
index 2175190..50b87ed 100644 (file)
@@ -6,20 +6,20 @@ use strict;
 
 use base qw(SL::DB::Object);
 
-__PACKAGE__->meta->setup(
-  table   => 'user',
-  schema  => 'auth',
+__PACKAGE__->meta->table('user');
+__PACKAGE__->meta->schema('auth');
 
-  columns => [
-    id       => { type => 'serial', not_null => 1 },
-    login    => { type => 'text', not_null => 1 },
-    password => { type => 'text' },
-  ],
+__PACKAGE__->meta->columns(
+  id       => { type => 'serial', not_null => 1 },
+  login    => { type => 'text', not_null => 1 },
+  password => { type => 'text' },
+);
 
-  primary_key_columns => [ 'id' ],
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
-  unique_key => [ 'login' ],
-);
+__PACKAGE__->meta->unique_keys([ 'login' ]);
+
+# __PACKAGE__->meta->initialize;
 
 1;
 ;