mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Add Notification type
This commit is contained in:
parent
8477e71c28
commit
03d4c93f96
@ -13,9 +13,11 @@ export default {
|
|||||||
CreatePost: setCreatedAt,
|
CreatePost: setCreatedAt,
|
||||||
CreateComment: setCreatedAt,
|
CreateComment: setCreatedAt,
|
||||||
CreateOrganization: setCreatedAt,
|
CreateOrganization: setCreatedAt,
|
||||||
|
CreateNotification: setCreatedAt,
|
||||||
UpdateUser: setUpdatedAt,
|
UpdateUser: setUpdatedAt,
|
||||||
UpdatePost: setUpdatedAt,
|
UpdatePost: setUpdatedAt,
|
||||||
UpdateComment: setUpdatedAt,
|
UpdateComment: setUpdatedAt,
|
||||||
UpdateOrganization: setUpdatedAt
|
UpdateOrganization: setUpdatedAt,
|
||||||
|
UpdateNotification: setUpdatedAt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,6 +69,14 @@ type Statistics {
|
|||||||
countShouts: Int!
|
countShouts: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Notification {
|
||||||
|
id: ID!
|
||||||
|
read: Boolean,
|
||||||
|
user: User @relation(name: "NOTIFIED", direction: "OUT")
|
||||||
|
post: Post @relation(name: "NOTIFIED", direction: "IN")
|
||||||
|
createdAt: String
|
||||||
|
}
|
||||||
|
|
||||||
scalar Date
|
scalar Date
|
||||||
scalar Time
|
scalar Time
|
||||||
scalar DateTime
|
scalar DateTime
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user