UNPKG

create-better-t-stack

Version:

A modern CLI tool for scaffolding end-to-end type-safe TypeScript projects with best practices and customizable configurations

8 lines (6 loc) 280 B
import { mysqlTable, varchar, int, boolean } from "drizzle-orm/mysql-core"; export const todo = mysqlTable("todo", { id: int("id").primaryKey().autoincrement(), text: varchar("text", { length: 255 }).notNull(), completed: boolean("completed").default(false).notNull(), });