@intelligo-dev/core 1.0.0-beta.1 → 1.0.0-beta.13
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.
- package/NOTICE +6 -0
- package/README.md +102 -0
- package/dist/attachments/errors.d.ts +7 -0
- package/dist/attachments/errors.d.ts.map +1 -0
- package/dist/attachments/errors.js +11 -0
- package/dist/attachments/errors.js.map +1 -0
- package/dist/attachments/index.d.ts +8 -0
- package/dist/attachments/index.d.ts.map +1 -0
- package/dist/attachments/index.js +7 -0
- package/dist/attachments/index.js.map +1 -0
- package/dist/attachments/service.d.ts +45 -0
- package/dist/attachments/service.d.ts.map +1 -0
- package/dist/attachments/service.js +100 -0
- package/dist/attachments/service.js.map +1 -0
- package/dist/attachments/types.d.ts +6 -0
- package/dist/attachments/types.d.ts.map +1 -0
- package/dist/attachments/types.js +2 -0
- package/dist/attachments/types.js.map +1 -0
- package/dist/conversations/errors.d.ts +2 -8
- package/dist/conversations/errors.d.ts.map +1 -1
- package/dist/conversations/errors.js +2 -8
- package/dist/conversations/errors.js.map +1 -1
- package/dist/conversations/index.d.ts +4 -12
- package/dist/conversations/index.d.ts.map +1 -1
- package/dist/conversations/index.js +2 -11
- package/dist/conversations/index.js.map +1 -1
- package/dist/conversations/service.d.ts +49 -61
- package/dist/conversations/service.d.ts.map +1 -1
- package/dist/conversations/service.js +110 -83
- package/dist/conversations/service.js.map +1 -1
- package/dist/conversations/types.d.ts +1 -4
- package/dist/conversations/types.d.ts.map +1 -1
- package/dist/conversations/types.js +0 -3
- package/dist/conversations/types.js.map +1 -1
- package/dist/db/client.d.ts +21 -10
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +43 -18
- package/dist/db/client.js.map +1 -1
- package/dist/db/index.d.ts +3 -3
- package/dist/db/index.d.ts.map +1 -1
- package/dist/db/index.js +3 -7
- package/dist/db/index.js.map +1 -1
- package/dist/db/schema/agents.d.ts +14 -51
- package/dist/db/schema/agents.d.ts.map +1 -1
- package/dist/db/schema/agents.js +9 -21
- package/dist/db/schema/agents.js.map +1 -1
- package/dist/db/schema/ai.d.ts +86 -1556
- package/dist/db/schema/ai.d.ts.map +1 -1
- package/dist/db/schema/ai.js +32 -236
- package/dist/db/schema/ai.js.map +1 -1
- package/dist/db/schema/auth.d.ts +5 -34
- package/dist/db/schema/auth.d.ts.map +1 -1
- package/dist/db/schema/auth.js +25 -56
- package/dist/db/schema/auth.js.map +1 -1
- package/dist/db/schema/billing.d.ts +136 -107
- package/dist/db/schema/billing.d.ts.map +1 -1
- package/dist/db/schema/billing.js +72 -60
- package/dist/db/schema/billing.js.map +1 -1
- package/dist/db/schema/feature-flags.d.ts +3 -12
- package/dist/db/schema/feature-flags.d.ts.map +1 -1
- package/dist/db/schema/feature-flags.js +3 -12
- package/dist/db/schema/feature-flags.js.map +1 -1
- package/dist/db/schema/identity.d.ts +12 -274
- package/dist/db/schema/identity.d.ts.map +1 -1
- package/dist/db/schema/identity.js +19 -104
- package/dist/db/schema/identity.js.map +1 -1
- package/dist/db/schema/index.d.ts +8 -15
- package/dist/db/schema/index.d.ts.map +1 -1
- package/dist/db/schema/index.js +12 -42
- package/dist/db/schema/index.js.map +1 -1
- package/dist/db/schema/notifications.d.ts +3 -17
- package/dist/db/schema/notifications.d.ts.map +1 -1
- package/dist/db/schema/notifications.js +3 -17
- package/dist/db/schema/notifications.js.map +1 -1
- package/dist/db/schema/usage.d.ts +94 -77
- package/dist/db/schema/usage.d.ts.map +1 -1
- package/dist/db/schema/usage.js +59 -89
- package/dist/db/schema/usage.js.map +1 -1
- package/dist/db/validate.d.ts +2 -11
- package/dist/db/validate.d.ts.map +1 -1
- package/dist/db/validate.js +6 -17
- package/dist/db/validate.js.map +1 -1
- package/dist/db/workspace-queries.d.ts +5 -29
- package/dist/db/workspace-queries.d.ts.map +1 -1
- package/dist/db/workspace-queries.js +5 -29
- package/dist/db/workspace-queries.js.map +1 -1
- package/dist/documents/classifier.d.ts +5 -12
- package/dist/documents/classifier.d.ts.map +1 -1
- package/dist/documents/classifier.js +16 -16
- package/dist/documents/classifier.js.map +1 -1
- package/dist/documents/errors.d.ts +2 -10
- package/dist/documents/errors.d.ts.map +1 -1
- package/dist/documents/errors.js +2 -10
- package/dist/documents/errors.js.map +1 -1
- package/dist/documents/index.d.ts +4 -13
- package/dist/documents/index.d.ts.map +1 -1
- package/dist/documents/index.js +3 -12
- package/dist/documents/index.js.map +1 -1
- package/dist/documents/service.d.ts +19 -26
- package/dist/documents/service.d.ts.map +1 -1
- package/dist/documents/service.js +44 -38
- package/dist/documents/service.js.map +1 -1
- package/dist/documents/types.d.ts +6 -10
- package/dist/documents/types.d.ts.map +1 -1
- package/dist/documents/types.js +0 -3
- package/dist/documents/types.js.map +1 -1
- package/dist/email/brand.d.ts +17 -0
- package/dist/email/brand.d.ts.map +1 -0
- package/dist/email/brand.js +9 -0
- package/dist/email/brand.js.map +1 -0
- package/dist/email/index.d.ts +4 -4
- package/dist/email/index.js +4 -4
- package/dist/email/provider.d.ts +1 -7
- package/dist/email/provider.d.ts.map +1 -1
- package/dist/email/provider.js +10 -19
- package/dist/email/provider.js.map +1 -1
- package/dist/email/send.d.ts +12 -12
- package/dist/email/send.d.ts.map +1 -1
- package/dist/email/send.js +5 -19
- package/dist/email/send.js.map +1 -1
- package/dist/email/senders.d.ts +17 -30
- package/dist/email/senders.d.ts.map +1 -1
- package/dist/email/senders.js +33 -47
- package/dist/email/senders.js.map +1 -1
- package/dist/email/templates/base-layout.d.ts +1 -1
- package/dist/email/templates/base-layout.d.ts.map +1 -1
- package/dist/email/templates/base-layout.js +4 -6
- package/dist/email/templates/base-layout.js.map +1 -1
- package/dist/email/templates/index.d.ts +10 -10
- package/dist/email/templates/index.d.ts.map +1 -1
- package/dist/email/templates/index.js +10 -16
- package/dist/email/templates/index.js.map +1 -1
- package/dist/email/templates/password-reset.d.ts +2 -2
- package/dist/email/templates/password-reset.d.ts.map +1 -1
- package/dist/email/templates/password-reset.js +10 -22
- package/dist/email/templates/password-reset.js.map +1 -1
- package/dist/email/templates/payment-failed.d.ts +2 -2
- package/dist/email/templates/payment-failed.d.ts.map +1 -1
- package/dist/email/templates/payment-failed.js +11 -24
- package/dist/email/templates/payment-failed.js.map +1 -1
- package/dist/email/templates/quota-warning.d.ts +4 -4
- package/dist/email/templates/quota-warning.d.ts.map +1 -1
- package/dist/email/templates/quota-warning.js +19 -39
- package/dist/email/templates/quota-warning.js.map +1 -1
- package/dist/email/templates/subscription-confirmed.d.ts +2 -2
- package/dist/email/templates/subscription-confirmed.d.ts.map +1 -1
- package/dist/email/templates/subscription-confirmed.js +13 -28
- package/dist/email/templates/subscription-confirmed.js.map +1 -1
- package/dist/email/templates/trial-expiry.d.ts +2 -2
- package/dist/email/templates/trial-expiry.d.ts.map +1 -1
- package/dist/email/templates/trial-expiry.js +12 -36
- package/dist/email/templates/trial-expiry.js.map +1 -1
- package/dist/email/templates/trial-warning.d.ts +2 -2
- package/dist/email/templates/trial-warning.d.ts.map +1 -1
- package/dist/email/templates/trial-warning.js +15 -32
- package/dist/email/templates/trial-warning.js.map +1 -1
- package/dist/email/templates/verify-email.d.ts +2 -2
- package/dist/email/templates/verify-email.d.ts.map +1 -1
- package/dist/email/templates/verify-email.js +10 -22
- package/dist/email/templates/verify-email.js.map +1 -1
- package/dist/email/templates/welcome.d.ts +2 -2
- package/dist/email/templates/welcome.d.ts.map +1 -1
- package/dist/email/templates/welcome.js +13 -20
- package/dist/email/templates/welcome.js.map +1 -1
- package/dist/email/templates/workspace-invitation.d.ts +2 -2
- package/dist/email/templates/workspace-invitation.d.ts.map +1 -1
- package/dist/email/templates/workspace-invitation.js +12 -26
- package/dist/email/templates/workspace-invitation.js.map +1 -1
- package/dist/env.d.ts +5 -10
- package/dist/env.d.ts.map +1 -1
- package/dist/env.js +41 -31
- package/dist/env.js.map +1 -1
- package/dist/identity/audit.d.ts +11 -24
- package/dist/identity/audit.d.ts.map +1 -1
- package/dist/identity/audit.js +13 -27
- package/dist/identity/audit.js.map +1 -1
- package/dist/identity/errors.d.ts +4 -12
- package/dist/identity/errors.d.ts.map +1 -1
- package/dist/identity/errors.js +2 -8
- package/dist/identity/errors.js.map +1 -1
- package/dist/identity/index.d.ts +5 -13
- package/dist/identity/index.d.ts.map +1 -1
- package/dist/identity/index.js +4 -12
- package/dist/identity/index.js.map +1 -1
- package/dist/identity/service.d.ts +13 -47
- package/dist/identity/service.d.ts.map +1 -1
- package/dist/identity/service.js +31 -78
- package/dist/identity/service.js.map +1 -1
- package/dist/identity/types.d.ts +1 -4
- package/dist/identity/types.d.ts.map +1 -1
- package/dist/identity/types.js +0 -3
- package/dist/identity/types.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -10
- package/dist/index.js.map +1 -1
- package/dist/logger.d.ts +7 -18
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +45 -49
- package/dist/logger.js.map +1 -1
- package/dist/money.d.ts +95 -0
- package/dist/money.d.ts.map +1 -0
- package/dist/money.js +208 -0
- package/dist/money.js.map +1 -0
- package/dist/notifications/index.d.ts +9 -43
- package/dist/notifications/index.d.ts.map +1 -1
- package/dist/notifications/index.js +9 -49
- package/dist/notifications/index.js.map +1 -1
- package/dist/notifications/triggers.d.ts +9 -32
- package/dist/notifications/triggers.d.ts.map +1 -1
- package/dist/notifications/triggers.js +21 -58
- package/dist/notifications/triggers.js.map +1 -1
- package/dist/notifications/types.d.ts +1 -10
- package/dist/notifications/types.d.ts.map +1 -1
- package/dist/notifications/types.js +0 -9
- package/dist/notifications/types.js.map +1 -1
- package/dist/prompt.d.ts +38 -0
- package/dist/prompt.d.ts.map +1 -0
- package/dist/prompt.js +118 -0
- package/dist/prompt.js.map +1 -0
- package/dist/registry.d.ts +32 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +60 -0
- package/dist/registry.js.map +1 -0
- package/dist/request-context.d.ts +49 -0
- package/dist/request-context.d.ts.map +1 -0
- package/dist/request-context.js +100 -0
- package/dist/request-context.js.map +1 -0
- package/dist/storage/index.d.ts +65 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +109 -0
- package/dist/storage/index.js.map +1 -0
- package/package.json +74 -24
- package/src/attachments/errors.ts +18 -0
- package/src/attachments/index.ts +22 -0
- package/src/attachments/service.ts +178 -0
- package/src/attachments/types.ts +6 -0
- package/src/conversations/errors.ts +45 -0
- package/src/conversations/index.ts +39 -0
- package/src/conversations/service.ts +594 -0
- package/src/conversations/types.ts +15 -0
- package/src/db/client.ts +91 -0
- package/src/db/index.ts +3 -0
- package/src/db/migrations/0000_baseline.sql +652 -0
- package/src/db/migrations/0001_reconcile_chain_built_databases.sql +53 -0
- package/src/db/migrations/0002_webhook_claim_lease.sql +1 -0
- package/src/db/migrations/README.md +74 -36
- package/src/db/migrations/legacy-chain.json +197 -0
- package/src/db/migrations/meta/0000_snapshot.json +4182 -157
- package/src/db/migrations/meta/0002_snapshot.json +2478 -368
- package/src/db/migrations/meta/_journal.json +6 -279
- package/src/db/schema/agents.ts +57 -0
- package/src/db/schema/ai.ts +174 -0
- package/src/db/schema/auth.ts +183 -0
- package/src/db/schema/billing.ts +209 -0
- package/src/db/schema/feature-flags.ts +20 -0
- package/src/db/schema/identity.ts +250 -0
- package/src/db/schema/index.ts +12 -0
- package/src/db/schema/notifications.ts +31 -0
- package/src/db/schema/usage.ts +269 -0
- package/src/db/validate.ts +63 -0
- package/src/db/workspace-queries.ts +64 -0
- package/src/documents/classifier.ts +61 -0
- package/src/documents/errors.ts +44 -0
- package/src/documents/index.ts +24 -0
- package/src/documents/service.ts +256 -0
- package/src/documents/types.ts +24 -0
- package/src/email/brand.ts +24 -0
- package/src/email/index.ts +19 -0
- package/src/email/provider.ts +278 -0
- package/src/email/send.ts +169 -0
- package/src/email/senders.ts +292 -0
- package/src/email/templates/base-layout.tsx +145 -0
- package/src/email/templates/index.ts +28 -0
- package/src/email/templates/password-reset.tsx +72 -0
- package/src/email/templates/payment-failed.tsx +77 -0
- package/src/email/templates/quota-warning.tsx +118 -0
- package/src/email/templates/subscription-confirmed.tsx +91 -0
- package/src/email/templates/trial-expiry.tsx +124 -0
- package/src/email/templates/trial-warning.tsx +104 -0
- package/src/email/templates/verify-email.tsx +72 -0
- package/src/email/templates/welcome.tsx +64 -0
- package/src/email/templates/workspace-invitation.tsx +105 -0
- package/src/env.ts +180 -0
- package/src/identity/audit.ts +65 -0
- package/src/identity/errors.ts +44 -0
- package/src/identity/index.ts +26 -0
- package/src/identity/service.ts +202 -0
- package/src/identity/types.ts +28 -0
- package/src/index.ts +4 -0
- package/src/logger.ts +198 -0
- package/src/money.ts +270 -0
- package/src/notifications/index.ts +108 -0
- package/src/notifications/triggers.ts +158 -0
- package/src/notifications/types.ts +18 -0
- package/src/prompt.ts +142 -0
- package/src/registry.ts +75 -0
- package/src/request-context.ts +137 -0
- package/src/storage/index.ts +153 -0
- package/dist/db/schema/rag.d.ts +0 -171
- package/dist/db/schema/rag.d.ts.map +0 -1
- package/dist/db/schema/rag.js +0 -42
- package/dist/db/schema/rag.js.map +0 -1
- package/src/db/migrations/0000_sharp_night_nurse.sql +0 -52
- package/src/db/migrations/0001_hesitant_vapor.sql +0 -40
- package/src/db/migrations/0002_numerous_lady_vermin.sql +0 -235
- package/src/db/migrations/0003_mighty_jean_grey.sql +0 -37
- package/src/db/migrations/0004_cynical_grandmaster.sql +0 -2
- package/src/db/migrations/0005_careful_switch.sql +0 -8
- package/src/db/migrations/0006_tense_blue_marvel.sql +0 -16
- package/src/db/migrations/0007_next_squadron_sinister.sql +0 -1
- package/src/db/migrations/0008_powerful_scream.sql +0 -39
- package/src/db/migrations/0009_sad_ink.sql +0 -1
- package/src/db/migrations/0010_shocking_omega_flight.sql +0 -2
- package/src/db/migrations/0011_ambiguous_otto_octavius.sql +0 -151
- package/src/db/migrations/0011_hnsw_vector_index.sql +0 -17
- package/src/db/migrations/0012_user_profiles.sql +0 -30
- package/src/db/migrations/0013_trending_seasonal_columns.sql +0 -9
- package/src/db/migrations/0014_add_product_type_to_agents.sql +0 -6
- package/src/db/migrations/0015_new_v1_tables.sql +0 -149
- package/src/db/migrations/0016_document_types.sql +0 -30
- package/src/db/migrations/0017_document_metadata.sql +0 -2
- package/src/db/migrations/0018_identity_graph.sql +0 -200
- package/src/db/migrations/0019_db_driven_prompts.sql +0 -20
- package/src/db/migrations/0020_pending_extractions.sql +0 -35
- package/src/db/migrations/0021_rag_documents.sql +0 -39
- package/src/db/migrations/0022_user_quotas_usage_jsonb.sql +0 -70
- package/src/db/migrations/0023_user_facts_user_scoped_unique.sql +0 -17
- package/src/db/migrations/0024_user_memories_hnsw.sql +0 -23
- package/src/db/migrations/0025_audit_trigger_errcode.sql +0 -21
- package/src/db/migrations/0026_user_profile_snapshots_composite_pk.sql +0 -17
- package/src/db/migrations/0027_billing_settings_mnt_columns.sql +0 -54
- package/src/db/migrations/0028_trial_credits_normalized_email.sql +0 -37
- package/src/db/migrations/0029_usage_records_conversation_idx.sql +0 -13
- package/src/db/migrations/0030_pending_extractions_composite_idx.sql +0 -11
- package/src/db/migrations/0031_rag_documents_hnsw.sql +0 -16
- package/src/db/migrations/0032_rate_limit_unique_idx.sql +0 -16
- package/src/db/migrations/0033_pending_extractions_partial_idx.sql +0 -18
- package/src/db/migrations/0034_rate_limit_count.sql +0 -9
- package/src/db/migrations/0035_credit_reservations.sql +0 -24
- package/src/db/migrations/0036_executions_audit_jobs.sql +0 -96
- package/src/db/migrations/0037_rate_limit_minute_bucket.sql +0 -46
- package/src/db/migrations/0038_user_quotas_generic_usage.sql +0 -25
- package/src/db/migrations/0039_platform_admin_impersonation.sql +0 -27
- package/src/db/migrations/0040_ee_audit_chain.sql +0 -23
- package/src/db/migrations/meta/0001_snapshot.json +0 -631
- package/src/db/migrations/meta/0003_snapshot.json +0 -2488
- package/src/db/migrations/meta/0004_snapshot.json +0 -2500
- package/src/db/migrations/meta/0005_snapshot.json +0 -2548
- package/src/db/migrations/meta/0006_snapshot.json +0 -2650
- package/src/db/migrations/meta/0007_snapshot.json +0 -2657
- package/src/db/migrations/meta/0008_snapshot.json +0 -2719
- package/src/db/migrations/meta/0009_snapshot.json +0 -2726
- package/src/db/migrations/meta/0010_snapshot.json +0 -2739
- package/src/db/migrations/meta/0011_snapshot.json +0 -3886
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
-- Platform role and impersonation support.
|
|
2
|
-
--
|
|
3
|
-
-- `users.role` makes platform admin a property of the user rather than
|
|
4
|
-
-- of the environment. PLATFORM_ADMIN_EMAILS stays as the bootstrap —
|
|
5
|
-
-- requirePlatformAdmin promotes an allowlisted user into this column on
|
|
6
|
-
-- first use — so a fresh deployment still has a way in, but the runtime
|
|
7
|
-
-- authority is a row, which Better-Auth's admin plugin can read and
|
|
8
|
-
-- which survives someone editing the env.
|
|
9
|
-
--
|
|
10
|
-
-- The ban columns are unused by the product; the admin plugin's schema
|
|
11
|
-
-- expects them and Better-Auth errors on a missing column rather than
|
|
12
|
-
-- degrading.
|
|
13
|
-
--
|
|
14
|
-
-- `sessions.impersonated_by` is what makes an impersonated session
|
|
15
|
-
-- recognisable as one after the fact, at the session itself and not
|
|
16
|
-
-- only in the audit trail.
|
|
17
|
-
|
|
18
|
-
ALTER TABLE users
|
|
19
|
-
ADD COLUMN IF NOT EXISTS role text,
|
|
20
|
-
ADD COLUMN IF NOT EXISTS banned boolean NOT NULL DEFAULT false,
|
|
21
|
-
ADD COLUMN IF NOT EXISTS ban_reason text,
|
|
22
|
-
ADD COLUMN IF NOT EXISTS ban_expires timestamp;
|
|
23
|
-
|
|
24
|
-
ALTER TABLE sessions
|
|
25
|
-
ADD COLUMN IF NOT EXISTS impersonated_by text;
|
|
26
|
-
|
|
27
|
-
CREATE INDEX IF NOT EXISTS users_role_idx ON users (role) WHERE role IS NOT NULL;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
-- Tamper-evidence chain over the audit trail.
|
|
2
|
-
--
|
|
3
|
-
-- Owned by @intelligo-dev/ee-governance, a package outside the public
|
|
4
|
-
-- allowlist. It appears in this shared history because Core owns the
|
|
5
|
-
-- migration chain for the whole database (ADR-0004) — but no public
|
|
6
|
-
-- package declares the table, imports the module, or knows the feature
|
|
7
|
-
-- exists. Removing the module removes the capability and nothing else.
|
|
8
|
-
--
|
|
9
|
-
-- No foreign key to audit_events on purpose: audit is append-only and
|
|
10
|
-
-- owned elsewhere, and a cascade from there would erase the evidence
|
|
11
|
-
-- that something was erased, which is the one thing this table is for.
|
|
12
|
-
|
|
13
|
-
CREATE TABLE IF NOT EXISTS ee_audit_chain (
|
|
14
|
-
event_id text PRIMARY KEY,
|
|
15
|
-
workspace_id text,
|
|
16
|
-
sequence integer NOT NULL,
|
|
17
|
-
previous_hash text NOT NULL,
|
|
18
|
-
hash text NOT NULL,
|
|
19
|
-
created_at timestamp NOT NULL DEFAULT now()
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
CREATE INDEX IF NOT EXISTS ee_audit_chain_workspace_seq_idx
|
|
23
|
-
ON ee_audit_chain (workspace_id, sequence);
|
|
@@ -1,631 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "1626d8bc-a1a5-4357-8a02-3b3edcf241b0",
|
|
3
|
-
"prevId": "a41167df-6e63-42a6-ac91-db2d8b73dbe0",
|
|
4
|
-
"version": "7",
|
|
5
|
-
"dialect": "postgresql",
|
|
6
|
-
"tables": {
|
|
7
|
-
"public.accounts": {
|
|
8
|
-
"name": "accounts",
|
|
9
|
-
"schema": "",
|
|
10
|
-
"columns": {
|
|
11
|
-
"id": {
|
|
12
|
-
"name": "id",
|
|
13
|
-
"type": "text",
|
|
14
|
-
"primaryKey": true,
|
|
15
|
-
"notNull": true
|
|
16
|
-
},
|
|
17
|
-
"user_id": {
|
|
18
|
-
"name": "user_id",
|
|
19
|
-
"type": "text",
|
|
20
|
-
"primaryKey": false,
|
|
21
|
-
"notNull": true
|
|
22
|
-
},
|
|
23
|
-
"account_id": {
|
|
24
|
-
"name": "account_id",
|
|
25
|
-
"type": "text",
|
|
26
|
-
"primaryKey": false,
|
|
27
|
-
"notNull": true
|
|
28
|
-
},
|
|
29
|
-
"provider_id": {
|
|
30
|
-
"name": "provider_id",
|
|
31
|
-
"type": "text",
|
|
32
|
-
"primaryKey": false,
|
|
33
|
-
"notNull": true
|
|
34
|
-
},
|
|
35
|
-
"access_token": {
|
|
36
|
-
"name": "access_token",
|
|
37
|
-
"type": "text",
|
|
38
|
-
"primaryKey": false,
|
|
39
|
-
"notNull": false
|
|
40
|
-
},
|
|
41
|
-
"refresh_token": {
|
|
42
|
-
"name": "refresh_token",
|
|
43
|
-
"type": "text",
|
|
44
|
-
"primaryKey": false,
|
|
45
|
-
"notNull": false
|
|
46
|
-
},
|
|
47
|
-
"access_token_expires_at": {
|
|
48
|
-
"name": "access_token_expires_at",
|
|
49
|
-
"type": "timestamp",
|
|
50
|
-
"primaryKey": false,
|
|
51
|
-
"notNull": false
|
|
52
|
-
},
|
|
53
|
-
"refresh_token_expires_at": {
|
|
54
|
-
"name": "refresh_token_expires_at",
|
|
55
|
-
"type": "timestamp",
|
|
56
|
-
"primaryKey": false,
|
|
57
|
-
"notNull": false
|
|
58
|
-
},
|
|
59
|
-
"scope": {
|
|
60
|
-
"name": "scope",
|
|
61
|
-
"type": "text",
|
|
62
|
-
"primaryKey": false,
|
|
63
|
-
"notNull": false
|
|
64
|
-
},
|
|
65
|
-
"id_token": {
|
|
66
|
-
"name": "id_token",
|
|
67
|
-
"type": "text",
|
|
68
|
-
"primaryKey": false,
|
|
69
|
-
"notNull": false
|
|
70
|
-
},
|
|
71
|
-
"password": {
|
|
72
|
-
"name": "password",
|
|
73
|
-
"type": "text",
|
|
74
|
-
"primaryKey": false,
|
|
75
|
-
"notNull": false
|
|
76
|
-
},
|
|
77
|
-
"created_at": {
|
|
78
|
-
"name": "created_at",
|
|
79
|
-
"type": "timestamp",
|
|
80
|
-
"primaryKey": false,
|
|
81
|
-
"notNull": true,
|
|
82
|
-
"default": "now()"
|
|
83
|
-
},
|
|
84
|
-
"updated_at": {
|
|
85
|
-
"name": "updated_at",
|
|
86
|
-
"type": "timestamp",
|
|
87
|
-
"primaryKey": false,
|
|
88
|
-
"notNull": true,
|
|
89
|
-
"default": "now()"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"indexes": {
|
|
93
|
-
"accounts_user_id_idx": {
|
|
94
|
-
"name": "accounts_user_id_idx",
|
|
95
|
-
"columns": [
|
|
96
|
-
{
|
|
97
|
-
"expression": "user_id",
|
|
98
|
-
"isExpression": false,
|
|
99
|
-
"asc": true,
|
|
100
|
-
"nulls": "last"
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"isUnique": false,
|
|
104
|
-
"concurrently": false,
|
|
105
|
-
"method": "btree",
|
|
106
|
-
"with": {}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"foreignKeys": {
|
|
110
|
-
"accounts_user_id_users_id_fk": {
|
|
111
|
-
"name": "accounts_user_id_users_id_fk",
|
|
112
|
-
"tableFrom": "accounts",
|
|
113
|
-
"tableTo": "users",
|
|
114
|
-
"columnsFrom": ["user_id"],
|
|
115
|
-
"columnsTo": ["id"],
|
|
116
|
-
"onDelete": "cascade",
|
|
117
|
-
"onUpdate": "no action"
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"compositePrimaryKeys": {},
|
|
121
|
-
"uniqueConstraints": {},
|
|
122
|
-
"policies": {},
|
|
123
|
-
"checkConstraints": {},
|
|
124
|
-
"isRLSEnabled": false
|
|
125
|
-
},
|
|
126
|
-
"public.invitation": {
|
|
127
|
-
"name": "invitation",
|
|
128
|
-
"schema": "",
|
|
129
|
-
"columns": {
|
|
130
|
-
"id": {
|
|
131
|
-
"name": "id",
|
|
132
|
-
"type": "text",
|
|
133
|
-
"primaryKey": true,
|
|
134
|
-
"notNull": true
|
|
135
|
-
},
|
|
136
|
-
"organization_id": {
|
|
137
|
-
"name": "organization_id",
|
|
138
|
-
"type": "text",
|
|
139
|
-
"primaryKey": false,
|
|
140
|
-
"notNull": true
|
|
141
|
-
},
|
|
142
|
-
"email": {
|
|
143
|
-
"name": "email",
|
|
144
|
-
"type": "text",
|
|
145
|
-
"primaryKey": false,
|
|
146
|
-
"notNull": true
|
|
147
|
-
},
|
|
148
|
-
"role": {
|
|
149
|
-
"name": "role",
|
|
150
|
-
"type": "text",
|
|
151
|
-
"primaryKey": false,
|
|
152
|
-
"notNull": true
|
|
153
|
-
},
|
|
154
|
-
"status": {
|
|
155
|
-
"name": "status",
|
|
156
|
-
"type": "text",
|
|
157
|
-
"primaryKey": false,
|
|
158
|
-
"notNull": true
|
|
159
|
-
},
|
|
160
|
-
"expires_at": {
|
|
161
|
-
"name": "expires_at",
|
|
162
|
-
"type": "timestamp",
|
|
163
|
-
"primaryKey": false,
|
|
164
|
-
"notNull": true
|
|
165
|
-
},
|
|
166
|
-
"inviter_id": {
|
|
167
|
-
"name": "inviter_id",
|
|
168
|
-
"type": "text",
|
|
169
|
-
"primaryKey": false,
|
|
170
|
-
"notNull": true
|
|
171
|
-
},
|
|
172
|
-
"created_at": {
|
|
173
|
-
"name": "created_at",
|
|
174
|
-
"type": "timestamp",
|
|
175
|
-
"primaryKey": false,
|
|
176
|
-
"notNull": true,
|
|
177
|
-
"default": "now()"
|
|
178
|
-
},
|
|
179
|
-
"updated_at": {
|
|
180
|
-
"name": "updated_at",
|
|
181
|
-
"type": "timestamp",
|
|
182
|
-
"primaryKey": false,
|
|
183
|
-
"notNull": true,
|
|
184
|
-
"default": "now()"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"indexes": {
|
|
188
|
-
"invitation_organization_id_idx": {
|
|
189
|
-
"name": "invitation_organization_id_idx",
|
|
190
|
-
"columns": [
|
|
191
|
-
{
|
|
192
|
-
"expression": "organization_id",
|
|
193
|
-
"isExpression": false,
|
|
194
|
-
"asc": true,
|
|
195
|
-
"nulls": "last"
|
|
196
|
-
}
|
|
197
|
-
],
|
|
198
|
-
"isUnique": false,
|
|
199
|
-
"concurrently": false,
|
|
200
|
-
"method": "btree",
|
|
201
|
-
"with": {}
|
|
202
|
-
},
|
|
203
|
-
"invitation_email_idx": {
|
|
204
|
-
"name": "invitation_email_idx",
|
|
205
|
-
"columns": [
|
|
206
|
-
{
|
|
207
|
-
"expression": "email",
|
|
208
|
-
"isExpression": false,
|
|
209
|
-
"asc": true,
|
|
210
|
-
"nulls": "last"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"isUnique": false,
|
|
214
|
-
"concurrently": false,
|
|
215
|
-
"method": "btree",
|
|
216
|
-
"with": {}
|
|
217
|
-
}
|
|
218
|
-
},
|
|
219
|
-
"foreignKeys": {
|
|
220
|
-
"invitation_organization_id_organization_id_fk": {
|
|
221
|
-
"name": "invitation_organization_id_organization_id_fk",
|
|
222
|
-
"tableFrom": "invitation",
|
|
223
|
-
"tableTo": "organization",
|
|
224
|
-
"columnsFrom": ["organization_id"],
|
|
225
|
-
"columnsTo": ["id"],
|
|
226
|
-
"onDelete": "cascade",
|
|
227
|
-
"onUpdate": "no action"
|
|
228
|
-
},
|
|
229
|
-
"invitation_inviter_id_users_id_fk": {
|
|
230
|
-
"name": "invitation_inviter_id_users_id_fk",
|
|
231
|
-
"tableFrom": "invitation",
|
|
232
|
-
"tableTo": "users",
|
|
233
|
-
"columnsFrom": ["inviter_id"],
|
|
234
|
-
"columnsTo": ["id"],
|
|
235
|
-
"onDelete": "no action",
|
|
236
|
-
"onUpdate": "no action"
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
|
-
"compositePrimaryKeys": {},
|
|
240
|
-
"uniqueConstraints": {},
|
|
241
|
-
"policies": {},
|
|
242
|
-
"checkConstraints": {},
|
|
243
|
-
"isRLSEnabled": false
|
|
244
|
-
},
|
|
245
|
-
"public.member": {
|
|
246
|
-
"name": "member",
|
|
247
|
-
"schema": "",
|
|
248
|
-
"columns": {
|
|
249
|
-
"id": {
|
|
250
|
-
"name": "id",
|
|
251
|
-
"type": "text",
|
|
252
|
-
"primaryKey": true,
|
|
253
|
-
"notNull": true
|
|
254
|
-
},
|
|
255
|
-
"organization_id": {
|
|
256
|
-
"name": "organization_id",
|
|
257
|
-
"type": "text",
|
|
258
|
-
"primaryKey": false,
|
|
259
|
-
"notNull": true
|
|
260
|
-
},
|
|
261
|
-
"user_id": {
|
|
262
|
-
"name": "user_id",
|
|
263
|
-
"type": "text",
|
|
264
|
-
"primaryKey": false,
|
|
265
|
-
"notNull": true
|
|
266
|
-
},
|
|
267
|
-
"role": {
|
|
268
|
-
"name": "role",
|
|
269
|
-
"type": "text",
|
|
270
|
-
"primaryKey": false,
|
|
271
|
-
"notNull": true
|
|
272
|
-
},
|
|
273
|
-
"created_at": {
|
|
274
|
-
"name": "created_at",
|
|
275
|
-
"type": "timestamp",
|
|
276
|
-
"primaryKey": false,
|
|
277
|
-
"notNull": true,
|
|
278
|
-
"default": "now()"
|
|
279
|
-
},
|
|
280
|
-
"updated_at": {
|
|
281
|
-
"name": "updated_at",
|
|
282
|
-
"type": "timestamp",
|
|
283
|
-
"primaryKey": false,
|
|
284
|
-
"notNull": true,
|
|
285
|
-
"default": "now()"
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
"indexes": {
|
|
289
|
-
"member_organization_id_idx": {
|
|
290
|
-
"name": "member_organization_id_idx",
|
|
291
|
-
"columns": [
|
|
292
|
-
{
|
|
293
|
-
"expression": "organization_id",
|
|
294
|
-
"isExpression": false,
|
|
295
|
-
"asc": true,
|
|
296
|
-
"nulls": "last"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
"isUnique": false,
|
|
300
|
-
"concurrently": false,
|
|
301
|
-
"method": "btree",
|
|
302
|
-
"with": {}
|
|
303
|
-
},
|
|
304
|
-
"member_user_id_idx": {
|
|
305
|
-
"name": "member_user_id_idx",
|
|
306
|
-
"columns": [
|
|
307
|
-
{
|
|
308
|
-
"expression": "user_id",
|
|
309
|
-
"isExpression": false,
|
|
310
|
-
"asc": true,
|
|
311
|
-
"nulls": "last"
|
|
312
|
-
}
|
|
313
|
-
],
|
|
314
|
-
"isUnique": false,
|
|
315
|
-
"concurrently": false,
|
|
316
|
-
"method": "btree",
|
|
317
|
-
"with": {}
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"foreignKeys": {
|
|
321
|
-
"member_organization_id_organization_id_fk": {
|
|
322
|
-
"name": "member_organization_id_organization_id_fk",
|
|
323
|
-
"tableFrom": "member",
|
|
324
|
-
"tableTo": "organization",
|
|
325
|
-
"columnsFrom": ["organization_id"],
|
|
326
|
-
"columnsTo": ["id"],
|
|
327
|
-
"onDelete": "cascade",
|
|
328
|
-
"onUpdate": "no action"
|
|
329
|
-
},
|
|
330
|
-
"member_user_id_users_id_fk": {
|
|
331
|
-
"name": "member_user_id_users_id_fk",
|
|
332
|
-
"tableFrom": "member",
|
|
333
|
-
"tableTo": "users",
|
|
334
|
-
"columnsFrom": ["user_id"],
|
|
335
|
-
"columnsTo": ["id"],
|
|
336
|
-
"onDelete": "cascade",
|
|
337
|
-
"onUpdate": "no action"
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
"compositePrimaryKeys": {},
|
|
341
|
-
"uniqueConstraints": {},
|
|
342
|
-
"policies": {},
|
|
343
|
-
"checkConstraints": {},
|
|
344
|
-
"isRLSEnabled": false
|
|
345
|
-
},
|
|
346
|
-
"public.organization": {
|
|
347
|
-
"name": "organization",
|
|
348
|
-
"schema": "",
|
|
349
|
-
"columns": {
|
|
350
|
-
"id": {
|
|
351
|
-
"name": "id",
|
|
352
|
-
"type": "text",
|
|
353
|
-
"primaryKey": true,
|
|
354
|
-
"notNull": true
|
|
355
|
-
},
|
|
356
|
-
"name": {
|
|
357
|
-
"name": "name",
|
|
358
|
-
"type": "text",
|
|
359
|
-
"primaryKey": false,
|
|
360
|
-
"notNull": true
|
|
361
|
-
},
|
|
362
|
-
"slug": {
|
|
363
|
-
"name": "slug",
|
|
364
|
-
"type": "text",
|
|
365
|
-
"primaryKey": false,
|
|
366
|
-
"notNull": false
|
|
367
|
-
},
|
|
368
|
-
"logo": {
|
|
369
|
-
"name": "logo",
|
|
370
|
-
"type": "text",
|
|
371
|
-
"primaryKey": false,
|
|
372
|
-
"notNull": false
|
|
373
|
-
},
|
|
374
|
-
"metadata": {
|
|
375
|
-
"name": "metadata",
|
|
376
|
-
"type": "text",
|
|
377
|
-
"primaryKey": false,
|
|
378
|
-
"notNull": false
|
|
379
|
-
},
|
|
380
|
-
"created_at": {
|
|
381
|
-
"name": "created_at",
|
|
382
|
-
"type": "timestamp",
|
|
383
|
-
"primaryKey": false,
|
|
384
|
-
"notNull": true,
|
|
385
|
-
"default": "now()"
|
|
386
|
-
},
|
|
387
|
-
"updated_at": {
|
|
388
|
-
"name": "updated_at",
|
|
389
|
-
"type": "timestamp",
|
|
390
|
-
"primaryKey": false,
|
|
391
|
-
"notNull": true,
|
|
392
|
-
"default": "now()"
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
"indexes": {},
|
|
396
|
-
"foreignKeys": {},
|
|
397
|
-
"compositePrimaryKeys": {},
|
|
398
|
-
"uniqueConstraints": {
|
|
399
|
-
"organization_slug_unique": {
|
|
400
|
-
"name": "organization_slug_unique",
|
|
401
|
-
"nullsNotDistinct": false,
|
|
402
|
-
"columns": ["slug"]
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
"policies": {},
|
|
406
|
-
"checkConstraints": {},
|
|
407
|
-
"isRLSEnabled": false
|
|
408
|
-
},
|
|
409
|
-
"public.sessions": {
|
|
410
|
-
"name": "sessions",
|
|
411
|
-
"schema": "",
|
|
412
|
-
"columns": {
|
|
413
|
-
"id": {
|
|
414
|
-
"name": "id",
|
|
415
|
-
"type": "text",
|
|
416
|
-
"primaryKey": true,
|
|
417
|
-
"notNull": true
|
|
418
|
-
},
|
|
419
|
-
"user_id": {
|
|
420
|
-
"name": "user_id",
|
|
421
|
-
"type": "text",
|
|
422
|
-
"primaryKey": false,
|
|
423
|
-
"notNull": true
|
|
424
|
-
},
|
|
425
|
-
"token": {
|
|
426
|
-
"name": "token",
|
|
427
|
-
"type": "text",
|
|
428
|
-
"primaryKey": false,
|
|
429
|
-
"notNull": true
|
|
430
|
-
},
|
|
431
|
-
"expires_at": {
|
|
432
|
-
"name": "expires_at",
|
|
433
|
-
"type": "timestamp",
|
|
434
|
-
"primaryKey": false,
|
|
435
|
-
"notNull": true
|
|
436
|
-
},
|
|
437
|
-
"ip_address": {
|
|
438
|
-
"name": "ip_address",
|
|
439
|
-
"type": "text",
|
|
440
|
-
"primaryKey": false,
|
|
441
|
-
"notNull": false
|
|
442
|
-
},
|
|
443
|
-
"user_agent": {
|
|
444
|
-
"name": "user_agent",
|
|
445
|
-
"type": "text",
|
|
446
|
-
"primaryKey": false,
|
|
447
|
-
"notNull": false
|
|
448
|
-
},
|
|
449
|
-
"created_at": {
|
|
450
|
-
"name": "created_at",
|
|
451
|
-
"type": "timestamp",
|
|
452
|
-
"primaryKey": false,
|
|
453
|
-
"notNull": true,
|
|
454
|
-
"default": "now()"
|
|
455
|
-
},
|
|
456
|
-
"updated_at": {
|
|
457
|
-
"name": "updated_at",
|
|
458
|
-
"type": "timestamp",
|
|
459
|
-
"primaryKey": false,
|
|
460
|
-
"notNull": true,
|
|
461
|
-
"default": "now()"
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
"indexes": {
|
|
465
|
-
"sessions_user_id_idx": {
|
|
466
|
-
"name": "sessions_user_id_idx",
|
|
467
|
-
"columns": [
|
|
468
|
-
{
|
|
469
|
-
"expression": "user_id",
|
|
470
|
-
"isExpression": false,
|
|
471
|
-
"asc": true,
|
|
472
|
-
"nulls": "last"
|
|
473
|
-
}
|
|
474
|
-
],
|
|
475
|
-
"isUnique": false,
|
|
476
|
-
"concurrently": false,
|
|
477
|
-
"method": "btree",
|
|
478
|
-
"with": {}
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
"foreignKeys": {
|
|
482
|
-
"sessions_user_id_users_id_fk": {
|
|
483
|
-
"name": "sessions_user_id_users_id_fk",
|
|
484
|
-
"tableFrom": "sessions",
|
|
485
|
-
"tableTo": "users",
|
|
486
|
-
"columnsFrom": ["user_id"],
|
|
487
|
-
"columnsTo": ["id"],
|
|
488
|
-
"onDelete": "cascade",
|
|
489
|
-
"onUpdate": "no action"
|
|
490
|
-
}
|
|
491
|
-
},
|
|
492
|
-
"compositePrimaryKeys": {},
|
|
493
|
-
"uniqueConstraints": {
|
|
494
|
-
"sessions_token_unique": {
|
|
495
|
-
"name": "sessions_token_unique",
|
|
496
|
-
"nullsNotDistinct": false,
|
|
497
|
-
"columns": ["token"]
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
"policies": {},
|
|
501
|
-
"checkConstraints": {},
|
|
502
|
-
"isRLSEnabled": false
|
|
503
|
-
},
|
|
504
|
-
"public.users": {
|
|
505
|
-
"name": "users",
|
|
506
|
-
"schema": "",
|
|
507
|
-
"columns": {
|
|
508
|
-
"id": {
|
|
509
|
-
"name": "id",
|
|
510
|
-
"type": "text",
|
|
511
|
-
"primaryKey": true,
|
|
512
|
-
"notNull": true
|
|
513
|
-
},
|
|
514
|
-
"name": {
|
|
515
|
-
"name": "name",
|
|
516
|
-
"type": "text",
|
|
517
|
-
"primaryKey": false,
|
|
518
|
-
"notNull": true
|
|
519
|
-
},
|
|
520
|
-
"email": {
|
|
521
|
-
"name": "email",
|
|
522
|
-
"type": "text",
|
|
523
|
-
"primaryKey": false,
|
|
524
|
-
"notNull": true
|
|
525
|
-
},
|
|
526
|
-
"email_verified": {
|
|
527
|
-
"name": "email_verified",
|
|
528
|
-
"type": "boolean",
|
|
529
|
-
"primaryKey": false,
|
|
530
|
-
"notNull": true,
|
|
531
|
-
"default": false
|
|
532
|
-
},
|
|
533
|
-
"image": {
|
|
534
|
-
"name": "image",
|
|
535
|
-
"type": "text",
|
|
536
|
-
"primaryKey": false,
|
|
537
|
-
"notNull": false
|
|
538
|
-
},
|
|
539
|
-
"created_at": {
|
|
540
|
-
"name": "created_at",
|
|
541
|
-
"type": "timestamp",
|
|
542
|
-
"primaryKey": false,
|
|
543
|
-
"notNull": true,
|
|
544
|
-
"default": "now()"
|
|
545
|
-
},
|
|
546
|
-
"updated_at": {
|
|
547
|
-
"name": "updated_at",
|
|
548
|
-
"type": "timestamp",
|
|
549
|
-
"primaryKey": false,
|
|
550
|
-
"notNull": true,
|
|
551
|
-
"default": "now()"
|
|
552
|
-
}
|
|
553
|
-
},
|
|
554
|
-
"indexes": {},
|
|
555
|
-
"foreignKeys": {},
|
|
556
|
-
"compositePrimaryKeys": {},
|
|
557
|
-
"uniqueConstraints": {
|
|
558
|
-
"users_email_unique": {
|
|
559
|
-
"name": "users_email_unique",
|
|
560
|
-
"nullsNotDistinct": false,
|
|
561
|
-
"columns": ["email"]
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
"policies": {},
|
|
565
|
-
"checkConstraints": {},
|
|
566
|
-
"isRLSEnabled": false
|
|
567
|
-
},
|
|
568
|
-
"public.verifications": {
|
|
569
|
-
"name": "verifications",
|
|
570
|
-
"schema": "",
|
|
571
|
-
"columns": {
|
|
572
|
-
"id": {
|
|
573
|
-
"name": "id",
|
|
574
|
-
"type": "text",
|
|
575
|
-
"primaryKey": true,
|
|
576
|
-
"notNull": true
|
|
577
|
-
},
|
|
578
|
-
"identifier": {
|
|
579
|
-
"name": "identifier",
|
|
580
|
-
"type": "text",
|
|
581
|
-
"primaryKey": false,
|
|
582
|
-
"notNull": true
|
|
583
|
-
},
|
|
584
|
-
"value": {
|
|
585
|
-
"name": "value",
|
|
586
|
-
"type": "text",
|
|
587
|
-
"primaryKey": false,
|
|
588
|
-
"notNull": true
|
|
589
|
-
},
|
|
590
|
-
"expires_at": {
|
|
591
|
-
"name": "expires_at",
|
|
592
|
-
"type": "timestamp",
|
|
593
|
-
"primaryKey": false,
|
|
594
|
-
"notNull": true
|
|
595
|
-
},
|
|
596
|
-
"created_at": {
|
|
597
|
-
"name": "created_at",
|
|
598
|
-
"type": "timestamp",
|
|
599
|
-
"primaryKey": false,
|
|
600
|
-
"notNull": true,
|
|
601
|
-
"default": "now()"
|
|
602
|
-
},
|
|
603
|
-
"updated_at": {
|
|
604
|
-
"name": "updated_at",
|
|
605
|
-
"type": "timestamp",
|
|
606
|
-
"primaryKey": false,
|
|
607
|
-
"notNull": true,
|
|
608
|
-
"default": "now()"
|
|
609
|
-
}
|
|
610
|
-
},
|
|
611
|
-
"indexes": {},
|
|
612
|
-
"foreignKeys": {},
|
|
613
|
-
"compositePrimaryKeys": {},
|
|
614
|
-
"uniqueConstraints": {},
|
|
615
|
-
"policies": {},
|
|
616
|
-
"checkConstraints": {},
|
|
617
|
-
"isRLSEnabled": false
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
"enums": {},
|
|
621
|
-
"schemas": {},
|
|
622
|
-
"sequences": {},
|
|
623
|
-
"roles": {},
|
|
624
|
-
"policies": {},
|
|
625
|
-
"views": {},
|
|
626
|
-
"_meta": {
|
|
627
|
-
"columns": {},
|
|
628
|
-
"schemas": {},
|
|
629
|
-
"tables": {}
|
|
630
|
-
}
|
|
631
|
-
}
|