From c888bf8ad17790915bce001548f6c32be28d07bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich?= Date: Thu, 8 Jun 2023 12:19:05 +0200 Subject: [PATCH] Remove Appwrite references from data models --- src/models/photo.ts | 4 +--- src/models/photoAppearanceCount.ts | 7 ------- src/models/vote.ts | 10 +++------- 3 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 src/models/photoAppearanceCount.ts 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; }