Rename database collections

This commit is contained in:
Dominik Korsa 2021-02-13 14:30:34 +01:00
parent d5f69af319
commit 730f7d5b34
No known key found for this signature in database
GPG key ID: 546F986F71A6FE6E
5 changed files with 15 additions and 5 deletions

View file

@ -4,7 +4,9 @@ import {
Column, Entity, ObjectIdColumn,
} from 'typeorm';
@Entity()
@Entity({
name: 'applications',
})
export default class ApplicationEntity extends BaseEntity {
@ObjectIdColumn()
public _id!: ObjectID;

View file

@ -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;

View file

@ -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;

View file

@ -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;

View file

@ -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;