oSumAtrIX
01/30/2024, 3:36 PMobject AnnouncementsTable : IntIdTable() {
val author = varchar("author", 32).nullable()
val title = varchar("title", 64)
val content = text("content").nullable()
val channel = varchar("channel", 16).nullable()
val createdAt = datetime("createdAt")
val archivedAt = datetime("archivedAt").nullable()
val level = integer("level")
}
object AttachmentsTable : IntIdTable() {
val url = varchar("url", 256)
}
So I am trying to make a many to one relation between attachments and announcements. Each announcement can have multiple attachments, but I am not sure how to proceed here. The Exposed wiki is unclear to me here