Skip to content

Instantly share code, notes, and snippets.

@hakimkal
Last active November 6, 2021 20:00
Show Gist options
  • Select an option

  • Save hakimkal/f49c35046de58a32d630d66790b9bc68 to your computer and use it in GitHub Desktop.

Select an option

Save hakimkal/f49c35046de58a32d630d66790b9bc68 to your computer and use it in GitHub Desktop.
Database schema
package com.lepltd.db
package postgres
import java.util.UUID
import akka.http.scaladsl.model.DateTime
object Tables {
case class MerchantProfile(
id: UUID,
name: String,
email: String,
secret: String,
is_active: Boolean = false,
createdAt: DateTime,
updatedAt: DateTime)
case class MerchantWallet(
id: UUID,
merchantProfileId: UUID,
previousBalance: String,
currentBalance: String,
createdAt: DateTime)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment