3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 17:25:01 +00:00

Encrypt archives at rest

This commit is contained in:
Dragory 2020-09-16 22:42:25 +03:00
parent c2538063d5
commit 788ef9954c
3 changed files with 47 additions and 1 deletions

View file

@ -1,4 +1,5 @@
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { createEncryptedTextTransformer } from "../encryptedTextTransformer";
@Entity("archives")
export class ArchiveEntry {
@ -8,7 +9,11 @@ export class ArchiveEntry {
@Column() guild_id: string;
@Column() body: string;
@Column({
type: "mediumtext",
transformer: createEncryptedTextTransformer(),
})
body: string;
@Column() created_at: string;