genia.likes.science@gmail.com | c5f82a2 | 2013-05-08 02:44:35 -0700 | [diff] [blame] | 1 | var tinySocialCreate = ["drop dataverse TinySocial if exists;", |
| 2 | "create dataverse TinySocial;", |
| 3 | "use dataverse TinySocial;", |
| 4 | "create type TwitterUserType as open {", |
| 5 | "screen-name: string,", |
| 6 | "lang: string,", |
| 7 | "friends_count: int32,", |
| 8 | "statuses_count: int32,", |
| 9 | "name: string,", |
| 10 | "followers_count: int32", |
| 11 | "}", |
| 12 | "create type TweetMessageType as closed {", |
| 13 | "tweetid: string,", |
| 14 | "user: TwitterUserType,", |
| 15 | "sender-location: point?,", |
| 16 | "send-time: datetime,", |
| 17 | "referred-topics: {{ string }},", |
| 18 | "message-text: string", |
| 19 | "}", |
| 20 | "create type EmploymentType as open {", |
| 21 | "organization-name: string,", |
| 22 | "start-date: date,", |
| 23 | "end-date: date?", |
| 24 | "}", |
| 25 | "create type FacebookUserType as closed {", |
| 26 | "id: int32,", |
| 27 | "alias: string,", |
| 28 | "name: string,", |
| 29 | "user-since: datetime,", |
| 30 | "friend-ids: {{ int32 }},", |
| 31 | "employment: [EmploymentType]", |
| 32 | "}", |
| 33 | "create type FacebookMessageType as closed {", |
| 34 | "message-id: int32,", |
| 35 | "author-id: int32,", |
| 36 | "in-response-to: int32?,", |
| 37 | "sender-location: point?,", |
| 38 | "message: string", |
| 39 | "}"]; |