Skip to content

Instantly share code, notes, and snippets.

@yreynhout
Last active April 17, 2020 14:32
Show Gist options
  • Save yreynhout/5d2faf478909fbd8e366396dfdde05b4 to your computer and use it in GitHub Desktop.
Save yreynhout/5d2faf478909fbd8e366396dfdde05b4 to your computer and use it in GitHub Desktop.
open System
type GuestBookedAppointment = {
AppointmentId : Guid;
GuestId : Guid;
AppointmentDateAndTime : DateTime;
FeelGoodPackageId : Guid;
SubsidiaryId : Guid
}
type GuestRescheduledAppointment = {
AppointmentId : Guid;
GuestId : Guid;
AppointmentDateAndTime : DateTime;
FeelGoodPackageId : Guid;
SubsidiaryId : Guid
}
type GuestSwappedAppointmentFeelGoodPackage = {
AppointmentId : Guid;
GuestId : Guid;
FeelGoodPackageId : Guid;
SubsidiaryId : Guid
}
type GuestCancelledAppointment = {
AppointmentId : Guid;
GuestId : Guid;
Reason : string;
SubsidiaryId : Guid
}
type SubsidiaryCancelledAppointment = {
AppointmentId : Guid;
GuestId : Guid;
Reason : string;
SubsidiaryId : Guid
}
open System
type GuestRegistered = {
GuestId : Guid;
FullName : string;
DateOfRegistration: DateTime;
}

Postgres

  • IP Address: 95.85.5.87
  • Username: postgres
  • Password: postgres

Redis

  • IP Address: 95.85.5.87
  • Port: 6379

Elastic Search

  • IP Address: 95.85.5.87
  • Port: 9200

Event Store

  • IP Address: 95.85.5.87
  • TcpPort: 1113
  • HttpPort: 2113
  • User: socratesbe
  • Password: s0cr@t3s

You Can't Touch This

Event Store Administration

http://95.85.5.87:2113/

  • User: admin
  • Password: w0rksh0p
open System
type GuestStartedShopping = {
SubsidiaryId : Guid;
FeelGoodCartId : Guid;
GuestId : Guid;
StartDateAndTime : DateTime;
}
type ItemWasAddedToCart = {
FeelGoodCartId : Guid;
ItemId : Guid;
}
type ItemWasRemovedFromCart = {
FeelGoodCartId : Guid;
ItemId : Guid;
}
type GuestCheckedOutCart = {
FeelGoodPackageId : Guid;
FeelGoodCartId : Guid;
GuestId : Guid;
Items : Guid array
}
type GuestAbandonedCart = {
FeelGoodCartId : Guid;
GuestId : Guid;
LastSeenDateAndTime : DateTime;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment