Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. $schema['hello_user_statistics'] = [
  2. 'description' => 'Stores user connection statistics.',
  3. 'fields' => [
  4. 'id' => [
  5. 'type' => 'serial',
  6. 'description' => 'Primary Key: Unique history ID.',
  7. 'unsigned' => TRUE,
  8. 'not null' => TRUE,
  9. ],
  10. 'time' => [
  11. 'type' => 'int',
  12. 'description' => 'Timestamp of user action.',
  13. 'unsigned' => TRUE,
  14. 'not null' => TRUE,
  15. ],
  16. 'uid' => [
  17. 'type' => 'int',
  18. 'description' => 'Store user action.',
  19. 'unsigned' => TRUE,
  20. 'not null' => TRUE,
  21. ],
  22. ],
  23. 'primary key' => ['id'],
  24. ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement