Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs733tmngrhw8auntitledPlain Text
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