-
Notifications
You must be signed in to change notification settings - Fork 4
Sequelize models for relationships #28
Comments
@Gillian0023 - From group1. We are working on hosting our server on the Azure cloud. |
Well, depends what you want to create :D If it's a seperate entity, then please create a seperate .js file for it. If it's just a relation between two entities that already exist, you can either just add it to the buildRelations.js file or create your own group4Relations.js file (which might be a good idea such that the other file does not get too big). |
@MusicConnectionMachine/group-3 |
@Gillian0023 yes, you will need to write your own models. If you talk to group 3 you can both use the same structure, which will be nice for the vis groups. Please assign someone that will do the work or I will have to 😬 |
We can create a following relationship table; |
That looks great!!!
May be we can structure it like: Relationship_Table ( Id, Subject_Id, _Object_Id, Relationship_Type_Id, Relationship_Occurrence, Relationship_Quality) What do you think ? |
@ansjin thanks, really important points Relationship_Table ( Id, Subject_Id, _Object_Id, Relationship_Type_Id, Relationship_Occurrence, Relationship_Quality) |
@Gillian0023 Yes, I agree with you. Only one thing we missed in the Relationship_Table is the URL_Id, which will reference to the URL's table. So Now the table will look something like this : Relationship_Table ( Id, Subject_Id, _Object_Id, Relationship_Type_Id, Relationship_Occurrence, Relationship_Quality, URL_Id) Rest everything looks great!!! |
Ok, group2 has created the tables #26, we can set our attibute name to page_id |
@Gillian0023 yeah Correct! |
|
Can we start implementing this? Who will do it? Maybe we should do it together? |
@ansjin doubt 1: I think we're supposed to keep also relations where subject/object are not already defined and they probably make up the biggest part of all relations. As I understand from #33 they want to build something like that now and the relations for unknown subjects/objects could be used there. But since we have no IDs for them maybe we can save them in a different table just as text. |
@FelsyWaschbaer yeah true!!! As far as I remember @vviro also mentioned that we should dump our complete data in database . So i think probably we either need to append in the already existing subject and object table or we have to create new ones! |
awesome work @Gillian0023 |
Group4 is here, Can anyone from group1 and group2 answer our following questions?Thanks
1.Do we need to create our separate sequelize models in the model folder? or we can create our model directly in the buildRelation.js file.
2.How can we get access to the database? Are the attributes' names defined in the sequelize models same as the ones in database?
@MusicConnectionMachine/group-1 @MusicConnectionMachine/group-2
The text was updated successfully, but these errors were encountered: