parent
81a0ee4b2d
commit
632af91878
9 changed files with 17 additions and 295 deletions
|
|
@ -1,46 +0,0 @@
|
|||
import { Entity, PrimaryColumn, Index, Column } from 'typeorm';
|
||||
import { id } from '../id';
|
||||
|
||||
@Entity()
|
||||
export class Log {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
||||
@Index()
|
||||
@Column('timestamp with time zone', {
|
||||
comment: 'The created date of the Log.'
|
||||
})
|
||||
public createdAt: Date;
|
||||
|
||||
@Index()
|
||||
@Column('varchar', {
|
||||
length: 64, array: true, default: '{}'
|
||||
})
|
||||
public domain: string[];
|
||||
|
||||
@Index()
|
||||
@Column('enum', {
|
||||
enum: ['error', 'warning', 'info', 'success', 'debug']
|
||||
})
|
||||
public level: string;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 8
|
||||
})
|
||||
public worker: string;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 128
|
||||
})
|
||||
public machine: string;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 2048
|
||||
})
|
||||
public message: string;
|
||||
|
||||
@Column('jsonb', {
|
||||
default: {}
|
||||
})
|
||||
public data: Record<string, any>;
|
||||
}
|
||||
|
|
@ -13,7 +13,6 @@ import { UserRepository } from './repositories/user';
|
|||
import { NoteRepository } from './repositories/note';
|
||||
import { DriveFileRepository } from './repositories/drive-file';
|
||||
import { DriveFolderRepository } from './repositories/drive-folder';
|
||||
import { Log } from './entities/log';
|
||||
import { AccessToken } from './entities/access-token';
|
||||
import { UserNotePining } from './entities/user-note-pining';
|
||||
import { SigninRepository } from './repositories/signin';
|
||||
|
|
@ -108,7 +107,6 @@ export const Signins = getCustomRepository(SigninRepository);
|
|||
export const MessagingMessages = getCustomRepository(MessagingMessageRepository);
|
||||
export const ReversiGames = getCustomRepository(ReversiGameRepository);
|
||||
export const ReversiMatchings = getCustomRepository(ReversiMatchingRepository);
|
||||
export const Logs = getRepository(Log);
|
||||
export const Pages = getCustomRepository(PageRepository);
|
||||
export const PageLikes = getCustomRepository(PageLikeRepository);
|
||||
export const GalleryPosts = getCustomRepository(GalleryPostRepository);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue