Skip to content

Commit

Permalink
feat: Identity saveDate updateDate
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Apr 15, 2020
1 parent 0b62eaa commit e845a84
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/daf-core/src/entities/identity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
import { Entity, Column, PrimaryColumn, BaseEntity, OneToMany, ManyToMany } from 'typeorm'
import {
Entity,
Column,
PrimaryColumn,
BaseEntity,
OneToMany,
CreateDateColumn,
UpdateDateColumn,
} from 'typeorm'
import { Key } from './key'
import { Message } from './message'
import { Presentation } from './presentation'
Expand All @@ -14,6 +22,12 @@ export class Identity extends BaseEntity {
@Column({ nullable: true })
provider: string

@CreateDateColumn()
saveDate: Date

@UpdateDateColumn()
updateDate: Date

@Column({ nullable: true })
controllerKeyId: string

Expand Down

0 comments on commit e845a84

Please sign in to comment.