chore(xo-server-audit): document audit DB strucure (#5078)
This commit is contained in:
parent
9a7a1cc752
commit
4db181d8bf
@ -68,6 +68,22 @@ const DEFAULT_BLOCKED_LIST = {
|
||||
}
|
||||
|
||||
const LAST_ID = 'lastId'
|
||||
|
||||
// interface Db {
|
||||
// lastId: string
|
||||
// [RecordId: string]: {
|
||||
// data: object
|
||||
// event: string
|
||||
// id: strings
|
||||
// previousId: string
|
||||
// subject: {
|
||||
// userId: string
|
||||
// userIp: string
|
||||
// userName: string
|
||||
// }
|
||||
// time: number
|
||||
// }
|
||||
// }
|
||||
class Db extends Storage {
|
||||
constructor(db) {
|
||||
super()
|
||||
|
Loading…
Reference in New Issue
Block a user