Fixed: le reactions devono stare in una tabella a parte (reactions).

- cambiata la gestione dei seen, fav, book, attend
This commit is contained in:
Surya Paolo
2023-09-27 18:39:05 +02:00
parent f88b753f26
commit 2b359d5260
18 changed files with 4166 additions and 131 deletions

View File

@@ -77,6 +77,16 @@ export interface IAttend {
tab: number
num: number
}
export interface IReaction {
id: string
idrec: string
username: string
tab: number
seen?: boolean
fav?: boolean
book?: boolean
attend?: boolean
}
export interface IFavBook {
username: string
@@ -141,16 +151,14 @@ export interface IUserProfile {
noNameSurname: boolean
noCircuit: boolean
noFoto: boolean
bookmark: IBookmark[]
favorite: IFavorite[]
seen: ISeen[]
attend: IAttend[]
reaction: IReaction[]
// bookmark: IBookmark[]
// favorite: IFavorite[]
// seen: ISeen[]
// attend: IAttend[]
// Query
myfav: IFavBook[]
mybook: IFavBook[]
myseen: IFavBook[]
myattend: IFavBook[]
myreaction: IReaction[]
mybookings: IBookedEvent[]
// in memory