Created
November 30, 2024 16:07
-
-
Save anitaa1990/551d3d321933dcbbba992409441fb60c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Entity | |
| data class Note( | |
| @PrimaryKey(autoGenerate = true) | |
| val id: Long = 0, | |
| val title: String, | |
| val description: String, | |
| val encrypt: Boolean = false, | |
| val password: String? = null, | |
| @ColumnInfo(name = "created_at") | |
| val createdAt: OffsetDateTime = OffsetDateTime.now(), | |
| @ColumnInfo(name = "modified_at") | |
| val modifiedAt: OffsetDateTime | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment