prettier setup

This commit is contained in:
Om Lanke
2025-06-30 11:55:48 +05:30
parent 99220fb9a9
commit ba6ee585dc
63 changed files with 3950 additions and 2115 deletions

View File

@@ -1,12 +1,12 @@
import { config } from "dotenv";
import { defineConfig } from "drizzle-kit";
import { config } from 'dotenv';
import { defineConfig } from 'drizzle-kit';
config({ path: "../../.env" });
config({ path: '../../.env' });
export default defineConfig({
schema: "./schema.ts",
out: "./migrations",
dialect: "postgresql",
schema: './schema.ts',
out: './migrations',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL!,
},

View File

@@ -1,5 +1,5 @@
import { drizzle } from "drizzle-orm/neon-http";
import { drizzle } from 'drizzle-orm/neon-http';
export const db = drizzle(process.env.DATABASE_URL!);
export * from "./schema";
export * from './schema';

View File

@@ -60,12 +60,8 @@
"name": "applications_job_id_jobs_id_fk",
"tableFrom": "applications",
"tableTo": "jobs",
"columnsFrom": [
"job_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["job_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -73,12 +69,8 @@
"name": "applications_student_id_students_id_fk",
"tableFrom": "applications",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -86,12 +78,8 @@
"name": "applications_resume_id_resumes_id_fk",
"tableFrom": "applications",
"tableTo": "resumes",
"columnsFrom": [
"resume_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["resume_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -157,12 +145,8 @@
"name": "certificates_student_id_students_id_fk",
"tableFrom": "certificates",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -303,12 +287,8 @@
"name": "grades_student_id_students_id_fk",
"tableFrom": "grades",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -398,12 +378,8 @@
"name": "internships_student_id_students_id_fk",
"tableFrom": "internships",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -535,12 +511,8 @@
"name": "jobs_company_id_companies_id_fk",
"tableFrom": "jobs",
"tableTo": "companies",
"columnsFrom": [
"company_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["company_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -607,12 +579,8 @@
"name": "projects_student_id_students_id_fk",
"tableFrom": "projects",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -672,12 +640,8 @@
"name": "resumes_student_id_students_id_fk",
"tableFrom": "resumes",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -843,4 +807,4 @@
"schemas": {},
"tables": {}
}
}
}

View File

@@ -60,12 +60,8 @@
"name": "applications_job_id_jobs_id_fk",
"tableFrom": "applications",
"tableTo": "jobs",
"columnsFrom": [
"job_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["job_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -73,12 +69,8 @@
"name": "applications_student_id_students_id_fk",
"tableFrom": "applications",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -86,12 +78,8 @@
"name": "applications_resume_id_resumes_id_fk",
"tableFrom": "applications",
"tableTo": "resumes",
"columnsFrom": [
"resume_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["resume_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -157,12 +145,8 @@
"name": "certificates_student_id_students_id_fk",
"tableFrom": "certificates",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -303,12 +287,8 @@
"name": "grades_student_id_students_id_fk",
"tableFrom": "grades",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -398,12 +378,8 @@
"name": "internships_student_id_students_id_fk",
"tableFrom": "internships",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -535,12 +511,8 @@
"name": "jobs_company_id_companies_id_fk",
"tableFrom": "jobs",
"tableTo": "companies",
"columnsFrom": [
"company_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["company_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -607,12 +579,8 @@
"name": "projects_student_id_students_id_fk",
"tableFrom": "projects",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -672,12 +640,8 @@
"name": "resumes_student_id_students_id_fk",
"tableFrom": "resumes",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -843,4 +807,4 @@
"schemas": {},
"tables": {}
}
}
}

View File

@@ -42,9 +42,7 @@
"admins_email_unique": {
"name": "admins_email_unique",
"nullsNotDistinct": false,
"columns": [
"email"
]
"columns": ["email"]
}
},
"policies": {},
@@ -107,12 +105,8 @@
"name": "applications_job_id_jobs_id_fk",
"tableFrom": "applications",
"tableTo": "jobs",
"columnsFrom": [
"job_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["job_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -120,12 +114,8 @@
"name": "applications_student_id_students_id_fk",
"tableFrom": "applications",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -133,12 +123,8 @@
"name": "applications_resume_id_resumes_id_fk",
"tableFrom": "applications",
"tableTo": "resumes",
"columnsFrom": [
"resume_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["resume_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -204,12 +190,8 @@
"name": "certificates_student_id_students_id_fk",
"tableFrom": "certificates",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -350,12 +332,8 @@
"name": "grades_student_id_students_id_fk",
"tableFrom": "grades",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -445,12 +423,8 @@
"name": "internships_student_id_students_id_fk",
"tableFrom": "internships",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -582,12 +556,8 @@
"name": "jobs_company_id_companies_id_fk",
"tableFrom": "jobs",
"tableTo": "companies",
"columnsFrom": [
"company_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["company_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -654,12 +624,8 @@
"name": "projects_student_id_students_id_fk",
"tableFrom": "projects",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -719,12 +685,8 @@
"name": "resumes_student_id_students_id_fk",
"tableFrom": "resumes",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -890,4 +852,4 @@
"schemas": {},
"tables": {}
}
}
}

View File

@@ -42,9 +42,7 @@
"admins_email_unique": {
"name": "admins_email_unique",
"nullsNotDistinct": false,
"columns": [
"email"
]
"columns": ["email"]
}
},
"policies": {},
@@ -107,12 +105,8 @@
"name": "applications_job_id_jobs_id_fk",
"tableFrom": "applications",
"tableTo": "jobs",
"columnsFrom": [
"job_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["job_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -120,12 +114,8 @@
"name": "applications_student_id_students_id_fk",
"tableFrom": "applications",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -133,12 +123,8 @@
"name": "applications_resume_id_resumes_id_fk",
"tableFrom": "applications",
"tableTo": "resumes",
"columnsFrom": [
"resume_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["resume_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -204,12 +190,8 @@
"name": "certificates_student_id_students_id_fk",
"tableFrom": "certificates",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -344,12 +326,8 @@
"name": "grades_student_id_students_id_fk",
"tableFrom": "grades",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -357,10 +335,7 @@
"compositePrimaryKeys": {
"grades_student_id_sem_pk": {
"name": "grades_student_id_sem_pk",
"columns": [
"student_id",
"sem"
]
"columns": ["student_id", "sem"]
}
},
"uniqueConstraints": {},
@@ -452,12 +427,8 @@
"name": "internships_student_id_students_id_fk",
"tableFrom": "internships",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -589,12 +560,8 @@
"name": "jobs_company_id_companies_id_fk",
"tableFrom": "jobs",
"tableTo": "companies",
"columnsFrom": [
"company_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["company_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -661,12 +628,8 @@
"name": "projects_student_id_students_id_fk",
"tableFrom": "projects",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -726,12 +689,8 @@
"name": "resumes_student_id_students_id_fk",
"tableFrom": "resumes",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -897,4 +856,4 @@
"schemas": {},
"tables": {}
}
}
}

View File

@@ -42,9 +42,7 @@
"admins_email_unique": {
"name": "admins_email_unique",
"nullsNotDistinct": false,
"columns": [
"email"
]
"columns": ["email"]
}
},
"policies": {},
@@ -107,12 +105,8 @@
"name": "applications_job_id_jobs_id_fk",
"tableFrom": "applications",
"tableTo": "jobs",
"columnsFrom": [
"job_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["job_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -120,12 +114,8 @@
"name": "applications_student_id_students_id_fk",
"tableFrom": "applications",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -133,12 +123,8 @@
"name": "applications_resume_id_resumes_id_fk",
"tableFrom": "applications",
"tableTo": "resumes",
"columnsFrom": [
"resume_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["resume_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -267,12 +253,8 @@
"name": "grades_student_id_students_id_fk",
"tableFrom": "grades",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -280,10 +262,7 @@
"compositePrimaryKeys": {
"grades_student_id_sem_pk": {
"name": "grades_student_id_sem_pk",
"columns": [
"student_id",
"sem"
]
"columns": ["student_id", "sem"]
}
},
"uniqueConstraints": {},
@@ -369,12 +348,8 @@
"name": "internships_student_id_students_id_fk",
"tableFrom": "internships",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -506,12 +481,8 @@
"name": "jobs_company_id_companies_id_fk",
"tableFrom": "jobs",
"tableTo": "companies",
"columnsFrom": [
"company_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["company_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -571,12 +542,8 @@
"name": "resumes_student_id_students_id_fk",
"tableFrom": "resumes",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -748,4 +715,4 @@
"schemas": {},
"tables": {}
}
}
}

View File

@@ -42,9 +42,7 @@
"admins_email_unique": {
"name": "admins_email_unique",
"nullsNotDistinct": false,
"columns": [
"email"
]
"columns": ["email"]
}
},
"policies": {},
@@ -107,12 +105,8 @@
"name": "applications_job_id_jobs_id_fk",
"tableFrom": "applications",
"tableTo": "jobs",
"columnsFrom": [
"job_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["job_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -120,12 +114,8 @@
"name": "applications_student_id_students_id_fk",
"tableFrom": "applications",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
@@ -133,12 +123,8 @@
"name": "applications_resume_id_resumes_id_fk",
"tableFrom": "applications",
"tableTo": "resumes",
"columnsFrom": [
"resume_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["resume_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -267,12 +253,8 @@
"name": "grades_student_id_students_id_fk",
"tableFrom": "grades",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -280,10 +262,7 @@
"compositePrimaryKeys": {
"grades_student_id_sem_pk": {
"name": "grades_student_id_sem_pk",
"columns": [
"student_id",
"sem"
]
"columns": ["student_id", "sem"]
}
},
"uniqueConstraints": {},
@@ -369,12 +348,8 @@
"name": "internships_student_id_students_id_fk",
"tableFrom": "internships",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -506,12 +481,8 @@
"name": "jobs_company_id_companies_id_fk",
"tableFrom": "jobs",
"tableTo": "companies",
"columnsFrom": [
"company_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["company_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -571,12 +542,8 @@
"name": "resumes_student_id_students_id_fk",
"tableFrom": "resumes",
"tableTo": "students",
"columnsFrom": [
"student_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["student_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
@@ -766,4 +733,4 @@
"schemas": {},
"tables": {}
}
}
}

View File

@@ -45,4 +45,4 @@
"breakpoints": true
}
]
}
}

View File

@@ -1,4 +1,4 @@
import { sql, relations } from "drizzle-orm";
import { sql, relations } from 'drizzle-orm';
import {
pgTable,
serial,
@@ -10,9 +10,9 @@ import {
numeric,
primaryKey,
check,
} from "drizzle-orm/pg-core";
} from 'drizzle-orm/pg-core';
export const students = pgTable("students", {
export const students = pgTable('students', {
id: serial().primaryKey(),
email: text().notNull(),
rollNumber: varchar({ length: 12 }),
@@ -45,9 +45,9 @@ export const students = pgTable("students", {
.notNull(),
});
export const internships = pgTable("internships", {
export const internships = pgTable('internships', {
id: serial().primaryKey(),
studentId: integer("student_id")
studentId: integer('student_id')
.notNull()
.references(() => students.id),
title: text().notNull(),
@@ -97,9 +97,9 @@ export const internships = pgTable("internships", {
// .notNull(),
// });
export const resumes = pgTable("resumes", {
export const resumes = pgTable('resumes', {
id: serial().primaryKey(),
studentId: integer("student_id")
studentId: integer('student_id')
.notNull()
.references(() => students.id),
title: text().notNull(),
@@ -112,9 +112,9 @@ export const resumes = pgTable("resumes", {
});
export const grades = pgTable(
"grades",
'grades',
{
studentId: integer("student_id")
studentId: integer('student_id')
.notNull()
.references(() => students.id),
sem: integer().notNull(),
@@ -129,7 +129,7 @@ export const grades = pgTable(
},
(table) => [
primaryKey({ columns: [table.studentId, table.sem] }),
check("sem_check1", sql`${table.sem} < 9`),
check('sem_check1', sql`${table.sem} < 9`),
],
);
@@ -177,7 +177,7 @@ export const gradeRelations = relations(grades, ({ one }) => ({
}),
}));
export const companies = pgTable("companies", {
export const companies = pgTable('companies', {
id: serial().primaryKey(),
name: text().notNull(),
email: text().notNull(),
@@ -192,9 +192,9 @@ export const companies = pgTable("companies", {
.notNull(),
});
export const jobs = pgTable("jobs", {
export const jobs = pgTable('jobs', {
id: serial().primaryKey(),
companyId: integer("company_id")
companyId: integer('company_id')
.notNull()
.references(() => companies.id),
title: text().notNull(),
@@ -205,9 +205,9 @@ export const jobs = pgTable("jobs", {
salary: text().notNull(),
applicationDeadline: timestamp().notNull(),
active: boolean().notNull().default(false),
minCGPA: numeric({ precision: 4, scale: 2 }).notNull().default("0"),
minSSC: numeric({ precision: 4, scale: 2 }).notNull().default("0"),
minHSC: numeric({ precision: 4, scale: 2 }).notNull().default("0"),
minCGPA: numeric({ precision: 4, scale: 2 }).notNull().default('0'),
minSSC: numeric({ precision: 4, scale: 2 }).notNull().default('0'),
minHSC: numeric({ precision: 4, scale: 2 }).notNull().default('0'),
allowDeadKT: boolean().notNull().default(true),
allowLiveKT: boolean().notNull().default(true),
createdAt: timestamp().notNull().defaultNow(),
@@ -217,18 +217,18 @@ export const jobs = pgTable("jobs", {
.notNull(),
});
export const applications = pgTable("applications", {
export const applications = pgTable('applications', {
id: serial().primaryKey(),
jobId: integer("job_id")
jobId: integer('job_id')
.notNull()
.references(() => jobs.id),
studentId: integer("student_id")
studentId: integer('student_id')
.notNull()
.references(() => students.id),
resumeId: integer("resume_id")
resumeId: integer('resume_id')
.notNull()
.references(() => resumes.id),
status: text().notNull().default("pending"),
status: text().notNull().default('pending'),
createdAt: timestamp().notNull().defaultNow(),
updatedAt: timestamp()
.defaultNow()
@@ -263,7 +263,7 @@ export const applicationsRelations = relations(applications, ({ one }) => ({
}),
}));
export const admins = pgTable("admins", {
export const admins = pgTable('admins', {
id: serial().primaryKey(),
email: text().notNull().unique(),
createdAt: timestamp().notNull().defaultNow(),