Skip to content

Commit

Permalink
Remove DB util file. (#32)
Browse files Browse the repository at this point in the history
* refactor utils

* db util code moved to schema file.

* remove unused imports

* Update prettier config
  • Loading branch information
iamtouha authored Feb 20, 2024
1 parent 8b50243 commit da8bf0b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 20 deletions.
4 changes: 4 additions & 0 deletions prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
const config = {
plugins: ["prettier-plugin-tailwindcss"],
tabWidth: 2,
semi: true,
singleQuote: false,
printWidth: 100,
};

export default config;
2 changes: 1 addition & 1 deletion src/app/(landing)/_components/hover-card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client';
import { Card, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import React, { type SVGProps, useRef, useState, FC, type ForwardRefExoticComponent, type RefAttributes } from 'react';
import React, { useRef, useState } from 'react';



Expand Down
File renamed without changes.
6 changes: 0 additions & 6 deletions src/lib/utils/slugify.ts

This file was deleted.

5 changes: 4 additions & 1 deletion src/server/db/schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { mysqlTableCreator } from "drizzle-orm/mysql-core";
import { DATABASE_PREFIX as prefix } from "@/lib/constants";
import {
boolean,
datetime,
Expand All @@ -8,7 +10,8 @@ import {
varchar,
} from "drizzle-orm/mysql-core";
import { relations } from "drizzle-orm";
import { mysqlTable } from "@/server/db/util";

export const mysqlTable = mysqlTableCreator((name) => `${prefix}_${name}`);

export const users = mysqlTable(
"users",
Expand Down
12 changes: 0 additions & 12 deletions src/server/db/util.ts

This file was deleted.

0 comments on commit da8bf0b

Please sign in to comment.