Download tasks/linkedin/environment/reference/clone/drizzle/0004_member_follows.sql from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/linkedin/environment/reference/clone/drizzle/0004_member_follows.sql
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/linkedin/environment/reference/clone/drizzle/0004_member_follows.sql
-
curl -L -o 0004_member_follows.sql https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/linkedin/environment/reference/clone/drizzle/0004_member_follows.sql
473 Bytes
| CREATE TABLE `follows` ( | |
| `user_id` text NOT NULL, | |
| `target_user_id` text NOT NULL, | |
| `created_at` integer DEFAULT (unixepoch()) NOT NULL, | |
| PRIMARY KEY(`user_id`, `target_user_id`), | |
| FOREIGN KEY (`user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade, | |
| FOREIGN KEY (`target_user_id`) REFERENCES `users`(`id`) ON UPDATE no action ON DELETE cascade | |
| ); | |
| --> statement-breakpoint | |
| CREATE INDEX `follows_target_idx` ON `follows` (`target_user_id`,`created_at`); | |