create-m5kdev 0.40.2 → 0.41.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 (52) hide show
  1. package/package.json +1 -1
  2. package/templates/minimal-app/.cursor/rules/frontend-component-guide.mdc +95 -95
  3. package/templates/minimal-app/.cursor/rules/frontend-data-guide.mdc +103 -103
  4. package/templates/minimal-app/.cursor/rules/frontend-form-guide.mdc +80 -80
  5. package/templates/minimal-app/.cursor/rules/frontend-hook-guide.mdc +79 -79
  6. package/templates/minimal-app/.cursor/rules/frontend-i18n-guide.mdc +45 -45
  7. package/templates/minimal-app/.cursor/rules/module-dto-guide.mdc +60 -60
  8. package/templates/minimal-app/.cursor/rules/module-prompt-guide.mdc +214 -214
  9. package/templates/minimal-app/.cursor/rules/module-repository-guide.mdc +167 -167
  10. package/templates/minimal-app/.cursor/rules/module-schema-guide.mdc +53 -53
  11. package/templates/minimal-app/.cursor/rules/module-service-guide.mdc +367 -367
  12. package/templates/minimal-app/.cursor/rules/module-trpc-guide.mdc +71 -71
  13. package/templates/minimal-app/apps/.gitignore.tpl +13 -13
  14. package/templates/minimal-app/apps/e2e/package.json.tpl +23 -23
  15. package/templates/minimal-app/apps/e2e/tests/standard.spec.ts.tpl +11 -22
  16. package/templates/minimal-app/apps/email/package.json.tpl +34 -34
  17. package/templates/minimal-app/apps/expo/.gitignore.tpl +44 -44
  18. package/templates/minimal-app/apps/expo/.prettierignore +13 -13
  19. package/templates/minimal-app/apps/expo/.prettierrc.json.tpl +9 -9
  20. package/templates/minimal-app/apps/expo/CHANGELOG.md.tpl +156 -156
  21. package/templates/minimal-app/apps/expo/README.md.tpl +44 -44
  22. package/templates/minimal-app/apps/expo/package.json.tpl +63 -63
  23. package/templates/minimal-app/apps/landing/package.json.tpl +34 -34
  24. package/templates/minimal-app/apps/server/drizzle/0000_whole_echo.sql +366 -366
  25. package/templates/minimal-app/apps/server/drizzle/0002_crazy_lilith.sql +46 -46
  26. package/templates/minimal-app/apps/server/drizzle/0003_freezing_fantastic_four.sql +3 -3
  27. package/templates/minimal-app/apps/server/drizzle/0004_slow_ezekiel_stane.sql +98 -98
  28. package/templates/minimal-app/apps/server/drizzle/0005_wonderful_the_professor.sql +1 -1
  29. package/templates/minimal-app/apps/server/drizzle/0006_lazy_blue_marvel.sql +158 -158
  30. package/templates/minimal-app/apps/server/drizzle/0007_abnormal_ultimo.sql +1 -1
  31. package/templates/minimal-app/apps/server/drizzle/0008_steady_nekra.sql +86 -86
  32. package/templates/minimal-app/apps/server/drizzle/0009_empty_starjammers.sql +45 -0
  33. package/templates/minimal-app/apps/server/drizzle/meta/0000_snapshot.json.tpl +2624 -2624
  34. package/templates/minimal-app/apps/server/drizzle/meta/0001_snapshot.json.tpl +2670 -2670
  35. package/templates/minimal-app/apps/server/drizzle/meta/0002_snapshot.json.tpl +2715 -2715
  36. package/templates/minimal-app/apps/server/drizzle/meta/0003_snapshot.json.tpl +2687 -2687
  37. package/templates/minimal-app/apps/server/drizzle/meta/0004_snapshot.json.tpl +2497 -2497
  38. package/templates/minimal-app/apps/server/drizzle/meta/0005_snapshot.json.tpl +2483 -2483
  39. package/templates/minimal-app/apps/server/drizzle/meta/0006_snapshot.json.tpl +3602 -3602
  40. package/templates/minimal-app/apps/server/drizzle/meta/0007_snapshot.json.tpl +3619 -3619
  41. package/templates/minimal-app/apps/server/drizzle/meta/0008_snapshot.json.tpl +3619 -3619
  42. package/templates/minimal-app/apps/server/drizzle/meta/0009_snapshot.json.tpl +3687 -0
  43. package/templates/minimal-app/apps/server/drizzle/meta/_journal.json.tpl +8 -1
  44. package/templates/minimal-app/apps/server/package.json.tpl +57 -57
  45. package/templates/minimal-app/apps/shared/package.json.tpl +27 -27
  46. package/templates/minimal-app/apps/webapp/AGENTS.md.tpl +24 -24
  47. package/templates/minimal-app/apps/webapp/index.html.tpl +22 -22
  48. package/templates/minimal-app/apps/webapp/package.json.tpl +53 -53
  49. package/templates/minimal-app/apps/webapp/public/logo.svg.tpl +6 -6
  50. package/templates/minimal-app/pnpm-workspace.yaml.tpl +15 -15
  51. package/templates/minimal-app/apps/expo/expo-env.d.ts.tpl +0 -3
  52. package/templates/minimal-app/apps/expo/uniwind-types.d.ts.tpl +0 -10
@@ -1,87 +1,87 @@
1
- PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
- CREATE TABLE `__new_oauth_access_tokens` (
3
- `id` text PRIMARY KEY NOT NULL,
4
- `token` text,
5
- `client_id` text NOT NULL,
6
- `session_id` text,
7
- `user_id` text,
8
- `reference_id` text,
9
- `authorization_code_id` text,
10
- `resources` text,
11
- `requested_user_info_claims` text,
12
- `refresh_id` text,
13
- `expires_at` integer NOT NULL,
14
- `created_at` integer NOT NULL,
15
- `revoked` integer,
16
- `confirmation` text,
17
- `scopes` text NOT NULL,
18
- FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE no action,
19
- FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE set null,
20
- FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action,
21
- FOREIGN KEY (`refresh_id`) REFERENCES `oauth_refresh_tokens`(`id`) ON UPDATE no action ON DELETE no action
22
- );
23
- --> statement-breakpoint
24
- INSERT INTO `__new_oauth_access_tokens`("id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "refresh_id", "expires_at", "created_at", "revoked", "confirmation", "scopes") SELECT "id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "refresh_id", "expires_at", "created_at", "revoked", "confirmation", "scopes" FROM `oauth_access_tokens`;--> statement-breakpoint
25
- DROP TABLE `oauth_access_tokens`;--> statement-breakpoint
26
- ALTER TABLE `__new_oauth_access_tokens` RENAME TO `oauth_access_tokens`;--> statement-breakpoint
27
- PRAGMA foreign_keys=ON;--> statement-breakpoint
28
- CREATE UNIQUE INDEX `oauth_access_tokens_token_unique` ON `oauth_access_tokens` (`token`);--> statement-breakpoint
29
- CREATE TABLE `__new_oauth_client_resources` (
30
- `id` text PRIMARY KEY NOT NULL,
31
- `client_id` text NOT NULL,
32
- `resource_id` text NOT NULL,
33
- `metadata` text,
34
- `created_at` integer,
35
- FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE cascade,
36
- FOREIGN KEY (`resource_id`) REFERENCES `oauth_resources`(`identifier`) ON UPDATE no action ON DELETE cascade
37
- );
38
- --> statement-breakpoint
39
- INSERT INTO `__new_oauth_client_resources`("id", "client_id", "resource_id", "metadata", "created_at") SELECT "id", "client_id", "resource_id", "metadata", "created_at" FROM `oauth_client_resources`;--> statement-breakpoint
40
- DROP TABLE `oauth_client_resources`;--> statement-breakpoint
41
- ALTER TABLE `__new_oauth_client_resources` RENAME TO `oauth_client_resources`;--> statement-breakpoint
42
- CREATE UNIQUE INDEX `oauth_client_resources_client_resource_unique` ON `oauth_client_resources` (`client_id`,`resource_id`);--> statement-breakpoint
43
- CREATE TABLE `__new_oauth_consents` (
44
- `id` text PRIMARY KEY NOT NULL,
45
- `client_id` text NOT NULL,
46
- `user_id` text,
47
- `reference_id` text,
48
- `resources` text,
49
- `requested_user_info_claims` text,
50
- `scopes` text NOT NULL,
51
- `created_at` integer NOT NULL,
52
- `updated_at` integer NOT NULL,
53
- FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE no action,
54
- FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
55
- );
56
- --> statement-breakpoint
57
- INSERT INTO `__new_oauth_consents`("id", "client_id", "user_id", "reference_id", "resources", "requested_user_info_claims", "scopes", "created_at", "updated_at") SELECT "id", "client_id", "user_id", "reference_id", "resources", "requested_user_info_claims", "scopes", "created_at", "updated_at" FROM `oauth_consents`;--> statement-breakpoint
58
- DROP TABLE `oauth_consents`;--> statement-breakpoint
59
- ALTER TABLE `__new_oauth_consents` RENAME TO `oauth_consents`;--> statement-breakpoint
60
- CREATE TABLE `__new_oauth_refresh_tokens` (
61
- `id` text PRIMARY KEY NOT NULL,
62
- `token` text NOT NULL,
63
- `client_id` text NOT NULL,
64
- `session_id` text,
65
- `user_id` text NOT NULL,
66
- `reference_id` text,
67
- `authorization_code_id` text,
68
- `resources` text,
69
- `requested_user_info_claims` text,
70
- `expires_at` integer NOT NULL,
71
- `created_at` integer NOT NULL,
72
- `revoked` integer,
73
- `rotated_at` integer,
74
- `rotation_replay_response` text,
75
- `rotation_replay_expires_at` integer,
76
- `auth_time` integer,
77
- `confirmation` text,
78
- `scopes` text NOT NULL,
79
- FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE no action,
80
- FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE set null,
81
- FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
82
- );
83
- --> statement-breakpoint
84
- INSERT INTO `__new_oauth_refresh_tokens`("id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "expires_at", "created_at", "revoked", "rotated_at", "rotation_replay_response", "rotation_replay_expires_at", "auth_time", "confirmation", "scopes") SELECT "id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "expires_at", "created_at", "revoked", "rotated_at", "rotation_replay_response", "rotation_replay_expires_at", "auth_time", "confirmation", "scopes" FROM `oauth_refresh_tokens`;--> statement-breakpoint
85
- DROP TABLE `oauth_refresh_tokens`;--> statement-breakpoint
86
- ALTER TABLE `__new_oauth_refresh_tokens` RENAME TO `oauth_refresh_tokens`;--> statement-breakpoint
1
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
2
+ CREATE TABLE `__new_oauth_access_tokens` (
3
+ `id` text PRIMARY KEY NOT NULL,
4
+ `token` text,
5
+ `client_id` text NOT NULL,
6
+ `session_id` text,
7
+ `user_id` text,
8
+ `reference_id` text,
9
+ `authorization_code_id` text,
10
+ `resources` text,
11
+ `requested_user_info_claims` text,
12
+ `refresh_id` text,
13
+ `expires_at` integer NOT NULL,
14
+ `created_at` integer NOT NULL,
15
+ `revoked` integer,
16
+ `confirmation` text,
17
+ `scopes` text NOT NULL,
18
+ FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE no action,
19
+ FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE set null,
20
+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action,
21
+ FOREIGN KEY (`refresh_id`) REFERENCES `oauth_refresh_tokens`(`id`) ON UPDATE no action ON DELETE no action
22
+ );
23
+ --> statement-breakpoint
24
+ INSERT INTO `__new_oauth_access_tokens`("id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "refresh_id", "expires_at", "created_at", "revoked", "confirmation", "scopes") SELECT "id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "refresh_id", "expires_at", "created_at", "revoked", "confirmation", "scopes" FROM `oauth_access_tokens`;--> statement-breakpoint
25
+ DROP TABLE `oauth_access_tokens`;--> statement-breakpoint
26
+ ALTER TABLE `__new_oauth_access_tokens` RENAME TO `oauth_access_tokens`;--> statement-breakpoint
27
+ PRAGMA foreign_keys=ON;--> statement-breakpoint
28
+ CREATE UNIQUE INDEX `oauth_access_tokens_token_unique` ON `oauth_access_tokens` (`token`);--> statement-breakpoint
29
+ CREATE TABLE `__new_oauth_client_resources` (
30
+ `id` text PRIMARY KEY NOT NULL,
31
+ `client_id` text NOT NULL,
32
+ `resource_id` text NOT NULL,
33
+ `metadata` text,
34
+ `created_at` integer,
35
+ FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE cascade,
36
+ FOREIGN KEY (`resource_id`) REFERENCES `oauth_resources`(`identifier`) ON UPDATE no action ON DELETE cascade
37
+ );
38
+ --> statement-breakpoint
39
+ INSERT INTO `__new_oauth_client_resources`("id", "client_id", "resource_id", "metadata", "created_at") SELECT "id", "client_id", "resource_id", "metadata", "created_at" FROM `oauth_client_resources`;--> statement-breakpoint
40
+ DROP TABLE `oauth_client_resources`;--> statement-breakpoint
41
+ ALTER TABLE `__new_oauth_client_resources` RENAME TO `oauth_client_resources`;--> statement-breakpoint
42
+ CREATE UNIQUE INDEX `oauth_client_resources_client_resource_unique` ON `oauth_client_resources` (`client_id`,`resource_id`);--> statement-breakpoint
43
+ CREATE TABLE `__new_oauth_consents` (
44
+ `id` text PRIMARY KEY NOT NULL,
45
+ `client_id` text NOT NULL,
46
+ `user_id` text,
47
+ `reference_id` text,
48
+ `resources` text,
49
+ `requested_user_info_claims` text,
50
+ `scopes` text NOT NULL,
51
+ `created_at` integer NOT NULL,
52
+ `updated_at` integer NOT NULL,
53
+ FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE no action,
54
+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
55
+ );
56
+ --> statement-breakpoint
57
+ INSERT INTO `__new_oauth_consents`("id", "client_id", "user_id", "reference_id", "resources", "requested_user_info_claims", "scopes", "created_at", "updated_at") SELECT "id", "client_id", "user_id", "reference_id", "resources", "requested_user_info_claims", "scopes", "created_at", "updated_at" FROM `oauth_consents`;--> statement-breakpoint
58
+ DROP TABLE `oauth_consents`;--> statement-breakpoint
59
+ ALTER TABLE `__new_oauth_consents` RENAME TO `oauth_consents`;--> statement-breakpoint
60
+ CREATE TABLE `__new_oauth_refresh_tokens` (
61
+ `id` text PRIMARY KEY NOT NULL,
62
+ `token` text NOT NULL,
63
+ `client_id` text NOT NULL,
64
+ `session_id` text,
65
+ `user_id` text NOT NULL,
66
+ `reference_id` text,
67
+ `authorization_code_id` text,
68
+ `resources` text,
69
+ `requested_user_info_claims` text,
70
+ `expires_at` integer NOT NULL,
71
+ `created_at` integer NOT NULL,
72
+ `revoked` integer,
73
+ `rotated_at` integer,
74
+ `rotation_replay_response` text,
75
+ `rotation_replay_expires_at` integer,
76
+ `auth_time` integer,
77
+ `confirmation` text,
78
+ `scopes` text NOT NULL,
79
+ FOREIGN KEY (`client_id`) REFERENCES `oauth_clients`(`client_id`) ON UPDATE no action ON DELETE no action,
80
+ FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE set null,
81
+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
82
+ );
83
+ --> statement-breakpoint
84
+ INSERT INTO `__new_oauth_refresh_tokens`("id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "expires_at", "created_at", "revoked", "rotated_at", "rotation_replay_response", "rotation_replay_expires_at", "auth_time", "confirmation", "scopes") SELECT "id", "token", "client_id", "session_id", "user_id", "reference_id", "authorization_code_id", "resources", "requested_user_info_claims", "expires_at", "created_at", "revoked", "rotated_at", "rotation_replay_response", "rotation_replay_expires_at", "auth_time", "confirmation", "scopes" FROM `oauth_refresh_tokens`;--> statement-breakpoint
85
+ DROP TABLE `oauth_refresh_tokens`;--> statement-breakpoint
86
+ ALTER TABLE `__new_oauth_refresh_tokens` RENAME TO `oauth_refresh_tokens`;--> statement-breakpoint
87
87
  CREATE UNIQUE INDEX `oauth_refresh_tokens_token_unique` ON `oauth_refresh_tokens` (`token`);
@@ -0,0 +1,45 @@
1
+ DROP INDEX `users_stripe_customer_id_unique`;--> statement-breakpoint
2
+ ALTER TABLE `users` ADD `closed_at` integer;--> statement-breakpoint
3
+ ALTER TABLE `users` DROP COLUMN `stripe_customer_id`;--> statement-breakpoint
4
+ PRAGMA foreign_keys=OFF;--> statement-breakpoint
5
+ CREATE TABLE `__new_apikeys` (
6
+ `id` text PRIMARY KEY NOT NULL,
7
+ `name` text,
8
+ `start` text,
9
+ `prefix` text,
10
+ `key` text NOT NULL,
11
+ `config_id` text DEFAULT 'default' NOT NULL,
12
+ `reference_id` text NOT NULL,
13
+ `user_id` text,
14
+ `refill_interval` integer,
15
+ `refill_amount` integer,
16
+ `last_refill_at` integer,
17
+ `enabled` integer NOT NULL,
18
+ `rate_limit_enabled` integer NOT NULL,
19
+ `rate_limit_time_window` integer,
20
+ `rate_limit_max` integer,
21
+ `request_count` integer NOT NULL,
22
+ `remaining` integer,
23
+ `last_request` integer,
24
+ `expires_at` integer,
25
+ `created_at` integer NOT NULL,
26
+ `updated_at` integer NOT NULL,
27
+ `permissions` text,
28
+ `metadata` text,
29
+ FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE no action
30
+ );
31
+ --> statement-breakpoint
32
+ INSERT INTO `__new_apikeys`("id", "name", "start", "prefix", "key", "config_id", "reference_id", "user_id", "refill_interval", "refill_amount", "last_refill_at", "enabled", "rate_limit_enabled", "rate_limit_time_window", "rate_limit_max", "request_count", "remaining", "last_request", "expires_at", "created_at", "updated_at", "permissions", "metadata") SELECT "id", "name", "start", "prefix", "key", 'default', "user_id", "user_id", "refill_interval", "refill_amount", "last_refill_at", "enabled", "rate_limit_enabled", "rate_limit_time_window", "rate_limit_max", "request_count", "remaining", "last_request", "expires_at", "created_at", "updated_at", "permissions", "metadata" FROM `apikeys`;--> statement-breakpoint
33
+ DROP TABLE `apikeys`;--> statement-breakpoint
34
+ ALTER TABLE `__new_apikeys` RENAME TO `apikeys`;--> statement-breakpoint
35
+ PRAGMA foreign_keys=ON;--> statement-breakpoint
36
+ ALTER TABLE `organizations` ADD `currency` text;--> statement-breakpoint
37
+ ALTER TABLE `organizations` ADD `stripe_customer_id` text;--> statement-breakpoint
38
+ ALTER TABLE `organizations` ADD `stripe_sandbox_customer_id` text;--> statement-breakpoint
39
+ ALTER TABLE `organizations` ADD `billing_exempt` integer DEFAULT false NOT NULL;--> statement-breakpoint
40
+ ALTER TABLE `organizations` ADD `allow_cardless_trial` integer DEFAULT false NOT NULL;--> statement-breakpoint
41
+ ALTER TABLE `organizations` ADD `cardless_trial_consumed` text DEFAULT '{}';--> statement-breakpoint
42
+ ALTER TABLE `organizations` ADD `closed_at` integer;--> statement-breakpoint
43
+ CREATE UNIQUE INDEX `organizations_stripe_customer_id_unique` ON `organizations` (`stripe_customer_id`);--> statement-breakpoint
44
+ CREATE UNIQUE INDEX `organizations_stripe_sandbox_customer_id_unique` ON `organizations` (`stripe_sandbox_customer_id`);--> statement-breakpoint
45
+ ALTER TABLE `files` DROP COLUMN `team_id`;