--- Gaslight Media Members Database - Events Add-On
+-- Gaslight Media Members Database - Events Add-On
-- File Created: 12/02/15 15:27:15
-- Database Version: 0.0.1
-- Database Creation Script
---
+--
-- This file is called to create a new set of tables for this
--- add-on for the most receint database version for this add-on.
---
+-- add-on for the most recent database version for this add-on.
+--
-- There should only be one such file in this directory
--
-- To permit each query below to be executed separately,
CREATE TABLE {prefix}recurrences (
id INT NOT NULL AUTO_INCREMENT,
event INTEGER NULL, -- Pointer to event
- start_time DATETIME NULL, -- Start of first occurance (date and time)
- end_time DATETIME NULL, -- End of first occurance (date and time)
+ start_time DATETIME NULL, -- Start of first occurrence (date and time)
+ end_time DATETIME NULL, -- End of first occurrence (date and time)
from_date DATE NULL, -- From Date for recurrences
to_date DATE NULL, -- To Date for recurrences
- all_day BOOLEAN NULL, -- Flag indicating if this is an all-day event (inforational only)
- all_dates BOOLEAN NULL, -- Flag indicating that event recurrs on all dates from from_date through to_date
+ all_day BOOLEAN NULL, -- Flag indicating if this is an all-day event (informational only)
+ all_dates BOOLEAN NULL, -- Flag indicating that event recurs on all dates from from_date through to_date
month_of_year SMALLINT UNSIGNED NULL, -- Month of year (bitmap)
week_of_month TINYINT UNSIGNED NULL, -- Week of the month (bitmap)
day_of_week TINYINT UNSIGNED NULL, -- Day of the week (bitmap)
id INT NOT NULL AUTO_INCREMENT,
event INT NULL, -- Pointer to the primary record for the event
custom_event INT NULL, -- Pointer to a customized copy of the event record (if set)
- recur_id INT NULL, -- Pointer to recurrance entry
- active BOOLEAN NULL, -- Active flag - normally set but used to temporarily dissable a specific date
+ recur_id INT NULL, -- Pointer to recurrence entry
+ active BOOLEAN NULL, -- Active flag - normally set but used to temporarily disable a specific date
start_time DATETIME NULL, -- Date and time event starts
end_time DATETIME NULL, -- Date and time event ends
all_day BOOLEAN NULL, -- All Day flag
----
--- Locations - Locations for event - If there's no location pointing to an event try to use the referernced entity in events table
+-- Locations - Locations for event - If there's no location pointing to an event try to use the referenced entity in events table
CREATE TABLE {prefix}locations (
id INT NOT NULL AUTO_INCREMENT,
event INT NULL, -- Pointer to the primary or custom event record
name TINYTEXT NULL, -- Name of location
- address TINYTEXT NULL, -- Street Address
+ address TINYTEXT NULL, -- Street Address
city INT NULL, -- Pointer to city - references main plugin city table
- state TINYTEXT NULL, -- Two character state abreviation
+ state TINYTEXT NULL, -- Two character state abbreviation
zip TINYTEXT NULL, -- ZIP/Postal code
country TINYTEXT NULL, -- Country Code
lat FLOAT NULL, -- Latitude of location
CREATE TABLE {prefix}events (
id INT NOT NULL AUTO_INCREMENT,
status INT NULL, -- Status for this event, see config['status']
- custom_time INT NULL, -- If this is a custom record for a specific instance (date) this points to that times table entry
+ custom_time INT NULL, -- If this is a custom record for a specific instance (date) this points to that times table entry
root_event INT NULL, -- Root event pointer if this is a custom record for a specific instance (date) (if custom_time is set)
created DATETIME NULL, -- Date/Time event was created or date custom event record was created if custom record
updated DATETIME NULL, -- Date/Time this event record was last updated
approved DATETIME NULL, -- Date/Ttime this event record was approved
- ref_type INT NULL, -- Type of entity this contact is associated with - See config['ref_type']
+ ref_type INT NULL, -- Type of entity this contact is associated with - See config['ref_type']
ref_dest INT NULL, -- Pointer to the specific entity of ref_type this contact is associated with
hide_address BOOLEAN NULL, -- Option to hide address on front-end
featured BOOLEAN NULL, -- Option to mark as featured event