[Talossa.com portal]
[Citizens Toolbox]
[Immigration]
No Running elections

Parent message
  • First draft of a proposal on the voting system
  • Mr. Furxheir, R.M.W.November 02, 2004 - 08:21
    Actual declarations...(#22), posted by Mr. Furxheir, R.M.W., [IP Hidden], November 02, 2004 - 14:12. Viewed 999 times.
    User InfoText
    Mr. Furxheir, R.M.W.
    Group: admins
    (1791 posts total)
    (last post: November 24, 2007 - 15:07)
    Citizen #20:
    Martí- Paìr Furxhéir
    CREATE TABLE `Election` (
    `ElectionNumber` INT NOT NULL AUTO_INCREMENT ,
    `Name` TEXT,
    `VoteType` ENUM( 'Preferential', 'ClosedList', 'Referendum2Choices', 'Referendum3Choices' ) DEFAULT 'Preferential' NOT NULL ,
    `Office` INT,
    `Province` TINYINT,
    `StartDate` DATE,
    `Duration` TINYINT DEFAULT '21' NOT NULL ,
    `Status` ENUM( 'Pending', 'Running', 'Closed' ) DEFAULT 'Pending' NOT NULL ,
    `Description` LONGTEXT,
    `SoS` TINYINT,
    PRIMARY KEY ( `ElectionNumber` )
    );



    CREATE TABLE `ElectionCandidates` (
    `ElectionNumber` INT NOT NULL ,
    `CitizenNumber` INT NOT NULL ,
    `CandidatePartyInitials` TINYTEXT,
    `BallotRank` INT DEFAULT '0' NOT NULL ,
    PRIMARY KEY ( `ElectionNumber` , `CitizenNumber` )
    );



    CREATE TABLE `ElectionVote` (
    `ElectionNumber` INT NOT NULL ,
    `VoteKey` VARCHAR( 40 ) NOT NULL ,
    `VoteText` TEXT NOT NULL ,
    PRIMARY KEY ( `ElectionNumber` , `VoteKey` ) ,
    FULLTEXT (
    `VoteText`
    )
    );


    CREATE TABLE `VoteCensus` (
    `ElectionNumber` INT NOT NULL ,
    `CitizenNumber` INT NOT NULL ,
    `IPAddress` TINYTEXT NOT NULL ,
    `UserAgent` TEXT NOT NULL ,
    PRIMARY KEY ( `ElectionNumber` , `CitizenNumber` )
    );




    Do you like my stupid hair?
    Would you guess that I didn't know what to wear?
    I'm just scared of what you think
    You make me nervous so I really can't eat.
    When you smile, I melt inside
    I'm not worthy for a minute of your time






    Reply to this post | Back to the forum | Forums Overview| Activate Thread View
    Forums Overview | Login | Register | Lost your password? Cyphor (Release: 0.19, PHP 5.2.5)