blob: be5fb7fa2dabf1b91f7e1525ec0fa6be4e94916a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
import { mysqlTable, int, primaryKey, varchar } from "drizzle-orm/mysql-core"
import { timestamps } from "../drizzle/types"
export const IpTable = mysqlTable(
"ip",
{
ip: varchar("ip", { length: 45 }).notNull(),
...timestamps,
usage: int("usage"),
},
(table) => [primaryKey({ columns: [table.ip] })],
)
|