Changes for page Data Structures
Last modified by Kerem Yollu on 2025/03/23 11:28
From version 12.4
edited by Kerem Yollu
on 2025/03/23 10:47
on 2025/03/23 10:47
Change comment:
There is no comment for this version
To version 13.1
edited by Kerem Yollu
on 2025/03/23 10:54
on 2025/03/23 10:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -57,7 +57,7 @@ 57 57 IS 'Optional: for geolocation'; 58 58 {{/code}} 59 59 60 -== Reference /Lookup Tables ==60 +== Lookup Tables without references. == 61 61 62 62 === Company === 63 63 ... ... @@ -95,10 +95,7 @@ 95 95 DECLARE 96 96 tname TEXT; 97 97 BEGIN 98 - FOREACH tname IN ARRAY ARRAY'company_legal_form','company_relation','company_status','company_type', 99 - 'task_status', 'task_type', 'task_category', 100 - 'user_role', 'user_type', 101 - 'project_type','project_areas', 'project_person_roles', 'project_company_role'] 98 + FOREACH tname IN ARRAY ARRAY'TBALE_ONE','TABLE_TWO'] 102 102 LOOP 103 103 EXECUTE format(' 104 104 CREATE TABLE IF NOT EXISTS public.%I ( ... ... @@ -114,4 +114,24 @@ 114 114 END$$; 115 115 {{/code}} 116 116 117 -== == 114 +== Lookup Tables with references. == 115 + 116 +=== Company === 117 + 118 +* company_departements 119 + 120 +{{code language="sql"}} 121 +CREATE TABLE IF NOT EXISTS public.TABLE 122 +( 123 + uid SERIAL PRIMARY KEY, 124 + OTHER_TABLE_uid INTEGER NOT NULL REFERENCES public.OTHER_TABLE(uid) ON DELETE CASCADE, 125 + name VARCHAR(100) NOT NULL, 126 + description VARCHAR(255), 127 + creation_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, 128 + updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP 129 +) 130 +TABLESPACE pg_default; 131 + 132 +ALTER TABLE IF EXISTS public.TABLE 133 + OWNER TO kpm_rw; 134 +{{/code}}