feat: Implement batch item removal and pedido splitting for pedidos, and add document management for atas.
This commit is contained in:
@@ -7,7 +7,7 @@ export const atasTables = {
|
||||
dataInicio: v.optional(v.string()),
|
||||
dataFim: v.optional(v.string()),
|
||||
empresaId: v.id('empresas'),
|
||||
pdf: v.optional(v.string()), // storage ID
|
||||
pdf: v.optional(v.id('_storage')),
|
||||
numeroSei: v.string(),
|
||||
criadoPor: v.id('usuarios'),
|
||||
criadoEm: v.number(),
|
||||
@@ -22,5 +22,15 @@ export const atasTables = {
|
||||
objetoId: v.id('objetos')
|
||||
})
|
||||
.index('by_ataId', ['ataId'])
|
||||
.index('by_objetoId', ['objetoId'])
|
||||
.index('by_objetoId', ['objetoId']),
|
||||
|
||||
atasDocumentos: defineTable({
|
||||
ataId: v.id('atas'),
|
||||
nome: v.string(),
|
||||
storageId: v.id('_storage'),
|
||||
tipo: v.string(), // MIME type
|
||||
tamanho: v.number(), // bytes
|
||||
criadoPor: v.id('usuarios'),
|
||||
criadoEm: v.number()
|
||||
}).index('by_ataId', ['ataId'])
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user