mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
Fixing the imports to not use $ since that won't work in seeding
This commit is contained in:
parent
76921c364f
commit
5849219833
16 changed files with 16 additions and 16 deletions
|
|
@ -5,7 +5,7 @@ import env from './src/env'
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
dialect: 'postgresql',
|
dialect: 'postgresql',
|
||||||
out: './src/lib/server/api/databases/migrations',
|
out: './src/lib/server/api/databases/migrations',
|
||||||
schema: './src/lib/server/api/databases/tables/drizzle.ts',
|
schema: './src/lib/server/api/databases/tables/index.ts',
|
||||||
dbCredentials: {
|
dbCredentials: {
|
||||||
host: env.DATABASE_HOST || 'localhost',
|
host: env.DATABASE_HOST || 'localhost',
|
||||||
port: Number(env.DATABASE_PORT) || 5432,
|
port: Number(env.DATABASE_PORT) || 5432,
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { categoriesToExternalIdsTable } from './categoriesToExternalIdsTable'
|
import { categoriesToExternalIdsTable } from './categoriesToExternalIdsTable'
|
||||||
import { categories_to_games_table } from './categoriesToGames'
|
import { categories_to_games_table } from './categoriesToGames'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { usersTable } from './users.table'
|
import { usersTable } from './users.table'
|
||||||
|
|
||||||
export const collections = pgTable('collections', {
|
export const collections = pgTable('collections', {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
|
||||||
import { type InferSelectModel } from 'drizzle-orm'
|
import { type InferSelectModel } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { usersTable } from './users.table'
|
import { usersTable } from './users.table'
|
||||||
|
|
||||||
export enum CredentialsType {
|
export enum CredentialsType {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { games } from './games'
|
import { games } from './games'
|
||||||
|
|
||||||
export const expansions = pgTable('expansions', {
|
export const expansions = pgTable('expansions', {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
|
||||||
import { type InferSelectModel } from 'drizzle-orm'
|
import { type InferSelectModel } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { usersTable } from './users.table'
|
import { usersTable } from './users.table'
|
||||||
|
|
||||||
export const federatedIdentityTable = pgTable('federated_identity', {
|
export const federatedIdentityTable = pgTable('federated_identity', {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations, sql } from 'drizzle-orm'
|
import { type InferSelectModel, relations, sql } from 'drizzle-orm'
|
||||||
import { index, integer, pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core'
|
import { index, integer, pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { categories_to_games_table } from './categoriesToGames'
|
import { categories_to_games_table } from './categoriesToGames'
|
||||||
import { gamesToExternalIds } from './gamesToExternalIds'
|
import { gamesToExternalIds } from './gamesToExternalIds'
|
||||||
import { mechanics_to_games } from './mechanicsToGames'
|
import { mechanics_to_games } from './mechanicsToGames'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import type { InferSelectModel } from 'drizzle-orm'
|
import type { InferSelectModel } from 'drizzle-orm'
|
||||||
import { boolean, pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { boolean, pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
import { usersTable } from './users.table'
|
import { usersTable } from './users.table'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { boolean, pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core'
|
import { boolean, pgTable, text, timestamp, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { boolean, pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { boolean, pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { boolean, pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { boolean, pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { timestamps } from '$lib/server/api/common/utils/table.utils'
|
import { timestamps } from '../../common/utils/table.utils'
|
||||||
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
import { createId as cuid2 } from '@paralleldrive/cuid2'
|
||||||
import { type InferSelectModel, relations } from 'drizzle-orm'
|
import { type InferSelectModel, relations } from 'drizzle-orm'
|
||||||
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
import { pgTable, text, uuid } from 'drizzle-orm/pg-core'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue