CRUD operations for Posts
- added all CRUD operations for Post model - add() also creates POST_BY_MEMBER and POST_FROM_NETWORK edges - delete() also deletes associated edges - delete() currently does not reallocate node/edge indices after deleting - will write the data to the db.json file and global.db.nodes
This commit is contained in:
@@ -47,9 +47,11 @@ export let PAYMENT = z.object({
|
||||
})
|
||||
|
||||
export let POST = z.object({
|
||||
id: z.number(),
|
||||
text: z.string(),
|
||||
time: z.string(),
|
||||
sentBy: z.string()
|
||||
sentBy: z.string(),
|
||||
edited: z.boolean()
|
||||
})
|
||||
|
||||
export let CONVSRSATION = z.object({
|
||||
|
||||
Reference in New Issue
Block a user