Scan to open on your phone
Point a camera at the QR code - it opens this exact paste, no app needed.
https://codepastes.com/zzgs9ccb25bvkx5vuntitledPlain Text
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "producciones")
data class ProduccionEntity(
@PrimaryKey
val id: String,
val presentacionId: String,
val cantidadProducida: Int,
val fechaCreacion: Long = System.currentTimeMillis()
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "distribuciones_produccion")
data class DistribucionProduccionEntity(
@PrimaryKey
val id: String,
val produccionId: String,
val sede: String,
val cantidad: Int,
val fechaCreacion: Long = System.currentTimeMillis()
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "movimientos_inventario")
data class MovimientoInventarioEntity(
@PrimaryKey
val id: String,
val presentacionId: String,
val sede: String,
val tipoMovimiento: String,
val cantidad: Int,
val referenciaId: String? = null,
val observacion: String? = null,
val fechaCreacion: Long = System.currentTimeMillis()
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "clientes")
data class ClienteEntity(
@PrimaryKey
val id: String,
val nombre: String,
val telefono: String? = null,
val direccion: String? = null,
val observaciones: 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 = "ventas")
data class VentaEntity(
@PrimaryKey
val id: String,
val clienteId: String,
val sede: String,
val tipoVenta: String,
val estadoEntrega: String,
val total: Double,
val fechaCreacion: Long = System.currentTimeMillis()
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "detalles_venta")
data class DetalleVentaEntity(
@PrimaryKey
val id: String,
val ventaId: String,
val presentacionId: String,
val cantidad: Int,
val precioUnitario: Double,
val subtotal: Double
)
package com.negocio.desinfectantes.data
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "pagos_venta")
data class PagoVentaEntity(
@PrimaryKey
val id: String,
val ventaId: String,
val monto: Double,
val metodoPago: String,
val observacion: String? = null,
val fechaCreacion: Long = System.currentTimeMillis()
)
2,691 chars · codepastes.com