Diff for "FfiiMembership"

Differences between revisions 2 and 3
Revision 2 as of 2006-02-19 16:59:16
Size: 1250
Comment:
Revision 3 as of 2006-02-19 18:13:56
Size: 1525
Comment:
Deletions are marked like this. Additions are marked like this.
Line 44: Line 44:

== Some useful queries ==
 select count(*) from mail, padr, pnom, teln where padr.land = 'be' and padr.uid = mail.uid and pnom.uid = mail.uid and mail.uid = teln.uid ;

correction: replace this by an outer join in order not to remove members whose data is not complete

The membership data is stored in multiple tables within the database "ffii" on genba (postgresql):

asoc

  • uid, character varying(8): aktiv id
  • org, character varying(8): organisation, default 'ffii'
  • asolvl, numeric(1,0): membership status, -1 (unsubscribed) to 3 (active member), not necessarily correct
  • asorem , text, ???
  • asolack, character varying(16), acknowledgement code of membership

asolack

??, no permissions

mail

  • uid, character varying(8)
  • mailref, ??
  • mailuser, part of email before @
  • mailhost, part of email after @

padr

  • uid, character varying(8)
  • adrref, character varying(8), ??
  • land, character varying(2), 2 letter code for country (belgium = be, netherlands = nl)
  • plz, text, zip code
  • urb, text, city
  • str, text, street name and number

pnom

  • uid | character varying(8)
  • pntyp | character varying(2) | ??
  • pnom, full name

teln

  • uid | character varying(8) |
  • telref | character varying(8) | ??
  • tel | text | telephone number
  • telrem | text | ??

pass

  • uid | character varying(8) |
  • pass | character varying(16) | hash (what kind of?) of password

Some useful queries

  • select count(*) from mail, padr, pnom, teln where padr.land = 'be' and padr.uid = mail.uid and pnom.uid = mail.uid and mail.uid = teln.uid ;

correction: replace this by an outer join in order not to remove members whose data is not complete

De inhoud van deze site is zonder enige vorm van garantie beschikbaar onder zowel de GNU Free Documentation License als de Creative Commons Naamsvermelding-Gelijk delen-licentie