Add exports to admin
This commit is contained in:
@ -500,3 +500,33 @@ export class Rule extends BaseEntity {
|
|||||||
@Column({ type: 'timestamp', name: 'failed_at' })
|
@Column({ type: 'timestamp', name: 'failed_at' })
|
||||||
failedAt?: Date
|
failedAt?: Date
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Entity({ name: 'export' })
|
||||||
|
export class Export extends BaseEntity {
|
||||||
|
@PrimaryGeneratedColumn('uuid')
|
||||||
|
id!: string
|
||||||
|
|
||||||
|
@Column('uuid')
|
||||||
|
userId!: string
|
||||||
|
|
||||||
|
@Column('text', { nullable: true })
|
||||||
|
taskId?: string
|
||||||
|
|
||||||
|
@Column('text')
|
||||||
|
state!: string
|
||||||
|
|
||||||
|
@Column('int', { default: 0 })
|
||||||
|
totalItems!: number
|
||||||
|
|
||||||
|
@Column('int', { default: 0 })
|
||||||
|
processedItems!: number
|
||||||
|
|
||||||
|
@Column('text', { nullable: true })
|
||||||
|
signedUrl?: string
|
||||||
|
|
||||||
|
@Column({ type: 'timestamp', name: 'created_at' })
|
||||||
|
createdAt!: Date
|
||||||
|
|
||||||
|
@Column({ type: 'timestamp', name: 'updated_at' })
|
||||||
|
updatedAt!: Date
|
||||||
|
}
|
||||||
|
|||||||
@ -17,6 +17,7 @@ import {
|
|||||||
Features,
|
Features,
|
||||||
EmailAddress,
|
EmailAddress,
|
||||||
Rule,
|
Rule,
|
||||||
|
Export,
|
||||||
} from './db'
|
} from './db'
|
||||||
import { compare, hashSync } from 'bcryptjs'
|
import { compare, hashSync } from 'bcryptjs'
|
||||||
const readYamlFile = require('read-yaml-file')
|
const readYamlFile = require('read-yaml-file')
|
||||||
@ -54,6 +55,7 @@ const ADMIN_USER_EMAIL =
|
|||||||
{ resource: Features, options: { parent: { name: 'Users' } } },
|
{ resource: Features, options: { parent: { name: 'Users' } } },
|
||||||
{ resource: EmailAddress, options: { parent: { name: 'Users' } } },
|
{ resource: EmailAddress, options: { parent: { name: 'Users' } } },
|
||||||
{ resource: Rule, options: { parent: { name: 'Users' } } },
|
{ resource: Rule, options: { parent: { name: 'Users' } } },
|
||||||
|
{ resource: Export, options: { parent: { name: 'Users' } } },
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user