You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
533 B

import { dbGlobal } from "drizzle-pkg/lib/db"
import { usersTable } from "drizzle-pkg/lib/schema/auth"
export default defineWrappedResponseHandler(async (event) => {
await dbGlobal.insert(usersTable).values({
id: 1,
username: "test",
password: "test",
email: "test@test.com",
nickname: "test",
avatar: "test",
tel: "test",
role: "user",
})
return R.success({
hello: "aa",
users: [
{
id: 1,
name: "aaa",
email: "aaa",
age: 23,
}
]
})
})