migrations_v3.sql 522 B

123456789101112131415
  1. -- Migration v3: create 'cpr_preregistration' table for CPR pre-registration form
  2. PRAGMA foreign_keys=ON;
  3. CREATE TABLE IF NOT EXISTS cpr_preregistration (
  4. cpr_id INTEGER PRIMARY KEY AUTOINCREMENT,
  5. name TEXT NOT NULL,
  6. contact_number TEXT NOT NULL,
  7. email TEXT NOT NULL,
  8. product_type TEXT NOT NULL,
  9. internal_control_number TEXT NOT NULL,
  10. product_quantity INTEGER NOT NULL,
  11. property_name TEXT NOT NULL,
  12. property_location TEXT NOT NULL,
  13. created_at DATETIME DEFAULT CURRENT_TIMESTAMP
  14. );