@coursebuilder/adapter-drizzle 0.5.2 → 1.0.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/dist/{chunk-QQA7STVO.js → chunk-3WYG5OE7.js} +2 -2
- package/dist/{chunk-6SLQW6OM.js → chunk-5XTOCFDB.js} +5 -2
- package/dist/{chunk-2UU2F4DM.js → chunk-6MRFUIH5.js} +6 -2
- package/dist/{chunk-XIGJFVUM.js → chunk-6YPHJWS2.js} +9 -2
- package/dist/{chunk-EFVZ7IN4.js → chunk-A6XPL665.js} +2 -2
- package/dist/{chunk-3NUCFLQJ.js → chunk-BLDW3QUS.js} +7 -3
- package/dist/{chunk-QP6YMUQX.js → chunk-DKJO4Y3K.js} +7 -3
- package/dist/{chunk-P4VXXTVA.js → chunk-EHRARBRS.js} +4 -1
- package/dist/{chunk-YVVXDJHI.js → chunk-ET3QAIY7.js} +9 -2
- package/dist/{chunk-YMFPIZMO.js → chunk-GAKWXOAY.js} +2 -2
- package/dist/{chunk-4ZWS76VQ.js → chunk-KPBVZ44W.js} +7 -3
- package/dist/{chunk-ZYQYJNLK.js → chunk-L5ZAWSTN.js} +51 -29
- package/dist/{chunk-6ON2O6UD.js → chunk-MGZMGDQ5.js} +7 -3
- package/dist/{chunk-KDEWFXEP.js → chunk-MP4CUWYC.js} +6 -2
- package/dist/{chunk-JW2PFVLO.js → chunk-QGZ2F5SW.js} +1387 -868
- package/dist/{chunk-XJXCDN7B.js → chunk-RCL6HPBL.js} +8 -4
- package/dist/chunk-RP66NZN3.js +81 -0
- package/dist/{chunk-27UC2HEP.js → chunk-WFC55BSF.js} +7 -3
- package/dist/{chunk-GINRTL6J.js → chunk-WJWJ6E5Y.js} +6 -2
- package/dist/{chunk-YGRYHMCG.js → chunk-WPJZAYX7.js} +7 -3
- package/dist/index.js +20 -20
- package/dist/lib/mysql/index.cjs +1355 -787
- package/dist/lib/mysql/index.cjs.map +1 -1
- package/dist/lib/mysql/index.d.cts +4201 -1667
- package/dist/lib/mysql/index.d.ts +4201 -1667
- package/dist/lib/mysql/index.js +20 -20
- package/dist/lib/mysql/schemas/auth/accounts.cjs +109 -93
- package/dist/lib/mysql/schemas/auth/accounts.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/accounts.js +10 -11
- package/dist/lib/mysql/schemas/auth/device-access-token.cjs +104 -85
- package/dist/lib/mysql/schemas/auth/device-access-token.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/device-access-token.d.cts +16 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.d.ts +16 -0
- package/dist/lib/mysql/schemas/auth/device-access-token.js +11 -12
- package/dist/lib/mysql/schemas/auth/device-verification.cjs +103 -87
- package/dist/lib/mysql/schemas/auth/device-verification.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/device-verification.js +11 -12
- package/dist/lib/mysql/schemas/auth/role-permissions.cjs +102 -82
- package/dist/lib/mysql/schemas/auth/role-permissions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/role-permissions.js +11 -12
- package/dist/lib/mysql/schemas/auth/roles.cjs +106 -82
- package/dist/lib/mysql/schemas/auth/roles.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/roles.d.cts +16 -0
- package/dist/lib/mysql/schemas/auth/roles.d.ts +16 -0
- package/dist/lib/mysql/schemas/auth/roles.js +10 -11
- package/dist/lib/mysql/schemas/auth/sessions.cjs +99 -83
- package/dist/lib/mysql/schemas/auth/sessions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/sessions.js +11 -12
- package/dist/lib/mysql/schemas/auth/user-permissions.cjs +104 -84
- package/dist/lib/mysql/schemas/auth/user-permissions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/user-permissions.d.cts +16 -0
- package/dist/lib/mysql/schemas/auth/user-permissions.d.ts +16 -0
- package/dist/lib/mysql/schemas/auth/user-permissions.js +10 -11
- package/dist/lib/mysql/schemas/auth/user-prefs.cjs +108 -88
- package/dist/lib/mysql/schemas/auth/user-prefs.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/user-prefs.d.cts +16 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.d.ts +16 -0
- package/dist/lib/mysql/schemas/auth/user-prefs.js +10 -11
- package/dist/lib/mysql/schemas/auth/user-roles.cjs +109 -85
- package/dist/lib/mysql/schemas/auth/user-roles.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/user-roles.d.cts +16 -0
- package/dist/lib/mysql/schemas/auth/user-roles.d.ts +16 -0
- package/dist/lib/mysql/schemas/auth/user-roles.js +10 -11
- package/dist/lib/mysql/schemas/auth/users.cjs +288 -192
- package/dist/lib/mysql/schemas/auth/users.cjs.map +1 -1
- package/dist/lib/mysql/schemas/auth/users.d.cts +1 -0
- package/dist/lib/mysql/schemas/auth/users.d.ts +1 -0
- package/dist/lib/mysql/schemas/auth/users.js +10 -11
- package/dist/lib/mysql/schemas/commerce/coupon.cjs +134 -98
- package/dist/lib/mysql/schemas/commerce/coupon.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/coupon.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/coupon.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/coupon.js +10 -11
- package/dist/lib/mysql/schemas/commerce/merchant-account.cjs +5 -1
- package/dist/lib/mysql/schemas/commerce/merchant-account.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-account.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-account.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-account.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-charge.cjs +210 -17
- package/dist/lib/mysql/schemas/commerce/merchant-charge.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-charge.d.cts +33 -0
- package/dist/lib/mysql/schemas/commerce/merchant-charge.d.ts +33 -0
- package/dist/lib/mysql/schemas/commerce/merchant-charge.js +11 -4
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.cjs +5 -1
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-coupon.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-customer.cjs +5 -1
- package/dist/lib/mysql/schemas/commerce/merchant-customer.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-customer.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-customer.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-customer.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-price.cjs +5 -1
- package/dist/lib/mysql/schemas/commerce/merchant-price.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-price.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-price.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-price.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-product.cjs +5 -1
- package/dist/lib/mysql/schemas/commerce/merchant-product.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-product.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-product.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-product.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-session.cjs +5 -1
- package/dist/lib/mysql/schemas/commerce/merchant-session.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-session.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-session.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/merchant-session.js +1 -1
- package/dist/lib/mysql/schemas/commerce/merchant-subscription.cjs +315 -0
- package/dist/lib/mysql/schemas/commerce/merchant-subscription.cjs.map +1 -0
- package/dist/lib/mysql/schemas/commerce/merchant-subscription.d.cts +161 -0
- package/dist/lib/mysql/schemas/commerce/merchant-subscription.d.ts +161 -0
- package/dist/lib/mysql/schemas/commerce/merchant-subscription.js +20 -0
- package/dist/lib/mysql/schemas/commerce/merchant-subscription.js.map +1 -0
- package/dist/lib/mysql/schemas/commerce/price.cjs +108 -80
- package/dist/lib/mysql/schemas/commerce/price.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/price.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/price.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/price.js +10 -11
- package/dist/lib/mysql/schemas/commerce/product.cjs +134 -102
- package/dist/lib/mysql/schemas/commerce/product.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/product.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/product.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/product.js +10 -11
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.cjs +141 -113
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/purchase-user-transfer.js +11 -12
- package/dist/lib/mysql/schemas/commerce/purchase.cjs +293 -175
- package/dist/lib/mysql/schemas/commerce/purchase.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/purchase.d.cts +34 -0
- package/dist/lib/mysql/schemas/commerce/purchase.d.ts +34 -0
- package/dist/lib/mysql/schemas/commerce/purchase.js +10 -11
- package/dist/lib/mysql/schemas/commerce/subscription.cjs +343 -0
- package/dist/lib/mysql/schemas/commerce/subscription.cjs.map +1 -0
- package/dist/lib/mysql/schemas/commerce/subscription.d.cts +130 -0
- package/dist/lib/mysql/schemas/commerce/subscription.d.ts +130 -0
- package/dist/lib/mysql/schemas/commerce/subscription.js +20 -0
- package/dist/lib/mysql/schemas/commerce/subscription.js.map +1 -0
- package/dist/lib/mysql/schemas/commerce/upgradable-products.cjs +109 -85
- package/dist/lib/mysql/schemas/commerce/upgradable-products.cjs.map +1 -1
- package/dist/lib/mysql/schemas/commerce/upgradable-products.d.cts +16 -0
- package/dist/lib/mysql/schemas/commerce/upgradable-products.d.ts +16 -0
- package/dist/lib/mysql/schemas/commerce/upgradable-products.js +11 -12
- package/dist/lib/mysql/schemas/communication/comment.cjs +148 -87
- package/dist/lib/mysql/schemas/communication/comment.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/comment.d.cts +17 -0
- package/dist/lib/mysql/schemas/communication/comment.d.ts +17 -0
- package/dist/lib/mysql/schemas/communication/comment.js +10 -11
- package/dist/lib/mysql/schemas/communication/communication-channel.cjs +5 -1
- package/dist/lib/mysql/schemas/communication/communication-channel.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/communication-channel.d.cts +16 -0
- package/dist/lib/mysql/schemas/communication/communication-channel.d.ts +16 -0
- package/dist/lib/mysql/schemas/communication/communication-channel.js +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preference-types.cjs +3 -0
- package/dist/lib/mysql/schemas/communication/communication-preference-types.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preference-types.d.cts +16 -0
- package/dist/lib/mysql/schemas/communication/communication-preference-types.d.ts +16 -0
- package/dist/lib/mysql/schemas/communication/communication-preference-types.js +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preferences.cjs +176 -105
- package/dist/lib/mysql/schemas/communication/communication-preferences.cjs.map +1 -1
- package/dist/lib/mysql/schemas/communication/communication-preferences.d.cts +33 -0
- package/dist/lib/mysql/schemas/communication/communication-preferences.d.ts +33 -0
- package/dist/lib/mysql/schemas/communication/communication-preferences.js +10 -11
- package/dist/lib/mysql/schemas/content/content-contributions.cjs +186 -111
- package/dist/lib/mysql/schemas/content/content-contributions.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-contributions.d.cts +33 -0
- package/dist/lib/mysql/schemas/content/content-contributions.d.ts +33 -0
- package/dist/lib/mysql/schemas/content/content-contributions.js +10 -11
- package/dist/lib/mysql/schemas/content/content-resource-product.cjs +110 -79
- package/dist/lib/mysql/schemas/content/content-resource-product.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource-product.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-product.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-product.js +10 -11
- package/dist/lib/mysql/schemas/content/content-resource-resource.cjs +115 -88
- package/dist/lib/mysql/schemas/content/content-resource-resource.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource-resource.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-resource.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-resource.js +10 -11
- package/dist/lib/mysql/schemas/content/content-resource-tag.cjs +127 -96
- package/dist/lib/mysql/schemas/content/content-resource-tag.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource-tag.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-tag.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-tag.js +10 -11
- package/dist/lib/mysql/schemas/content/content-resource-version.cjs +130 -103
- package/dist/lib/mysql/schemas/content/content-resource-version.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource-version.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-version.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/content-resource-version.js +10 -11
- package/dist/lib/mysql/schemas/content/content-resource.cjs +248 -157
- package/dist/lib/mysql/schemas/content/content-resource.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/content-resource.d.cts +33 -0
- package/dist/lib/mysql/schemas/content/content-resource.d.ts +33 -0
- package/dist/lib/mysql/schemas/content/content-resource.js +10 -11
- package/dist/lib/mysql/schemas/content/contribution-types.cjs +5 -1
- package/dist/lib/mysql/schemas/content/contribution-types.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/contribution-types.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/contribution-types.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/contribution-types.js +1 -1
- package/dist/lib/mysql/schemas/content/lesson-progress.cjs +8 -1
- package/dist/lib/mysql/schemas/content/lesson-progress.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/lesson-progress.d.cts +32 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.d.ts +32 -0
- package/dist/lib/mysql/schemas/content/lesson-progress.js +1 -1
- package/dist/lib/mysql/schemas/content/resource-progress.cjs +8 -1
- package/dist/lib/mysql/schemas/content/resource-progress.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/resource-progress.d.cts +32 -0
- package/dist/lib/mysql/schemas/content/resource-progress.d.ts +32 -0
- package/dist/lib/mysql/schemas/content/resource-progress.js +1 -1
- package/dist/lib/mysql/schemas/content/tag-tag.cjs +108 -84
- package/dist/lib/mysql/schemas/content/tag-tag.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/tag-tag.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/tag-tag.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/tag-tag.js +10 -11
- package/dist/lib/mysql/schemas/content/tag.cjs +123 -95
- package/dist/lib/mysql/schemas/content/tag.cjs.map +1 -1
- package/dist/lib/mysql/schemas/content/tag.d.cts +16 -0
- package/dist/lib/mysql/schemas/content/tag.d.ts +16 -0
- package/dist/lib/mysql/schemas/content/tag.js +10 -11
- package/dist/lib/mysql/schemas/org/organization-membership-roles.cjs +301 -0
- package/dist/lib/mysql/schemas/org/organization-membership-roles.cjs.map +1 -0
- package/dist/lib/mysql/schemas/org/organization-membership-roles.d.cts +129 -0
- package/dist/lib/mysql/schemas/org/organization-membership-roles.d.ts +129 -0
- package/dist/lib/mysql/schemas/org/organization-membership-roles.js +21 -0
- package/dist/lib/mysql/schemas/org/organization-membership-roles.js.map +1 -0
- package/dist/lib/mysql/schemas/org/organization-memberships.cjs +370 -0
- package/dist/lib/mysql/schemas/org/organization-memberships.cjs.map +1 -0
- package/dist/lib/mysql/schemas/org/organization-memberships.d.cts +131 -0
- package/dist/lib/mysql/schemas/org/organization-memberships.d.ts +131 -0
- package/dist/lib/mysql/schemas/org/organization-memberships.js +20 -0
- package/dist/lib/mysql/schemas/org/organization-memberships.js.map +1 -0
- package/dist/lib/mysql/schemas/org/organizations.cjs +349 -0
- package/dist/lib/mysql/schemas/org/organizations.cjs.map +1 -0
- package/dist/lib/mysql/schemas/org/organizations.d.cts +98 -0
- package/dist/lib/mysql/schemas/org/organizations.d.ts +98 -0
- package/dist/lib/mysql/schemas/org/organizations.js +20 -0
- package/dist/lib/mysql/schemas/org/organizations.js.map +1 -0
- package/package.json +2 -2
- package/src/lib/mysql/index.ts +34 -0
- package/src/lib/mysql/schemas/auth/device-access-token.ts +3 -0
- package/src/lib/mysql/schemas/auth/roles.ts +3 -0
- package/src/lib/mysql/schemas/auth/user-permissions.ts +2 -0
- package/src/lib/mysql/schemas/auth/user-prefs.ts +2 -0
- package/src/lib/mysql/schemas/auth/user-roles.ts +2 -0
- package/src/lib/mysql/schemas/auth/users.ts +5 -0
- package/src/lib/mysql/schemas/commerce/coupon.ts +2 -0
- package/src/lib/mysql/schemas/commerce/merchant-account.ts +3 -0
- package/src/lib/mysql/schemas/commerce/merchant-charge.ts +16 -0
- package/src/lib/mysql/schemas/commerce/merchant-coupon.ts +3 -0
- package/src/lib/mysql/schemas/commerce/merchant-customer.ts +2 -0
- package/src/lib/mysql/schemas/commerce/merchant-price.ts +3 -0
- package/src/lib/mysql/schemas/commerce/merchant-product.ts +3 -0
- package/src/lib/mysql/schemas/commerce/merchant-session.ts +8 -1
- package/src/lib/mysql/schemas/commerce/merchant-subscription.ts +64 -0
- package/src/lib/mysql/schemas/commerce/price.ts +3 -0
- package/src/lib/mysql/schemas/commerce/product.ts +3 -0
- package/src/lib/mysql/schemas/commerce/purchase-user-transfer.ts +3 -0
- package/src/lib/mysql/schemas/commerce/purchase.ts +22 -0
- package/src/lib/mysql/schemas/commerce/subscription.ts +71 -0
- package/src/lib/mysql/schemas/commerce/upgradable-products.ts +2 -0
- package/src/lib/mysql/schemas/communication/comment.ts +13 -0
- package/src/lib/mysql/schemas/communication/communication-channel.ts +2 -0
- package/src/lib/mysql/schemas/communication/communication-preference-types.ts +1 -0
- package/src/lib/mysql/schemas/communication/communication-preferences.ts +14 -0
- package/src/lib/mysql/schemas/content/content-contributions.ts +14 -0
- package/src/lib/mysql/schemas/content/content-resource-product.ts +2 -0
- package/src/lib/mysql/schemas/content/content-resource-resource.ts +2 -0
- package/src/lib/mysql/schemas/content/content-resource-tag.ts +2 -0
- package/src/lib/mysql/schemas/content/content-resource-version.ts +2 -0
- package/src/lib/mysql/schemas/content/content-resource.ts +17 -0
- package/src/lib/mysql/schemas/content/contribution-types.ts +2 -0
- package/src/lib/mysql/schemas/content/lesson-progress.ts +7 -0
- package/src/lib/mysql/schemas/content/resource-progress.ts +7 -0
- package/src/lib/mysql/schemas/content/tag-tag.ts +2 -0
- package/src/lib/mysql/schemas/content/tag.ts +2 -0
- package/src/lib/mysql/schemas/org/organization-membership-roles.ts +68 -0
- package/src/lib/mysql/schemas/org/organization-memberships.ts +69 -0
- package/src/lib/mysql/schemas/org/organizations.ts +50 -0
- package/dist/chunk-SRTIWWLG.js +0 -96
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRolesSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGZ2F5SW.js";
|
|
4
4
|
import {
|
|
5
5
|
getPermissionsSchema
|
|
6
6
|
} from "./chunk-LZHZDFNZ.js";
|
|
@@ -75,4 +75,4 @@ export {
|
|
|
75
75
|
getRolePermissionsSchema,
|
|
76
76
|
getRolePermissionsRelationsSchema
|
|
77
77
|
};
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
78
|
+
//# sourceMappingURL=chunk-3WYG5OE7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getUsersSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGZ2F5SW.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-H736K5TN.js";
|
|
@@ -16,6 +16,9 @@ function getDeviceAccessTokenSchema(mysqlTable) {
|
|
|
16
16
|
userId: varchar("userId", {
|
|
17
17
|
length: 191
|
|
18
18
|
}).notNull(),
|
|
19
|
+
organizationMembershipId: varchar("organizationMembershipId", {
|
|
20
|
+
length: 191
|
|
21
|
+
}),
|
|
19
22
|
createdAt: timestamp("createdAt", {
|
|
20
23
|
mode: "date",
|
|
21
24
|
fsp: 3
|
|
@@ -51,4 +54,4 @@ export {
|
|
|
51
54
|
getDeviceAccessTokenSchema,
|
|
52
55
|
getDeviceAccessTokenRelationsSchema
|
|
53
56
|
};
|
|
54
|
-
//# sourceMappingURL=chunk-
|
|
57
|
+
//# sourceMappingURL=chunk-5XTOCFDB.js.map
|
|
@@ -10,6 +10,9 @@ function getMerchantCustomerSchema(mysqlTable) {
|
|
|
10
10
|
id: varchar("id", {
|
|
11
11
|
length: 191
|
|
12
12
|
}).notNull(),
|
|
13
|
+
organizationId: varchar("organizationId", {
|
|
14
|
+
length: 191
|
|
15
|
+
}),
|
|
13
16
|
userId: varchar("userId", {
|
|
14
17
|
length: 191
|
|
15
18
|
}).notNull(),
|
|
@@ -33,7 +36,8 @@ function getMerchantCustomerSchema(mysqlTable) {
|
|
|
33
36
|
name: "MerchantCustomer_id"
|
|
34
37
|
}),
|
|
35
38
|
merchantCustomerIdentifierKey: unique("MerchantCustomer_identifier_key").on(table.identifier),
|
|
36
|
-
userIdIdx: index("idx_MerchantCustomer_on_userId").on(table.userId)
|
|
39
|
+
userIdIdx: index("idx_MerchantCustomer_on_userId").on(table.userId),
|
|
40
|
+
organizationIdIdx: index("organizationId_idx").on(table.organizationId)
|
|
37
41
|
};
|
|
38
42
|
});
|
|
39
43
|
}
|
|
@@ -42,4 +46,4 @@ __name(getMerchantCustomerSchema, "getMerchantCustomerSchema");
|
|
|
42
46
|
export {
|
|
43
47
|
getMerchantCustomerSchema
|
|
44
48
|
};
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
49
|
+
//# sourceMappingURL=chunk-6MRFUIH5.js.map
|
|
@@ -10,6 +10,12 @@ function getResourceProgressSchema(mysqlTable) {
|
|
|
10
10
|
userId: varchar("userId", {
|
|
11
11
|
length: 255
|
|
12
12
|
}).notNull(),
|
|
13
|
+
organizationId: varchar("organizationId", {
|
|
14
|
+
length: 191
|
|
15
|
+
}),
|
|
16
|
+
organizationMembershipId: varchar("organizationMembershipId", {
|
|
17
|
+
length: 191
|
|
18
|
+
}),
|
|
13
19
|
resourceId: varchar("resourceId", {
|
|
14
20
|
length: 255
|
|
15
21
|
}),
|
|
@@ -36,7 +42,8 @@ function getResourceProgressSchema(mysqlTable) {
|
|
|
36
42
|
]
|
|
37
43
|
}),
|
|
38
44
|
contentResourceIdIdx: index("contentResourceId_idx").on(crp.resourceId),
|
|
39
|
-
userIdIdx: index("resourceId_idx").on(crp.userId)
|
|
45
|
+
userIdIdx: index("resourceId_idx").on(crp.userId),
|
|
46
|
+
organizationMembershipIdIdx: index("organizationMembershipId_idx").on(crp.organizationMembershipId)
|
|
40
47
|
};
|
|
41
48
|
});
|
|
42
49
|
}
|
|
@@ -45,4 +52,4 @@ __name(getResourceProgressSchema, "getResourceProgressSchema");
|
|
|
45
52
|
export {
|
|
46
53
|
getResourceProgressSchema
|
|
47
54
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
55
|
+
//# sourceMappingURL=chunk-6YPHJWS2.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getUsersSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGZ2F5SW.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-H736K5TN.js";
|
|
@@ -45,4 +45,4 @@ export {
|
|
|
45
45
|
getSessionsSchema,
|
|
46
46
|
getSessionRelationsSchema
|
|
47
47
|
};
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-A6XPL665.js.map
|
|
@@ -3,12 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-H736K5TN.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/mysql/schemas/commerce/merchant-session.ts
|
|
6
|
-
import { primaryKey, varchar } from "drizzle-orm/mysql-core";
|
|
6
|
+
import { index, primaryKey, varchar } from "drizzle-orm/mysql-core";
|
|
7
7
|
function getMerchantSessionSchema(mysqlTable) {
|
|
8
8
|
return mysqlTable("MerchantSession", {
|
|
9
9
|
id: varchar("id", {
|
|
10
10
|
length: 191
|
|
11
11
|
}).notNull(),
|
|
12
|
+
organizationId: varchar("organizationId", {
|
|
13
|
+
length: 191
|
|
14
|
+
}),
|
|
12
15
|
identifier: varchar("identifier", {
|
|
13
16
|
length: 191
|
|
14
17
|
}).notNull(),
|
|
@@ -22,7 +25,8 @@ function getMerchantSessionSchema(mysqlTable) {
|
|
|
22
25
|
table.id
|
|
23
26
|
],
|
|
24
27
|
name: "MerchantSession_id"
|
|
25
|
-
})
|
|
28
|
+
}),
|
|
29
|
+
organizationIdIdx: index("organizationId_idx").on(table.organizationId)
|
|
26
30
|
};
|
|
27
31
|
});
|
|
28
32
|
}
|
|
@@ -31,4 +35,4 @@ __name(getMerchantSessionSchema, "getMerchantSessionSchema");
|
|
|
31
35
|
export {
|
|
32
36
|
getMerchantSessionSchema
|
|
33
37
|
};
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
38
|
+
//# sourceMappingURL=chunk-BLDW3QUS.js.map
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/lib/mysql/schemas/commerce/merchant-account.ts
|
|
6
6
|
import { sql } from "drizzle-orm";
|
|
7
|
-
import { int, primaryKey, timestamp, varchar } from "drizzle-orm/mysql-core";
|
|
7
|
+
import { index, int, primaryKey, timestamp, varchar } from "drizzle-orm/mysql-core";
|
|
8
8
|
function getMerchantAccountSchema(mysqlTable) {
|
|
9
9
|
return mysqlTable("MerchantAccount", {
|
|
10
10
|
id: varchar("id", {
|
|
11
11
|
length: 191
|
|
12
12
|
}).notNull(),
|
|
13
|
+
organizationId: varchar("organizationId", {
|
|
14
|
+
length: 191
|
|
15
|
+
}),
|
|
13
16
|
status: int("status").default(0).notNull(),
|
|
14
17
|
createdAt: timestamp("createdAt", {
|
|
15
18
|
mode: "date",
|
|
@@ -28,7 +31,8 @@ function getMerchantAccountSchema(mysqlTable) {
|
|
|
28
31
|
table.id
|
|
29
32
|
],
|
|
30
33
|
name: "MerchantAccount_id"
|
|
31
|
-
})
|
|
34
|
+
}),
|
|
35
|
+
organizationIdIdx: index("organizationId_idx").on(table.organizationId)
|
|
32
36
|
};
|
|
33
37
|
});
|
|
34
38
|
}
|
|
@@ -37,4 +41,4 @@ __name(getMerchantAccountSchema, "getMerchantAccountSchema");
|
|
|
37
41
|
export {
|
|
38
42
|
getMerchantAccountSchema
|
|
39
43
|
};
|
|
40
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-DKJO4Y3K.js.map
|
|
@@ -9,6 +9,9 @@ function getCommunicationPreferenceTypesSchema(mysqlTable) {
|
|
|
9
9
|
id: varchar("id", {
|
|
10
10
|
length: 255
|
|
11
11
|
}).notNull().primaryKey(),
|
|
12
|
+
organizationId: varchar("organizationId", {
|
|
13
|
+
length: 191
|
|
14
|
+
}),
|
|
12
15
|
name: varchar("name", {
|
|
13
16
|
length: 255
|
|
14
17
|
}).notNull(),
|
|
@@ -33,4 +36,4 @@ __name(getCommunicationPreferenceTypesSchema, "getCommunicationPreferenceTypesSc
|
|
|
33
36
|
export {
|
|
34
37
|
getCommunicationPreferenceTypesSchema
|
|
35
38
|
};
|
|
36
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-EHRARBRS.js.map
|
|
@@ -13,6 +13,12 @@ function getLessonProgressSchema(mysqlTable) {
|
|
|
13
13
|
userId: varchar("userId", {
|
|
14
14
|
length: 191
|
|
15
15
|
}).notNull(),
|
|
16
|
+
organizationId: varchar("organizationId", {
|
|
17
|
+
length: 191
|
|
18
|
+
}),
|
|
19
|
+
organizationMembershipId: varchar("organizationMembershipId", {
|
|
20
|
+
length: 191
|
|
21
|
+
}),
|
|
16
22
|
lessonId: varchar("lessonId", {
|
|
17
23
|
length: 191
|
|
18
24
|
}),
|
|
@@ -44,7 +50,8 @@ function getLessonProgressSchema(mysqlTable) {
|
|
|
44
50
|
return {
|
|
45
51
|
userIdLessonIdIdx: index("crp_userId_contentResourceId_idx").on(crp.userId, crp.lessonId),
|
|
46
52
|
userIdIdx: index("userId_idx").on(crp.userId),
|
|
47
|
-
lessonIdIdx: index("lessonId_idx").on(crp.lessonId)
|
|
53
|
+
lessonIdIdx: index("lessonId_idx").on(crp.lessonId),
|
|
54
|
+
organizationMembershipIdIdx: index("organizationMembershipId_idx").on(crp.organizationMembershipId)
|
|
48
55
|
};
|
|
49
56
|
});
|
|
50
57
|
}
|
|
@@ -53,4 +60,4 @@ __name(getLessonProgressSchema, "getLessonProgressSchema");
|
|
|
53
60
|
export {
|
|
54
61
|
getLessonProgressSchema
|
|
55
62
|
};
|
|
56
|
-
//# sourceMappingURL=chunk-
|
|
63
|
+
//# sourceMappingURL=chunk-ET3QAIY7.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getUsersSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QGZ2F5SW.js";
|
|
4
4
|
import {
|
|
5
5
|
__name
|
|
6
6
|
} from "./chunk-H736K5TN.js";
|
|
@@ -59,4 +59,4 @@ export {
|
|
|
59
59
|
getDeviceVerificationSchema,
|
|
60
60
|
getDeviceVerificationRelationsSchema
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=chunk-
|
|
62
|
+
//# sourceMappingURL=chunk-GAKWXOAY.js.map
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/lib/mysql/schemas/commerce/merchant-product.ts
|
|
6
6
|
import { sql } from "drizzle-orm";
|
|
7
|
-
import { int, primaryKey, timestamp, unique, varchar } from "drizzle-orm/mysql-core";
|
|
7
|
+
import { index, int, primaryKey, timestamp, unique, varchar } from "drizzle-orm/mysql-core";
|
|
8
8
|
function getMerchantProductSchema(mysqlTable) {
|
|
9
9
|
return mysqlTable("MerchantProduct", {
|
|
10
10
|
id: varchar("id", {
|
|
11
11
|
length: 191
|
|
12
12
|
}).notNull(),
|
|
13
|
+
organizationId: varchar("organizationId", {
|
|
14
|
+
length: 191
|
|
15
|
+
}),
|
|
13
16
|
merchantAccountId: varchar("merchantAccountId", {
|
|
14
17
|
length: 191
|
|
15
18
|
}).notNull(),
|
|
@@ -32,7 +35,8 @@ function getMerchantProductSchema(mysqlTable) {
|
|
|
32
35
|
],
|
|
33
36
|
name: "MerchantProduct_id"
|
|
34
37
|
}),
|
|
35
|
-
merchantProductIdentifierKey: unique("MerchantProduct_identifier_key").on(table.identifier)
|
|
38
|
+
merchantProductIdentifierKey: unique("MerchantProduct_identifier_key").on(table.identifier),
|
|
39
|
+
organizationIdIdx: index("organizationId_idx").on(table.organizationId)
|
|
36
40
|
};
|
|
37
41
|
});
|
|
38
42
|
}
|
|
@@ -41,4 +45,4 @@ __name(getMerchantProductSchema, "getMerchantProductSchema");
|
|
|
41
45
|
export {
|
|
42
46
|
getMerchantProductSchema
|
|
43
47
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-KPBVZ44W.js.map
|
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLessonProgressSchema
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ET3QAIY7.js";
|
|
4
4
|
import {
|
|
5
5
|
getResourceProgressSchema
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6YPHJWS2.js";
|
|
7
|
+
import {
|
|
8
|
+
getOrganizationMembershipRolesRelationsSchema,
|
|
9
|
+
getOrganizationMembershipRolesSchema
|
|
10
|
+
} from "./chunk-RP66NZN3.js";
|
|
7
11
|
import {
|
|
8
12
|
getPurchaseUserTransferRelationsSchema,
|
|
9
13
|
getPurchaseUserTransferSchema
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RCL6HPBL.js";
|
|
11
15
|
import {
|
|
12
16
|
getUpgradableProductsRelationsSchema,
|
|
13
17
|
getUpgradableProductsSchema
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WFC55BSF.js";
|
|
15
19
|
import {
|
|
16
20
|
getRolePermissionsRelationsSchema,
|
|
17
21
|
getRolePermissionsSchema
|
|
18
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3WYG5OE7.js";
|
|
19
23
|
import {
|
|
20
24
|
getSessionRelationsSchema,
|
|
21
25
|
getSessionsSchema
|
|
22
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-A6XPL665.js";
|
|
23
27
|
import {
|
|
24
28
|
getVerificationTokensSchema
|
|
25
29
|
} from "./chunk-LERR6HQ3.js";
|
|
26
30
|
import {
|
|
27
31
|
getDeviceAccessTokenRelationsSchema,
|
|
28
32
|
getDeviceAccessTokenSchema
|
|
29
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-5XTOCFDB.js";
|
|
30
34
|
import {
|
|
31
35
|
getDeviceVerificationRelationsSchema,
|
|
32
36
|
getDeviceVerificationSchema
|
|
33
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-GAKWXOAY.js";
|
|
34
38
|
import {
|
|
35
39
|
getAccountsRelationsSchema,
|
|
36
40
|
getAccountsSchema,
|
|
@@ -52,6 +56,14 @@ import {
|
|
|
52
56
|
getContentResourceVersionSchema,
|
|
53
57
|
getCouponRelationsSchema,
|
|
54
58
|
getCouponSchema,
|
|
59
|
+
getMerchantChargeRelationsSchema,
|
|
60
|
+
getMerchantChargeSchema,
|
|
61
|
+
getMerchantSubscriptionRelationsSchema,
|
|
62
|
+
getMerchantSubscriptionSchema,
|
|
63
|
+
getOrganizationMembershipsRelationsSchema,
|
|
64
|
+
getOrganizationMembershipsSchema,
|
|
65
|
+
getOrganizationsRelationsSchema,
|
|
66
|
+
getOrganizationsSchema,
|
|
55
67
|
getPriceSchema,
|
|
56
68
|
getProductRelationsSchema2 as getProductRelationsSchema,
|
|
57
69
|
getProductSchema,
|
|
@@ -59,6 +71,8 @@ import {
|
|
|
59
71
|
getPurchaseSchema,
|
|
60
72
|
getRolesRelationsSchema,
|
|
61
73
|
getRolesSchema,
|
|
74
|
+
getSubscriptionRelationsSchema,
|
|
75
|
+
getSubscriptionSchema,
|
|
62
76
|
getTagRelationsSchema,
|
|
63
77
|
getTagSchema,
|
|
64
78
|
getTagTagRelationsSchema,
|
|
@@ -71,39 +85,35 @@ import {
|
|
|
71
85
|
getUserRolesSchema,
|
|
72
86
|
getUsersRelationsSchema,
|
|
73
87
|
getUsersSchema
|
|
74
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-QGZ2F5SW.js";
|
|
75
89
|
import {
|
|
76
90
|
getContributionTypesRelationsSchema,
|
|
77
91
|
getContributionTypesSchema
|
|
78
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-MP4CUWYC.js";
|
|
79
93
|
import {
|
|
80
94
|
getCommunicationChannelSchema
|
|
81
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-WJWJ6E5Y.js";
|
|
82
96
|
import {
|
|
83
97
|
getCommunicationPreferenceTypesSchema
|
|
84
|
-
} from "./chunk-
|
|
85
|
-
import {
|
|
86
|
-
getMerchantChargeRelationsSchema,
|
|
87
|
-
getMerchantChargeSchema
|
|
88
|
-
} from "./chunk-SRTIWWLG.js";
|
|
98
|
+
} from "./chunk-EHRARBRS.js";
|
|
89
99
|
import {
|
|
90
100
|
getMerchantAccountSchema
|
|
91
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-DKJO4Y3K.js";
|
|
92
102
|
import {
|
|
93
103
|
getMerchantCouponSchema
|
|
94
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-WPJZAYX7.js";
|
|
95
105
|
import {
|
|
96
106
|
getMerchantCustomerSchema
|
|
97
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-6MRFUIH5.js";
|
|
98
108
|
import {
|
|
99
109
|
getMerchantPriceSchema
|
|
100
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-MGZMGDQ5.js";
|
|
101
111
|
import {
|
|
102
112
|
getMerchantProductSchema
|
|
103
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-KPBVZ44W.js";
|
|
104
114
|
import {
|
|
105
115
|
getMerchantSessionSchema
|
|
106
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-BLDW3QUS.js";
|
|
107
117
|
import {
|
|
108
118
|
getPermissionsRelationsSchema,
|
|
109
119
|
getPermissionsSchema
|
|
@@ -8190,7 +8200,7 @@ var priceSchema = z2.object({
|
|
|
8190
8200
|
fields: z2.record(z2.any()).default({})
|
|
8191
8201
|
});
|
|
8192
8202
|
|
|
8193
|
-
// ../core/dist/chunk-
|
|
8203
|
+
// ../core/dist/chunk-SCKAG5RT.js
|
|
8194
8204
|
var ContentResourceResourceSchema = z2.object({
|
|
8195
8205
|
resourceId: z2.string(),
|
|
8196
8206
|
resourceOfId: z2.string(),
|
|
@@ -8210,7 +8220,9 @@ var ContentResourceSchema = z2.object({
|
|
|
8210
8220
|
createdAt: z2.coerce.date().nullable(),
|
|
8211
8221
|
updatedAt: z2.coerce.date().nullable(),
|
|
8212
8222
|
deletedAt: z2.coerce.date().nullable(),
|
|
8213
|
-
resources: z2.array(ContentResourceResourceSchema).default([]).nullable()
|
|
8223
|
+
resources: z2.array(ContentResourceResourceSchema).default([]).nullable(),
|
|
8224
|
+
organizationId: z2.string().nullable(),
|
|
8225
|
+
createdByOrganizationMembershipId: z2.string().nullable()
|
|
8214
8226
|
});
|
|
8215
8227
|
var ContentResourceProductSchema = z2.object({
|
|
8216
8228
|
resourceId: z2.string(),
|
|
@@ -8235,7 +8247,7 @@ var ResourceVisibilitySchema = z2.union([
|
|
|
8235
8247
|
z2.literal("unlisted")
|
|
8236
8248
|
]);
|
|
8237
8249
|
|
|
8238
|
-
// ../core/dist/chunk-
|
|
8250
|
+
// ../core/dist/chunk-E56UB2X2.js
|
|
8239
8251
|
var productSchema = z2.object({
|
|
8240
8252
|
id: z2.string().max(191),
|
|
8241
8253
|
name: z2.string().max(191),
|
|
@@ -8301,7 +8313,7 @@ var couponSchema = z2.object({
|
|
|
8301
8313
|
bulkPurchaseId: z2.string().max(191).optional().nullable()
|
|
8302
8314
|
});
|
|
8303
8315
|
|
|
8304
|
-
// ../core/dist/chunk-
|
|
8316
|
+
// ../core/dist/chunk-GZ7YLWVN.js
|
|
8305
8317
|
var purchaseSchema = z2.object({
|
|
8306
8318
|
id: z2.string().max(191),
|
|
8307
8319
|
userId: z2.string().max(191).optional().nullable(),
|
|
@@ -8350,7 +8362,7 @@ var purchaseUserTransferSchema = z2.object({
|
|
|
8350
8362
|
completedAt: z2.date().nullable()
|
|
8351
8363
|
});
|
|
8352
8364
|
|
|
8353
|
-
// ../core/dist/chunk-
|
|
8365
|
+
// ../core/dist/chunk-PG6VF2O6.js
|
|
8354
8366
|
var resourceProgressSchema = z2.object({
|
|
8355
8367
|
userId: z2.string().max(191),
|
|
8356
8368
|
resourceId: z2.string().max(191).optional().nullable(),
|
|
@@ -8640,7 +8652,17 @@ function getCourseBuilderSchema(mysqlTable) {
|
|
|
8640
8652
|
tagTag: getTagTagSchema(mysqlTable),
|
|
8641
8653
|
tagTagRelations: getTagTagRelationsSchema(mysqlTable),
|
|
8642
8654
|
userPrefs: getUserPrefsSchema(mysqlTable),
|
|
8643
|
-
userPrefsRelations: getUserPrefsRelationsSchema(mysqlTable)
|
|
8655
|
+
userPrefsRelations: getUserPrefsRelationsSchema(mysqlTable),
|
|
8656
|
+
organization: getOrganizationsSchema(mysqlTable),
|
|
8657
|
+
organizationRelations: getOrganizationsRelationsSchema(mysqlTable),
|
|
8658
|
+
organizationMemberships: getOrganizationMembershipsSchema(mysqlTable),
|
|
8659
|
+
organizationMembershipRelations: getOrganizationMembershipsRelationsSchema(mysqlTable),
|
|
8660
|
+
organizationMembershipRoles: getOrganizationMembershipRolesSchema(mysqlTable),
|
|
8661
|
+
organizationMembershipRolesRelations: getOrganizationMembershipRolesRelationsSchema(mysqlTable),
|
|
8662
|
+
merchantSubscription: getMerchantSubscriptionSchema(mysqlTable),
|
|
8663
|
+
merchantSubscriptionRelations: getMerchantSubscriptionRelationsSchema(mysqlTable),
|
|
8664
|
+
subscription: getSubscriptionSchema(mysqlTable),
|
|
8665
|
+
subscriptionRelations: getSubscriptionRelationsSchema(mysqlTable)
|
|
8644
8666
|
};
|
|
8645
8667
|
}
|
|
8646
8668
|
__name(getCourseBuilderSchema, "getCourseBuilderSchema");
|
|
@@ -10123,4 +10145,4 @@ export {
|
|
|
10123
10145
|
createTables,
|
|
10124
10146
|
mySqlDrizzleAdapter
|
|
10125
10147
|
};
|
|
10126
|
-
//# sourceMappingURL=chunk-
|
|
10148
|
+
//# sourceMappingURL=chunk-L5ZAWSTN.js.map
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// src/lib/mysql/schemas/commerce/merchant-price.ts
|
|
6
6
|
import { sql } from "drizzle-orm";
|
|
7
|
-
import { int, primaryKey, timestamp, unique, varchar } from "drizzle-orm/mysql-core";
|
|
7
|
+
import { index, int, primaryKey, timestamp, unique, varchar } from "drizzle-orm/mysql-core";
|
|
8
8
|
function getMerchantPriceSchema(mysqlTable) {
|
|
9
9
|
return mysqlTable("MerchantPrice", {
|
|
10
10
|
id: varchar("id", {
|
|
11
11
|
length: 191
|
|
12
12
|
}).notNull(),
|
|
13
|
+
organizationId: varchar("organizationId", {
|
|
14
|
+
length: 191
|
|
15
|
+
}),
|
|
13
16
|
merchantAccountId: varchar("merchantAccountId", {
|
|
14
17
|
length: 191
|
|
15
18
|
}).notNull(),
|
|
@@ -35,7 +38,8 @@ function getMerchantPriceSchema(mysqlTable) {
|
|
|
35
38
|
],
|
|
36
39
|
name: "MerchantPrice_id"
|
|
37
40
|
}),
|
|
38
|
-
merchantPriceIdentifierKey: unique("MerchantPrice_identifier_key").on(table.identifier)
|
|
41
|
+
merchantPriceIdentifierKey: unique("MerchantPrice_identifier_key").on(table.identifier),
|
|
42
|
+
organizationIdIdx: index("organizationId_idx").on(table.organizationId)
|
|
39
43
|
};
|
|
40
44
|
});
|
|
41
45
|
}
|
|
@@ -44,4 +48,4 @@ __name(getMerchantPriceSchema, "getMerchantPriceSchema");
|
|
|
44
48
|
export {
|
|
45
49
|
getMerchantPriceSchema
|
|
46
50
|
};
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
51
|
+
//# sourceMappingURL=chunk-MGZMGDQ5.js.map
|
|
@@ -10,6 +10,9 @@ function getContributionTypesSchema(mysqlTable) {
|
|
|
10
10
|
id: varchar("id", {
|
|
11
11
|
length: 255
|
|
12
12
|
}).notNull().primaryKey(),
|
|
13
|
+
organizationId: varchar("organizationId", {
|
|
14
|
+
length: 191
|
|
15
|
+
}),
|
|
13
16
|
slug: varchar("slug", {
|
|
14
17
|
length: 255
|
|
15
18
|
}).notNull().unique(),
|
|
@@ -32,7 +35,8 @@ function getContributionTypesSchema(mysqlTable) {
|
|
|
32
35
|
})
|
|
33
36
|
}, (ct) => ({
|
|
34
37
|
nameIdx: index("name_idx").on(ct.name),
|
|
35
|
-
slugIdx: index("slug_idx").on(ct.slug)
|
|
38
|
+
slugIdx: index("slug_idx").on(ct.slug),
|
|
39
|
+
organizationIdIdx: index("organizationId_idx").on(ct.organizationId)
|
|
36
40
|
}));
|
|
37
41
|
}
|
|
38
42
|
__name(getContributionTypesSchema, "getContributionTypesSchema");
|
|
@@ -46,4 +50,4 @@ export {
|
|
|
46
50
|
getContributionTypesSchema,
|
|
47
51
|
getContributionTypesRelationsSchema
|
|
48
52
|
};
|
|
49
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-MP4CUWYC.js.map
|