I have a table that maps a production line. Home
The fields are:
Product: Output product of the machine. Home
ParentProduct: Input product. Home
Machine: Machine code. Home
I'm using CTE's to get the data recursively.
This works when the Produc...
Good evening, could anyone give an explanation of the difference of a dotted and continuous relationship in MYSQL Workbench? Is the following activity correct?
Ready activity:
Activitystatement:
I'm trying to list an association table, in my case it's the class table, which associates officials (teachers) and students.
I gave a good researched before posting this question but I could not solve the problem.
Role model
<?ph...
I am developing an application that uses Asp.Net MVC Identity, I have isolated the Identity part in the CrossCutting layer, and created a layer called Data where I have the Entity Framework where I am mapping other tables that I will use in the (...
I have a polymorphic m-m relationship in my bank where:
class (id, name)
student (id, name)
lesson (id, name)
classable (class_id, classable_id, classable_type)
A class has several students and several lessons.
a s...
Well, I need some urgent help!
I have the following situation:
Tables:
saidas
id
...
saidas_produto
id_saida
id_entrada_produto
entradas_produtos
id
id_entrada
id_produto
...
entradas
id
...
My warehouse...
I have a form and I include a médicos table, and in this table there is a enum field where you can choose the cooperativa option, but I have to check in another cooperativa table if this doctor has a cooperativa...
I'm having a bit of trouble drawing my relational database model.
The idea follows the following principle:
You would have a login system, and for this a table user
There would also be 3 types of people who would log in to the prod...
I'm following the Laravel documentation to make this relationship with the id's type.
In the methods of the relationship I specified the pivot table and the IDS fields, however I was debugging the tinker to see if it was really working and it re...
Call to undefined method Illuminate \ Database \ Query \ Builder :: BeltTo ()
My Models
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Imovel extends Model
{
//definindo nome da tabela na migra...