locationbot.sql 502 B

1234567891011121314151617181920212223
  1. -- Location Bot
  2. --
  3. -- Douglas Thrift
  4. --
  5. -- $Id$
  6. create schema locationbot;
  7. create table locationbot.nick (
  8. id serial primary key,
  9. nick text not null unique,
  10. secret char(32) not null,
  11. masks text[],
  12. channels text[],
  13. timezone text,
  14. location text,
  15. updated timestamp with time zone,
  16. latitude bigint
  17. );
  18. create index nick_location_index on locationbot.nick (location);
  19. create index nick_updated_index on locationbot.nick (updated);
  20. create index nick_latitude_index on locationbot.nick (latitude);