diff --git a/src/models/photo.ts b/src/models/photo.ts index c8879f2..094027a 100644 --- a/src/models/photo.ts +++ b/src/models/photo.ts @@ -1,6 +1,4 @@ -import { Models } from 'appwrite'; - -export interface Photo extends Models.Document { +export interface Photo { url: string; rating: number; ratingDeviation: number; diff --git a/src/models/photoAppearanceCount.ts b/src/models/photoAppearanceCount.ts deleted file mode 100644 index 595949c..0000000 --- a/src/models/photoAppearanceCount.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Models } from 'appwrite'; - -export interface PhotoAppearanceCount extends Models.Document { - voterId: string; - photoId: string; - count: number; -} diff --git a/src/models/vote.ts b/src/models/vote.ts index d9269f4..e050980 100644 --- a/src/models/vote.ts +++ b/src/models/vote.ts @@ -1,8 +1,4 @@ -import { Models } from 'appwrite'; - -export interface Vote extends Models.Document { - voterId: string; - photo1Id: string; - photo2Id: string; - result: number; +export interface Vote { + photos: [string, string]; + result: 0 | 0.5 | 1; }