Merge pull request #8 from josedario87/feat/shared-prisma-schema

Refactor: Centralize Prisma schema and restrict DB access
This commit is contained in:
josedario87
2025-05-30 17:40:31 -06:00
committed by GitHub
26 changed files with 381 additions and 243 deletions

View File

@@ -43,20 +43,7 @@
<script setup lang="ts">
import { PropType } from 'vue'
import { useRouter } from 'vue-router'
// Define the structure of the employee object based on the Prisma schema
interface Employee {
id: string | number // Changed from BigInt to string | number for easier handling in frontend
name: string
cedula: number // Changed from BigInt
avatar_url?: string
telefono?: string
ubicacion: string
idciat?: string
grupo_estudio?: string
// created_at and updated_at are usually not displayed directly in a summary card
// empleado: boolean // This is implicit as it's an employee card
}
import type { Employee } from '@empresa/prisma-schema'
const props = defineProps({
employee: {