Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
endink committed Jun 21, 2024
1 parent c517d45 commit c592c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ object PostTable : SimpleLongIdTable("posts", "id") {
var title: Column<String> = varchar("name", 50)
var status = enumeration("status", TestEnum::class)
var description = varchar("desc", 255)

override val tableName: String
get() = super.tableName
}

object ShopTable : SimpleLongIdTable("my", "id") {
Expand Down
13 changes: 4 additions & 9 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,12 @@ dependencies {

```kotlin

public class Post {
public var title: String = ""

public var status: TestEnum = TestEnum.OK

public var description: String = ""

public var id: Long = 0L
object PostTable : SimpleLongIdTable("posts", "id") {
var title: Column<String> = varchar("name", 50)
var status = enumeration("status", TestEnum::class)
var description = varchar("desc", 255)
}


```
> **注意**: Table 是一个 `object` , 请勿使用 `class` .
Expand Down

0 comments on commit c592c86

Please sign in to comment.