I am creating a contract between two users and structuring my database as stated bellow. The problem is that I am having issues creating the contract with both users user_id:true
. I am not sure if I am taking the right approach. I am following the firebase documentation and structuring the contract as recommended.
my-firebase
|
-contracts
|- contract-id
|- user_id: true
|- user_id: true
|- amount: 1000
|- isactive: true
|- started: 148314234733
I am creating the contract:
var contractDetails = {
this.contractor:true,
this.freelancer:true,
amount: 1000,
isactive: true,
started: 'eee'
};