blob: 8ad2ad5d9f72c91074824a57263e09787e7f7cf5 [file] [log] [blame]
vinayakb38b7ca42012-03-05 05:44:15 +00001drop dataverse events if exists;
2create dataverse events;
3use dataverse events;
4
5
6create 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*/
18create 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