mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-19 05:00:47 +01:00
311c2172d7
This reverts commit 9b5aeb76d8
.
24 lines
535 B
TypeScript
24 lines
535 B
TypeScript
/*
|
|
* SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
import { PrimaryColumn, Entity, Index, Column } from 'typeorm';
|
|
import { id } from './util/id.js';
|
|
|
|
@Entity('relay')
|
|
export class MiRelay {
|
|
@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';
|
|
}
|