How to implement interface for table?

Say I have an interface of User

interface User {
  id: string,
  name: string,
  age: number
}

and this is how I declare my schema
export const user = pgTable("user", {
  id: serial("id"),
  name: text("name"),
  age: integer("age"
});

How do I make sure that the user table implement the User interface that I have declared?
Was this page helpful?