Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-hr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-hr
Commits
d2d90245
Commit
d2d90245
authored
Dec 06, 2012
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Resource Availability:
Created an initial table definition for Malte
parent
93d3531e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
intranet-hr-create-resource-availability.sql
sql/postgresql/intranet-hr-create-resource-availability.sql
+63
-0
No files found.
sql/postgresql/intranet-hr-create-resource-availability.sql
0 → 100644
View file @
d2d90245
-- /packages/intranet-hr/sql/postgresql/intranet-hr-create-resource-availability.sql
--
-- ]project-open[ HR Module
--
-- frank.bergmann@project-open.com,
-- malte.sussdorff@cognovis.de
--
-- Copyright (C) 2012 by Authors
--
-- This program is free software. You can redistribute it
-- and/or modify it under the terms of the GNU General
-- Public License as published by the Free Software Foundation;
-- either version 2 of the License, or (at your option)
-- any later version. This program is distributed in the
-- hope that it will be useful, but WITHOUT ANY WARRANTY;
-- without even the implied warranty of MERCHANTABILITY or
-- FITNESS FOR A PARTICULAR PURPOSE.
-- See the GNU General Public License for more details.
----------------------------------------------------
-- Availability of resources (users, skill profiles, conf_items, ...)
-- over time.
--
create
sequence
im_resource_availability_seq
;
create
table
im_resource_availability
(
-- primary key
availability_id
integer
constraint
im_resource_availability_pk
primary
key
default
(
next_val
(
'im_resource_availability_seq'
)),
-- "input fields" - defines the object and the time dimension
-- please make sure that the time dimension does not have "holes"
resource_id
integer
constraint
im_resource_availability_object_fk
references
im_biz_objects
,
start_date
timestamptz
,
end_date
timestamptz
,
-- "output fields" - availability of resource to various
-- external objects. You need to sum up availabilities
-- for a given constraint (for example: cost_center_id),
-- because there may be multiple entries per skill_profile_id)
availability_percent
numeric
(
12
,
2
)
constraint
im_resource_availability_availability_ck
(
availability_percent
between
0
.
0
and
100
.
0
),
cost_center_id
integer
constraint
im_resource_availability_cost_center_fk
references
im_cost_centers
,
office_id
integer
constraint
im_resource_availability_office_fk
references
im_offices
,
skill_profile_id
integer
constraint
im_resource_availability_skill_profile_fk
references
parties
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment