/
modelos
49 lines (36 loc) · 975 Bytes
/
modelos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
que hace: metodo: nombre de funcion: rutas
listar facturas: get : getInvoces() : api/invoces
crear factura: post : createInvoce(): api/invoces
actualizar factura: put : updateInvoce(): api/invoces/:id
eliminar factura: delete : deleteInvoce(): api/invoces/:id
mostar factura: get : getInvoceById(): api/invoces/:id
crear cliente: post : createClient(): api/clients
listar clientes: get : getClients(): api/clients
crear producto: post : createProduct(): api/products
listar productos: get : getProducts(): api/products
clases
cliente: id:int, nombre:str, rnc:str
articulo: id:int, codigo:str, nombre:str, precio:float, cantidad:int
factura: id:int, fecha:Date, descripcion:str, clienteId:int, detalle:array[detalle]
*detalle: id:int, articulo:articulo, facturaId:int, cantidad:int, precio:float
entidades
articulo:
id
codigo
nombre
precio
cantidad
cliente:
id
nombre
rnc
factura:
id
fecha
descripcion
cliente_Id
detalle:
articulo_id
factura_id
cantidad
precio