Author: barry.warsaw
Date: Sat Mar 19 14:03:47 2005
New Revision: 33

Added:
   trunk/mailman/docs/schema/
   trunk/mailman/docs/schema/Mailmandsd.jpg   (contents, props changed)
   trunk/mailman/docs/schema/Mailmanerd.jpg   (contents, props changed)
   trunk/mailman/docs/schema/mailman.sql
Log:
Committing some schema design artifacts.  These are mostly used as a guide for
building up the same schema in SQLObject, so it should not be trusted as the
canonical schema.


Added: trunk/mailman/docs/schema/Mailmandsd.jpg
==============================================================================
Binary file. No diff available.

Added: trunk/mailman/docs/schema/Mailmanerd.jpg
==============================================================================
Binary file. No diff available.

Added: trunk/mailman/docs/schema/mailman.sql
==============================================================================
--- (empty file)
+++ trunk/mailman/docs/schema/mailman.sql       Sat Mar 19 14:03:47 2005
@@ -0,0 +1,616 @@
+'
+' Target: SQLite 
+' 
+' Date  : Nov 26 2004 05:38
+'
+
+
+
+'
+' Create Table    : 'Authentication'   
+' auth_id         :  
+' password        : hashed password 
+'
+CREATE TABLE Authentication (
+    auth_id        INTEGER NOT NULL,
+    password       VARCHAR(120) NOT NULL,
+CONSTRAINT pk_Authentication PRIMARY KEY (auth_id));
+
+'
+' Create Table    : 'MessageCollection'   
+' collection_id   :  
+'
+CREATE TABLE MessageCollection (
+    collection_id  INTEGER NOT NULL,
+CONSTRAINT pk_MessageCollection PRIMARY KEY (collection_id));
+
+'
+' Create Table    : 'Versions'   
+' component       :  
+' version         :  
+' build_number    :  
+'
+CREATE TABLE Versions (
+    component      VARCHAR(100) NOT NULL,
+    version        VARCHAR(100) NOT NULL,
+    build_number   INTEGER NOT NULL,
+CONSTRAINT pk_Versions PRIMARY KEY (component));
+
+'
+' Create Table    : 'DisplayableTexts'   
+' text_id         :  
+' text_url        : url to external text resource 
+' cache_lifetime  : seconds 
+' text_contents   : text contents if no url 
+' for_language    : language this text is for 
+'
+CREATE TABLE DisplayableTexts (
+    text_id        INTEGER NOT NULL,
+    text_url       VARCHAR(255),
+    cache_lifetime INTEGER,
+    text_contents  IMAGE,
+    for_language   VARCHAR(10) NOT NULL,
+CONSTRAINT pk_DisplayableTexts PRIMARY KEY (text_id,for_language));
+
+'
+' Create Table    : 'Autoresponses'   
+' autoresponse_id :  
+' autoresponse_url : url to external text resource 
+' cache_lifetime  : how long to internally cache url contents 
+' autoresponse_text : text contents if no url 
+' for_language    : language this text is for 
+' graceperiod     : in days 
+'
+CREATE TABLE Autoresponses (
+    autoresponse_id INTEGER NOT NULL,
+    autoresponse_url VARCHAR(255),
+    cache_lifetime TIMESTAMP,
+    autoresponse_text IMAGE,
+    for_language   VARCHAR(10) NOT NULL,
+    graceperiod    INTEGER NOT NULL,
+CONSTRAINT pk_Autoresponses PRIMARY KEY (autoresponse_id,for_language));
+
+'
+' Create Table    : 'ContentFilter'   
+' filter_name     :  
+' mime_type       : Content-Type to filter on 
+' mime_type_filter_pass : 0=filter, 1=pass 
+' filename_extension : filename extension to filter on 
+' extension_filter_pass : 0=filter, 1=pass 
+' convert_html_to_plaintext :  
+'
+CREATE TABLE ContentFilter (
+    filter_name    VARCHAR(255) NOT NULL,
+    mime_type      VARCHAR(100) NOT NULL,
+    mime_type_filter_pass CHAR(1) NOT NULL,
+    filename_extension VARCHAR(10) NOT NULL,
+    extension_filter_pass CHAR(1) NOT NULL,
+    convert_html_to_plaintext CHAR(1) NOT NULL,
+CONSTRAINT pk_ContentFilter PRIMARY KEY (filter_name));
+
+'
+' Create Table    : 'SimpleFilter'   
+' filter_name     :  
+' emergency_filter : when true, matches every posting 
+' administrivia_filter : when true, matches administrivia to posting address 
+' max_message_size : max size in KB 
+'
+CREATE TABLE SimpleFilter (
+    filter_name    VARCHAR(255) NOT NULL,
+    emergency_filter CHAR(1) NOT NULL,
+    administrivia_filter CHAR(1) NOT NULL,
+    max_message_size INTEGER NOT NULL,
+CONSTRAINT pk_SimpleFilter PRIMARY KEY (filter_name));
+
+'
+' Create Table    : 'RecipientFilter'   
+' filter_name     :  
+' explicitly_listed : posting address must be explicitly listed 
+' allowable_alias : aliased recipient allowed 
+' max_recipients  : max number of recipients 
+'
+CREATE TABLE RecipientFilter (
+    filter_name    VARCHAR(255) NOT NULL,
+    explicitly_listed CHAR(1) NOT NULL,
+    allowable_alias VARCHAR(255) NOT NULL,
+    max_recipients INTEGER NOT NULL,
+CONSTRAINT pk_RecipientFilter PRIMARY KEY (filter_name));
+
+'
+' Create Table    : 'HeaderFilter'   
+' filter_name     :  
+' header          :  
+' value_regexp    :  
+'
+CREATE TABLE HeaderFilter (
+    filter_name    VARCHAR(255) NOT NULL,
+    header         VARCHAR(100) NOT NULL,
+    value_regexp   VARCHAR(100) NOT NULL,
+CONSTRAINT pk_HeaderFilter PRIMARY KEY (filter_name));
+
+'
+' Create Table    : 'Decorations'   
+' decoration_id   :  
+' decoration_language :  
+' header_url      : url to find header text at 
+' header_text     : explicit text 
+' include_header  :  
+' footer_url      :  
+' footer_text     :  
+' include_footer  :  
+' cache_lifetime  : seconds 
+'
+CREATE TABLE Decorations (
+    decoration_id  INTEGER NOT NULL,
+    decoration_language VARCHAR(10) NOT NULL,
+    header_url     VARCHAR(255) NOT NULL,
+    header_text    IMAGE NOT NULL,
+    include_header CHAR(1) NOT NULL,
+    footer_url     VARCHAR(255) NOT NULL,
+    footer_text    IMAGE NOT NULL,
+    include_footer CHAR(1) NOT NULL,
+    cache_lifetime INTEGER NOT NULL,
+CONSTRAINT pk_Decorations PRIMARY KEY (decoration_id,decoration_language));
+
+'
+' Create Table    : 'Preferences'   
+' preference_id   :  
+' delivery_mode   : 0 == no digests 
+' status          : 0 == enabled 
+' vacation_start  : date delivery stops 
+' vacation_end    : date delivery resumes 
+' vacation_catchup : get digest of missed messages upon return? 
+' receive_own_posts :  
+' acknowledge_posts :  
+' conceal_subscription :  
+' receive_list_copy : recieve list copy when in CC or To header? 
+' preferred_language :  
+' collection_id   :  (references MessageCollection.collection_id)
+'
+CREATE TABLE Preferences (
+    preference_id  INTEGER NOT NULL,
+    delivery_mode  INTEGER NOT NULL,
+    status         INTEGER NOT NULL,
+    vacation_start TIMESTAMP,
+    vacation_end   TIMESTAMP,
+    vacation_catchup CHAR(1) NOT NULL,
+    receive_own_posts CHAR(1) NOT NULL,
+    acknowledge_posts CHAR(1) NOT NULL,
+    conceal_subscription CHAR(1) NOT NULL,
+    receive_list_copy CHAR(1) NOT NULL,
+    preferred_language VARCHAR(10) NOT NULL,
+    collection_id  INTEGER NOT NULL,
+CONSTRAINT pk_Preferences PRIMARY KEY (preference_id),
+CONSTRAINT fk_Preferences3 FOREIGN KEY (collection_id));
+
+'
+' Create Table    : 'BounceInfo'   
+' bounceinfo_id   :  
+' score           : current score 
+' last_bounce_date : last time a bounce was received 
+' notices_left    : # of 'you are disabled' notices left 
+' last_notice_date : last time we sent a notice 
+' reenable_token  : token used for re-enabling 
+' collection_id   :  (references MessageCollection.collection_id)
+'
+CREATE TABLE BounceInfo (
+    bounceinfo_id  INTEGER NOT NULL,
+    score          FLOAT NOT NULL,
+    last_bounce_date TIMESTAMP NOT NULL,
+    notices_left   INTEGER NOT NULL,
+    last_notice_date TIMESTAMP NOT NULL,
+    reenable_token VARCHAR(120) NOT NULL UNIQUE,
+    collection_id  INTEGER NOT NULL,
+CONSTRAINT pk_BounceInfo PRIMARY KEY (bounceinfo_id),
+CONSTRAINT fk_BounceInfo2 FOREIGN KEY (collection_id));
+
+'
+' Create Index    : 'ix_BounceInfo0'   
+'
+CREATE INDEX ix_BounceInfo0
+    ON BounceInfo (reenable_token ASC);
+
+'
+' Create Table    : 'Message'   
+' internal_id     :  
+' hdr_message_id  : Message-ID: 
+' hdr_subject     : Subject: 
+' hdr_from        : From: 
+' hdr_date        : Date: 
+' hdr_references  : References: 
+' hdr_in_reply_to : In-Reply-To: 
+' received_date   : time server received message 
+' content_uri     : where does the message content live? 
+' collection_id   :  (references MessageCollection.collection_id)
+'
+CREATE TABLE Message (
+    internal_id    INTEGER NOT NULL,
+    hdr_message_id VARCHAR(255) NOT NULL UNIQUE,
+    hdr_subject    VARCHAR(255),
+    hdr_from       VARCHAR(255),
+    hdr_date       VARCHAR(255),
+    hdr_references VARCHAR(255),
+    hdr_in_reply_to VARCHAR(255),
+    received_date  TIMESTAMP NOT NULL,
+    content_uri    VARCHAR(255),
+    collection_id  INTEGER,
+CONSTRAINT pk_Message PRIMARY KEY (internal_id),
+CONSTRAINT fk_Message FOREIGN KEY (collection_id));
+
+'
+' Create Table    : 'RegisteredMember'   
+' member_id       :  
+' real_name       : Global real name (address can override) 
+' auth_id         :  (references Authentication.auth_id)
+' preference_id   :  (references Preferences.preference_id)
+' gpg_keyid       :  
+' gpg_pukey       :  
+'
+CREATE TABLE RegisteredMember (
+    member_id      INTEGER NOT NULL,
+    real_name      VARCHAR(255),
+    auth_id        INTEGER NOT NULL,
+    preference_id  INTEGER NOT NULL,
+    gpg_keyid      VARCHAR(10),
+    gpg_pukey      IMAGE,
+CONSTRAINT pk_RegisteredMember PRIMARY KEY (member_id),
+CONSTRAINT fk_RegisteredMember FOREIGN KEY (auth_id),
+CONSTRAINT fk_RegisteredMember2 FOREIGN KEY (preference_id));
+
+'
+' Create Table    : 'EmailAddress'   
+' address_id      :  
+' address         : case preserved address 
+' priority        : 0 = highest priority 
+' member_id       :  (references RegisteredMember.member_id)
+' is_verified     : true if successfully verified 
+' preference_id   :  (references Preferences.preference_id)
+' label           : Home, Work, etc. 
+' realname        :  
+' registration_date :  
+' verification_date :  
+' bounceinfo_id   :  (references BounceInfo.bounceinfo_id)
+'
+CREATE TABLE EmailAddress (
+    address_id     INTEGER NOT NULL,
+    address        VARCHAR(255) NOT NULL,
+    priority       INTEGER NOT NULL,
+    member_id      INTEGER,
+    is_verified    CHAR(1) NOT NULL,
+    preference_id  INTEGER NOT NULL,
+    label          VARCHAR(50) NOT NULL,
+    realname       VARCHAR(255),
+    registration_date TIMESTAMP NOT NULL,
+    verification_date TIMESTAMP NOT NULL,
+    bounceinfo_id  INTEGER NOT NULL,
+CONSTRAINT pk_EmailAddress PRIMARY KEY (address_id),
+CONSTRAINT fk_EmailAddress FOREIGN KEY (member_id),
+CONSTRAINT fk_EmailAddress2 FOREIGN KEY (preference_id),
+CONSTRAINT fk_EmailAddress3 FOREIGN KEY (bounceinfo_id));
+
+'
+' Create Index    : 'ix_EmailAddress0'   Index on email addresses
+'
+CREATE INDEX ix_EmailAddress0
+    ON EmailAddress (address ASC);
+
+'
+' Create Table    : 'Roster'   
+' roster_id       :  
+' address_id      :  (references EmailAddress.address_id)
+'
+CREATE TABLE Roster (
+    roster_id      INTEGER NOT NULL,
+    address_id     INTEGER,
+CONSTRAINT pk_Roster PRIMARY KEY (roster_id),
+CONSTRAINT fk_Roster FOREIGN KEY (address_id));
+
+'
+' Create Table    : 'MailDomain'   
+' domain_id       :  
+' mailhost        : domain part of email address, rhs of @ 
+' webhost         : domain part of http: url 
+' imaphost        : domain part of imap: url 
+' newshost        : domain part of news: url 
+' roster_id       :  (references Roster.roster_id)
+'
+CREATE TABLE MailDomain (
+    domain_id      INTEGER NOT NULL,
+    mailhost       VARCHAR(255) NOT NULL UNIQUE,
+    webhost        VARCHAR(255) UNIQUE,
+    imaphost       VARCHAR(255) UNIQUE,
+    newshost       VARCHAR(255) UNIQUE,
+    roster_id      INTEGER NOT NULL,
+CONSTRAINT pk_MailDomain PRIMARY KEY (domain_id),
+CONSTRAINT fk_MailDomain2 FOREIGN KEY (roster_id));
+
+'
+' Create Table    : 'SiteInformation'   
+' site_id         :  
+' roster_id       :  (references Roster.roster_id)
+'
+CREATE TABLE SiteInformation (
+    site_id        INTEGER NOT NULL,
+    roster_id      INTEGER NOT NULL,
+CONSTRAINT pk_SiteInformation PRIMARY KEY (site_id),
+CONSTRAINT fk_SiteInformation FOREIGN KEY (roster_id));
+
+'
+' Create Table    : 'MailingList'   
+' list_id         :  
+' name            : short name for list 
+' description     : one line description of list 
+' owners_id       :  (references Roster.roster_id)
+' moderators_id   :  (references Roster.roster_id)
+' creation_date   :  
+' domain_id       :  (references MailDomain.domain_id)
+' roster_id2      :  (references Roster.roster_id)
+'
+CREATE TABLE MailingList (
+    list_id        VARCHAR(100) NOT NULL,
+    name           VARCHAR(255) NOT NULL,
+    description    VARCHAR(255) NOT NULL,
+    owners_id      INTEGER NOT NULL,
+    moderators_id  INTEGER NOT NULL,
+    creation_date  TIMESTAMP NOT NULL,
+    domain_id      INTEGER NOT NULL,
+    roster_id2     INTEGER NOT NULL,
+CONSTRAINT pk_MailingList PRIMARY KEY (list_id),
+CONSTRAINT fk_MailingList2 FOREIGN KEY (owners_id),
+CONSTRAINT fk_MailingList3 FOREIGN KEY (moderators_id),
+CONSTRAINT fk_MailingList5 FOREIGN KEY (domain_id),
+CONSTRAINT fk_MailingList10 FOREIGN KEY (roster_id2));
+
+'
+' Create Table    : 'RosterList'   
+' is_primary      :  
+' rosterlist_id   :  
+' roster_id       :  (references Roster.roster_id)
+' list_id         :  (references MailingList.list_id)
+'
+CREATE TABLE RosterList (
+    is_primary     CHAR(1) NOT NULL,
+    rosterlist_id  INTEGER NOT NULL,
+    roster_id      INTEGER NOT NULL,
+    list_id        VARCHAR(100) NOT NULL,
+CONSTRAINT pk_RosterList PRIMARY KEY (rosterlist_id),
+CONSTRAINT fk_RosterList FOREIGN KEY (roster_id),
+CONSTRAINT fk_RosterList2 FOREIGN KEY (list_id));
+
+'
+' Create Table    : 'MailingListCollection'   
+' collection_id   :  
+' message_id      :  (references Message.internal_id)
+' list_id         :  (references MailingList.list_id)
+'
+CREATE TABLE MailingListCollection (
+    collection_id  INTEGER NOT NULL,
+    message_id     INTEGER,
+    list_id        VARCHAR(100) NOT NULL,
+CONSTRAINT pk_MailingListCollection PRIMARY KEY (collection_id),
+CONSTRAINT fk_MailingListCollection FOREIGN KEY (message_id),
+CONSTRAINT fk_MailingListCollection2 FOREIGN KEY (list_id));
+
+'
+' Create Table    : 'MailingListInfos'   
+' info_id         :  
+' text_id         :  (references DisplayableTexts.text_id)
+' for_language    : language this text is for (references 
DisplayableTexts.for_language)
+' list_id         :  (references MailingList.list_id)
+'
+CREATE TABLE MailingListInfos (
+    info_id        INTEGER NOT NULL,
+    text_id        INTEGER,
+    for_language   VARCHAR(10),
+    list_id        VARCHAR(100) NOT NULL,
+CONSTRAINT pk_MailingListInfos PRIMARY KEY (info_id),
+CONSTRAINT fk_MailingListInfos FOREIGN KEY (text_id,for_language),
+CONSTRAINT fk_MailingListInfos2 FOREIGN KEY (list_id));
+
+'
+' Create Table    : 'ListPostResponses'   
+' response_id     :  
+' list_id         :  (references MailingList.list_id)
+' autoresponse_id :  (references Autoresponses.autoresponse_id)
+' for_language    : language this text is for (references 
Autoresponses.for_language)
+'
+CREATE TABLE ListPostResponses (
+    response_id    INTEGER NOT NULL,
+    list_id        VARCHAR(100) NOT NULL,
+    autoresponse_id INTEGER NOT NULL,
+    for_language   VARCHAR(10) NOT NULL,
+CONSTRAINT pk_ListPostResponses PRIMARY KEY (response_id),
+CONSTRAINT fk_ListPostResponses FOREIGN KEY (list_id),
+CONSTRAINT fk_ListPostResponses2 FOREIGN KEY (autoresponse_id,for_language));
+
+'
+' Create Table    : 'RequestPostResponses'   
+' response_id     :  
+' list_id         :  (references MailingList.list_id)
+' autoresponse_id :  (references Autoresponses.autoresponse_id)
+' for_language    : language this text is for (references 
Autoresponses.for_language)
+'
+CREATE TABLE RequestPostResponses (
+    response_id    INTEGER NOT NULL,
+    list_id        VARCHAR(100) NOT NULL,
+    autoresponse_id INTEGER NOT NULL,
+    for_language   VARCHAR(10) NOT NULL,
+CONSTRAINT pk_RequestPostResponses PRIMARY KEY (response_id),
+CONSTRAINT fk_RequestPostResponses FOREIGN KEY (list_id),
+CONSTRAINT fk_RequestPostResponses2 FOREIGN KEY 
(autoresponse_id,for_language));
+
+'
+' Create Table    : 'OwnerPostResponses'   
+' response_id     :  
+' list_id         :  (references MailingList.list_id)
+' autoresponse_id :  (references Autoresponses.autoresponse_id)
+' for_language    : language this text is for (references 
Autoresponses.for_language)
+'
+CREATE TABLE OwnerPostResponses (
+    response_id    INTEGER NOT NULL,
+    list_id        VARCHAR(100) NOT NULL,
+    autoresponse_id INTEGER NOT NULL,
+    for_language   VARCHAR(10) NOT NULL,
+CONSTRAINT pk_OwnerPostResponses PRIMARY KEY (response_id),
+CONSTRAINT fk_OwnerPostResponses FOREIGN KEY (list_id),
+CONSTRAINT fk_OwnerPostResponses2 FOREIGN KEY (autoresponse_id,for_language));
+
+'
+' Create Table    : 'ListStyle'   
+' style_id        :  
+' priority        : applied from lowest to highest 
+' enable_archives :  
+' archive_access  : 0=open, 1=members, 2=owners, 3=domains, 4=site 
+' archive_volume_frequency : 0=daily, 1=weekly, 2=monthly, 3=yearly 
+' process_bounces :  
+' bounce_score_threshold :  
+' bounce_info_stale_after : days 
+' bounce_notices_count : how many disabled notices to send 
+' bounce_notices_interval : how many days between notices 
+' bounce_inform_disabled : send owners a notice when member is bounce disabled 
+' bounce_inform_removed : send owners a notice when member is bounce removed 
+' is_anonymous    :  
+' send_welcome    :  
+' send_goodbye    :  
+' inform_immediately : send owners immediate notice for joins/leaves 
+' inform_mchanges :  
+' include_rfc2369_headers :  
+' include_list_post_header :  
+' max_hold        : in days 
+' discard_hold_policy : 0=discard, 1=discard w/notice, 2=bounce 
+' default_conceal : by default, conceal addresses? 
+' default_acknowledge : by default, acknowledge posts? 
+' default_list_copy : by default, get list copy if explicitly addressed? 
+' default_own_copies : by default, send poster his own copies? 
+' default_moderation :  
+' personalize     :  
+' list_id         :  (references MailingList.list_id)
+' scrub_attachments :  
+' advertised      :  
+' preferred_language :  
+' encode_ascii_prefixes :  
+' nntp_host       :  
+' linked_newsgroup :  
+' gateway_to_news :  
+' gateway_to_mail :  
+' newsgroup_is_moderated :  
+' prefix_news_subject :  
+' subscription_policy : 0=open, 1=confirm, 2=approve, 3=confirm+approve 
+' unsub_policy    : 0=open, 1=confirm, 2=approve, 3=confirm+approve 
+' roster_visibility : 0=anyone, 1=members, 2=admins 
+' first_strip_reply_to :  
+' reply_goes_to   : 0=poster, 1=list, 2=address 
+' reply_to_address :  
+' allow_mime_digests :  
+' allow_plain_digests :  
+' allow_url_digests :  
+' digest_max_size : in KB 
+' send_digest_daily :  
+' plain_decoration_id :  (references Decorations.decoration_id)
+' plain_decoration_language :  (references Decorations.decoration_language)
+' digest_decoration_id :  (references Decorations.decoration_id)
+' digest_decoration_language :  (references Decorations.decoration_language)
+'
+CREATE TABLE ListStyle (
+    style_id       INTEGER NOT NULL,
+    priority       INTEGER NOT NULL,
+    enable_archives CHAR(1) NOT NULL,
+    archive_access INTEGER NOT NULL,
+    archive_volume_frequency INTEGER NOT NULL,
+    process_bounces CHAR(1) NOT NULL,
+    bounce_score_threshold FLOAT NOT NULL,
+    bounce_info_stale_after INTEGER NOT NULL,
+    bounce_notices_count INTEGER NOT NULL,
+    bounce_notices_interval INTEGER NOT NULL,
+    bounce_inform_disabled CHAR(1) NOT NULL,
+    bounce_inform_removed CHAR(1) NOT NULL,
+    is_anonymous   CHAR(1) NOT NULL,
+    send_welcome   CHAR(1) NOT NULL,
+    send_goodbye   CHAR(1) NOT NULL,
+    inform_immediately CHAR(1) NOT NULL,
+    inform_mchanges CHAR(1) NOT NULL,
+    include_rfc2369_headers CHAR(1) NOT NULL,
+    include_list_post_header CHAR(1) NOT NULL,
+    max_hold       INTEGER NOT NULL,
+    discard_hold_policy INTEGER NOT NULL,
+    default_conceal CHAR(1) NOT NULL,
+    default_acknowledge CHAR(1) NOT NULL,
+    default_list_copy CHAR(1) NOT NULL,
+    default_own_copies CHAR(1) NOT NULL,
+    default_moderation CHAR(1) NOT NULL,
+    personalize    CHAR(1) NOT NULL,
+    list_id        VARCHAR(100),
+    scrub_attachments CHAR(1) NOT NULL,
+    advertised     CHAR(1) NOT NULL,
+    preferred_language VARCHAR(10) NOT NULL,
+    encode_ascii_prefixes CHAR(1) NOT NULL,
+    nntp_host      VARCHAR(255) NOT NULL,
+    linked_newsgroup VARCHAR(255) NOT NULL,
+    gateway_to_news CHAR(1) NOT NULL,
+    gateway_to_mail CHAR(1) NOT NULL,
+    newsgroup_is_moderated CHAR(1) NOT NULL,
+    prefix_news_subject CHAR(1) NOT NULL,
+    subscription_policy INTEGER NOT NULL,
+    unsub_policy   INTEGER NOT NULL,
+    roster_visibility INTEGER NOT NULL,
+    first_strip_reply_to CHAR(1) NOT NULL,
+    reply_goes_to  INTEGER NOT NULL,
+    reply_to_address VARCHAR(255) NOT NULL,
+    allow_mime_digests CHAR(1) NOT NULL,
+    allow_plain_digests CHAR(1) NOT NULL,
+    allow_url_digests CHAR(1) NOT NULL,
+    digest_max_size INTEGER NOT NULL,
+    send_digest_daily CHAR(1) NOT NULL,
+    plain_decoration_id INTEGER NOT NULL,
+    plain_decoration_language VARCHAR(10) NOT NULL,
+    digest_decoration_id INTEGER NOT NULL,
+    digest_decoration_language VARCHAR(10) NOT NULL,
+CONSTRAINT pk_ListStyle PRIMARY KEY (style_id),
+CONSTRAINT fk_ListStyle FOREIGN KEY (list_id),
+CONSTRAINT fk_ListStyle2 FOREIGN KEY 
(plain_decoration_id,plain_decoration_language),
+CONSTRAINT fk_ListStyle3 FOREIGN KEY 
(digest_decoration_id,digest_decoration_language));
+
+'
+' Create Table    : 'Languages'   
+' language_code   :  
+' english_name    :  
+' style_id        :  (references ListStyle.style_id)
+' local_name      :  
+'
+CREATE TABLE Languages (
+    language_code  VARCHAR(10) NOT NULL,
+    english_name   VARCHAR(50) NOT NULL,
+    style_id       INTEGER,
+    local_name     VARCHAR(50) NOT NULL,
+CONSTRAINT pk_Languages PRIMARY KEY (language_code),
+CONSTRAINT fk_Languages FOREIGN KEY (style_id));
+
+'
+' Create Table    : 'Filters'   
+' filter_id       :  
+' priority        : lower priorities trigger sooner 
+' filter_action   : 0=defer, 1=accept, 2=hold, 3=reject 
+' active          : whether the filter is active or not 
+' list_id         :  (references MailingList.list_id)
+' filter_name     :  (references HeaderFilter.filter_name)
+' filter_name1    :  (references RecipientFilter.filter_name)
+' filter_name2    :  (references SimpleFilter.filter_name)
+' filter_name3    :  (references ContentFilter.filter_name)
+'
+CREATE TABLE Filters (
+    filter_id      INTEGER NOT NULL,
+    priority       INTEGER NOT NULL,
+    filter_action  INTEGER NOT NULL,
+    active         CHAR(1) NOT NULL,
+    list_id        VARCHAR(100),
+    filter_name    VARCHAR(255) NOT NULL,
+    filter_name1   VARCHAR(255) NOT NULL,
+    filter_name2   VARCHAR(255) NOT NULL,
+    filter_name3   VARCHAR(255) NOT NULL,
+CONSTRAINT pk_Filters PRIMARY KEY (filter_id),
+CONSTRAINT fk_Filters FOREIGN KEY (list_id),
+CONSTRAINT fk_Filters2 FOREIGN KEY (filter_name),
+CONSTRAINT fk_Filters3 FOREIGN KEY (filter_name1),
+CONSTRAINT fk_Filters4 FOREIGN KEY (filter_name2),
+CONSTRAINT fk_Filters5 FOREIGN KEY (filter_name3));
+
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to