text: CREATE TABLE `notes` (
    `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    `created` TIMESTAMP NOT NULL DEFAULT (strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime')),
    `updated` TIMESTAMP NOT NULL DEFAULT (strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime')),
    `note_title` VARCHAR(255),
    `note` TEXT,
    `note_markdown` TEXT,
    `tags` VARCHAR(200),
    `user_id` INTEGER,
    FOREIGN KEY(user_id) REFERENCES users(id)
  );
  
  CREATE TRIGGER `triggerDate` AFTER UPDATE ON `notes`
  BEGIN
     update `notes` SET `updated` = (strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime')) WHERE id = NEW.id;
  END;
  
  CREATE TABLE `users` (
    `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    `registered_at` TIMESTAMP NOT NULL DEFAULT (strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime')),
    `last_login` TIMESTAMP NOT NULL DEFAULT (strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime')),
    `username` VARCHAR(255),
    `password` VARCHAR(200),
    `email` VARCHAR(200),
    `numero` INTEGER,
    `nombre` VARCHAR(200),
    `apellido` VARCHAR(200),
    `direccion` VARCHAR(200),
    `ciudad` VARCHAR(200),
    `barrio` VARCHAR(200)
  );
  
  CREATE TRIGGER `triggerUserLogin` AFTER UPDATE ON `users`
  BEGIN
     update `users` SET `last_login` = (strftime('%Y-%m-%d %H:%M:%S', 'now', 'localtime')) WHERE id = NEW.id;
  END;
  
  CREATE TABLE `tags` (
    `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    `tag` TEXT,
    `user_id` INTEGER,
    FOREIGN KEY(user_id) REFERENCES users(id)
  );
  