Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #133 from bcgov/IOD-260-remove-users-entity
Browse files Browse the repository at this point in the history
IOD-260 Remove Users entity and table.
  • Loading branch information
mattsiel authored Aug 17, 2022
2 parents c83b14b + 0a592ce commit f72649e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 81 deletions.
2 changes: 0 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { HealthModule } from './health/health.module';
import { LicenseeModule } from './licensee/licensee.module';
import { SoftwareModule } from './software/software.module';
import { AuthModule } from './auth/auth.module';
import { UsersModule } from './users/users.module';
import { AppController } from './app.controller';

@Module({
Expand All @@ -22,7 +21,6 @@ import { AppController } from './app.controller';
HealthModule,
HttpModule,
AuthModule,
UsersModule,
],
controllers: [AppController],
providers: [],
Expand Down
13 changes: 13 additions & 0 deletions src/migrations/1660753342273-removeUsers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class removeUsers1660753342273 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`DROP TABLE "users"`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "users" ("id" uuid NOT NULL DEFAULT uuid_generate_v4(), "created" TIMESTAMP NOT NULL DEFAULT now(), "modified" TIMESTAMP NOT NULL DEFAULT now(), "username" text NOT NULL, "email" character varying NOT NULL, "role" text, CONSTRAINT "UQ_97672ac88f789774dd47f7c8be3" UNIQUE ("email"), CONSTRAINT "PK_a3ffb1c0c8416b9fc6f907b7433" PRIMARY KEY ("id"))`,
);
}
}
20 changes: 0 additions & 20 deletions src/users/user.entity.ts

This file was deleted.

19 changes: 0 additions & 19 deletions src/users/users.controller.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/users/users.module.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/users/users.service.spec.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/users/users.service.ts

This file was deleted.

4 changes: 4 additions & 0 deletions technical.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ erDiagram
licensee {
string id
string name
string email
string role
string notes
date created
date modified
}
Expand All @@ -19,6 +22,7 @@ erDiagram
string title
string publisher
string administrator
string notes
number quantity
date renewal
date created
Expand Down

0 comments on commit f72649e

Please sign in to comment.