Commit 38650905 authored by Poojasri's avatar Poojasri
Browse files

custom file change

parent b3abdd4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ import dotenv from "dotenv";
dotenv.config();

export default defineConfig({
  schema: "./src/user/user.model.ts",
  schema: "./src/models",
  out: "./drizzle",
  dialect: "postgresql",
  dbCredentials: {
+10 −0
Original line number Diff line number Diff line
CREATE TABLE IF NOT EXISTS "verification_tokens" (
	"id" serial PRIMARY KEY NOT NULL,
	"userAccountId" integer NOT NULL,
	"token" text NOT NULL,
	"type" text NOT NULL,
	"notificationTime" timestamp,
	"expiryTime" timestamp NOT NULL,
	"createdAt" timestamp NOT NULL,
	"updatedAt" timestamp NOT NULL
);
+120 −0
Original line number Diff line number Diff line
{
  "id": "3f8d06ef-6517-4afd-9d95-f66c31925a8b",
  "prevId": "614f16b7-f5db-4083-9fd1-e47da4a39eb1",
  "version": "7",
  "dialect": "postgresql",
  "tables": {
    "public.users": {
      "name": "users",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "first_name": {
          "name": "first_name",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": true
        },
        "last_name": {
          "name": "last_name",
          "type": "varchar(50)",
          "primaryKey": false,
          "notNull": false
        },
        "email": {
          "name": "email",
          "type": "varchar(100)",
          "primaryKey": false,
          "notNull": true
        },
        "phone_number": {
          "name": "phone_number",
          "type": "varchar(15)",
          "primaryKey": false,
          "notNull": false
        },
        "password": {
          "name": "password",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    },
    "public.verification_tokens": {
      "name": "verification_tokens",
      "schema": "",
      "columns": {
        "id": {
          "name": "id",
          "type": "serial",
          "primaryKey": true,
          "notNull": true
        },
        "userAccountId": {
          "name": "userAccountId",
          "type": "integer",
          "primaryKey": false,
          "notNull": true
        },
        "token": {
          "name": "token",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "type": {
          "name": "type",
          "type": "text",
          "primaryKey": false,
          "notNull": true
        },
        "notificationTime": {
          "name": "notificationTime",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": false
        },
        "expiryTime": {
          "name": "expiryTime",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "createdAt": {
          "name": "createdAt",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        },
        "updatedAt": {
          "name": "updatedAt",
          "type": "timestamp",
          "primaryKey": false,
          "notNull": true
        }
      },
      "indexes": {},
      "foreignKeys": {},
      "compositePrimaryKeys": {},
      "uniqueConstraints": {}
    }
  },
  "enums": {},
  "schemas": {},
  "sequences": {},
  "_meta": {
    "columns": {},
    "schemas": {},
    "tables": {}
  }
}
 No newline at end of file
+7 −0
Original line number Diff line number Diff line
@@ -15,6 +15,13 @@
      "when": 1725953274455,
      "tag": "0001_swift_wild_pack",
      "breakpoints": true
    },
    {
      "idx": 2,
      "version": "7",
      "when": 1726815749239,
      "tag": "0002_verification.token_table",
      "breakpoints": true
    }
  ]
}
 No newline at end of file
Loading