mirror of
https://github.com/michivonah/themepark-assistant.git
synced 2025-12-22 22:16:29 +01:00
implement background job for fetching attractions
This commit is contained in:
parent
ff859475a0
commit
ebb3191757
4 changed files with 195 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ import { integer, text, sqliteTable } from "drizzle-orm/sqlite-core";
|
|||
export const attraction = sqliteTable('attraction', {
|
||||
id: integer().primaryKey({ autoIncrement: true }),
|
||||
name: text().notNull(),
|
||||
apiCode: integer(),
|
||||
apiCode: text().notNull().unique(),
|
||||
themeparkId: integer().notNull().references(() => themepark.id)
|
||||
})
|
||||
|
||||
|
|
@ -35,7 +35,7 @@ export const themepark = sqliteTable('themepark', {
|
|||
name: text().notNull(),
|
||||
countrycode: text().notNull(),
|
||||
website: text(),
|
||||
apiName: text()
|
||||
apiName: text().notNull().unique()
|
||||
})
|
||||
|
||||
export const user = sqliteTable('user', {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue