feat: Implement Ata de Registro de Preços management and linking to objetos and pedidos
This commit is contained in:
@@ -15,5 +15,12 @@ export const atasTables = {
|
||||
})
|
||||
.index('by_numero', ['numero'])
|
||||
.index('by_empresaId', ['empresaId'])
|
||||
.index('by_numeroSei', ['numeroSei'])
|
||||
.index('by_numeroSei', ['numeroSei']),
|
||||
|
||||
atasObjetos: defineTable({
|
||||
ataId: v.id('atas'),
|
||||
objetoId: v.id('objetos')
|
||||
})
|
||||
.index('by_ataId', ['ataId'])
|
||||
.index('by_objetoId', ['objetoId'])
|
||||
};
|
||||
|
||||
@@ -24,6 +24,7 @@ export const pedidosTables = {
|
||||
objetoItems: defineTable({
|
||||
pedidoId: v.id('pedidos'),
|
||||
objetoId: v.id('objetos'), // was produtoId
|
||||
ataId: v.optional(v.id('atas')),
|
||||
acaoId: v.optional(v.id('acoes')), // Moved from pedidos
|
||||
modalidade: v.union(
|
||||
v.literal('dispensa'),
|
||||
|
||||
Reference in New Issue
Block a user