@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 12 lines 512 Bytes
Raw
1 import { defineRelations } from "drizzle-orm";
2 import { bigint, mysqlTable, varchar } from "drizzle-orm/mysql-core";
3
4 // Mirrors migrations/0001_create_widgets.sql, which the branch applies on
5 // deploy via `migrationsDir`.
6 export const Widgets = mysqlTable("alchemy_mysql_widgets", {
7 id: bigint("id", { mode: "number" }).primaryKey(),
8 name: varchar("name", { length: 255 }).notNull(),
9 });
10 export type Widget = typeof Widgets.$inferSelect;
11
12 export const relations = defineRelations({ Widgets }, () => ({}));