Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-simple-survey
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-simple-survey
Commits
92eb7da8
Commit
92eb7da8
authored
Jan 04, 2006
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added mapping table for reports
parent
7b6644a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
2 deletions
+67
-2
intranet-simple-survey-create.sql
sql/postgresql/intranet-simple-survey-create.sql
+67
-2
No files found.
sql/postgresql/intranet-simple-survey-create.sql
View file @
92eb7da8
...
@@ -7,7 +7,73 @@
...
@@ -7,7 +7,73 @@
--
--
-- @author frank.bergmann@project-open.com
-- @author frank.bergmann@project-open.com
-- Sets up an interface to show Security Server messages
-----------------------------------------------------------
-- Simple Surveys - Object Linking Map
--
-- This map links "Business Object Types" (users, projects and
-- companies) and it's Type (provider, customer, internal, ...)
-- to Simple Surveys.
-- In the future we will also include there information about:
-- - Who whould fill out the survey
-- - When a person should fill out a survey
--
-- The problem with survey is not that much "restriction"
-- (make sure only the right persons fill out a survey)
-- but "enforcemente" (make sure the survey is filled out
-- when necessary, such as a PM report).
--
-- Permissions are being set at the survey level, not at
-- this mapping level.
create
table
im_survsimp_object_map
(
acs_object_type
varchar
(
1000
)
constraint
im_survsimp_omap_object_type_nn
not
null
constraint
im_survsimp_omap_object_type_fk
references
acs_object_types
,
biz_object_type_id
integer
constraint
im_survsimp_omap_biz_object_type_id_fk
references
im_categories
,
survey_id
integer
constraint
im_survsimp_omap_survey_id_nn
not
null
constraint
im_survsimp_omap_survey_id_fk
references
survsimp_surveys
,
name
varchar
(
1000
),
obligatory_p
char
(
1
)
default
'f'
constraint
im_survsimp_omap_obligatory_p_ck
check
(
obligatory_p
in
(
't'
,
'f'
)),
recurrence_tcl
varchar
(
4000
),
interviewee_profile_id
integer
constraint
im_survsimp_omap_interv_id_fk
references
groups
,
note
varchar
(
4000
)
);
create
index
im_survsimp_object_map_acs_object_type_idx
on
im_survsimp_object_map
(
acs_object_type
);
create
index
im_survsimp_object_map_biz_object_type_idx
on
im_survsimp_object_map
(
biz_object_type_id
);
create
index
im_survsimp_object_map_survey_idx
on
im_survsimp_object_map
(
survey_id
);
insert
into
im_survsimp_object_map
(
acs_object_type
,
biz_object_type_id
,
survey_id
,
name
,
obligatory_p
,
recurrence_tcl
,
interviewee_profile_id
,
note
)
values
(
'im_project'
,
null
,
-- all project subtypes
(
select
survey_id
from
survsimp_surveys
where
short_name
=
'pm_weekly'
),
'Weekly Project Report'
,
't'
,
''
,
-- Recurrence
467
,
-- Project Managers
'Please deliver weekly until Friday 11am'
);
---------------------------------------------------------
---------------------------------------------------------
-- delete potentially existing menus and plugins if this
-- delete potentially existing menus and plugins if this
...
@@ -113,4 +179,3 @@ end;' language 'plpgsql';
...
@@ -113,4 +179,3 @@ end;' language 'plpgsql';
select
inline_0
();
select
inline_0
();
drop
function
inline_0
();
drop
function
inline_0
();
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