Return-Path: X-Original-To: phma@localhost Delivered-To: phma@localhost Received: from chausie.ixazon.lan (localhost [127.0.0.1]) by chausie (Postfix) with ESMTP id 95900DA68 for ; Wed, 2 Sep 2009 22:53:42 -0400 (EDT) Delivered-To: phma@phma.optus.nu Received: from 192.168.7.2 [192.168.7.2] by chausie.ixazon.lan with IMAP (fetchmail-6.3.8) for (single-drop); Wed, 02 Sep 2009 22:53:42 -0400 (EDT) Received: from mail-qy0-f163.google.com (mail-qy0-f163.google.com [209.85.221.163]) by ixazon.dynip.com (Postfix) with ESMTP id 7BD69CE45A for ; Wed, 2 Sep 2009 22:50:04 -0400 (EDT) Received: by qyk35 with SMTP id 35so1719369qyk.18 for ; Wed, 02 Sep 2009 19:50:03 -0700 (PDT) Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received:received-spf:received:received:from:to :subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:reply-to :sender:precedence:x-google-loop:mailing-list:list-id:list-post :list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=SZDey1v2+RjbyQ9bKLDF+/lrM0tHuRDZ8iCGDHobylg=; b=LnVMYZ/nxmc6+bDlWwe5wfTUrL2czH5ilyiPnrUWu8blPNQX4W+KBcMc77dTBOJp5c Qr1+dVhh143z+ErLT2yFH7gCw/4J2spfzYVNbIxQq3wEHTN0g1NLQZQpmCgG9ip9jaQ9 Lzpntu7mNfPmSmEEbsAqKeUAkjSSjcZvv2R2E= Domainkey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results:from :to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:reply-to :sender:precedence:x-google-loop:mailing-list:list-id:list-post :list-help:list-unsubscribe:x-beenthere-env:x-beenthere; b=sKUXN9AzEXgq93D1b5UmCoskcXV3m3tFDMXyb74uKds4FT609cH/N/2ToSKcAiNE8W o0Do44WWGW8DHzQqhsx4ogl8BVq8PCpIYDIj10qsgMZNP3TyHboAU40/XpJ2zQHt7bEI o4LTFVK2g9wKQ5l9Qjq31Rs1tzjU1+Iq0RW0k= Received: by 10.220.16.197 with SMTP id p5mr105959vca.24.1251946202906; Wed, 02 Sep 2009 19:50:02 -0700 (PDT) Received: by 10.230.9.20 with SMTP id j20gr12vbj.0; Wed, 02 Sep 2009 19:50:02 -0700 (PDT) X-Sender: phma@phma.optus.nu X-Apparently-To: lojban-lbck@googlegroups.com Received: by 10.220.78.101 with SMTP id j37mr2455552vck.19.1251946202273; Wed, 02 Sep 2009 19:50:02 -0700 (PDT) Received: by 10.220.78.101 with SMTP id j37mr2455547vck.19.1251946202226; Wed, 02 Sep 2009 19:50:02 -0700 (PDT) Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com [75.180.132.122]) by gmr-mx.google.com with ESMTP id 19si56646vws.12.2009.09.02.19.50.00; Wed, 02 Sep 2009 19:50:00 -0700 (PDT) Received-SPF: neutral (google.com: 75.180.132.122 is neither permitted nor denied by best guess record for domain of phma@phma.optus.nu) client-ip=75.180.132.122; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 75.180.132.122 is neither permitted nor denied by best guess record for domain of phma@phma.optus.nu) smtp.mail=phma@phma.optus.nu Received: from chausie ([71.75.215.96]) by cdptpa-omta04.mail.rr.com with ESMTP id <20090903025000061.PEZQ8566@cdptpa-omta04.mail.rr.com> for ; Thu, 3 Sep 2009 02:50:00 +0000 Received: from localhost (localhost [127.0.0.1]) by chausie (Postfix) with ESMTP id A53E5DA61 for ; Wed, 2 Sep 2009 22:49:59 -0400 (EDT) From: Pierre Abbat To: lojban-lbck@googlegroups.com Subject: Database Date: Wed, 2 Sep 2009 22:49:55 -0400 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200909022249.57041.phma@phma.optus.nu> Reply-To: lojban-lbck@googlegroups.com Sender: lojban-lbck@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list lojban-lbck@googlegroups.com; contact lojban-lbck+owner@googlegroups.com List-ID: List-Post: List-Help: List-Unsubscribe: , X-Beenthere-Env: lojban-lbck@googlegroups.com X-Beenthere: lojban-lbck@googlegroups.com Content-Length: 1231 Here's a rough draft of the database structure: table preti ( nacycme int autoincrement; retygri int foreign key retygri; jufra text; -- HTML (in case we want to add italics or fonts) in UTF8 (in case we want to zoi-quote a foreign word) danfu1 text; -- HTML in UTF8 danfu2 text; danfu3 text; danfu4 text; danfu5 text; drani char; -- A through E jufydrani text; -- for fill-in-blank questions cunpoi boolean; -- true if the answers should be randomized ); table retygri ( nacycme int autoincrement; nilnandu short; -- or real, or maybe several of these finti int foreign key cipfihi; zgana int foreign key cipfihi; -- Who reviewed the question group. jarco_namcu short; -- Number of questions to ask. The number of questions in the group you can get by a count query. jufra text; -- HTML in UTF8; may contain img tags. ); The number of questions to ask is normally either 1 or the same as the number of questions in the group. If it's 1, retygri.jufra is normally empty, but it could be not. jarco_namcu=1 with several questions is used for alternative versions of a question, such as the same sentence with any of several errors. jarco_namcu>1 is used for reading comprehension stories with several questions. Pierre