iceshrimp-161sh/packages/backend/src/models/entities/relay.ts
ThatOneCalculator aaa2041d38 chore: format
2023-05-29 09:31:02 -07:00

21 lines
409 B
TypeScript

import { PrimaryColumn, Entity, Index, Column } from "typeorm";
import { id } from "../id.js";
@Entity()
export class Relay {
@PrimaryColumn(id())
public id: string;
@Index({ unique: true })
@Column("varchar", {
length: 512,
nullable: false,
})
public inbox: string;
@Column("enum", {
enum: ["requesting", "accepted", "rejected"],
})
public status: "requesting" | "accepted" | "rejected";
}