erDiagram
CLIENTE {
int id PK
string nombre
string email
date created_at
}
PEDIDO {
int id PK
int cliente_id FK
decimal total
date fecha
}
CLIENTE ||--o{ PEDIDO : "cliente_id"
La sincronización genera automáticamente:
// Relaciones:
obras ||--o{ facturas : "obra_id"
clientes ||--o{ obras : "cliente_id"
||--|| : Uno a uno||--o{ : Uno a muchos}|--|| : Muchos a uno}|--|{ : Muchos a muchosint : integer, bigint, smallint, serialstring : varchar, text, char, characterdecimal : decimal, numericfloat : real, double precisionboolean : boolean, booltimestamp : timestamp, datetimedate : datetime : timejson : json, jsonbPK : Primary Key (implica NOT NULL)FK : Foreign KeyUK : Unique Key"NOT NULL" : Campo obligatorio
💬 Gestión de Comentarios
Agregar Comentario a Tabla:
Comentarios Existentes: