feat(backend): all db node properties (#8635)

Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
This commit is contained in:
Moriz Wahl 2025-06-25 21:21:41 +02:00 committed by GitHub
parent 4eff0fb497
commit f3788b84a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 160 additions and 0 deletions

View File

@ -0,0 +1,11 @@
import { Integer, Node } from 'neo4j-driver'
export interface CategoryDbProperties {
createdAt: string
icon: string
id: string
name: string
slug: string
}
export type Category = Node<Integer, CategoryDbProperties>

View File

@ -0,0 +1,13 @@
import { Integer, Node } from 'neo4j-driver'
export interface CommentDbProperties {
content: string
contentExcerpt: string
createdAt: string
deleted: boolean
disabled: boolean
id: string
updatedAt: string
}
export type Comment = Node<Integer, CommentDbProperties>

View File

@ -0,0 +1,10 @@
import { Integer, Node } from 'neo4j-driver'
export interface EmailAddressDbProperties {
createdAt: string
email: string
nonce: string
verifiedAt: string
}
export type EmailAddress = Node<Integer, EmailAddressDbProperties>

View File

@ -0,0 +1,12 @@
import { Integer, Node } from 'neo4j-driver'
import { PostDbProperties } from './Post'
export interface EventDbProperties extends PostDbProperties {
eventIsOnline: boolean
eventLocationName: string
eventStart: string
eventVenue: string
}
export type Event = Node<Integer, EventDbProperties>

View File

@ -0,0 +1,19 @@
import { Integer, Node } from 'neo4j-driver'
export interface GroupDbProperties {
about: string
actionRadius: string
createdAt: string
deleted: boolean
description: string
descriptionExcerpt: string
disabled: boolean
groupType: string
id: string
locationName?: string
name: string
slug: string
updatedAt: string
}
export type Group = Node<Integer, GroupDbProperties>

View File

@ -0,0 +1,12 @@
import { Integer, Node } from 'neo4j-driver'
export interface ImageDbProperties {
alt: string
aspectRatio: number
createdAt: string
sensitive: boolean
type: string
url: string
}
export type Image = Node<Integer, ImageDbProperties>

View File

@ -0,0 +1,8 @@
import { Integer, Node } from 'neo4j-driver'
export interface InviteCodeDbProperties {
code: string
createdAt: string
}
export type InviteCode = Node<Integer, InviteCodeDbProperties>

View File

@ -0,0 +1,20 @@
import { Integer, Node } from 'neo4j-driver'
export interface LocationDbProperties {
id: string
lat: number
lng: number
name: string
nameDE: string
nameEN: string
nameES: string
nameFR: string
nameIT: string
nameNL: string
namePL: string
namePT: string
nameRU: string
type: string
}
export type Location = Node<Integer, LocationDbProperties>

View File

@ -0,0 +1,13 @@
import { Integer, Node } from 'neo4j-driver'
export interface MessageDbProperties {
content: string
createdAt: string
distributed: boolean
id: string
indexId: number
saved: boolean
seen: boolean
}
export type Message = Node<Integer, MessageDbProperties>

View File

@ -0,0 +1,21 @@
import { Integer, Node } from 'neo4j-driver'
export interface PostDbProperties {
clickedCount: number
content: string
contentExcerpt: string
createdAt: string
deleted: boolean
disabled: boolean
id: string
language: string
postType: string // this is a PostType[] in the graphql, mapped from the labels
slug: string
sortDate: string
title: string
updatedAt: string
viewedTeaserCount: number
}
export type Post = Node<Integer, PostDbProperties>
export type Article = Node<Integer, PostDbProperties>

View File

@ -0,0 +1,11 @@
import { Integer, Node } from 'neo4j-driver'
export interface ReportDbProperties {
closed: boolean
createdAt: string
id: string
rule: string
updatedAt: string
}
export type Report = Node<Integer, ReportDbProperties>

View File

@ -0,0 +1,10 @@
import { Integer, Node } from 'neo4j-driver'
export interface TagDbProperties {
deleted: boolean
disabled: boolean
id: string
updatedAt: string
}
export type Tag = Node<Integer, TagDbProperties>