untitled

Pasted Nov 9, 2026, 3:17 AM1 file86 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/zzgs9ceejbs9vp4z
untitled
package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "productos")
data class ProductoEntity(
    @PrimaryKey
    val id: String,

    val nombre: String,

    val tipo: String = "Desinfectante",

    val fotoUri: String? = null,

    val activo: Boolean = true,

    val fechaCreacion: Long = System.currentTimeMillis()
)

package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "aromas")
data class AromaEntity(
    @PrimaryKey
    val id: String,

    val productoId: String,

    val nombre: String,

    val activo: Boolean = true,

    val fechaCreacion: Long = System.currentTimeMillis()
)


package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "presentaciones")
data class PresentacionEntity(
    @PrimaryKey
    val id: String,

    val aromaId: String,

    val nombre: String,

    val contenidoMl: Int,

    val precio: Double,

    val activo: Boolean = true,

    val fechaCreacion: Long = System.currentTimeMillis()
)



package com.negocio.desinfectantes.data

import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity(tableName = "inventario")
data class InventarioEntity(
    @PrimaryKey
    val id: String,

    val presentacionId: String,

    val sede: String,

    val cantidadDisponible: Int = 0,

    val cantidadReservada: Int = 0,

    val fechaActualizacion: Long = System.currentTimeMillis()
)

1,535 chars · codepastes.com