vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame^] | 1 | drop dataverse events if exists; |
| 2 | create dataverse events; |
| 3 | use dataverse events; |
| 4 | |
| 5 | |
| 6 | create type AddressType as closed { |
| 7 | /*+ val-files data/events/streets.txt */ |
| 8 | street: string, |
| 9 | /*+ val-files data/events/cities.txt */ |
| 10 | city: string, |
| 11 | /*+ interval long 100000 999999 */ |
| 12 | zip: string, |
| 13 | /*+ val-file-same-idx data/events/latlongs.txt city */ |
| 14 | latlong: point |
| 15 | } |
| 16 | |
| 17 | /*+ dgen user.adm 3*/ |
| 18 | create type UserType as open /*+ gen-fields int 0 10 field */ { |
| 19 | /*+ val-files data/uscensus/dist.all.first.cleaned data/uscensus/dist.all.last.cleaned */ |
| 20 | name: string, |
| 21 | /*+ insert-rand-int user @example.com */ |
| 22 | email: string, |
| 23 | /*+ list-val-file data/events/interests.txt 0 7 */ |
| 24 | interests: {{string}}, |
| 25 | address: AddressType, |
| 26 | /*+ list 1 10 */ |
| 27 | member_of: {{ |
| 28 | /*+ gen-fields int 0 2 other */ |
| 29 | { |
| 30 | /*+ interval int 100000 999999 */ |
| 31 | sig_id: int32, |
| 32 | /*+ val-files data/events/chapter_names.txt */ |
| 33 | chapter_name: string, |
| 34 | /*+ date-between-years 1970 1998 */ |
| 35 | member_since: date |
| 36 | } |
| 37 | }} |
| 38 | } |
| 39 | |