Till Westmann | 0f6ee0a | 2015-10-02 17:10:19 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 20 | drop dataverse events if exists; |
| 21 | create dataverse events; |
| 22 | use dataverse events; |
| 23 | |
| 24 | |
| 25 | create type AddressType as closed { |
| 26 | /*+ val-files data/events/streets.txt */ |
| 27 | street: string, |
| 28 | /*+ val-files data/events/cities.txt */ |
| 29 | city: string, |
| 30 | /*+ interval long 100000 999999 */ |
| 31 | zip: string, |
| 32 | /*+ val-file-same-idx data/events/latlongs.txt city */ |
| 33 | latlong: point |
| 34 | } |
| 35 | |
| 36 | /*+ dgen user.adm 3*/ |
| 37 | create type UserType as open /*+ gen-fields int 0 10 field */ { |
| 38 | /*+ val-files data/uscensus/dist.all.first.cleaned data/uscensus/dist.all.last.cleaned */ |
| 39 | name: string, |
| 40 | /*+ insert-rand-int user @example.com */ |
| 41 | email: string, |
| 42 | /*+ list-val-file data/events/interests.txt 0 7 */ |
| 43 | interests: {{string}}, |
| 44 | address: AddressType, |
| 45 | /*+ list 1 10 */ |
| 46 | member_of: {{ |
| 47 | /*+ gen-fields int 0 2 other */ |
| 48 | { |
| 49 | /*+ interval int 100000 999999 */ |
| 50 | sig_id: int32, |
| 51 | /*+ val-files data/events/chapter_names.txt */ |
| 52 | chapter_name: string, |
| 53 | /*+ date-between-years 1970 1998 */ |
| 54 | member_since: date |
| 55 | } |
| 56 | }} |
| 57 | } |
| 58 | |