0
hello, I am trying to create a record in my database, I need to enter the information of a Mikrotik but I have to relate the table of the mikrotiks to a table of subnet, when I create the Mikrotik I need to tell which subnet it belongs to, I’m using prism 2 to make the records and queries in my database. my prism create is like this:
await prisma.mikrotik.create({
data: {
name: rebody.name,
ip: rebody.ip,
netmask: mask,
gatway: rebody.gatway,
password: rebody.password,
Subrede:"preciso inserir aqui qual subrede essa mikrotik pertence"
}
})
if anyone knows how I relate this record to an existing record in the subnet table, and can help me.