github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/design/0-inv/20220414-slack-wdocs/air-structured-syntax.md (about) 1 # Workspaces 2 3 ```javascript 4 class Channel extends sys.Workspace { 5 6 // WDoc 7 bills1: []pbill 8 bills2: []pbill 9 10 // CDoc 11 articles: []article 12 currencies: []currency 13 } 14 15 ``` 16 17 18 # Structs 19 20 ```javascript 21 22 struct WDoc{} 23 24 @DenyReference(WDoc) 25 struct CDoc{} 26 27 28 class currency extends CDoc{ 29 // bill_id: Ref<pbill> // validation error since CDoc may not refer WDoc 30 } 31 32 ```