mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 21:53:46 +00:00
indexes on instance_bans lookup columns
This commit is contained in:
1 parent
8ab1fd9707
commit
4c0c38cfa7
1 file changed
+4
-1
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Column, CreateDateColumn, Entity, FindOptionsWhere, JoinColumn, OneToOne, RelationId } from "typeorm";
|
||||
import { Column, CreateDateColumn, Entity, FindOptionsWhere, Index, JoinColumn, OneToOne, RelationId } from "typeorm";
|
||||
import { BaseClass } from "./BaseClass";
|
||||
|
||||
@Entity({
|
||||
@@ -30,12 +30,15 @@ export class InstanceBan extends BaseClass {
|
||||
@Column()
|
||||
reason: string;
|
||||
|
||||
@Index()
|
||||
@Column({ nullable: true })
|
||||
user_id?: string;
|
||||
|
||||
@Index()
|
||||
@Column({ nullable: true })
|
||||
fingerprint?: string;
|
||||
|
||||
@Index()
|
||||
@Column({ nullable: true })
|
||||
ip_address?: string;
|
||||
|
||||
|
||||
Reference in new issue
Block a user