type Person = User DESELECT password type Invoice = Customer JOIN Inv
type Person = Omit<User, 'password'> type Invoice = Customer & { invoice: Inv } // or type Invoice = Inv & { customer: Customer }