See UserDetail: User Description in detail
CREATE VIEW vwuserdetail AS (
SELECT ud.id,
ud.name,
ud.jabberid,
ud.state,
ud.title,
lower((ud.email)::text) AS email,
ud.username,
ud.department,
ud.manager AS managerid,
md.name AS managername,
ud.username AS agentname,
ud.divisionid,
ud.employeeid,
ud.datehire,
ud.updated,
dd.name AS divisionname,
dd.homedivision
FROM ((userdetails ud
LEFT JOIN userdetails md ON (((md.id)::text = (ud.manager)::text)))
LEFT JOIN divisiondetails dd ON (((ud.divisionid)::text = (dd.id)::text)))
)
Name | Type | Default | Nullable | Children | Parents | Comment |
---|---|---|---|---|---|---|
id | varchar(50) | true | User GUID | |||
name | varchar(200) | true | User Name | |||
jabberid | varchar(100) | true | Jabber GUID | |||
state | varchar(50) | true | User State | |||
title | varchar(200) | true | User Title | |||
text | true | Email Address | ||||
username | varchar(200) | true | Username | |||
department | varchar(200) | true | User Department | |||
managerid | varchar(50) | true | Manager GUID | |||
managername | varchar(200) | true | Manager Name | |||
agentname | varchar(200) | true | Agent Name | |||
divisionid | varchar(50) | true | Division GUID | |||
employeeid | varchar(50) | true | Employee GUID | |||
datehire | varchar(50) | true | Employee Hire Date | |||
updated | timestamp without time zone | true | Last Updated | |||
divisionname | varchar(50) | true | Division Name | |||
homedivision | varchar(50) | true | Home Division |
Name | Columns | Comment | Type |
---|---|---|---|
public.userdetails | 13 | BASE TABLE | |
public.divisiondetails | 4 | BASE TABLE |