Skip to content

Commit abcfa27

Browse files
chore: wip
1 parent cdc4984 commit abcfa27

File tree

17 files changed

+17
-18
lines changed

17 files changed

+17
-18
lines changed

storage/framework/core/orm/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ export async function generateModelString(
16641664
const hidden = JSON.stringify(getHiddenAttributes(model.attributes))
16651665
const fillable = JSON.stringify(getFillableAttributes(model, otherModelRelations))
16661666

1667-
return `import type { Generated, Insertable, Selectable, Updateable } from 'kysely'
1667+
return `import type { Generated, Insertable, Selectable, Updateable } from '@stacksjs/database'
16681668
import { manageCharge, manageCheckout, manageCustomer, manageInvoice, managePaymentMethod, manageSubscription, manageTransaction, managePrice, manageSetupIntent, type Stripe } from '@stacksjs/payments'
16691669
import { db, sql } from '@stacksjs/database'
16701670
import type { CheckoutLineItem, CheckoutOptions, StripeCustomerOptions } from '@stacksjs/types'

storage/framework/orm/src/models/AccessToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import type { TeamModel } from './Team'
33
import { cache } from '@stacksjs/cache'
44
import { db, sql } from '@stacksjs/database'

storage/framework/orm/src/models/Deployment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import type { UserModel } from './User'
33
import { randomUUIDv7 } from 'bun'
44
import { cache } from '@stacksjs/cache'

storage/framework/orm/src/models/Error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import { cache } from '@stacksjs/cache'
33
import { db, sql } from '@stacksjs/database'
44
import { HttpError } from '@stacksjs/error-handling'

storage/framework/orm/src/models/FailedJob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import { cache } from '@stacksjs/cache'
33
import { db, sql } from '@stacksjs/database'
44
import { HttpError } from '@stacksjs/error-handling'

storage/framework/orm/src/models/Job.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import { cache } from '@stacksjs/cache'
33
import { db, sql } from '@stacksjs/database'
44
import { HttpError } from '@stacksjs/error-handling'

storage/framework/orm/src/models/PaymentMethod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import type { TransactionModel } from './Transaction'
33
import type { UserModel } from './User'
44
import { randomUUIDv7 } from 'bun'

storage/framework/orm/src/models/Post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import type { UserModel } from './User'
33
import { cache } from '@stacksjs/cache'
44
import { db, sql } from '@stacksjs/database'

storage/framework/orm/src/models/Product.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import { randomUUIDv7 } from 'bun'
33
import { cache } from '@stacksjs/cache'
44
import { db, sql } from '@stacksjs/database'

storage/framework/orm/src/models/Project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Insertable, Selectable, Updateable } from 'kysely'
1+
import type { Insertable, Selectable, Updateable } from '@stacksjs/database'
22
import { cache } from '@stacksjs/cache'
33
import { db, sql } from '@stacksjs/database'
44
import { HttpError } from '@stacksjs/error-handling'

0 commit comments

Comments
 (0)