diff --git a/docs/开源社区平台与区块链平台对接方案.docx b/docs/开源社区平台与区块链平台对接方案.docx new file mode 100755 index 000000000..b44801e42 Binary files /dev/null and b/docs/开源社区平台与区块链平台对接方案.docx differ diff --git a/models/issue.go b/models/issue.go old mode 100644 new mode 100755 index d9f8e929c..6e766bdf1 --- a/models/issue.go +++ b/models/issue.go @@ -66,6 +66,10 @@ type Issue struct { // IsLocked limits commenting abilities to users on an issue // with write access IsLocked bool `xorm:"NOT NULL DEFAULT false"` + + //block_chain + Amount int + IsTransformed bool `xorm:"INDEX NOT NULL DEFAULT false"` } var ( diff --git a/models/user.go b/models/user.go index 2b1195179..709fc2fd2 100755 --- a/models/user.go +++ b/models/user.go @@ -174,8 +174,8 @@ type User struct { Token string `xorm:"VARCHAR(1024)"` //BlockChain - PublicKey string `xorm` - PrivateKey string `xorm` + PublicKey string `xorm:"INDEX"` + PrivateKey string `xorm:"INDEX"` } // SearchOrganizationsOptions options to filter organizations