@pgpm/metaschema-modules 0.21.2 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/README.md +7 -8
  2. package/deploy/schemas/metaschema_modules_public/tables/billing_module/table.sql +47 -0
  3. package/deploy/schemas/metaschema_modules_public/tables/billing_provider_module/table.sql +61 -0
  4. package/deploy/schemas/metaschema_modules_public/tables/devices_module/table.sql +36 -0
  5. package/deploy/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +332 -0
  6. package/deploy/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +33 -0
  7. package/deploy/schemas/metaschema_modules_public/tables/invites_module/table.sql +8 -0
  8. package/deploy/schemas/metaschema_modules_public/tables/limits_module/table.sql +38 -2
  9. package/deploy/schemas/metaschema_modules_public/tables/memberships_module/table.sql +7 -0
  10. package/deploy/schemas/metaschema_modules_public/tables/notifications_module/table.sql +66 -0
  11. package/deploy/schemas/metaschema_modules_public/tables/permissions_module/table.sql +23 -1
  12. package/deploy/schemas/metaschema_modules_public/tables/plans_module/table.sql +46 -0
  13. package/deploy/schemas/metaschema_modules_public/tables/profiles_module/table.sql +5 -0
  14. package/deploy/schemas/metaschema_modules_public/tables/realtime_module/table.sql +48 -0
  15. package/deploy/schemas/metaschema_modules_public/tables/relation_provision/table.sql +10 -45
  16. package/deploy/schemas/metaschema_modules_public/tables/secure_table_provision/table.sql +8 -39
  17. package/deploy/schemas/metaschema_modules_public/tables/session_secrets_module/table.sql +31 -0
  18. package/deploy/schemas/metaschema_modules_public/tables/storage_module/table.sql +42 -4
  19. package/deploy/schemas/metaschema_modules_public/tables/user_auth_module/table.sql +2 -2
  20. package/deploy/schemas/metaschema_modules_public/tables/webauthn_auth_module/table.sql +63 -0
  21. package/deploy/schemas/metaschema_modules_public/tables/webauthn_credentials_module/table.sql +32 -0
  22. package/package.json +5 -5
  23. package/pgpm.plan +12 -1
  24. package/revert/schemas/metaschema_modules_public/tables/billing_module/table.sql +3 -0
  25. package/revert/schemas/metaschema_modules_public/tables/billing_provider_module/table.sql +3 -0
  26. package/revert/schemas/metaschema_modules_public/tables/devices_module/table.sql +7 -0
  27. package/revert/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +7 -0
  28. package/revert/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +7 -0
  29. package/revert/schemas/metaschema_modules_public/tables/notifications_module/table.sql +7 -0
  30. package/revert/schemas/metaschema_modules_public/tables/plans_module/table.sql +7 -0
  31. package/revert/schemas/metaschema_modules_public/tables/realtime_module/table.sql +7 -0
  32. package/revert/schemas/metaschema_modules_public/tables/session_secrets_module/table.sql +7 -0
  33. package/revert/schemas/metaschema_modules_public/tables/webauthn_auth_module/table.sql +7 -0
  34. package/revert/schemas/metaschema_modules_public/tables/webauthn_credentials_module/table.sql +7 -0
  35. package/sql/metaschema-modules--0.15.5.sql +1269 -469
  36. package/verify/schemas/metaschema_modules_public/tables/billing_module/table.sql +23 -0
  37. package/verify/schemas/metaschema_modules_public/tables/billing_provider_module/table.sql +29 -0
  38. package/verify/schemas/metaschema_modules_public/tables/devices_module/table.sql +7 -0
  39. package/verify/schemas/metaschema_modules_public/tables/entity_type_provision/table.sql +7 -0
  40. package/verify/schemas/metaschema_modules_public/tables/identity_providers_module/table.sql +7 -0
  41. package/verify/schemas/metaschema_modules_public/tables/notifications_module/table.sql +7 -0
  42. package/verify/schemas/metaschema_modules_public/tables/plans_module/table.sql +13 -0
  43. package/verify/schemas/metaschema_modules_public/tables/realtime_module/table.sql +7 -0
  44. package/verify/schemas/metaschema_modules_public/tables/relation_provision/table.sql +2 -8
  45. package/verify/schemas/metaschema_modules_public/tables/secure_table_provision/table.sql +2 -8
  46. package/verify/schemas/metaschema_modules_public/tables/session_secrets_module/table.sql +7 -0
  47. package/verify/schemas/metaschema_modules_public/tables/webauthn_auth_module/table.sql +7 -0
  48. package/verify/schemas/metaschema_modules_public/tables/webauthn_credentials_module/table.sql +7 -0
@@ -0,0 +1,23 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/billing_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT
6
+ id,
7
+ database_id,
8
+ schema_id,
9
+ private_schema_id,
10
+ meters_table_id,
11
+ meters_table_name,
12
+ plan_subscriptions_table_id,
13
+ plan_subscriptions_table_name,
14
+ ledger_table_id,
15
+ ledger_table_name,
16
+ balances_table_id,
17
+ balances_table_name,
18
+ record_usage_function,
19
+ prefix
20
+ FROM metaschema_modules_public.billing_module
21
+ WHERE FALSE;
22
+
23
+ ROLLBACK;
@@ -0,0 +1,29 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/billing_provider_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT
6
+ id,
7
+ database_id,
8
+ schema_id,
9
+ private_schema_id,
10
+ provider,
11
+ products_table_id,
12
+ prices_table_id,
13
+ subscriptions_table_id,
14
+ billing_customers_table_id,
15
+ billing_customers_table_name,
16
+ billing_products_table_id,
17
+ billing_products_table_name,
18
+ billing_prices_table_id,
19
+ billing_prices_table_name,
20
+ billing_subscriptions_table_id,
21
+ billing_subscriptions_table_name,
22
+ billing_webhook_events_table_id,
23
+ billing_webhook_events_table_name,
24
+ process_billing_event_function,
25
+ prefix
26
+ FROM metaschema_modules_public.billing_provider_module
27
+ WHERE FALSE;
28
+
29
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/devices_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.devices_module');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/entity_type_provision/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.entity_type_provision');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/identity_providers_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.identity_providers_module');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/notifications_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.notifications_module');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,13 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/plans_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT id, database_id, schema_id, private_schema_id,
6
+ plans_table_id, plans_table_name,
7
+ plan_limits_table_id, plan_limits_table_name,
8
+ apply_plan_function, apply_plan_aggregate_function,
9
+ prefix
10
+ FROM metaschema_modules_public.plans_module
11
+ WHERE FALSE;
12
+
13
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/realtime_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.realtime_module');
6
+
7
+ ROLLBACK;
@@ -21,14 +21,8 @@ SELECT
21
21
  create_index,
22
22
  expose_in_api,
23
23
  nodes,
24
- grant_roles,
25
- grant_privileges,
26
- policy_type,
27
- policy_privileges,
28
- policy_role,
29
- policy_permissive,
30
- policy_name,
31
- policy_data,
24
+ grants,
25
+ policies,
32
26
  out_field_id,
33
27
  out_junction_table_id,
34
28
  out_source_field_id,
@@ -11,14 +11,8 @@ SELECT
11
11
  nodes,
12
12
  use_rls,
13
13
  fields,
14
- grant_roles,
15
- grant_privileges,
16
- policy_type,
17
- policy_privileges,
18
- policy_role,
19
- policy_permissive,
20
- policy_name,
21
- policy_data,
14
+ grants,
15
+ policies,
22
16
  out_fields
23
17
  FROM metaschema_modules_public.secure_table_provision
24
18
  WHERE FALSE;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/session_secrets_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.session_secrets_module');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/webauthn_auth_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.webauthn_auth_module');
6
+
7
+ ROLLBACK;
@@ -0,0 +1,7 @@
1
+ -- Verify schemas/metaschema_modules_public/tables/webauthn_credentials_module/table on pg
2
+
3
+ BEGIN;
4
+
5
+ SELECT verify_table ('metaschema_modules_public.webauthn_credentials_module');
6
+
7
+ ROLLBACK;