1 parent
e2cc0c0b80
commit
4c3d2643c1
2 files changed
+19
-2
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { IsInt, IsOptional, IsString } from "class-validator";
|
||||
import { IsBoolean, IsInt, IsOptional, IsString } from "class-validator";
|
||||
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
||||
/**
|
||||
* Defines the StatsClient entity.
|
||||
@@ -22,6 +22,14 @@ export class StatsClient {
|
||||
@IsString()
|
||||
description?: string;
|
||||
|
||||
/**
|
||||
* Is the client enabled (for fraud and setup reasons)?
|
||||
* Default: true
|
||||
*/
|
||||
@Column()
|
||||
@IsBoolean()
|
||||
enabled: boolean = true;
|
||||
|
||||
/**
|
||||
* The client's api key.
|
||||
* This is used to authorize a statsClient against the api.
|
||||
|
||||
Reference in new issue
Block a user