Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

powerdns-mysql-db-structure.sql 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. create table domains (
  2. id INT auto_increment,
  3. name VARCHAR(255) NOT NULL,
  4. master VARCHAR(128) DEFAULT NULL,
  5. last_check INT DEFAULT NULL,
  6. type VARCHAR(6) NOT NULL,
  7. notified_serial INT DEFAULT NULL,
  8. account VARCHAR(40) DEFAULT NULL,
  9. primary key (id)
  10. ) Engine=InnoDB;
  11. CREATE UNIQUE INDEX name_index ON domains(name);
  12. CREATE TABLE records (
  13. id INT auto_increment,
  14. domain_id INT DEFAULT NULL,
  15. name VARCHAR(255) DEFAULT NULL,
  16. type VARCHAR(10) DEFAULT NULL,
  17. content VARCHAR(64000) DEFAULT NULL,
  18. ttl INT DEFAULT NULL,
  19. prio INT DEFAULT NULL,
  20. change_date INT DEFAULT NULL,
  21. disabled BOOLEAN DEFAULT 0,
  22. primary key(id)
  23. ) Engine=InnoDB;
  24. CREATE INDEX nametype_index ON records(name,type);
  25. CREATE INDEX domain_id ON records(domain_id);
  26. create table supermasters (
  27. ip VARCHAR(64) NOT NULL,
  28. nameserver VARCHAR(255) NOT NULL,
  29. account VARCHAR(40) DEFAULT NULL,
  30. PRIMARY KEY (ip, nameserver)
  31. ) Engine=InnoDB;
  32. CREATE TABLE comments (
  33. id INT auto_increment,
  34. domain_id INT NOT NULL,
  35. name VARCHAR(255) NOT NULL,
  36. type VARCHAR(10) NOT NULL,
  37. modified_at INT NOT NULL,
  38. account VARCHAR(40) NOT NULL,
  39. comment VARCHAR(64000) NOT NULL,
  40. primary key(id)
  41. ) Engine=InnoDB;
  42. CREATE INDEX comments_domain_id_idx ON comments (domain_id);
  43. CREATE INDEX comments_name_type_idx ON comments (name, type);
  44. CREATE INDEX comments_order_idx ON comments (domain_id, modified_at);