mirror of
https://github.com/sussy-code/backend.git
synced 2026-04-20 16:32:03 +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>;
|
export type BookmarkMeta = z.infer<typeof bookmarkMetaSchema>;
|
||||||
|
|
||||||
@Entity({ tableName: 'bookmark' })
|
@Entity({ tableName: 'bookmarks' })
|
||||||
@Unique({ properties: ['tmdbId', 'userId'] })
|
@Unique({ properties: ['tmdbId', 'userId'] })
|
||||||
export class Bookmark {
|
export class Bookmark {
|
||||||
@PrimaryKey({ name: 'tmdb_id' })
|
@PrimaryKey({ name: 'tmdb_id' })
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ export const progressMetaSchema = z.object({
|
||||||
|
|
||||||
export type ProgressMeta = z.infer<typeof progressMetaSchema>;
|
export type ProgressMeta = z.infer<typeof progressMetaSchema>;
|
||||||
|
|
||||||
@Entity({ tableName: 'progress_item' })
|
@Entity({ tableName: 'progress_items' })
|
||||||
@Unique({ properties: ['tmdbId', 'userId', 'seasonId', 'episodeId'] })
|
@Unique({ properties: ['tmdbId', 'userId', 'seasonId', 'episodeId'] })
|
||||||
export class ProgressItem {
|
export class ProgressItem {
|
||||||
@PrimaryKey({ name: 'id', type: 'uuid' })
|
@PrimaryKey({ name: 'id', type: 'uuid' })
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue