mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-04 07:38:08 -07:00
fe841db55a
* pub-relay * relay actorをApplicationにする * Disable koa-compress * Homeはリレーに送らない * Disable debug * UI * cleanupなど
19 lines
404 B
TypeScript
19 lines
404 B
TypeScript
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
|
import { id } from '../id';
|
|
|
|
@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';
|
|
}
|