Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions database/constructive-compute-stubs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
EXTENSION = constructive-compute-stubs
DATA = sql/constructive-compute-stubs--0.0.1.sql

PG_CONFIG = pg_config
PGXS := $(shell $(PG_CONFIG) --pgxs)
include $(PGXS)
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# constructive-compute-stubs extension
comment = 'constructive-compute-stubs module'
default_version = '0.0.1'
relocatable = false
requires = 'plpgsql,pgpm-inflection,pgpm-stamps'
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- Deploy: schemas/constructive_auth_private/schema
-- made with <3 @ constructive.io




CREATE SCHEMA "constructive_auth_private";

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/alterations/alt0000001666
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
DISABLE ROW LEVEL SECURITY;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/alterations/alt0000001667
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


COMMENT ON TABLE "constructive_auth_private".app_settings_auth IS E'Singleton configuration table for authentication settings including session durations, lockout policy, and password requirements';

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/alterations/alt0000001685
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_anonymous_sessions SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/alterations/alt0000001686
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_anonymous_sessions SET DEFAULT true;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/alterations/alt0000001687
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_anonymous_sessions IS E'Whether to allow anonymous sessions (useful for CSRF protection and shopping carts)';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_anonymous_sessions/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_anonymous_sessions boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/alterations/alt0000001760
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_api_keys SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/alterations/alt0000001761
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_api_keys SET DEFAULT true;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/alterations/alt0000001762
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_api_keys IS 'Whether API key creation is allowed';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_api_keys/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_api_keys boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/alterations/alt0000001757
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_backup_codes SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/alterations/alt0000001758
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_backup_codes SET DEFAULT true;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/alterations/alt0000001759
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_backup_codes IS 'Whether backup code generation is allowed';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_backup_codes/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_backup_codes boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/alterations/alt0000001742
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_cross_origin_token SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/alterations/alt0000001743
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_cross_origin_token SET DEFAULT true;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/alterations/alt0000001744
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_cross_origin_token IS E'Whether cross-origin session handoff tokens are allowed';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_cross_origin_token/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_cross_origin_token boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/alterations/alt0000001751
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_email_mfa SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/alterations/alt0000001752
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_email_mfa SET DEFAULT true;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/alterations/alt0000001753
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_email_mfa IS 'Whether email code MFA is allowed';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_mfa/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_email_mfa boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/alterations/alt0000001727
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_email_otp_sign_in SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/alterations/alt0000001728
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_email_otp_sign_in SET DEFAULT false;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/alterations/alt0000001729
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_email_otp_sign_in IS E'Whether passwordless email OTP sign-in is allowed';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_email_otp_sign_in/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_email_otp_sign_in boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/alterations/alt0000001721
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_identity_sign_in SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/alterations/alt0000001722
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_identity_sign_in SET DEFAULT false;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/alterations/alt0000001723
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_identity_sign_in IS E'Whether identity sign-in is allowed';

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_in/column
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table


ALTER TABLE "constructive_auth_private".app_settings_auth
ADD COLUMN allow_identity_sign_in boolean;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_up/alterations/alt0000001709
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_up/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_identity_sign_up SET NOT NULL;

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_up/alterations/alt0000001710
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/table
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_up/column


ALTER TABLE "constructive_auth_private".app_settings_auth
ALTER COLUMN allow_identity_sign_up SET DEFAULT false;

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- Deploy: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_up/alterations/alt0000001711
-- made with <3 @ constructive.io

-- requires: schemas/constructive_auth_private/schema
-- requires: schemas/constructive_auth_private/tables/app_settings_auth/columns/allow_identity_sign_up/column


COMMENT ON COLUMN "constructive_auth_private".app_settings_auth.allow_identity_sign_up IS E'Whether Identity-based account creation is allowed';

Loading
Loading