Create table relationships using Sequelize. -- 2
Budget: $10 – $30 USD
Hi there, I have created some models using Sequelize. I need to associate them in relationships for example I have a company table that has a 1 to 1 relationship with the persons table. Meaning 1 person can represent one and only one company.
These are the columns in the tables.
Company(table)
Id (pk auto increment)
companyid
companyName
companyBusiness
Persons(table)
id (pk auto increment)
name
lastname
email
telephone
country
ciudad
CompanyName
I wish for the relationship to be on the company name.
These are the columns in the tables.
Company(table)
Id (pk auto increment)
companyid
companyName
companyBusiness
Persons(table)
id (pk auto increment)
name
lastname
telephone
country
ciudad
CompanyName
I wish for the relationship to be on the company name.