mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
18 lines
346 B
TypeScript
18 lines
346 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;
|
|
} |