← 返回目錄

資料庫明細:directory(人員與帳號)

員工、登入帳號、角色權限、病房範圍、登入紀錄

資料庫明細:directory(人員與帳號) 員工、登入帳號、角色權限、病房範圍、登入紀錄 帳號與登入 人員 其他 schema 角色與權限 account · 登入帳號・107 筆 · 實體 · 帳號與登入 account PK id uuid|主鍵 FK staff_id uuid|員工 provider text|登入方式 subject text|登入識別碼 is_enabled boolean|啟用 last_login_at timestamptz?|最後登入時間 created_at timestamptz|建立時間 account_password · 院內帳號密碼・1 筆 · 實體 · 帳號與登入 account_password PKFK account_id uuid|登入帳號 password_hash text|密碼雜湊 must_change boolean|下次登入須改密碼 changed_at timestamptz|密碼變更時間 failed_count integer|連續失敗次數 locked_until timestamptz?|鎖定至 login_event · 登入紀錄・55 筆 · 實體 · 帳號與登入 login_event PK id bigint|主鍵 occurred_at timestamptz|發生時間 outcome text|結果 provider text|登入方式 email text?|電子郵件 FK staff_id uuid?|人員 reason text?|失敗原因 ip text?|來源 IP user_agent text?|瀏覽器資訊 staff · 員工・166 筆 · 實體 · 人員 staff PK id uuid|主鍵 display_name text|姓名 UK workspace_email text?|Google 帳號信箱 UK careone_username text?|CareOne 帳號 employee_no text?|員工編號 job_title text?|職稱 is_active boolean|在職 source text|資料來源 first_seen_on date?|最早出現日 last_seen_on date?|最後出現日 note text?|備註 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 legacy_codes text[]|舊系統院內代碼 staff_role · 員工角色・157 筆 · 實體 · 人員 staff_role PKFK staff_id uuid|員工 PKFK role_id uuid|角色 PK effective_from date|生效日 effective_to date?|失效日 staff_unit_scope · 人員病房範圍・0 筆 · 實體 · 人員 staff_unit_scope PKFK staff_id uuid|員工 PKFK nursing_unit_id uuid|護理單位 core.nursing_unit · 護理單位(完整欄位見 04c) · 實體 · 其他 schema core.nursing_unit PK id uuid|主鍵 role · 角色・17 筆 · 實體 · 角色與權限 role PK id uuid|主鍵 UK code text|角色代碼 name text|角色名稱 description text?|說明 is_system boolean|系統角色 is_active boolean|啟用 sort_order integer|排序 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 UK careone_name text?|CareOne 角色名稱 is_read_only boolean|唯讀角色 role_permission · 角色權限・15,703 筆 · 實體 · 角色與權限 role_permission PKFK role_id uuid|角色 PKFK permission_id uuid|權限 permission · 權限碼・1,167 筆 · 實體 · 角色與權限 permission PK id uuid|主鍵 UK code text|權限碼 FK menu_id uuid|所屬選單 action text|動作 name text|權限名稱 sort_order integer|排序 menu · 選單・244 筆 · 實體 · 角色與權限 menu PK id uuid|主鍵 FK parent_id uuid?|上層選單 UK code text|選單代碼 name text|選單名稱 path text?|頁面路徑 icon text?|圖示 sort_order integer|排序 is_active boolean|啟用 created_at timestamptz|建立時間 updated_at timestamptz|更新時間 staff_id staff_id staff_id role_id menu_id role_id permission_id account_id staff_id nursing_unit_id 圖例 PK 主鍵 FK 外來鍵 UK 唯一鍵 一 多 選填