10. モデル定義
namespace org.handson
//モノ
asset yourCourse identified by your_courseId {
o String your_courseId
--> Customer owner
o String name
o String Date
o Double point
}
//人
participant Customer identified by customerId {
o String customerId
o String firstName
o String lastName
}
//トランザクション
transaction PointUpdate {
--> yourCourse from
o String Date
o Double point
}
種別 名称 データ項目名
asset yourCourse name
your_courseId
Date
point
participant Customer customerId
lastName
firstName
Transaction PointUpdate from
Date
point
2019/1/26 Kohei Nishikawa 10
https://bitbucket.org/kolinzlabs/handson-
material/src/master/tokaiuniv/blockchain1/models/model.cto
このURLにアクセス
してコピーしてもOK