untitled

Pasted Nov 15, 2026, 7:03 PM1 file64 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/zzgs4cvjhwt8941r
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 fotoUri: String? = null,

    val activo: Boolean = true,

    val fechaCreacion: Long = System.currentTimeMillis()
)

1,168 chars · codepastes.com