Skip to content

Commit

Permalink
fix: Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
PooyaRaki committed Feb 5, 2025
1 parent 187960d commit a1cb663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion migrations/1737473344288-create_wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class CreateWallets1737473344288 implements MigrationInterface {

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`CREATE TABLE "wallets" ("id" SERIAL NOT NULL, "address" character varying(42) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "user_id" integer, CONSTRAINT "UQ_wallet_address" UNIQUE ("address"), CONSTRAINT "PK_wallet_id" PRIMARY KEY ("id"))`,
`CREATE TABLE "wallets" ("id" SERIAL NOT NULL, "address" character varying(42) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "updated_at" TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(), "user_id" integer NOT NULL, CONSTRAINT "UQ_wallet_address" UNIQUE ("address"), CONSTRAINT "PK_wallet_id" PRIMARY KEY ("id"))`,
);
await queryRunner.query(
`ALTER TABLE "wallets" ADD CONSTRAINT "FK_wallets_user_id" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE NO ACTION`,
Expand Down
2 changes: 1 addition & 1 deletion src/domain/users/entities/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { z } from 'zod';
import { RowSchema } from '@/datasources/db/v1/entities/row.entity';

export enum UserStatus {
ACTIVE = 1,
PENDING = 0,
ACTIVE = 1,
}

export type User = z.infer<typeof UserSchema>;
Expand Down

0 comments on commit a1cb663

Please sign in to comment.