-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathModels.kt
More file actions
40 lines (33 loc) · 820 Bytes
/
Models.kt
File metadata and controls
40 lines (33 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.28.0
package com.example.ondeck.mysql
import java.sql.Timestamp
import java.time.Instant
enum class VenueStatus(val value: String) {
OPEN("open"),
CLOSED("closed");
companion object {
private val map = VenueStatus.values().associateBy(VenueStatus::value)
fun lookup(value: String) = map[value]
}
}
data class City (
val slug: String,
val name: String
)
// Venues are places where muisc happens
data class Venue (
val id: Long,
// Venues can be either open or closed
val status: VenueStatus,
val statuses: String?,
// This value appears in public URLs
val slug: String,
val name: String,
val city: String,
val spotifyPlaylist: String,
val songkickId: String?,
val tags: String?,
val createdAt: Instant
)