Skip to content

Commit

Permalink
fix: add names to TypeORM entities (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
trentlarson committed Apr 26, 2021
1 parent 95cf544 commit 750bfcf
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/claim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Entity, Column, BaseEntity, ManyToOne, PrimaryColumn } from 'typeorm'
import { Identifier } from './identifier'
import { Credential } from './credential'

@Entity()
@Entity('claim')
export class Claim extends BaseEntity {
@PrimaryColumn()
//@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/credential.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Message } from './message'
import { Presentation } from './presentation'
import { Claim } from './claim'

@Entity()
@Entity('credential')
export class Credential extends BaseEntity {
@PrimaryColumn()
//@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/identifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Credential } from './credential'
import { Claim } from './claim'
import { Connection } from 'typeorm'

@Entity()
@Entity('identifier')
@Index(['alias', 'provider'], { unique: true })
export class Identifier extends BaseEntity {
@PrimaryColumn()
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Identifier } from './identifier'

export type KeyType = 'Ed25519' | 'Secp256k1'

@Entity()
@Entity('key')
export class Key extends BaseEntity {
@PrimaryColumn()
//@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface MetaData {
value?: string
}

@Entity()
@Entity('message')
export class Message extends BaseEntity {
@BeforeInsert()
setId() {
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/presentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Identifier } from './identifier'
import { Message } from './message'
import { Credential, createCredentialEntity } from './credential'

@Entity()
@Entity('presentation')
export class Presentation extends BaseEntity {
@PrimaryColumn()
//@ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/data-store/src/entities/service.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Entity, Column, PrimaryColumn, BaseEntity, ManyToOne } from 'typeorm'
import { Identifier } from './identifier'

@Entity()
@Entity('service')
export class Service extends BaseEntity {
@PrimaryColumn()
//@ts-ignore
Expand Down

0 comments on commit 750bfcf

Please sign in to comment.