forked from rohit/spurrin-backend
8 lines
278 B
Plaintext
8 lines
278 B
Plaintext
CREATE TABLE IF NOT EXISTS document_views (
|
|
id INT NOT NULL AUTO_INCREMENT,
|
|
document_id INT NOT NULL,
|
|
user_id INT NOT NULL,
|
|
user_role ENUM('Superadmin', 'Admin', 'Viewer', 'Spurrinadmin', 'AppUser') NOT NULL,
|
|
viewed_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
|
);
|