@albertlast
my "home zone" of database is in pg env, there exists an own datatyp for ip address,
this allow me to save ipv4 and ipv6 in one field, so i can log stuff search for ip address ranges etc.
maybe you could add to the db model how you recommand this kind of data and how to interact with this