blob: 1660e4476e999fd49fc5df266fc1e47a687cbdcd [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse demo0927 if exists;
2
3create dataverse demo0927;
4
5use dataverse demo0927;
6
7create type CustomerType as closed {
8 cid: int32,
9 name: string,
10 age: int32?,
11 address: AddressType?,
12 lastorder: {
13 oid: int32,
14 total: float
15 }
16}
17
18create type AddressType as closed {
19 number: int32,
20 street: string,
21 city: string
22}
23
24create nodegroup group1 if not exists on nc1, nc2;
25
26create dataset Customers(CustomerType)
ramangrover29669d8f62013-02-11 06:03:32 +000027 primary key cid on group1;
vinayakb38b7ca42012-03-05 05:44:15 +000028
29drop dataset Customers;