@kontexted/darwin-arm64 0.1.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.
Potentially problematic release.
This version of @kontexted/darwin-arm64 might be problematic. Click here for more details.
- package/bin/kontexted +0 -0
- package/bin/kontexted-migrate +0 -0
- package/migrations/postgresql/0000_mysterious_sharon_ventura.sql +219 -0
- package/migrations/postgresql/meta/0000_snapshot.json +1678 -0
- package/migrations/postgresql/meta/_journal.json +13 -0
- package/migrations/sqlite/0000_low_old_lace.sql +219 -0
- package/migrations/sqlite/meta/0000_snapshot.json +1587 -0
- package/migrations/sqlite/meta/_journal.json +13 -0
- package/package.json +22 -0
- package/public/assets/index-D7m-7Tv3.css +1 -0
- package/public/assets/index-zo0m3331.js +321 -0
- package/public/assets/index-zo0m3331.js.map +1 -0
- package/public/assets/react-vendor-Bz9DKma8.js +10 -0
- package/public/assets/react-vendor-Bz9DKma8.js.map +1 -0
- package/public/assets/state-vendor-BT1BogGT.js +18 -0
- package/public/assets/state-vendor-BT1BogGT.js.map +1 -0
- package/public/index.html +15 -0
- package/public/logo.png +0 -0
package/bin/kontexted
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
CREATE TABLE "account" (
|
|
2
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
3
|
+
"userId" text NOT NULL,
|
|
4
|
+
"accountId" text NOT NULL,
|
|
5
|
+
"providerId" text NOT NULL,
|
|
6
|
+
"accessToken" text,
|
|
7
|
+
"refreshToken" text,
|
|
8
|
+
"accessTokenExpiresAt" timestamp,
|
|
9
|
+
"refreshTokenExpiresAt" timestamp,
|
|
10
|
+
"scope" text,
|
|
11
|
+
"idToken" text,
|
|
12
|
+
"password" text,
|
|
13
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
14
|
+
"updatedAt" timestamp DEFAULT now() NOT NULL
|
|
15
|
+
);
|
|
16
|
+
--> statement-breakpoint
|
|
17
|
+
CREATE TABLE "jwks" (
|
|
18
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
19
|
+
"publicKey" text NOT NULL,
|
|
20
|
+
"privateKey" text NOT NULL,
|
|
21
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
22
|
+
"expiresAt" timestamp
|
|
23
|
+
);
|
|
24
|
+
--> statement-breakpoint
|
|
25
|
+
CREATE TABLE "oauthAccessToken" (
|
|
26
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
27
|
+
"token" text NOT NULL,
|
|
28
|
+
"clientId" text NOT NULL,
|
|
29
|
+
"sessionId" text,
|
|
30
|
+
"userId" text,
|
|
31
|
+
"referenceId" text,
|
|
32
|
+
"refreshId" text,
|
|
33
|
+
"expiresAt" timestamp,
|
|
34
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
35
|
+
"scopes" text NOT NULL
|
|
36
|
+
);
|
|
37
|
+
--> statement-breakpoint
|
|
38
|
+
CREATE TABLE "oauthApplication" (
|
|
39
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
40
|
+
"clientId" text NOT NULL,
|
|
41
|
+
"clientSecret" text,
|
|
42
|
+
"disabled" boolean DEFAULT false NOT NULL,
|
|
43
|
+
"skipConsent" boolean,
|
|
44
|
+
"enableEndSession" boolean,
|
|
45
|
+
"scopes" text,
|
|
46
|
+
"userId" text,
|
|
47
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
48
|
+
"updatedAt" timestamp DEFAULT now() NOT NULL,
|
|
49
|
+
"name" text NOT NULL,
|
|
50
|
+
"uri" text,
|
|
51
|
+
"icon" text,
|
|
52
|
+
"contacts" text,
|
|
53
|
+
"tos" text,
|
|
54
|
+
"policy" text,
|
|
55
|
+
"softwareId" text,
|
|
56
|
+
"softwareVersion" text,
|
|
57
|
+
"softwareStatement" text,
|
|
58
|
+
"redirectUris" text NOT NULL,
|
|
59
|
+
"postLogoutRedirectUris" text,
|
|
60
|
+
"tokenEndpointAuthMethod" text,
|
|
61
|
+
"grantTypes" text,
|
|
62
|
+
"responseTypes" text,
|
|
63
|
+
"public" boolean,
|
|
64
|
+
"type" text,
|
|
65
|
+
"referenceId" text,
|
|
66
|
+
"metadata" text,
|
|
67
|
+
CONSTRAINT "oauthApplication_clientId_unique" UNIQUE("clientId")
|
|
68
|
+
);
|
|
69
|
+
--> statement-breakpoint
|
|
70
|
+
CREATE TABLE "oauthConsent" (
|
|
71
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
72
|
+
"clientId" text NOT NULL,
|
|
73
|
+
"userId" text,
|
|
74
|
+
"referenceId" text,
|
|
75
|
+
"scopes" text NOT NULL,
|
|
76
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
77
|
+
"updatedAt" timestamp DEFAULT now() NOT NULL
|
|
78
|
+
);
|
|
79
|
+
--> statement-breakpoint
|
|
80
|
+
CREATE TABLE "oauthRefreshToken" (
|
|
81
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
82
|
+
"token" text NOT NULL,
|
|
83
|
+
"clientId" text NOT NULL,
|
|
84
|
+
"sessionId" text,
|
|
85
|
+
"userId" text NOT NULL,
|
|
86
|
+
"referenceId" text,
|
|
87
|
+
"expiresAt" timestamp,
|
|
88
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
89
|
+
"revoked" timestamp,
|
|
90
|
+
"scopes" text NOT NULL,
|
|
91
|
+
CONSTRAINT "oauthRefreshToken_token_unique" UNIQUE("token")
|
|
92
|
+
);
|
|
93
|
+
--> statement-breakpoint
|
|
94
|
+
CREATE TABLE "session" (
|
|
95
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
96
|
+
"userId" text NOT NULL,
|
|
97
|
+
"token" text NOT NULL,
|
|
98
|
+
"expiresAt" timestamp NOT NULL,
|
|
99
|
+
"ipAddress" text,
|
|
100
|
+
"userAgent" text,
|
|
101
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
102
|
+
"updatedAt" timestamp DEFAULT now() NOT NULL,
|
|
103
|
+
CONSTRAINT "session_token_unique" UNIQUE("token")
|
|
104
|
+
);
|
|
105
|
+
--> statement-breakpoint
|
|
106
|
+
CREATE TABLE "user" (
|
|
107
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
108
|
+
"name" text,
|
|
109
|
+
"email" text NOT NULL,
|
|
110
|
+
"emailVerified" boolean DEFAULT false NOT NULL,
|
|
111
|
+
"image" text,
|
|
112
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
113
|
+
"updatedAt" timestamp DEFAULT now() NOT NULL,
|
|
114
|
+
CONSTRAINT "user_email_unique" UNIQUE("email")
|
|
115
|
+
);
|
|
116
|
+
--> statement-breakpoint
|
|
117
|
+
CREATE TABLE "verification" (
|
|
118
|
+
"id" text PRIMARY KEY NOT NULL,
|
|
119
|
+
"identifier" text NOT NULL,
|
|
120
|
+
"value" text NOT NULL,
|
|
121
|
+
"expiresAt" timestamp NOT NULL,
|
|
122
|
+
"createdAt" timestamp DEFAULT now() NOT NULL,
|
|
123
|
+
"updatedAt" timestamp DEFAULT now() NOT NULL
|
|
124
|
+
);
|
|
125
|
+
--> statement-breakpoint
|
|
126
|
+
CREATE TABLE "workspaces" (
|
|
127
|
+
"id" serial PRIMARY KEY NOT NULL,
|
|
128
|
+
"slug" text NOT NULL,
|
|
129
|
+
"name" text NOT NULL,
|
|
130
|
+
"created_by_user_id" text NOT NULL,
|
|
131
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
132
|
+
"updated_at" timestamp DEFAULT now() NOT NULL
|
|
133
|
+
);
|
|
134
|
+
--> statement-breakpoint
|
|
135
|
+
CREATE TABLE "folders" (
|
|
136
|
+
"id" serial PRIMARY KEY NOT NULL,
|
|
137
|
+
"public_id" text NOT NULL,
|
|
138
|
+
"workspace_id" integer NOT NULL,
|
|
139
|
+
"parent_id" integer,
|
|
140
|
+
"name" text NOT NULL,
|
|
141
|
+
"display_name" text NOT NULL,
|
|
142
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
143
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
144
|
+
CONSTRAINT "folders_public_id_unique" UNIQUE("public_id")
|
|
145
|
+
);
|
|
146
|
+
--> statement-breakpoint
|
|
147
|
+
CREATE TABLE "notes" (
|
|
148
|
+
"id" serial PRIMARY KEY NOT NULL,
|
|
149
|
+
"public_id" text NOT NULL,
|
|
150
|
+
"workspace_id" integer NOT NULL,
|
|
151
|
+
"folder_id" integer,
|
|
152
|
+
"name" text NOT NULL,
|
|
153
|
+
"title" text NOT NULL,
|
|
154
|
+
"content" text NOT NULL,
|
|
155
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
156
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
157
|
+
CONSTRAINT "notes_public_id_unique" UNIQUE("public_id")
|
|
158
|
+
);
|
|
159
|
+
--> statement-breakpoint
|
|
160
|
+
CREATE TABLE "revisions" (
|
|
161
|
+
"id" serial PRIMARY KEY NOT NULL,
|
|
162
|
+
"workspace_id" integer NOT NULL,
|
|
163
|
+
"note_id" integer NOT NULL,
|
|
164
|
+
"author_user_id" text NOT NULL,
|
|
165
|
+
"content" text NOT NULL,
|
|
166
|
+
"created_at" timestamp DEFAULT now() NOT NULL
|
|
167
|
+
);
|
|
168
|
+
--> statement-breakpoint
|
|
169
|
+
CREATE TABLE "note_line_blame" (
|
|
170
|
+
"note_id" integer NOT NULL,
|
|
171
|
+
"line_number" integer NOT NULL,
|
|
172
|
+
"author_user_id" text NOT NULL,
|
|
173
|
+
"revision_id" integer NOT NULL,
|
|
174
|
+
"touched_at" timestamp DEFAULT now() NOT NULL,
|
|
175
|
+
CONSTRAINT "note_line_blame_note_id_line_number_pk" PRIMARY KEY("note_id","line_number")
|
|
176
|
+
);
|
|
177
|
+
--> statement-breakpoint
|
|
178
|
+
ALTER TABLE "account" ADD CONSTRAINT "account_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
179
|
+
ALTER TABLE "oauthAccessToken" ADD CONSTRAINT "oauthAccessToken_clientId_oauthApplication_clientId_fk" FOREIGN KEY ("clientId") REFERENCES "public"."oauthApplication"("clientId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
180
|
+
ALTER TABLE "oauthAccessToken" ADD CONSTRAINT "oauthAccessToken_sessionId_session_id_fk" FOREIGN KEY ("sessionId") REFERENCES "public"."session"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
181
|
+
ALTER TABLE "oauthAccessToken" ADD CONSTRAINT "oauthAccessToken_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
182
|
+
ALTER TABLE "oauthAccessToken" ADD CONSTRAINT "oauthAccessToken_refreshId_oauthRefreshToken_id_fk" FOREIGN KEY ("refreshId") REFERENCES "public"."oauthRefreshToken"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
183
|
+
ALTER TABLE "oauthApplication" ADD CONSTRAINT "oauthApplication_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
184
|
+
ALTER TABLE "oauthConsent" ADD CONSTRAINT "oauthConsent_clientId_oauthApplication_clientId_fk" FOREIGN KEY ("clientId") REFERENCES "public"."oauthApplication"("clientId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
185
|
+
ALTER TABLE "oauthConsent" ADD CONSTRAINT "oauthConsent_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
186
|
+
ALTER TABLE "oauthRefreshToken" ADD CONSTRAINT "oauthRefreshToken_clientId_oauthApplication_clientId_fk" FOREIGN KEY ("clientId") REFERENCES "public"."oauthApplication"("clientId") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
187
|
+
ALTER TABLE "oauthRefreshToken" ADD CONSTRAINT "oauthRefreshToken_sessionId_session_id_fk" FOREIGN KEY ("sessionId") REFERENCES "public"."session"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
188
|
+
ALTER TABLE "oauthRefreshToken" ADD CONSTRAINT "oauthRefreshToken_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
189
|
+
ALTER TABLE "session" ADD CONSTRAINT "session_userId_user_id_fk" FOREIGN KEY ("userId") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
190
|
+
ALTER TABLE "workspaces" ADD CONSTRAINT "workspaces_created_by_user_id_user_id_fk" FOREIGN KEY ("created_by_user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
191
|
+
ALTER TABLE "folders" ADD CONSTRAINT "folders_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
192
|
+
ALTER TABLE "folders" ADD CONSTRAINT "folders_parent_id_folders_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."folders"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
193
|
+
ALTER TABLE "notes" ADD CONSTRAINT "notes_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
194
|
+
ALTER TABLE "notes" ADD CONSTRAINT "notes_folder_id_folders_id_fk" FOREIGN KEY ("folder_id") REFERENCES "public"."folders"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
195
|
+
ALTER TABLE "revisions" ADD CONSTRAINT "revisions_workspace_id_workspaces_id_fk" FOREIGN KEY ("workspace_id") REFERENCES "public"."workspaces"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
196
|
+
ALTER TABLE "revisions" ADD CONSTRAINT "revisions_note_id_notes_id_fk" FOREIGN KEY ("note_id") REFERENCES "public"."notes"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
197
|
+
ALTER TABLE "revisions" ADD CONSTRAINT "revisions_author_user_id_user_id_fk" FOREIGN KEY ("author_user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
198
|
+
ALTER TABLE "note_line_blame" ADD CONSTRAINT "note_line_blame_note_id_notes_id_fk" FOREIGN KEY ("note_id") REFERENCES "public"."notes"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
199
|
+
ALTER TABLE "note_line_blame" ADD CONSTRAINT "note_line_blame_author_user_id_user_id_fk" FOREIGN KEY ("author_user_id") REFERENCES "public"."user"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
200
|
+
ALTER TABLE "note_line_blame" ADD CONSTRAINT "note_line_blame_revision_id_revisions_id_fk" FOREIGN KEY ("revision_id") REFERENCES "public"."revisions"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint
|
|
201
|
+
CREATE UNIQUE INDEX "oauth_access_token_token_unique" ON "oauthAccessToken" USING btree ("token");--> statement-breakpoint
|
|
202
|
+
CREATE INDEX "oauth_access_token_client_id_idx" ON "oauthAccessToken" USING btree ("clientId");--> statement-breakpoint
|
|
203
|
+
CREATE INDEX "oauth_access_token_user_id_idx" ON "oauthAccessToken" USING btree ("userId");--> statement-breakpoint
|
|
204
|
+
CREATE INDEX "oauth_access_token_session_id_idx" ON "oauthAccessToken" USING btree ("sessionId");--> statement-breakpoint
|
|
205
|
+
CREATE INDEX "oauth_application_user_id_idx" ON "oauthApplication" USING btree ("userId");--> statement-breakpoint
|
|
206
|
+
CREATE INDEX "oauth_consent_client_id_idx" ON "oauthConsent" USING btree ("clientId");--> statement-breakpoint
|
|
207
|
+
CREATE INDEX "oauth_consent_user_id_idx" ON "oauthConsent" USING btree ("userId");--> statement-breakpoint
|
|
208
|
+
CREATE INDEX "oauth_refresh_token_client_id_idx" ON "oauthRefreshToken" USING btree ("clientId");--> statement-breakpoint
|
|
209
|
+
CREATE INDEX "oauth_refresh_token_user_id_idx" ON "oauthRefreshToken" USING btree ("userId");--> statement-breakpoint
|
|
210
|
+
CREATE INDEX "oauth_refresh_token_session_id_idx" ON "oauthRefreshToken" USING btree ("sessionId");--> statement-breakpoint
|
|
211
|
+
CREATE UNIQUE INDEX "workspaces_slug_idx" ON "workspaces" USING btree ("slug");--> statement-breakpoint
|
|
212
|
+
CREATE INDEX "workspaces_owner_idx" ON "workspaces" USING btree ("created_by_user_id");--> statement-breakpoint
|
|
213
|
+
CREATE INDEX "folders_public_id_idx" ON "folders" USING btree ("public_id");--> statement-breakpoint
|
|
214
|
+
CREATE INDEX "folders_workspace_parent_idx" ON "folders" USING btree ("workspace_id","parent_id");--> statement-breakpoint
|
|
215
|
+
CREATE INDEX "notes_public_id_idx" ON "notes" USING btree ("public_id");--> statement-breakpoint
|
|
216
|
+
CREATE INDEX "notes_workspace_folder_idx" ON "notes" USING btree ("workspace_id","folder_id");--> statement-breakpoint
|
|
217
|
+
CREATE INDEX "notes_workspace_updated_idx" ON "notes" USING btree ("workspace_id","updated_at");--> statement-breakpoint
|
|
218
|
+
CREATE INDEX "revisions_note_created_idx" ON "revisions" USING btree ("note_id","created_at");--> statement-breakpoint
|
|
219
|
+
CREATE INDEX "note_line_blame_note_idx" ON "note_line_blame" USING btree ("note_id");
|