mirror of
https://github.com/maciejpedzich/racemash.git
synced 2024-11-27 16:15:47 +01:00
Create provisional document models
This commit is contained in:
parent
6acf2ba52e
commit
3cd16b764b
9
src/models/photo.ts
Normal file
9
src/models/photo.ts
Normal 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;
|
||||||
|
}
|
7
src/models/photoAppearanceCount.ts
Normal file
7
src/models/photoAppearanceCount.ts
Normal 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
8
src/models/vote.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { Models } from 'appwrite';
|
||||||
|
|
||||||
|
export interface Vote extends Models.Document {
|
||||||
|
voterId: string;
|
||||||
|
photo1Id: string;
|
||||||
|
photo2Id: string;
|
||||||
|
result: number;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user