You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Multi-instance mode (see auth.instances) table intentionally not supported and ignored.
2
2
3
-
createtableif not exists auth.sso_providers (
3
+
createtableif not exists {{ index .Options "Namespace" }}.sso_providers (
4
4
id uuid not null,
5
5
resource_id textnull,
6
6
created_at timestamptznull,
@@ -9,28 +9,28 @@ create table if not exists auth.sso_providers (
9
9
constraint"resource_id not empty"check (resource_id =nullor char_length(resource_id) >0)
10
10
);
11
11
12
-
comment on table auth.sso_providers is 'Auth: Manages SSO identity provider information; see saml_providers for SAML.';
13
-
comment on column auth.sso_providers.resource_id is 'Auth: Uniquely identifies a SSO provider according to a user-chosen resource ID (case insensitive), useful in infrastructure as code.';
12
+
comment on table {{ index .Options "Namespace" }}.sso_providers is 'Auth: Manages SSO identity provider information; see saml_providers for SAML.';
13
+
comment on column {{ index .Options "Namespace" }}.sso_providers.resource_id is 'Auth: Uniquely identifies a SSO provider according to a user-chosen resource ID (case insensitive), useful in infrastructure as code.';
14
14
15
-
createunique indexif not exists sso_providers_resource_id_idx onauth.sso_providers (lower(resource_id));
15
+
createunique indexif not exists sso_providers_resource_id_idx on{{ index .Options "Namespace" }}.sso_providers (lower(resource_id));
16
16
17
-
createtableif not exists auth.sso_domains (
17
+
createtableif not exists {{ index .Options "Namespace" }}.sso_domains (
18
18
id uuid not null,
19
19
sso_provider_id uuid not null,
20
20
domain textnot null,
21
21
created_at timestamptznull,
22
22
updated_at timestamptznull,
23
23
primary key (id),
24
-
foreign key (sso_provider_id) referencesauth.sso_providers (id) on delete cascade,
24
+
foreign key (sso_provider_id) references{{ index .Options "Namespace" }}.sso_providers (id) on delete cascade,
25
25
constraint"domain not empty"check (char_length(domain) >0)
26
26
);
27
27
28
-
createindexif not exists sso_domains_sso_provider_id_idx onauth.sso_domains (sso_provider_id);
29
-
createunique indexif not exists sso_domains_domain_idx onauth.sso_domains (lower(domain));
28
+
createindexif not exists sso_domains_sso_provider_id_idx on{{ index .Options "Namespace" }}.sso_domains (sso_provider_id);
29
+
createunique indexif not exists sso_domains_domain_idx on{{ index .Options "Namespace" }}.sso_domains (lower(domain));
30
30
31
-
comment on table auth.sso_domains is 'Auth: Manages SSO email address domain mapping to an SSO Identity Provider.';
31
+
comment on table {{ index .Options "Namespace" }}.sso_domains is 'Auth: Manages SSO email address domain mapping to an SSO Identity Provider.';
32
32
33
-
createtableif not exists auth.saml_providers (
33
+
createtableif not exists {{ index .Options "Namespace" }}.saml_providers (
34
34
id uuid not null,
35
35
sso_provider_id uuid not null,
36
36
entity_id textnot null unique,
@@ -40,17 +40,17 @@ create table if not exists auth.saml_providers (
40
40
created_at timestamptznull,
41
41
updated_at timestamptznull,
42
42
primary key (id),
43
-
foreign key (sso_provider_id) referencesauth.sso_providers (id) on delete cascade,
43
+
foreign key (sso_provider_id) references{{ index .Options "Namespace" }}.sso_providers (id) on delete cascade,
44
44
constraint"metadata_xml not empty"check (char_length(metadata_xml) >0),
45
45
constraint"metadata_url not empty"check (metadata_url =nullor char_length(metadata_url) >0),
46
46
constraint"entity_id not empty"check (char_length(entity_id) >0)
47
47
);
48
48
49
-
createindexif not exists saml_providers_sso_provider_id_idx onauth.saml_providers (sso_provider_id);
49
+
createindexif not exists saml_providers_sso_provider_id_idx on{{ index .Options "Namespace" }}.saml_providers (sso_provider_id);
50
50
51
-
comment on table auth.saml_providers is 'Auth: Manages SAML Identity Provider connections.';
51
+
comment on table {{ index .Options "Namespace" }}.saml_providers is 'Auth: Manages SAML Identity Provider connections.';
52
52
53
-
createtableif not exists auth.saml_relay_states (
53
+
createtableif not exists {{ index .Options "Namespace" }}.saml_relay_states (
54
54
id uuid not null,
55
55
sso_provider_id uuid not null,
56
56
request_id textnot null,
@@ -60,16 +60,16 @@ create table if not exists auth.saml_relay_states (
60
60
created_at timestamptznull,
61
61
updated_at timestamptznull,
62
62
primary key (id),
63
-
foreign key (sso_provider_id) referencesauth.sso_providers (id) on delete cascade,
63
+
foreign key (sso_provider_id) references{{ index .Options "Namespace" }}.sso_providers (id) on delete cascade,
64
64
constraint"request_id not empty"check(char_length(request_id) >0)
65
65
);
66
66
67
-
createindexif not exists saml_relay_states_sso_provider_id_idx onauth.saml_relay_states (sso_provider_id);
68
-
createindexif not exists saml_relay_states_for_email_idx onauth.saml_relay_states (for_email);
67
+
createindexif not exists saml_relay_states_sso_provider_id_idx on{{ index .Options "Namespace" }}.saml_relay_states (sso_provider_id);
68
+
createindexif not exists saml_relay_states_for_email_idx on{{ index .Options "Namespace" }}.saml_relay_states (for_email);
69
69
70
-
comment on table auth.saml_relay_states is 'Auth: Contains SAML Relay State information for each Service Provider initiated login.';
70
+
comment on table {{ index .Options "Namespace" }}.saml_relay_states is 'Auth: Contains SAML Relay State information for each Service Provider initiated login.';
71
71
72
-
createtableif not exists auth.sso_sessions (
72
+
createtableif not exists {{ index .Options "Namespace" }}.sso_sessions (
73
73
id uuid not null,
74
74
session_id uuid not null,
75
75
sso_provider_id uuid null,
@@ -79,12 +79,12 @@ create table if not exists auth.sso_sessions (
79
79
created_at timestamptznull,
80
80
updated_at timestamptznull,
81
81
primary key (id),
82
-
foreign key (session_id) referencesauth.sessions (id) on delete cascade,
83
-
foreign key (sso_provider_id) referencesauth.sso_providers (id) on delete cascade
82
+
foreign key (session_id) references{{ index .Options "Namespace" }}.sessions (id) on delete cascade,
83
+
foreign key (sso_provider_id) references{{ index .Options "Namespace" }}.sso_providers (id) on delete cascade
84
84
);
85
85
86
-
createindexif not exists sso_sessions_session_id_idx onauth.sso_sessions (session_id);
87
-
createindexif not exists sso_sessions_sso_provider_id_idx onauth.sso_sessions (sso_provider_id);
86
+
createindexif not exists sso_sessions_session_id_idx on{{ index .Options "Namespace" }}.sso_sessions (session_id);
87
+
createindexif not exists sso_sessions_sso_provider_id_idx on{{ index .Options "Namespace" }}.sso_sessions (sso_provider_id);
88
88
89
-
comment on table auth.sso_sessions is 'Auth: A session initiated by an SSO Identity Provider';
89
+
comment on table {{ index .Options "Namespace" }}.sso_sessions is 'Auth: A session initiated by an SSO Identity Provider';
0 commit comments