Remove Appwrite references from data models

This commit is contained in:
Maciej Pędzich 2023-06-08 12:19:05 +02:00
parent b510fdbe89
commit c888bf8ad1
3 changed files with 4 additions and 17 deletions

View File

@ -1,6 +1,4 @@
import { Models } from 'appwrite';
export interface Photo extends Models.Document {
export interface Photo {
url: string;
rating: number;
ratingDeviation: number;

View File

@ -1,7 +0,0 @@
import { Models } from 'appwrite';
export interface PhotoAppearanceCount extends Models.Document {
voterId: string;
photoId: string;
count: number;
}

View File

@ -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;
}