Skip to content

Instantly share code, notes, and snippets.

@renaudmathieu
Created July 5, 2021 15:17
Show Gist options
  • Save renaudmathieu/08d453ecefa984d0f6b5690dd7a58196 to your computer and use it in GitHub Desktop.
Save renaudmathieu/08d453ecefa984d0f6b5690dd7a58196 to your computer and use it in GitHub Desktop.
ktor_part3_TodoTable
// Define a table
object TodoTable: UUIDTable(name = "todo", columnName = "uid") {
val subject: Column<String> = text(name = "subject")
val done: Column<Boolean> = bool(name = "done")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment