Skip to content

Commit

Permalink
chore: formatting (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
risv1 authored Oct 24, 2024
1 parent a3e1364 commit 1aea5ff
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 34 deletions.
19 changes: 0 additions & 19 deletions app/pages/auth.vue

This file was deleted.

4 changes: 2 additions & 2 deletions server/api/health.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default defineEventHandler(() => {
return { "status": "ok" }
})
return { status: "ok" };
});
4 changes: 2 additions & 2 deletions server/database/db.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { drizzle } from 'drizzle-orm/better-sqlite3';
import { dbUrl } from '~~/env';
import { drizzle } from "drizzle-orm/better-sqlite3";
import { dbUrl } from "~~/env";

export const db = drizzle(dbUrl);
18 changes: 9 additions & 9 deletions server/database/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import { sql } from "drizzle-orm";
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";

export const users = sqliteTable("users", {
id: integer("id").primaryKey({ autoIncrement: true }),
name: text("name").notNull(),
email: text("email").notNull().unique(),
password: text("password").notNull(),
created_at: text("timestamp").notNull().default(sql`(current_timestamp)`),
updated_at: text("timestamp").notNull().default(sql`(current_timestamp)`),
deleted_at: text("timestamp"),
is_deleted: integer("is_deleted").notNull().default(0)
})
id: integer("id").primaryKey({ autoIncrement: true }),
name: text("name").notNull(),
email: text("email").notNull().unique(),
password: text("password").notNull(),
created_at: text("timestamp").notNull().default(sql`(current_timestamp)`),
updated_at: text("timestamp").notNull().default(sql`(current_timestamp)`),
deleted_at: text("timestamp"),
is_deleted: integer("is_deleted").notNull().default(0),
});
4 changes: 2 additions & 2 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": "../.nuxt/tsconfig.server.json",
"compilerOptions": {
"types": ["bun-types"],
}
"types": ["bun-types"]
}
}

0 comments on commit 1aea5ff

Please sign in to comment.