Loading hono-postgres-setup/drizzle.config.ts +1 −1 Original line number Diff line number Diff line Loading @@ -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: { Loading hono-postgres-setup/drizzle/0002_verification.token_table.sql 0 → 100644 +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 ); hono-postgres-setup/drizzle/meta/0002_snapshot.json 0 → 100644 +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 hono-postgres-setup/drizzle/meta/_journal.json +7 −0 Original line number Diff line number Diff line Loading @@ -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 hono-postgres-setup/src/user/user.model.ts→hono-postgres-setup/src/models/user.model.ts +0 −0 File moved. View file Loading
hono-postgres-setup/drizzle.config.ts +1 −1 Original line number Diff line number Diff line Loading @@ -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: { Loading
hono-postgres-setup/drizzle/0002_verification.token_table.sql 0 → 100644 +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 );
hono-postgres-setup/drizzle/meta/0002_snapshot.json 0 → 100644 +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
hono-postgres-setup/drizzle/meta/_journal.json +7 −0 Original line number Diff line number Diff line Loading @@ -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
hono-postgres-setup/src/user/user.model.ts→hono-postgres-setup/src/models/user.model.ts +0 −0 File moved. View file