Create provisional document models

This commit is contained in:
Maciej Pędzich 2023-05-30 17:55:16 +02:00
parent 6acf2ba52e
commit 3cd16b764b
3 changed files with 24 additions and 0 deletions

9
src/models/photo.ts Normal file
View File

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

View File

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

8
src/models/vote.ts Normal file
View File

@ -0,0 +1,8 @@
import { Models } from 'appwrite';
export interface Vote extends Models.Document {
voterId: string;
photo1Id: string;
photo2Id: string;
result: number;
}