create-nexwire 4.1.1 → 4.1.2
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/express/package.json +1 -1
- package/express/src/database/migrations/sqlite/0000_init.sql +60 -60
- package/express/src/database/migrations/sqlite/meta/0000_snapshot.json +411 -411
- package/express/src/database/migrations/sqlite/meta/_journal.json +12 -12
- package/express/src/database/schema.ts +3 -3
- package/express/src/storage/database/nexwire.sqlite +0 -0
- package/hono/package.json +1 -1
- package/hono/src/database/migrations/sqlite/0000_init.sql +60 -60
- package/hono/src/database/migrations/sqlite/meta/0000_snapshot.json +411 -411
- package/hono/src/database/migrations/sqlite/meta/_journal.json +12 -12
- package/hono/src/database/schema.ts +3 -3
- package/hono/src/storage/database/nexwire.sqlite +0 -0
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "7",
|
|
3
|
-
"dialect": "sqlite",
|
|
4
|
-
"entries": [
|
|
5
|
-
{
|
|
6
|
-
"idx": 0,
|
|
7
|
-
"version": "6",
|
|
8
|
-
"when":
|
|
9
|
-
"tag": "0000_init",
|
|
10
|
-
"breakpoints": true
|
|
11
|
-
}
|
|
12
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"entries": [
|
|
5
|
+
{
|
|
6
|
+
"idx": 0,
|
|
7
|
+
"version": "6",
|
|
8
|
+
"when": 1791141133457,
|
|
9
|
+
"tag": "0000_init",
|
|
10
|
+
"breakpoints": true
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
13
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../modules/auth/database/models/notification.js";
|
|
2
|
-
export * from "../modules/auth/database/models/role.js";
|
|
3
|
-
export * from "../modules/auth/database/models/user.js";
|
|
1
|
+
export * from "../modules/auth/database/models/notification.js";
|
|
2
|
+
export * from "../modules/auth/database/models/role.js";
|
|
3
|
+
export * from "../modules/auth/database/models/user.js";
|
|
Binary file
|
package/hono/package.json
CHANGED
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
CREATE TABLE `notifications` (
|
|
2
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
3
|
-
`user_id` integer NOT NULL,
|
|
4
|
-
`type` text NOT NULL,
|
|
5
|
-
`title` text NOT NULL,
|
|
6
|
-
`body` text,
|
|
7
|
-
`data` text,
|
|
8
|
-
`link` text,
|
|
9
|
-
`read_at` integer,
|
|
10
|
-
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
11
|
-
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE cascade ON DELETE cascade
|
|
12
|
-
);
|
|
13
|
-
--> statement-breakpoint
|
|
14
|
-
CREATE TABLE `roles` (
|
|
15
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
16
|
-
`name` text NOT NULL,
|
|
17
|
-
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
18
|
-
`updated_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
19
|
-
);
|
|
20
|
-
--> statement-breakpoint
|
|
21
|
-
CREATE UNIQUE INDEX `roles_name_unique` ON `roles` (`name`);--> statement-breakpoint
|
|
22
|
-
CREATE TABLE `email_verification_tokens` (
|
|
23
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
24
|
-
`email` text NOT NULL,
|
|
25
|
-
`token` text NOT NULL,
|
|
26
|
-
`expires_at` integer NOT NULL,
|
|
27
|
-
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
28
|
-
);
|
|
29
|
-
--> statement-breakpoint
|
|
30
|
-
CREATE TABLE `password_reset_tokens` (
|
|
31
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
32
|
-
`email` text NOT NULL,
|
|
33
|
-
`token` text NOT NULL,
|
|
34
|
-
`expires_at` integer NOT NULL,
|
|
35
|
-
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
36
|
-
);
|
|
37
|
-
--> statement-breakpoint
|
|
38
|
-
CREATE TABLE `refresh_tokens` (
|
|
39
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
40
|
-
`user_id` integer,
|
|
41
|
-
`jti` text NOT NULL,
|
|
42
|
-
`revoked` integer DEFAULT false,
|
|
43
|
-
`expires_at` integer NOT NULL,
|
|
44
|
-
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
45
|
-
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE cascade ON DELETE set null
|
|
46
|
-
);
|
|
47
|
-
--> statement-breakpoint
|
|
48
|
-
CREATE UNIQUE INDEX `refresh_tokens_jti_unique` ON `refresh_tokens` (`jti`);--> statement-breakpoint
|
|
49
|
-
CREATE TABLE `users` (
|
|
50
|
-
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
51
|
-
`name` text NOT NULL,
|
|
52
|
-
`email` text NOT NULL,
|
|
53
|
-
`password` text NOT NULL,
|
|
54
|
-
`role_id` integer,
|
|
55
|
-
`email_verified_at` integer,
|
|
56
|
-
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
57
|
-
`updated_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
58
|
-
FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON UPDATE cascade ON DELETE set null
|
|
59
|
-
);
|
|
60
|
-
--> statement-breakpoint
|
|
1
|
+
CREATE TABLE `notifications` (
|
|
2
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
3
|
+
`user_id` integer NOT NULL,
|
|
4
|
+
`type` text NOT NULL,
|
|
5
|
+
`title` text NOT NULL,
|
|
6
|
+
`body` text,
|
|
7
|
+
`data` text,
|
|
8
|
+
`link` text,
|
|
9
|
+
`read_at` integer,
|
|
10
|
+
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
11
|
+
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE cascade ON DELETE cascade
|
|
12
|
+
);
|
|
13
|
+
--> statement-breakpoint
|
|
14
|
+
CREATE TABLE `roles` (
|
|
15
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
16
|
+
`name` text NOT NULL,
|
|
17
|
+
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
18
|
+
`updated_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
19
|
+
);
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
CREATE UNIQUE INDEX `roles_name_unique` ON `roles` (`name`);--> statement-breakpoint
|
|
22
|
+
CREATE TABLE `email_verification_tokens` (
|
|
23
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
24
|
+
`email` text NOT NULL,
|
|
25
|
+
`token` text NOT NULL,
|
|
26
|
+
`expires_at` integer NOT NULL,
|
|
27
|
+
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
28
|
+
);
|
|
29
|
+
--> statement-breakpoint
|
|
30
|
+
CREATE TABLE `password_reset_tokens` (
|
|
31
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
32
|
+
`email` text NOT NULL,
|
|
33
|
+
`token` text NOT NULL,
|
|
34
|
+
`expires_at` integer NOT NULL,
|
|
35
|
+
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL
|
|
36
|
+
);
|
|
37
|
+
--> statement-breakpoint
|
|
38
|
+
CREATE TABLE `refresh_tokens` (
|
|
39
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
40
|
+
`user_id` integer,
|
|
41
|
+
`jti` text NOT NULL,
|
|
42
|
+
`revoked` integer DEFAULT false,
|
|
43
|
+
`expires_at` integer NOT NULL,
|
|
44
|
+
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
45
|
+
FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE cascade ON DELETE set null
|
|
46
|
+
);
|
|
47
|
+
--> statement-breakpoint
|
|
48
|
+
CREATE UNIQUE INDEX `refresh_tokens_jti_unique` ON `refresh_tokens` (`jti`);--> statement-breakpoint
|
|
49
|
+
CREATE TABLE `users` (
|
|
50
|
+
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
|
|
51
|
+
`name` text NOT NULL,
|
|
52
|
+
`email` text NOT NULL,
|
|
53
|
+
`password` text NOT NULL,
|
|
54
|
+
`role_id` integer,
|
|
55
|
+
`email_verified_at` integer,
|
|
56
|
+
`created_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
57
|
+
`updated_at` integer DEFAULT (cast((julianday('now') - 2440587.5)*86400000 as integer)) NOT NULL,
|
|
58
|
+
FOREIGN KEY (`role_id`) REFERENCES `roles`(`id`) ON UPDATE cascade ON DELETE set null
|
|
59
|
+
);
|
|
60
|
+
--> statement-breakpoint
|
|
61
61
|
CREATE UNIQUE INDEX `users_email_unique` ON `users` (`email`);
|