Rename database collections
This commit is contained in:
parent
d5f69af319
commit
730f7d5b34
5 changed files with 15 additions and 5 deletions
|
@ -4,7 +4,9 @@ import {
|
|||
Column, Entity, ObjectIdColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@Entity({
|
||||
name: 'applications',
|
||||
})
|
||||
export default class ApplicationEntity extends BaseEntity {
|
||||
@ObjectIdColumn()
|
||||
public _id!: ObjectID;
|
||||
|
|
|
@ -4,7 +4,9 @@ import {
|
|||
BaseEntity, Column, Entity, ObjectIdColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@Entity({
|
||||
name: 'clients',
|
||||
})
|
||||
export default class ClientEntity extends BaseEntity {
|
||||
@ObjectIdColumn()
|
||||
public _id!: ObjectID;
|
||||
|
|
|
@ -3,7 +3,9 @@ import {
|
|||
BaseEntity, Column, Entity, ObjectIdColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@Entity({
|
||||
name: 'developers',
|
||||
})
|
||||
export default class DeveloperEntity extends BaseEntity {
|
||||
@ObjectIdColumn()
|
||||
public _id!: ObjectID;
|
||||
|
|
|
@ -4,7 +4,9 @@ import {
|
|||
BaseEntity, Column, Entity, ObjectIdColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@Entity({
|
||||
name: 'tokens',
|
||||
})
|
||||
export default class TokenEntity extends BaseEntity {
|
||||
@ObjectIdColumn()
|
||||
public _id!: ObjectID;
|
||||
|
|
|
@ -3,7 +3,9 @@ import {
|
|||
BaseEntity, Column, Entity, ObjectIdColumn,
|
||||
} from 'typeorm';
|
||||
|
||||
@Entity()
|
||||
@Entity({
|
||||
name: 'users',
|
||||
})
|
||||
export default class UserEntity extends BaseEntity {
|
||||
@ObjectIdColumn()
|
||||
public _id!: ObjectID;
|
||||
|
|
Loading…
Reference in a new issue