Nueva bdd y entidades generales

This commit is contained in:
2026-01-14 17:30:55 +01:00
parent 42cef3f9ba
commit 20482915de
9 changed files with 157 additions and 32 deletions

View File

@@ -0,0 +1,20 @@
import { User } from "./User"
export type SimCard = {
iccid: string,
imei: string,
/* Pedido de shopify */
orderdId?: string, // Pasar a tipo
/* Subscripcion de shopify */
subscriptionId?: string, // Pasar a tipo
user?: User
createdAt?: Date,
updatedAt?: Date,
codigoOrigen?: string,
}

View File

@@ -36,4 +36,14 @@ export namespace SimEvents {
options: {
}
}
export type save = DomainEvent & {
key: "sim.save",
payload: {
iccid: string,
imei: string
},
options: {
}
}
}

View File

View File

@@ -0,0 +1,6 @@
export type User = {
userId: string,
userName?: string,
email?: string,
tlfn?: string,
}