I am writing a Golang application in which taking input from a user for an IP/hostname results into the below output. Now as a requirement I want to store all ports for a host in a MySQL Db and return it from the tables along with the history whenever it's requested. What's the best way to structure this data in DB for ease of retrieval? Considering efficient design practices
Starting Nmap 7.91 ( https://nmap.org ) at 2021-01-21 18:50 Eastern Standard Time
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00090s latency).
Other addresses for localhost (not scanned): ::1
Not shown: 997 closed ports
PORT STATE SERVICE
135/tcp open msrpc
137/tcp filtered netbios-ns
445/tcp open microsoft-ds