base mysql db added
This commit is contained in:
9
src/db/schema.ts
Normal file
9
src/db/schema.ts
Normal 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(),
|
||||
});
|
||||
Reference in New Issue
Block a user