@monkeyplus/payscope 1.0.3 → 1.0.5
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/dist/_chunks/db.d.mts +4 -0
- package/dist/server/db.mjs +10 -0
- package/package.json +1 -1
package/dist/_chunks/db.d.mts
CHANGED
|
@@ -7080,6 +7080,10 @@ declare const db: import("drizzle-orm/postgres-js").PostgresJsDatabase<import("d
|
|
|
7080
7080
|
stores: {
|
|
7081
7081
|
country: import("drizzle-orm").One<"countries", true>;
|
|
7082
7082
|
};
|
|
7083
|
+
orders: {
|
|
7084
|
+
transaction: import("drizzle-orm").One<"transactions", true>;
|
|
7085
|
+
store: import("drizzle-orm").One<"stores", true>;
|
|
7086
|
+
};
|
|
7083
7087
|
countries: {
|
|
7084
7088
|
taxesList: import("drizzle-orm").Many<"taxes">;
|
|
7085
7089
|
};
|
package/dist/server/db.mjs
CHANGED
|
@@ -74,6 +74,16 @@ const db = drizzle(process.env.PAYSCOPE_URL, { relations: defineRelations(ecomme
|
|
|
74
74
|
from: r.stores.countryId,
|
|
75
75
|
to: r.countries.id
|
|
76
76
|
}) },
|
|
77
|
+
orders: {
|
|
78
|
+
transaction: r.one.transactions({
|
|
79
|
+
from: r.orders.transactionId,
|
|
80
|
+
to: r.transactions.id
|
|
81
|
+
}),
|
|
82
|
+
store: r.one.stores({
|
|
83
|
+
from: r.orders.storeId,
|
|
84
|
+
to: r.stores.id
|
|
85
|
+
})
|
|
86
|
+
},
|
|
77
87
|
countries: { taxesList: r.many.taxes({
|
|
78
88
|
from: r.countries.id,
|
|
79
89
|
to: r.taxes.countryId
|