Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add names to entities (so that code on devices succeeds) #480

Merged
merged 1 commit into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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