NoPaste.me

Secure and Anonymous

Login

  • Only for Administration!
Time 26.01.2012 - 14:37
Code Language SQL
This paste is private Private
Show Options
  1. CREATE TABLE IF NOT EXISTS `friendships` (
  2. `id` INT NOT NULL AUTO_INCREMENT,
  3. `user1` INT NOT NULL DEFAULT 0,
  4. `user2` INT NOT NULL DEFAULT 0,
  5. `active` int NOT NULL DEFAULT 0,
  6. `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  7. PRIMARY KEY ( `id` )
  8. );
  9.  
  10. CREATE TABLE IF NOT EXISTS `log` (
  11. `id` INT NOT NULL AUTO_INCREMENT,
  12. `user` INT NOT NULL DEFAULT 0,
  13. `activity` int NOT NULL DEFAULT 0, /* 1 = Freundschaft; 2 = Freundschaft beendet; 3 = Aktivität */
  14. `arguments` TEXT NOT NULL DEFAULT '',
  15. `created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  16. PRIMARY KEY ( `id` )
  17. );