feat: Introduce structured table definitions in convex/tables for various entities and remove the todos example table.
This commit is contained in:
11
packages/backend/convex/tables/cursos.ts
Normal file
11
packages/backend/convex/tables/cursos.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { defineTable } from 'convex/server';
|
||||
import { v } from 'convex/values';
|
||||
|
||||
export const cursosTables = {
|
||||
cursos: defineTable({
|
||||
funcionarioId: v.id('funcionarios'),
|
||||
descricao: v.string(),
|
||||
data: v.string(),
|
||||
certificadoId: v.optional(v.id('_storage'))
|
||||
}).index('by_funcionario', ['funcionarioId'])
|
||||
};
|
||||
Reference in New Issue
Block a user