Initial commit with Email Import Wizard and Task Processor updates
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';
|
||||
|
||||
@Entity('api_keys')
|
||||
export class ApiKey {
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id!: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 100 })
|
||||
name!: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 10 })
|
||||
keyPrefix!: string;
|
||||
|
||||
@Column({ type: 'varchar', length: 64, unique: true })
|
||||
keyHash!: string;
|
||||
|
||||
@CreateDateColumn()
|
||||
createdAt!: Date;
|
||||
|
||||
@UpdateDateColumn()
|
||||
updatedAt!: Date;
|
||||
|
||||
@Column({ type: 'datetime', nullable: true })
|
||||
lastUsedAt!: Date | null;
|
||||
|
||||
@Column({ type: 'datetime', nullable: true })
|
||||
expiresAt!: Date | null;
|
||||
}
|
||||
Reference in New Issue
Block a user