mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-11 18:48:27 +00:00
Set index names and fix type for instance bans
This commit is contained in:
1 parent
11fa9d2180
commit
3d314c673c
1 file changed
+4
-4
@@ -30,15 +30,15 @@ export class InstanceBan extends BaseClass {
|
||||
@Column()
|
||||
reason: string;
|
||||
|
||||
@Index()
|
||||
@Column({ nullable: true })
|
||||
@Index("instance_bans_user_id_idx", { type: "hash" })
|
||||
@Column({ type: "int8", nullable: true })
|
||||
user_id?: string;
|
||||
|
||||
@Index()
|
||||
@Index("instance_bans_fingerprint_idx", { type: "hash" })
|
||||
@Column({ nullable: true })
|
||||
fingerprint?: string;
|
||||
|
||||
@Index()
|
||||
@Index("instance_bans_ip_address_idx", { type: "hash" })
|
||||
@Column({ nullable: true })
|
||||
ip_address?: string;
|
||||
|
||||
|
||||
Reference in new issue
Block a user