summaryrefslogtreecommitdiff
path: root/src/models/entities/instance.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2019-11-05 22:14:42 +0900
committerGitHub <noreply@github.com>2019-11-05 22:14:42 +0900
commit77c9b90e6d72e8d1ca5038611fa967d789bacf69 (patch)
treec60e3f8f86bb407d6836c632d2f3c69ff360913a /src/models/entities/instance.ts
parentFix bug (diff)
downloadsharkey-77c9b90e6d72e8d1ca5038611fa967d789bacf69.tar.gz
sharkey-77c9b90e6d72e8d1ca5038611fa967d789bacf69.tar.bz2
sharkey-77c9b90e6d72e8d1ca5038611fa967d789bacf69.zip
Store nodeinfo per federated instances (#5578)
* Store nodeinfo per federated instances * Update fetch-nodeinfo.ts * Update fetch-nodeinfo.ts * update
Diffstat (limited to 'src/models/entities/instance.ts')
-rw-r--r--src/models/entities/instance.ts50
1 files changed, 41 insertions, 9 deletions
diff --git a/src/models/entities/instance.ts b/src/models/entities/instance.ts
index 52c5215f14..dd0de100d6 100644
--- a/src/models/entities/instance.ts
+++ b/src/models/entities/instance.ts
@@ -26,15 +26,6 @@ export class Instance {
public host: string;
/**
- * インスタンスのシステム (MastodonとかMisskeyとかPleromaとか)
- */
- @Column('varchar', {
- length: 64, nullable: true,
- comment: 'The system of the Instance.'
- })
- public system: string | null;
-
- /**
* インスタンスのユーザー数
*/
@Column('integer', {
@@ -129,4 +120,45 @@ export class Instance {
default: false
})
public isMarkedAsClosed: boolean;
+
+ @Column('varchar', {
+ length: 64, nullable: true, default: null,
+ comment: 'The software of the Instance.'
+ })
+ public softwareName: string | null;
+
+ @Column('varchar', {
+ length: 64, nullable: true, default: null,
+ })
+ public softwareVersion: string | null;
+
+ @Column('boolean', {
+ nullable: true, default: null,
+ })
+ public openRegistrations: boolean | null;
+
+ @Column('varchar', {
+ length: 256, nullable: true, default: null,
+ })
+ public name: string | null;
+
+ @Column('varchar', {
+ length: 4096, nullable: true, default: null,
+ })
+ public description: string | null;
+
+ @Column('varchar', {
+ length: 128, nullable: true, default: null,
+ })
+ public maintainerName: string | null;
+
+ @Column('varchar', {
+ length: 256, nullable: true, default: null,
+ })
+ public maintainerEmail: string | null;
+
+ @Column('timestamp with time zone', {
+ nullable: true,
+ })
+ public infoUpdatedAt: Date | null;
}