mirror of
https://github.com/sussy-code/backend.git
synced 2026-03-11 17:55:38 +00:00
Fix Table Names
Co-authored-by: mrjvs <mistrjvs@gmail.com>
This commit is contained in:
parent
a369a6bde7
commit
af00b0bfee
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ export const bookmarkMetaSchema = z.object({
|
|||
|
||||
export type BookmarkMeta = z.infer<typeof bookmarkMetaSchema>;
|
||||
|
||||
@Entity({ tableName: 'bookmark' })
|
||||
@Entity({ tableName: 'bookmarks' })
|
||||
@Unique({ properties: ['tmdbId', 'userId'] })
|
||||
export class Bookmark {
|
||||
@PrimaryKey({ name: 'tmdb_id' })
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export const progressMetaSchema = z.object({
|
|||
|
||||
export type ProgressMeta = z.infer<typeof progressMetaSchema>;
|
||||
|
||||
@Entity({ tableName: 'progress_item' })
|
||||
@Entity({ tableName: 'progress_items' })
|
||||
@Unique({ properties: ['tmdbId', 'userId', 'seasonId', 'episodeId'] })
|
||||
export class ProgressItem {
|
||||
@PrimaryKey({ name: 'id', type: 'uuid' })
|
||||
|
|
|
|||
Loading…
Reference in a new issue