mirror of
https://github.com/maciejpedzich/racemash.git
synced 2024-11-27 16:15:47 +01:00
Remove Appwrite references from data models
This commit is contained in:
parent
b510fdbe89
commit
c888bf8ad1
@ -1,6 +1,4 @@
|
|||||||
import { Models } from 'appwrite';
|
export interface Photo {
|
||||||
|
|
||||||
export interface Photo extends Models.Document {
|
|
||||||
url: string;
|
url: string;
|
||||||
rating: number;
|
rating: number;
|
||||||
ratingDeviation: number;
|
ratingDeviation: number;
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
import { Models } from 'appwrite';
|
|
||||||
|
|
||||||
export interface PhotoAppearanceCount extends Models.Document {
|
|
||||||
voterId: string;
|
|
||||||
photoId: string;
|
|
||||||
count: number;
|
|
||||||
}
|
|
@ -1,8 +1,4 @@
|
|||||||
import { Models } from 'appwrite';
|
export interface Vote {
|
||||||
|
photos: [string, string];
|
||||||
export interface Vote extends Models.Document {
|
result: 0 | 0.5 | 1;
|
||||||
voterId: string;
|
|
||||||
photo1Id: string;
|
|
||||||
photo2Id: string;
|
|
||||||
result: number;
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user