create-protobase 0.84.0 → 0.85.1

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.
@@ -0,0 +1,19 @@
1
+ -- The auth schema changes this version of Protobase needs, written by `protobase auth migration`.
2
+ -- Applied with the project's other migrations; edit or remove statements the project handles differently.
3
+
4
+ -- 8 personal_access_tokens: The personal access tokens people make for their scripts, by their tokens' hashes.
5
+ create table "auth"."personal_access_token" (
6
+ id text primary key,
7
+ user_id text not null references "auth"."user" (id) on delete cascade,
8
+ name text not null,
9
+ token_hash text not null unique,
10
+ role text not null,
11
+ organization_id text references "auth"."organization" (id) on delete cascade,
12
+ created_at timestamptz not null,
13
+ expires_at timestamptz,
14
+ last_used_at timestamptz
15
+ );
16
+
17
+ create index personal_access_token_user_id_idx on "auth"."personal_access_token" (user_id);
18
+
19
+ insert into "auth"."auth_migrations" (version, name) values (8, 'personal_access_tokens');
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.84.0",
31
- "@protobase/config": "^0.84.0",
32
- "@protobase/layout": "^0.84.0",
33
- "@protobase/schema": "^0.84.0",
34
- "@protobase/server": "^0.84.0",
35
- "@protobase/ui": "^0.84.0",
30
+ "@protobase/cli": "^0.85.1",
31
+ "@protobase/config": "^0.85.1",
32
+ "@protobase/layout": "^0.85.1",
33
+ "@protobase/schema": "^0.85.1",
34
+ "@protobase/server": "^0.85.1",
35
+ "@protobase/ui": "^0.85.1",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -0,0 +1,19 @@
1
+ -- The auth schema changes this version of Protobase needs, written by `protobase auth migration`.
2
+ -- Applied with the project's other migrations; edit or remove statements the project handles differently.
3
+
4
+ -- 8 personal_access_tokens: The personal access tokens people make for their scripts, by their tokens' hashes.
5
+ create table "auth"."personal_access_token" (
6
+ id text primary key,
7
+ user_id text not null references "auth"."user" (id) on delete cascade,
8
+ name text not null,
9
+ token_hash text not null unique,
10
+ role text not null,
11
+ organization_id text references "auth"."organization" (id) on delete cascade,
12
+ created_at timestamptz not null,
13
+ expires_at timestamptz,
14
+ last_used_at timestamptz
15
+ );
16
+
17
+ create index personal_access_token_user_id_idx on "auth"."personal_access_token" (user_id);
18
+
19
+ insert into "auth"."auth_migrations" (version, name) values (8, 'personal_access_tokens');
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.84.0",
31
- "@protobase/config": "^0.84.0",
32
- "@protobase/layout": "^0.84.0",
33
- "@protobase/schema": "^0.84.0",
34
- "@protobase/server": "^0.84.0",
35
- "@protobase/ui": "^0.84.0",
30
+ "@protobase/cli": "^0.85.1",
31
+ "@protobase/config": "^0.85.1",
32
+ "@protobase/layout": "^0.85.1",
33
+ "@protobase/schema": "^0.85.1",
34
+ "@protobase/server": "^0.85.1",
35
+ "@protobase/ui": "^0.85.1",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -0,0 +1,19 @@
1
+ -- The auth schema changes this version of Protobase needs, written by `protobase auth migration`.
2
+ -- Applied with the project's other migrations; edit or remove statements the project handles differently.
3
+
4
+ -- 8 personal_access_tokens: The personal access tokens people make for their scripts, by their tokens' hashes.
5
+ create table "auth"."personal_access_token" (
6
+ id text primary key,
7
+ user_id text not null references "auth"."user" (id) on delete cascade,
8
+ name text not null,
9
+ token_hash text not null unique,
10
+ role text not null,
11
+ organization_id text references "auth"."organization" (id) on delete cascade,
12
+ created_at timestamptz not null,
13
+ expires_at timestamptz,
14
+ last_used_at timestamptz
15
+ );
16
+
17
+ create index personal_access_token_user_id_idx on "auth"."personal_access_token" (user_id);
18
+
19
+ insert into "auth"."auth_migrations" (version, name) values (8, 'personal_access_tokens');
@@ -27,12 +27,12 @@
27
27
  "zod": "^4.6.5"
28
28
  },
29
29
  "devDependencies": {
30
- "@protobase/cli": "^0.84.0",
31
- "@protobase/config": "^0.84.0",
32
- "@protobase/layout": "^0.84.0",
33
- "@protobase/schema": "^0.84.0",
34
- "@protobase/server": "^0.84.0",
35
- "@protobase/ui": "^0.84.0",
30
+ "@protobase/cli": "^0.85.1",
31
+ "@protobase/config": "^0.85.1",
32
+ "@protobase/layout": "^0.85.1",
33
+ "@protobase/schema": "^0.85.1",
34
+ "@protobase/server": "^0.85.1",
35
+ "@protobase/ui": "^0.85.1",
36
36
  "@types/node": "^22.20.5",
37
37
  "@types/pg": "^8.23.1",
38
38
  "@types/react": "^19.3.0",
@@ -0,0 +1,19 @@
1
+ -- The auth schema changes this version of Protobase needs, written by `protobase auth migration`.
2
+ -- Applied with the project's other migrations; edit or remove statements the project handles differently.
3
+
4
+ -- 8 personal_access_tokens: The personal access tokens people make for their scripts, by their tokens' hashes.
5
+ create table "auth"."personal_access_token" (
6
+ id text primary key,
7
+ user_id text not null references "auth"."user" (id) on delete cascade,
8
+ name text not null,
9
+ token_hash text not null unique,
10
+ role text not null,
11
+ organization_id text references "auth"."organization" (id) on delete cascade,
12
+ created_at timestamptz not null,
13
+ expires_at timestamptz,
14
+ last_used_at timestamptz
15
+ );
16
+
17
+ create index personal_access_token_user_id_idx on "auth"."personal_access_token" (user_id);
18
+
19
+ insert into "auth"."auth_migrations" (version, name) values (8, 'personal_access_tokens');
@@ -24,12 +24,12 @@
24
24
  "zod": "^4.6.5"
25
25
  },
26
26
  "devDependencies": {
27
- "@protobase/cli": "^0.84.0",
28
- "@protobase/config": "^0.84.0",
29
- "@protobase/layout": "^0.84.0",
30
- "@protobase/schema": "^0.84.0",
31
- "@protobase/server": "^0.84.0",
32
- "@protobase/ui": "^0.84.0",
27
+ "@protobase/cli": "^0.85.1",
28
+ "@protobase/config": "^0.85.1",
29
+ "@protobase/layout": "^0.85.1",
30
+ "@protobase/schema": "^0.85.1",
31
+ "@protobase/server": "^0.85.1",
32
+ "@protobase/ui": "^0.85.1",
33
33
  "@types/node": "^22.20.5",
34
34
  "@types/pg": "^8.23.1",
35
35
  "@types/react": "^19.3.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-protobase",
3
- "version": "0.84.0",
3
+ "version": "0.85.1",
4
4
  "description": "npm create protobase: starts a new Protobase project from one of its presets, or on an existing Postgres database.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "postgres": "^3.4.9"
29
29
  },
30
30
  "devDependencies": {
31
- "@protobase/cli": "0.84.0"
31
+ "@protobase/cli": "0.85.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"