@open-mercato/core 0.4.5-develop-889cd8e476 → 0.4.5-develop-610fbb24ec
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": "@open-mercato/core",
|
|
3
|
-
"version": "0.4.5-develop-
|
|
3
|
+
"version": "0.4.5-develop-610fbb24ec",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
"dependencies": {
|
|
210
|
-
"@open-mercato/shared": "0.4.5-develop-
|
|
210
|
+
"@open-mercato/shared": "0.4.5-develop-610fbb24ec",
|
|
211
211
|
"@types/semver": "^7.5.8",
|
|
212
212
|
"@xyflow/react": "^12.6.0",
|
|
213
213
|
"ai": "^6.0.0",
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Migration } from "@mikro-orm/migrations";
|
|
2
|
-
class Migration20260226155449 extends Migration {
|
|
3
|
-
async up() {
|
|
4
|
-
this.addSql(`create table "customer_pipelines" ("id" uuid not null default gen_random_uuid(), "organization_id" uuid not null, "tenant_id" uuid not null, "name" text not null, "is_default" boolean not null default false, "created_at" timestamptz not null, "updated_at" timestamptz not null, constraint "customer_pipelines_pkey" primary key ("id"));`);
|
|
5
|
-
this.addSql(`create index "customer_pipelines_org_tenant_idx" on "customer_pipelines" ("organization_id", "tenant_id");`);
|
|
6
|
-
this.addSql(`create table "customer_pipeline_stages" ("id" uuid not null default gen_random_uuid(), "organization_id" uuid not null, "tenant_id" uuid not null, "pipeline_id" uuid not null, "name" text not null, "position" int not null default 0, "created_at" timestamptz not null, "updated_at" timestamptz not null, constraint "customer_pipeline_stages_pkey" primary key ("id"));`);
|
|
7
|
-
this.addSql(`create index "customer_pipeline_stages_org_tenant_idx" on "customer_pipeline_stages" ("organization_id", "tenant_id");`);
|
|
8
|
-
this.addSql(`create index "customer_pipeline_stages_pipeline_position_idx" on "customer_pipeline_stages" ("pipeline_id", "position");`);
|
|
9
|
-
this.addSql(`alter table "customer_deals" add column "pipeline_id" uuid null, add column "pipeline_stage_id" uuid null;`);
|
|
10
|
-
}
|
|
11
|
-
async down() {
|
|
12
|
-
this.addSql(`alter table "customer_deals" drop column "pipeline_id", drop column "pipeline_stage_id";`);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
Migration20260226155449
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=Migration20260226155449.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/modules/customers/migrations/Migration20260226155449.ts"],
|
|
4
|
-
"sourcesContent": ["import { Migration } from '@mikro-orm/migrations';\n\nexport class Migration20260226155449 extends Migration {\n\n override async up(): Promise<void> {\n this.addSql(`create table \"customer_pipelines\" (\"id\" uuid not null default gen_random_uuid(), \"organization_id\" uuid not null, \"tenant_id\" uuid not null, \"name\" text not null, \"is_default\" boolean not null default false, \"created_at\" timestamptz not null, \"updated_at\" timestamptz not null, constraint \"customer_pipelines_pkey\" primary key (\"id\"));`);\n this.addSql(`create index \"customer_pipelines_org_tenant_idx\" on \"customer_pipelines\" (\"organization_id\", \"tenant_id\");`);\n\n this.addSql(`create table \"customer_pipeline_stages\" (\"id\" uuid not null default gen_random_uuid(), \"organization_id\" uuid not null, \"tenant_id\" uuid not null, \"pipeline_id\" uuid not null, \"name\" text not null, \"position\" int not null default 0, \"created_at\" timestamptz not null, \"updated_at\" timestamptz not null, constraint \"customer_pipeline_stages_pkey\" primary key (\"id\"));`);\n this.addSql(`create index \"customer_pipeline_stages_org_tenant_idx\" on \"customer_pipeline_stages\" (\"organization_id\", \"tenant_id\");`);\n this.addSql(`create index \"customer_pipeline_stages_pipeline_position_idx\" on \"customer_pipeline_stages\" (\"pipeline_id\", \"position\");`);\n\n this.addSql(`alter table \"customer_deals\" add column \"pipeline_id\" uuid null, add column \"pipeline_stage_id\" uuid null;`);\n }\n\n override async down(): Promise<void> {\n this.addSql(`alter table \"customer_deals\" drop column \"pipeline_id\", drop column \"pipeline_stage_id\";`);\n }\n\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,iBAAiB;AAEnB,MAAM,gCAAgC,UAAU;AAAA,EAErD,MAAe,KAAoB;AACjC,SAAK,OAAO,iVAAiV;AAC7V,SAAK,OAAO,4GAA4G;AAExH,SAAK,OAAO,gXAAgX;AAC5X,SAAK,OAAO,wHAAwH;AACpI,SAAK,OAAO,0HAA0H;AAEtI,SAAK,OAAO,4GAA4G;AAAA,EAC1H;AAAA,EAEA,MAAe,OAAsB;AACnC,SAAK,OAAO,0FAA0F;AAAA,EACxG;AAEF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
-
|
|
3
|
-
export class Migration20260226155449 extends Migration {
|
|
4
|
-
|
|
5
|
-
override async up(): Promise<void> {
|
|
6
|
-
this.addSql(`create table "customer_pipelines" ("id" uuid not null default gen_random_uuid(), "organization_id" uuid not null, "tenant_id" uuid not null, "name" text not null, "is_default" boolean not null default false, "created_at" timestamptz not null, "updated_at" timestamptz not null, constraint "customer_pipelines_pkey" primary key ("id"));`);
|
|
7
|
-
this.addSql(`create index "customer_pipelines_org_tenant_idx" on "customer_pipelines" ("organization_id", "tenant_id");`);
|
|
8
|
-
|
|
9
|
-
this.addSql(`create table "customer_pipeline_stages" ("id" uuid not null default gen_random_uuid(), "organization_id" uuid not null, "tenant_id" uuid not null, "pipeline_id" uuid not null, "name" text not null, "position" int not null default 0, "created_at" timestamptz not null, "updated_at" timestamptz not null, constraint "customer_pipeline_stages_pkey" primary key ("id"));`);
|
|
10
|
-
this.addSql(`create index "customer_pipeline_stages_org_tenant_idx" on "customer_pipeline_stages" ("organization_id", "tenant_id");`);
|
|
11
|
-
this.addSql(`create index "customer_pipeline_stages_pipeline_position_idx" on "customer_pipeline_stages" ("pipeline_id", "position");`);
|
|
12
|
-
|
|
13
|
-
this.addSql(`alter table "customer_deals" add column "pipeline_id" uuid null, add column "pipeline_stage_id" uuid null;`);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
override async down(): Promise<void> {
|
|
17
|
-
this.addSql(`alter table "customer_deals" drop column "pipeline_id", drop column "pipeline_stage_id";`);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|