forked from jriou/coller
fix: convert id to int64
Snowflake identifiers are integers, not strings. BREAKING CHANGE: notes that are not using snowflake identifiers will not be compatible anymore. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
b5701b5a4d
commit
1fcde736a8
6 changed files with 9 additions and 9 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
type Note struct {
|
||||
ID string `json:"id" gorm:"primaryKey"`
|
||||
ID int64 `json:"id" gorm:"primaryKey"`
|
||||
Content []byte `json:"content" gorm:"not null"`
|
||||
Encrypted bool `json:"encrypted"`
|
||||
PasswordHash []byte `json:"password_hash"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue