Questions tagged as 'modelo-relacional'

1
answer

Laravel - Search if there is a relationship in the many-to-many table

I need to search for users based on some filter attributes. I have the contacts table: id | nome | email 1 | asd | [email protected] 2 |teste | [email protected] The groups table: id | grupo 1 | grupo1 2 | grupo2 And the table c...
asked by 10.05.2016 / 22:24
1
answer

How to add values from a column in Ruby / RoR

Beauty? I'm trying to build an application in Rails. I have a feature where users report the runtime related to a category . Well, I need to add up the total time in the runtime column to be able to show to a particular user: "You've al...
asked by 08.04.2014 / 01:06
0
answers

Method to calculate development time of entity-relationship diagram [closed]

Is there any method to calculate the delivery time of the DER diagram? Objective: to provide the client with a time estimate to complete the DER diagram of a software development project with 114 tables (in this model there are two junior analys...
asked by 20.03.2018 / 21:03
2
answers

Database Modeling

Good morning! I have the following problem in user, form, and group relationships. In the way that the relationship was modeled (CONTEM) it will become a table where you will have the user, form and group keys.WHAT IF YOU DO NOT HAVE THE FORM...
asked by 29.11.2017 / 18:07
1
answer

Example and illustration about redundant relationships (MER)

Context Consider the sentence below:    It is stated:            Relationships that are a result of combining other relationships between the same entities are called: redundant relationships    Doubt Would it be possible to imag...
asked by 30.10.2017 / 22:36
0
answers

Evolution of the code-controlled data model

In a scenario in which the application is deployed to production through a pipe line executed by an IC server, where the server performs the following tasks: Installs the front end and back end dependencies. Performs other tasks defined in t...
asked by 06.10.2016 / 19:46
1
answer

Different objects of type Model mapped from a single table

Is it possible to map different Model objects with ActiveRecord in a Ruby on Rails project from a single database table? Assuming I have in the database a table named clients that will be populated by clients of the physical type and le...
asked by 16.07.2016 / 03:31
0
answers

Product Stock Control Model? [closed]

I am creating a system and in it I will create a control of inventory of products, where I will have to manage the entry and exit of products and verify the quantity of products in each transaction of entry and exit. I would like an opinion on t...
asked by 24.03.2016 / 07:38
1
answer

Create just too much relationship for many in Ruby

I have a very close relationship with the entities yell and category: model yell.rb class Yell < ActiveRecord::Base belongs_to :user, inverse_of: :yells has_and_belongs_to_many :categories def as_json(options={}) super(:only =...
asked by 27.01.2016 / 13:27
0
answers

Vertabelo - Warning: Reference Name seems to be invalid

I'm using the vertabelo because I need to share my program with others, however when I brought my work to him. It appears the following warnings, does anyone know what it is? link: link The problem is in the comments, the idea is as foll...
asked by 02.06.2015 / 07:14