[go: up one dir, main page]

Menu

[3822d7]: / db / email.sql  Maximize  Restore  History

Download this file

47 lines (43 with data), 2.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************/
/* Copyright © 2015 ICT Innovations Pakistan All Rights Reserved */
/* Developed By: Nasir Iqbal */
/* Website : http://www.ictinnovations.com/ */
/* Mail : nasir@ictinnovations.com */
/*******************************************************************/
/*==============================================================*/
/* Table: template */
/* Desc: this table will hold templates for email broadcasting */
/*==============================================================*/
CREATE TABLE template
(
template_id int(11) unsigned NOT NULL auto_increment,
name varchar(128) NOT NULL default '',
type varchar(8) NOT NULL default 1,
description varchar(255) NOT NULL default '',
subject varchar(255) NOT NULL default '',
body text,
body_alt text,
attachment text,
length int(11) NOT NULL default 0,
date_created int(11) default NULL,
created_by int(11) unsigned default NULL,
last_updated int(11) default NULL,
updated_by int(11) unsigned default NULL,
PRIMARY KEY (template_id)
) ENGINE = InnoDB;
CREATE INDEX template_created_by ON template (created_by);
/*==============================================================*/
/* Desc: Dumping Default System configurations */
/*==============================================================*/
-- service
INSERT INTO configuration VALUES (NULL,'service','email_status','0',254); --ready
/*==============================================================*/
/* Table: insert email module permissions */
/*==============================================================*/
-- Template permissions
INSERT INTO permission VALUES (NULL, 'template', '');
INSERT INTO permission VALUES (NULL, 'template_create', '');
INSERT INTO permission VALUES (NULL, 'template_list', '');
INSERT INTO permission VALUES (NULL, 'template_read', '');
INSERT INTO permission VALUES (NULL, 'template_update', '');
INSERT INTO permission VALUES (NULL, 'template_delete', '');