zen: trial
This commit is contained in:
parent
64caeeb12d
commit
b62c7943e7
7 changed files with 1149 additions and 8 deletions
12
packages/console/core/src/schema/ip.sql.ts
Normal file
12
packages/console/core/src/schema/ip.sql.ts
Normal file
|
|
@ -0,0 +1,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] })],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue