create-fullstack-scaffold 0.4.4 → 0.4.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-fullstack-scaffold",
3
- "version": "0.4.4",
3
+ "version": "0.4.6",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-fullstack-scaffold": "dist/cli/index.js"
@@ -0,0 +1,100 @@
1
+ CREATE TABLE `developers` (
2
+ `id` text PRIMARY KEY NOT NULL,
3
+ `username` text NOT NULL,
4
+ `email` text NOT NULL,
5
+ `password_hash` text NOT NULL,
6
+ `role` text DEFAULT 'developer' NOT NULL,
7
+ `api_key` text NOT NULL,
8
+ `created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
9
+ `updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL
10
+ );
11
+ --> statement-breakpoint
12
+ CREATE UNIQUE INDEX `developers_username_unique` ON `developers` (`username`);--> statement-breakpoint
13
+ CREATE UNIQUE INDEX `developers_email_unique` ON `developers` (`email`);--> statement-breakpoint
14
+ CREATE UNIQUE INDEX `developers_api_key_unique` ON `developers` (`api_key`);--> statement-breakpoint
15
+ CREATE TABLE `plugin_categories` (
16
+ `id` text PRIMARY KEY NOT NULL,
17
+ `name` text NOT NULL,
18
+ `slug` text NOT NULL,
19
+ `description` text,
20
+ `icon` text,
21
+ `sort_order` integer DEFAULT 0 NOT NULL
22
+ );
23
+ --> statement-breakpoint
24
+ CREATE UNIQUE INDEX `plugin_categories_name_unique` ON `plugin_categories` (`name`);--> statement-breakpoint
25
+ CREATE UNIQUE INDEX `plugin_categories_slug_unique` ON `plugin_categories` (`slug`);--> statement-breakpoint
26
+ CREATE TABLE `plugin_category_mappings` (
27
+ `plugin_id` text NOT NULL,
28
+ `category_id` text NOT NULL,
29
+ FOREIGN KEY (`plugin_id`) REFERENCES `plugins`(`id`) ON UPDATE no action ON DELETE cascade,
30
+ FOREIGN KEY (`category_id`) REFERENCES `plugin_categories`(`id`) ON UPDATE no action ON DELETE cascade
31
+ );
32
+ --> statement-breakpoint
33
+ CREATE UNIQUE INDEX `plugin_category_mapping_unique` ON `plugin_category_mappings` (`plugin_id`,`category_id`);--> statement-breakpoint
34
+ CREATE TABLE `plugin_reviews` (
35
+ `id` text PRIMARY KEY NOT NULL,
36
+ `plugin_id` text NOT NULL,
37
+ `user_id` text NOT NULL,
38
+ `user_name` text NOT NULL,
39
+ `rating` integer NOT NULL,
40
+ `title` text,
41
+ `content` text,
42
+ `created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
43
+ FOREIGN KEY (`plugin_id`) REFERENCES `plugins`(`id`) ON UPDATE no action ON DELETE cascade
44
+ );
45
+ --> statement-breakpoint
46
+ CREATE UNIQUE INDEX `plugin_review_user_unique` ON `plugin_reviews` (`plugin_id`,`user_id`);--> statement-breakpoint
47
+ CREATE TABLE `plugin_versions` (
48
+ `id` text PRIMARY KEY NOT NULL,
49
+ `plugin_id` text NOT NULL,
50
+ `version` text NOT NULL,
51
+ `changelog` text,
52
+ `package_url` text,
53
+ `file_size` integer,
54
+ `checksum` text,
55
+ `status` text DEFAULT 'pending' NOT NULL,
56
+ `published_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
57
+ FOREIGN KEY (`plugin_id`) REFERENCES `plugins`(`id`) ON UPDATE no action ON DELETE cascade
58
+ );
59
+ --> statement-breakpoint
60
+ CREATE UNIQUE INDEX `plugin_version_unique` ON `plugin_versions` (`plugin_id`,`version`);--> statement-breakpoint
61
+ CREATE TABLE `plugins` (
62
+ `id` text PRIMARY KEY NOT NULL,
63
+ `name` text NOT NULL,
64
+ `slug` text NOT NULL,
65
+ `description` text DEFAULT '' NOT NULL,
66
+ `readme` text,
67
+ `author_id` text NOT NULL,
68
+ `author_name` text NOT NULL,
69
+ `repository_url` text,
70
+ `homepage_url` text,
71
+ `npm_package` text,
72
+ `license` text,
73
+ `version` text DEFAULT '0.0.1' NOT NULL,
74
+ `status` text DEFAULT 'pending' NOT NULL,
75
+ `download_count` integer DEFAULT 0 NOT NULL,
76
+ `view_count` integer DEFAULT 0 NOT NULL,
77
+ `featured` integer DEFAULT false NOT NULL,
78
+ `screenshot_url` text,
79
+ `site_urls` text,
80
+ `tags` text,
81
+ `commands` text,
82
+ `reject_reason` text,
83
+ `created_at` integer DEFAULT (unixepoch() * 1000) NOT NULL,
84
+ `updated_at` integer DEFAULT (unixepoch() * 1000) NOT NULL
85
+ );
86
+ --> statement-breakpoint
87
+ CREATE UNIQUE INDEX `plugins_slug_unique` ON `plugins` (`slug`);--> statement-breakpoint
88
+ CREATE TABLE `tenants` (
89
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
90
+ `name` text NOT NULL,
91
+ `slug` text NOT NULL,
92
+ `status` text DEFAULT 'trial' NOT NULL,
93
+ `plan` text DEFAULT 'free' NOT NULL,
94
+ `max_users` integer DEFAULT 5 NOT NULL,
95
+ `settings` text,
96
+ `created_at` text NOT NULL,
97
+ `updated_at` text NOT NULL
98
+ );
99
+ --> statement-breakpoint
100
+ CREATE UNIQUE INDEX `tenants_slug_unique` ON `tenants` (`slug`);