mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
17 lines
345 B
TypeScript
17 lines
345 B
TypeScript
import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
|
import { APObject } from "activitypub-types";
|
|
|
|
/**
|
|
* Stores an ActivityPub object as raw JSON-LD data
|
|
*/
|
|
@Entity({
|
|
name: "objects",
|
|
})
|
|
export class RawObject extends BaseEntity {
|
|
@PrimaryGeneratedColumn("uuid")
|
|
id!: string;
|
|
|
|
@Column("json")
|
|
data!: APObject;
|
|
}
|