Rose Dateien für Tabelle user_preferences
authorG. Richardson <information@kivitendo-premium.de>
Thu, 28 Jul 2016 11:06:10 +0000 (13:06 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Thu, 28 Jul 2016 11:06:10 +0000 (13:06 +0200)
SL/DB/Helper/ALL.pm
SL/DB/Helper/Mappings.pm
SL/DB/Manager/UserPreference.pm [new file with mode: 0644]
SL/DB/MetaSetup/UserPreference.pm [new file with mode: 0644]
SL/DB/UserPreference.pm [new file with mode: 0644]

index 23cf4ac..da11bb4 100644 (file)
@@ -121,6 +121,7 @@ use SL::DB::Translation;
 use SL::DB::TriggerInformation;
 use SL::DB::Unit;
 use SL::DB::UnitsLanguage;
+use SL::DB::UserPreference;
 use SL::DB::VC;
 use SL::DB::Vendor;
 use SL::DB::Warehouse;
index 2a074dd..738a93c 100644 (file)
@@ -201,6 +201,7 @@ my %kivitendo_package_names = (
   trigger_information            => 'trigger_information',
   units                          => 'unit',
   units_language                 => 'units_language',
+  user_preferences               => 'user_preference',
   vendor                         => 'vendor',
   warehouse                      => 'warehouse',
 );
diff --git a/SL/DB/Manager/UserPreference.pm b/SL/DB/Manager/UserPreference.pm
new file mode 100644 (file)
index 0000000..3ad81e5
--- /dev/null
@@ -0,0 +1,14 @@
+# This file has been auto-generated only because it didn't exist.
+# Feel free to modify it at will; it will not be overwritten automatically.
+
+package SL::DB::Manager::UserPreference;
+
+use strict;
+
+use parent qw(SL::DB::Helper::Manager);
+
+sub object_class { 'SL::DB::UserPreference' }
+
+__PACKAGE__->make_manager_methods;
+
+1;
diff --git a/SL/DB/MetaSetup/UserPreference.pm b/SL/DB/MetaSetup/UserPreference.pm
new file mode 100644 (file)
index 0000000..9c075d1
--- /dev/null
@@ -0,0 +1,25 @@
+# This file has been auto-generated. Do not modify it; it will be overwritten
+# by rose_auto_create_model.pl automatically.
+package SL::DB::UserPreference;
+
+use strict;
+
+use parent qw(SL::DB::Object);
+
+__PACKAGE__->meta->table('user_preferences');
+
+__PACKAGE__->meta->columns(
+  id        => { type => 'serial', not_null => 1 },
+  key       => { type => 'text', not_null => 1 },
+  login     => { type => 'text', not_null => 1 },
+  namespace => { type => 'text', not_null => 1 },
+  value     => { type => 'text' },
+  version   => { type => 'numeric', precision => 15, scale => 5 },
+);
+
+__PACKAGE__->meta->primary_key_columns([ 'id' ]);
+
+__PACKAGE__->meta->unique_keys([ 'login', 'namespace', 'version', 'key' ]);
+
+1;
+;
diff --git a/SL/DB/UserPreference.pm b/SL/DB/UserPreference.pm
new file mode 100644 (file)
index 0000000..c7a7a35
--- /dev/null
@@ -0,0 +1,13 @@
+# This file has been auto-generated only because it didn't exist.
+# Feel free to modify it at will; it will not be overwritten automatically.
+
+package SL::DB::UserPreference;
+
+use strict;
+
+use SL::DB::MetaSetup::UserPreference;
+use SL::DB::Manager::UserPreference;
+
+__PACKAGE__->meta->initialize;
+
+1;