base mysql db added

This commit is contained in:
2026-02-07 14:02:03 -05:00
parent ee9c26265d
commit ccf61afb73
5 changed files with 856 additions and 3 deletions

9
src/db/schema.ts Normal file
View File

@@ -0,0 +1,9 @@
// src/db/schema.ts
import { mysqlTable, serial, varchar, int } from 'drizzle-orm/mysql-core';
export const users = mysqlTable('users', {
id: serial('id').notNull().primaryKey(),
name: varchar('name', { length: 255 }).notNull(),
age: int('age').notNull(),
email: varchar('email', { length: 255 }).notNull(),
});