create-absolutejs 0.18.0 → 0.20.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.
- package/CHANGELOG.md +16 -0
- package/README.md +9 -2
- package/changelog.json +24 -0
- package/dist/commands/migrateDatabase.d.ts +6 -0
- package/dist/commands/migrateDatabase.js +53 -0
- package/dist/data.d.ts +1 -1
- package/dist/data.js +1 -0
- package/dist/generators/configurations/generateDrizzleConfig.d.ts +5 -3
- package/dist/generators/configurations/generateDrizzleConfig.js +40 -14
- package/dist/generators/configurations/generateEnv.js +6 -0
- package/dist/generators/configurations/generateEslintConfig.js +1 -1
- package/dist/generators/configurations/generatePackageJson.d.ts +2 -1
- package/dist/generators/configurations/generatePackageJson.js +40 -4
- package/dist/generators/db/drizzleTargets.d.ts +5 -0
- package/dist/generators/db/drizzleTargets.js +27 -0
- package/dist/generators/db/generateDatabaseTypes.js +10 -6
- package/dist/generators/db/generateDockerContainer.d.ts +5 -0
- package/dist/generators/db/generateDockerContainer.js +22 -4
- package/dist/generators/db/generateDrizzleSchema.js +65 -81
- package/dist/generators/db/handlerTemplates.d.ts +4 -4
- package/dist/generators/db/handlerTemplates.js +7 -10
- package/dist/generators/db/scaffoldDatabase.js +31 -8
- package/dist/generators/db/scaffoldDocker.d.ts +2 -1
- package/dist/generators/db/scaffoldDocker.js +7 -3
- package/dist/generators/prisma/generatePrismaCode.d.ts +6 -0
- package/dist/generators/prisma/generatePrismaCode.js +148 -0
- package/dist/generators/prisma/generatePrismaConfig.d.ts +8 -0
- package/dist/generators/prisma/generatePrismaConfig.js +68 -0
- package/dist/generators/prisma/generatePrismaSchema.d.ts +9 -0
- package/dist/generators/prisma/generatePrismaSchema.js +80 -0
- package/dist/generators/prisma/prismaPackageJson.d.ts +8 -0
- package/dist/generators/prisma/prismaPackageJson.js +46 -0
- package/dist/generators/prisma/prismaTargets.d.ts +22 -0
- package/dist/generators/prisma/prismaTargets.js +91 -0
- package/dist/generators/prisma/scaffoldPrismaDatabase.d.ts +16 -0
- package/dist/generators/prisma/scaffoldPrismaDatabase.js +136 -0
- package/dist/generators/project/generateDBBlock.js +16 -2
- package/dist/generators/project/generateImportsBlock.js +17 -7
- package/dist/generators/project/generateServer.js +2 -1
- package/dist/index.js +2 -1
- package/dist/messages.d.ts +2 -1
- package/dist/messages.js +2 -1
- package/dist/questions/authOption.js +4 -1
- package/dist/questions/databaseEngine.d.ts +1 -1
- package/dist/questions/orm.js +5 -2
- package/dist/scaffold.d.ts +1 -0
- package/dist/scaffold.js +23 -5
- package/dist/templates/configurations/.prettierignore +2 -1
- package/dist/templates/configurations/eslint.config.example.mjs +81 -41
- package/dist/templates/db/migrations/cockroach-count-history/20260926210314_init/migration.sql +5 -0
- package/dist/templates/db/migrations/cockroach-count-history/20260926210314_init/snapshot.json +69 -0
- package/dist/templates/db/migrations/cockroach-users/20260926210315_init/migration.sql +5 -0
- package/dist/templates/db/migrations/cockroach-users/20260926210315_init/snapshot.json +62 -0
- package/dist/templates/db/migrations/mssql-count-history/20260926210316_init/migration.sql +6 -0
- package/dist/templates/db/migrations/mssql-count-history/20260926210316_init/snapshot.json +64 -0
- package/dist/templates/db/migrations/mssql-users/20260926210317_init/migration.sql +6 -0
- package/dist/templates/db/migrations/mssql-users/20260926210317_init/snapshot.json +70 -0
- package/dist/templates/db/migrations/mysql-count-history/20260926210318_init/migration.sql +5 -0
- package/dist/templates/db/migrations/mysql-count-history/20260926210318_init/snapshot.json +61 -0
- package/dist/templates/db/migrations/mysql-users/20260926210319_init/migration.sql +5 -0
- package/dist/templates/db/migrations/mysql-users/20260926210319_init/snapshot.json +61 -0
- package/dist/templates/db/migrations/postgresql-count-history/20260926210320_init/migration.sql +5 -0
- package/dist/templates/db/migrations/postgresql-count-history/20260926210320_init/snapshot.json +71 -0
- package/dist/templates/db/migrations/postgresql-users/20260926210320_init/migration.sql +5 -0
- package/dist/templates/db/migrations/postgresql-users/20260926210320_init/snapshot.json +62 -0
- package/dist/templates/db/migrations/prisma-cockroachdb-count-history/20260926000000_init/migration.sql +12 -0
- package/dist/templates/db/migrations/prisma-cockroachdb-count-history/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-cockroachdb-users/20260926000000_init/migration.sql +12 -0
- package/dist/templates/db/migrations/prisma-cockroachdb-users/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-mysql-count-history/20260926000000_init/migration.sql +9 -0
- package/dist/templates/db/migrations/prisma-mysql-count-history/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-mysql-users/20260926000000_init/migration.sql +9 -0
- package/dist/templates/db/migrations/prisma-mysql-users/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-postgresql-count-history/20260926000000_init/migration.sql +12 -0
- package/dist/templates/db/migrations/prisma-postgresql-count-history/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-postgresql-users/20260926000000_init/migration.sql +12 -0
- package/dist/templates/db/migrations/prisma-postgresql-users/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-sqlite-count-history/20260926000000_init/migration.sql +7 -0
- package/dist/templates/db/migrations/prisma-sqlite-count-history/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-sqlite-users/20260926000000_init/migration.sql +7 -0
- package/dist/templates/db/migrations/prisma-sqlite-users/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-sqlserver-count-history/20260926000000_init/migration.sql +28 -0
- package/dist/templates/db/migrations/prisma-sqlserver-count-history/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/prisma-sqlserver-users/20260926000000_init/migration.sql +28 -0
- package/dist/templates/db/migrations/prisma-sqlserver-users/migration_lock.toml +3 -0
- package/dist/templates/db/migrations/singlestore-count-history/20260926210321_init/migration.sql +5 -0
- package/dist/templates/db/migrations/singlestore-count-history/20260926210321_init/snapshot.json +61 -0
- package/dist/templates/db/migrations/singlestore-users/20260926210322_init/migration.sql +5 -0
- package/dist/templates/db/migrations/singlestore-users/20260926210322_init/snapshot.json +61 -0
- package/dist/templates/db/migrations/sqlite-count-history/20260926210323_init/migration.sql +5 -0
- package/dist/templates/db/migrations/sqlite-count-history/20260926210323_init/snapshot.json +50 -0
- package/dist/templates/db/migrations/sqlite-users/20260926210324_init/migration.sql +5 -0
- package/dist/templates/db/migrations/sqlite-users/20260926210324_init/snapshot.json +50 -0
- package/dist/templates/db/migrations/turso-count-history/20260926210324_init/migration.sql +5 -0
- package/dist/templates/db/migrations/turso-count-history/20260926210324_init/snapshot.json +50 -0
- package/dist/templates/db/migrations/turso-users/20260926210325_init/migration.sql +5 -0
- package/dist/templates/db/migrations/turso-users/20260926210325_init/snapshot.json +50 -0
- package/dist/templates/git/gitignore +5 -3
- package/dist/typeGuards.d.ts +2 -2
- package/dist/typeGuards.js +2 -2
- package/dist/utils/parseCommandLineOptions.js +16 -31
- package/dist/utils/validateDatabaseSelection.d.ts +11 -0
- package/dist/utils/validateDatabaseSelection.js +34 -0
- package/dist/versions.d.ts +9 -0
- package/dist/versions.js +13 -0
- package/package.json +4 -1
- package/dist/templates/configurations/drizzle.config.ts +0 -13
package/dist/templates/db/migrations/postgresql-count-history/20260926210320_init/snapshot.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "8",
|
|
3
|
+
"dialect": "postgres",
|
|
4
|
+
"id": "5a337cba-4b12-418c-b4fe-ae38fdc5ba8a",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"isRlsEnabled": false,
|
|
9
|
+
"name": "count_history",
|
|
10
|
+
"entityType": "tables",
|
|
11
|
+
"schema": "public"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"typeSchema": null,
|
|
16
|
+
"notNull": true,
|
|
17
|
+
"dimensions": 0,
|
|
18
|
+
"default": null,
|
|
19
|
+
"generated": null,
|
|
20
|
+
"identity": {
|
|
21
|
+
"type": "always",
|
|
22
|
+
"name": "count_history_uid_seq",
|
|
23
|
+
"increment": "1",
|
|
24
|
+
"startWith": "1",
|
|
25
|
+
"minValue": "1",
|
|
26
|
+
"maxValue": "2147483647",
|
|
27
|
+
"cache": 1,
|
|
28
|
+
"cycle": false
|
|
29
|
+
},
|
|
30
|
+
"name": "uid",
|
|
31
|
+
"entityType": "columns",
|
|
32
|
+
"schema": "public",
|
|
33
|
+
"table": "count_history"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "integer",
|
|
37
|
+
"typeSchema": null,
|
|
38
|
+
"notNull": true,
|
|
39
|
+
"dimensions": 0,
|
|
40
|
+
"default": null,
|
|
41
|
+
"generated": null,
|
|
42
|
+
"identity": null,
|
|
43
|
+
"name": "count",
|
|
44
|
+
"entityType": "columns",
|
|
45
|
+
"schema": "public",
|
|
46
|
+
"table": "count_history"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "timestamp",
|
|
50
|
+
"typeSchema": null,
|
|
51
|
+
"notNull": true,
|
|
52
|
+
"dimensions": 0,
|
|
53
|
+
"default": "now()",
|
|
54
|
+
"generated": null,
|
|
55
|
+
"identity": null,
|
|
56
|
+
"name": "created_at",
|
|
57
|
+
"entityType": "columns",
|
|
58
|
+
"schema": "public",
|
|
59
|
+
"table": "count_history"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"columns": ["uid"],
|
|
63
|
+
"nameExplicit": false,
|
|
64
|
+
"name": "count_history_pkey",
|
|
65
|
+
"schema": "public",
|
|
66
|
+
"table": "count_history",
|
|
67
|
+
"entityType": "pks"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"renames": []
|
|
71
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "8",
|
|
3
|
+
"dialect": "postgres",
|
|
4
|
+
"id": "9d194a19-609c-4f6f-8d0e-fe03ad5d72d7",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"isRlsEnabled": false,
|
|
9
|
+
"name": "users",
|
|
10
|
+
"entityType": "tables",
|
|
11
|
+
"schema": "public"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "varchar(255)",
|
|
15
|
+
"typeSchema": null,
|
|
16
|
+
"notNull": true,
|
|
17
|
+
"dimensions": 0,
|
|
18
|
+
"default": null,
|
|
19
|
+
"generated": null,
|
|
20
|
+
"identity": null,
|
|
21
|
+
"name": "auth_sub",
|
|
22
|
+
"entityType": "columns",
|
|
23
|
+
"schema": "public",
|
|
24
|
+
"table": "users"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "timestamp",
|
|
28
|
+
"typeSchema": null,
|
|
29
|
+
"notNull": true,
|
|
30
|
+
"dimensions": 0,
|
|
31
|
+
"default": "now()",
|
|
32
|
+
"generated": null,
|
|
33
|
+
"identity": null,
|
|
34
|
+
"name": "created_at",
|
|
35
|
+
"entityType": "columns",
|
|
36
|
+
"schema": "public",
|
|
37
|
+
"table": "users"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "jsonb",
|
|
41
|
+
"typeSchema": null,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"dimensions": 0,
|
|
44
|
+
"default": "'{}'",
|
|
45
|
+
"generated": null,
|
|
46
|
+
"identity": null,
|
|
47
|
+
"name": "metadata",
|
|
48
|
+
"entityType": "columns",
|
|
49
|
+
"schema": "public",
|
|
50
|
+
"table": "users"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"columns": ["auth_sub"],
|
|
54
|
+
"nameExplicit": false,
|
|
55
|
+
"name": "users_pkey",
|
|
56
|
+
"schema": "public",
|
|
57
|
+
"table": "users",
|
|
58
|
+
"entityType": "pks"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"renames": []
|
|
62
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- CreateSchema
|
|
2
|
+
CREATE SCHEMA IF NOT EXISTS "public";
|
|
3
|
+
|
|
4
|
+
-- CreateTable
|
|
5
|
+
CREATE TABLE "count_history" (
|
|
6
|
+
"uid" INT4 NOT NULL GENERATED BY DEFAULT AS IDENTITY (MAXVALUE 2147483647),
|
|
7
|
+
"count" INT4 NOT NULL,
|
|
8
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "count_history_pkey" PRIMARY KEY ("uid")
|
|
11
|
+
);
|
|
12
|
+
|
package/dist/templates/db/migrations/prisma-cockroachdb-users/20260926000000_init/migration.sql
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- CreateSchema
|
|
2
|
+
CREATE SCHEMA IF NOT EXISTS "public";
|
|
3
|
+
|
|
4
|
+
-- CreateTable
|
|
5
|
+
CREATE TABLE "users" (
|
|
6
|
+
"auth_sub" STRING(255) NOT NULL,
|
|
7
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
8
|
+
"metadata" JSONB NOT NULL,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "users_pkey" PRIMARY KEY ("auth_sub")
|
|
11
|
+
);
|
|
12
|
+
|
package/dist/templates/db/migrations/prisma-mysql-count-history/20260926000000_init/migration.sql
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
-- CreateTable
|
|
2
|
+
CREATE TABLE `count_history` (
|
|
3
|
+
`uid` INTEGER NOT NULL AUTO_INCREMENT,
|
|
4
|
+
`count` INTEGER NOT NULL,
|
|
5
|
+
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
|
6
|
+
|
|
7
|
+
PRIMARY KEY (`uid`)
|
|
8
|
+
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
|
9
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- CreateSchema
|
|
2
|
+
CREATE SCHEMA IF NOT EXISTS "public";
|
|
3
|
+
|
|
4
|
+
-- CreateTable
|
|
5
|
+
CREATE TABLE "count_history" (
|
|
6
|
+
"uid" SERIAL NOT NULL,
|
|
7
|
+
"count" INTEGER NOT NULL,
|
|
8
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "count_history_pkey" PRIMARY KEY ("uid")
|
|
11
|
+
);
|
|
12
|
+
|
package/dist/templates/db/migrations/prisma-postgresql-users/20260926000000_init/migration.sql
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
-- CreateSchema
|
|
2
|
+
CREATE SCHEMA IF NOT EXISTS "public";
|
|
3
|
+
|
|
4
|
+
-- CreateTable
|
|
5
|
+
CREATE TABLE "users" (
|
|
6
|
+
"auth_sub" VARCHAR(255) NOT NULL,
|
|
7
|
+
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
8
|
+
"metadata" JSONB NOT NULL,
|
|
9
|
+
|
|
10
|
+
CONSTRAINT "users_pkey" PRIMARY KEY ("auth_sub")
|
|
11
|
+
);
|
|
12
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- CreateSchema
|
|
6
|
+
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'dbo') EXEC sp_executesql N'CREATE SCHEMA [dbo];';
|
|
7
|
+
|
|
8
|
+
-- CreateTable
|
|
9
|
+
CREATE TABLE [dbo].[count_history] (
|
|
10
|
+
[uid] INT NOT NULL IDENTITY(1,1),
|
|
11
|
+
[count] INT NOT NULL,
|
|
12
|
+
[created_at] DATETIME2 NOT NULL CONSTRAINT [count_history_created_at_df] DEFAULT CURRENT_TIMESTAMP,
|
|
13
|
+
CONSTRAINT [count_history_pkey] PRIMARY KEY CLUSTERED ([uid])
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
COMMIT TRAN;
|
|
17
|
+
|
|
18
|
+
END TRY
|
|
19
|
+
BEGIN CATCH
|
|
20
|
+
|
|
21
|
+
IF @@TRANCOUNT > 0
|
|
22
|
+
BEGIN
|
|
23
|
+
ROLLBACK TRAN;
|
|
24
|
+
END;
|
|
25
|
+
THROW
|
|
26
|
+
|
|
27
|
+
END CATCH
|
|
28
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- CreateSchema
|
|
6
|
+
IF NOT EXISTS (SELECT * FROM sys.schemas WHERE name = N'dbo') EXEC sp_executesql N'CREATE SCHEMA [dbo];';
|
|
7
|
+
|
|
8
|
+
-- CreateTable
|
|
9
|
+
CREATE TABLE [dbo].[users] (
|
|
10
|
+
[auth_sub] NVARCHAR(255) NOT NULL,
|
|
11
|
+
[created_at] DATETIME2 NOT NULL CONSTRAINT [users_created_at_df] DEFAULT CURRENT_TIMESTAMP,
|
|
12
|
+
[metadata] NVARCHAR(max) NOT NULL,
|
|
13
|
+
CONSTRAINT [users_pkey] PRIMARY KEY CLUSTERED ([auth_sub])
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
COMMIT TRAN;
|
|
17
|
+
|
|
18
|
+
END TRY
|
|
19
|
+
BEGIN CATCH
|
|
20
|
+
|
|
21
|
+
IF @@TRANCOUNT > 0
|
|
22
|
+
BEGIN
|
|
23
|
+
ROLLBACK TRAN;
|
|
24
|
+
END;
|
|
25
|
+
THROW
|
|
26
|
+
|
|
27
|
+
END CATCH
|
|
28
|
+
|
package/dist/templates/db/migrations/singlestore-count-history/20260926210321_init/snapshot.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2",
|
|
3
|
+
"dialect": "singlestore",
|
|
4
|
+
"id": "d815e1ce-94b0-4fb1-8829-97431461c2b8",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "count_history",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "int",
|
|
13
|
+
"notNull": true,
|
|
14
|
+
"autoIncrement": true,
|
|
15
|
+
"default": null,
|
|
16
|
+
"onUpdateNow": false,
|
|
17
|
+
"onUpdateNowFsp": null,
|
|
18
|
+
"charSet": null,
|
|
19
|
+
"collation": null,
|
|
20
|
+
"generated": null,
|
|
21
|
+
"name": "uid",
|
|
22
|
+
"entityType": "columns",
|
|
23
|
+
"table": "count_history"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "int",
|
|
27
|
+
"notNull": true,
|
|
28
|
+
"autoIncrement": false,
|
|
29
|
+
"default": null,
|
|
30
|
+
"onUpdateNow": false,
|
|
31
|
+
"onUpdateNowFsp": null,
|
|
32
|
+
"charSet": null,
|
|
33
|
+
"collation": null,
|
|
34
|
+
"generated": null,
|
|
35
|
+
"name": "count",
|
|
36
|
+
"entityType": "columns",
|
|
37
|
+
"table": "count_history"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "timestamp",
|
|
41
|
+
"notNull": true,
|
|
42
|
+
"autoIncrement": false,
|
|
43
|
+
"default": "CURRENT_TIMESTAMP",
|
|
44
|
+
"onUpdateNow": false,
|
|
45
|
+
"onUpdateNowFsp": null,
|
|
46
|
+
"charSet": null,
|
|
47
|
+
"collation": null,
|
|
48
|
+
"generated": null,
|
|
49
|
+
"name": "created_at",
|
|
50
|
+
"entityType": "columns",
|
|
51
|
+
"table": "count_history"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"columns": ["uid"],
|
|
55
|
+
"name": "PRIMARY",
|
|
56
|
+
"table": "count_history",
|
|
57
|
+
"entityType": "pks"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"renames": []
|
|
61
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "2",
|
|
3
|
+
"dialect": "singlestore",
|
|
4
|
+
"id": "c077064e-71dd-4939-9b88-0f3c07d67857",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "users",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "varchar(255)",
|
|
13
|
+
"notNull": true,
|
|
14
|
+
"autoIncrement": false,
|
|
15
|
+
"default": null,
|
|
16
|
+
"onUpdateNow": false,
|
|
17
|
+
"onUpdateNowFsp": null,
|
|
18
|
+
"charSet": null,
|
|
19
|
+
"collation": null,
|
|
20
|
+
"generated": null,
|
|
21
|
+
"name": "auth_sub",
|
|
22
|
+
"entityType": "columns",
|
|
23
|
+
"table": "users"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "timestamp",
|
|
27
|
+
"notNull": true,
|
|
28
|
+
"autoIncrement": false,
|
|
29
|
+
"default": "CURRENT_TIMESTAMP",
|
|
30
|
+
"onUpdateNow": false,
|
|
31
|
+
"onUpdateNowFsp": null,
|
|
32
|
+
"charSet": null,
|
|
33
|
+
"collation": null,
|
|
34
|
+
"generated": null,
|
|
35
|
+
"name": "created_at",
|
|
36
|
+
"entityType": "columns",
|
|
37
|
+
"table": "users"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "json",
|
|
41
|
+
"notNull": false,
|
|
42
|
+
"autoIncrement": false,
|
|
43
|
+
"default": "'{}'",
|
|
44
|
+
"onUpdateNow": false,
|
|
45
|
+
"onUpdateNowFsp": null,
|
|
46
|
+
"charSet": null,
|
|
47
|
+
"collation": null,
|
|
48
|
+
"generated": null,
|
|
49
|
+
"name": "metadata",
|
|
50
|
+
"entityType": "columns",
|
|
51
|
+
"table": "users"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"columns": ["auth_sub"],
|
|
55
|
+
"name": "PRIMARY",
|
|
56
|
+
"table": "users",
|
|
57
|
+
"entityType": "pks"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"renames": []
|
|
61
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "6622a331-77bf-4d4e-88f4-49c5160639c6",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "count_history",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"notNull": false,
|
|
14
|
+
"autoincrement": true,
|
|
15
|
+
"default": null,
|
|
16
|
+
"generated": null,
|
|
17
|
+
"name": "uid",
|
|
18
|
+
"entityType": "columns",
|
|
19
|
+
"table": "count_history"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"notNull": true,
|
|
24
|
+
"autoincrement": false,
|
|
25
|
+
"default": null,
|
|
26
|
+
"generated": null,
|
|
27
|
+
"name": "count",
|
|
28
|
+
"entityType": "columns",
|
|
29
|
+
"table": "count_history"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"notNull": true,
|
|
34
|
+
"autoincrement": false,
|
|
35
|
+
"default": "((julianday('now') - 2440587.5) * 86400000)",
|
|
36
|
+
"generated": null,
|
|
37
|
+
"name": "created_at",
|
|
38
|
+
"entityType": "columns",
|
|
39
|
+
"table": "count_history"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"columns": ["uid"],
|
|
43
|
+
"nameExplicit": false,
|
|
44
|
+
"name": "count_history_pk",
|
|
45
|
+
"table": "count_history",
|
|
46
|
+
"entityType": "pks"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"renames": []
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "7f63cb6e-0782-48bf-afbe-2487419620f0",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "users",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "text",
|
|
13
|
+
"notNull": false,
|
|
14
|
+
"autoincrement": false,
|
|
15
|
+
"default": null,
|
|
16
|
+
"generated": null,
|
|
17
|
+
"name": "auth_sub",
|
|
18
|
+
"entityType": "columns",
|
|
19
|
+
"table": "users"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"notNull": true,
|
|
24
|
+
"autoincrement": false,
|
|
25
|
+
"default": "((julianday('now') - 2440587.5) * 86400000)",
|
|
26
|
+
"generated": null,
|
|
27
|
+
"name": "created_at",
|
|
28
|
+
"entityType": "columns",
|
|
29
|
+
"table": "users"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "text",
|
|
33
|
+
"notNull": false,
|
|
34
|
+
"autoincrement": false,
|
|
35
|
+
"default": "'{}'",
|
|
36
|
+
"generated": null,
|
|
37
|
+
"name": "metadata",
|
|
38
|
+
"entityType": "columns",
|
|
39
|
+
"table": "users"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"columns": ["auth_sub"],
|
|
43
|
+
"nameExplicit": false,
|
|
44
|
+
"name": "users_pk",
|
|
45
|
+
"table": "users",
|
|
46
|
+
"entityType": "pks"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"renames": []
|
|
50
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "1d80fd4a-732f-4fd7-b39b-2e83811d8795",
|
|
5
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "count_history",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"notNull": false,
|
|
14
|
+
"autoincrement": true,
|
|
15
|
+
"default": null,
|
|
16
|
+
"generated": null,
|
|
17
|
+
"name": "uid",
|
|
18
|
+
"entityType": "columns",
|
|
19
|
+
"table": "count_history"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"notNull": true,
|
|
24
|
+
"autoincrement": false,
|
|
25
|
+
"default": null,
|
|
26
|
+
"generated": null,
|
|
27
|
+
"name": "count",
|
|
28
|
+
"entityType": "columns",
|
|
29
|
+
"table": "count_history"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "integer",
|
|
33
|
+
"notNull": true,
|
|
34
|
+
"autoincrement": false,
|
|
35
|
+
"default": "((julianday('now') - 2440587.5) * 86400000)",
|
|
36
|
+
"generated": null,
|
|
37
|
+
"name": "created_at",
|
|
38
|
+
"entityType": "columns",
|
|
39
|
+
"table": "count_history"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"columns": ["uid"],
|
|
43
|
+
"nameExplicit": false,
|
|
44
|
+
"name": "count_history_pk",
|
|
45
|
+
"table": "count_history",
|
|
46
|
+
"entityType": "pks"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"renames": []
|
|
50
|
+
}
|