Skip to content
This repository was archived by the owner on May 10, 2025. It is now read-only.

Database proposal

Pavel Bennett edited this page Aug 1, 2015 · 1 revision

Use an embedded database that supports foreign keys and transactions, such as sqlite.

Table definitions

users

  • user_id: string
  • private_key: string
  • parent_user_id: nullable

files

  • file_name: string, unique constraint
  • content_type: string
  • user_id: string, foreign key to users.user_id
  • upload_time: timestamp
  • data: blob

Clone this wiki locally