Spaces:
Runtime error
Runtime error
Download create_db.sql from mbarnig/Multiple-Choice-Poll: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/spaces/mbarnig/Multiple-Choice-Poll/resolve/main/create_db.sql
- Command line
-
hf download hf://spaces/mbarnig/Multiple-Choice-Poll/create_db.sql
-
curl -L -o create_db.sql https://huggingface.co/spaces/mbarnig/Multiple-Choice-Poll/resolve/main/create_db.sql
547 Bytes
| CREATE TABLE IF NOT EXISTS poll_response ( | |
| id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, | |
| poll_type VARCHAR(32) NOT NULL, | |
| session_uuid CHAR(36) NOT NULL, | |
| item_index INT NOT NULL, | |
| item_file VARCHAR(255) NOT NULL, | |
| choice VARCHAR(64) NOT NULL, | |
| user_agent VARCHAR(255) DEFAULT NULL, | |
| ip_hash CHAR(64) DEFAULT NULL, | |
| created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
| PRIMARY KEY (id), | |
| KEY idx_poll_item (poll_type, item_index), | |
| KEY idx_created (created_at) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; | |