Define a unique id type
import { Model } from 'pinia-orm'class User extends Model { static entity = 'users' static fields () { return { id: this.uid() } }}
import { Model } from 'pinia-orm'import { Uid } from 'pinia-orm/dist/decorators'class User extends Model { static entity = 'users' @Uid() declare id: string}
function uid(): Uid