sql stringlengths 6 1.05M |
|---|
<filename>samples/features/ssms-templates/Sql/Statistics/Create Fullscan Norecompute Statistics.sql<gh_stars>1000+
-- ==================================================
-- Create Fullscan Norecompute Statistics Template
-- ==================================================
-- Note: Statistics created with NORECOMPUTE are not updated by SQL Server's
-- automatic statistics update feature (auto-stats). Therefore, they many cause
-- suboptimal plans.
CREATE STATISTICS <statistics_name, sysname, statistics_name>
ON <schema_name, sysname, schema_name>.<table_name, sysname, table_name>
(
<column_name1, sysname, column1>,
<column_name2, sysname, column2>
)
WITH FULLSCAN, NORECOMPUTE;
GO
|
create unique index c_tax_acct_uq on c_tax_acct (c_tax_id, c_acctschema_id);
|
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-3_1_SP4-SCRIPT/ORACLE/DML/KC_DML_BS3_EPS_PROP_PER_DOC_TYPE.sql
UPDATE EPS_PROP_PER_DOC_TYPE SET DESCRIPTION = 'StatementofCommitment' WHERE DOCUMENT_TYPE_CODE = '4';
UPDATE EPS_PROP_PER_DOC_TYPE SET DESCRIPTION = 'BudgetDetails' WHERE DOCUMENT_TYPE_CODE = '3'; |
CREATE TABLE `tb_srnygbtlet`
(
`col_lifsfguaso` bigint unsigned zerofill NOT NULL,
`col_jfqoynkdul` int(85) zerofill NOT NULL,
`col_xtdeqhkius` int unsigned zerofill
) DEFAULT CHARSET=utf8;
CREATE TABLE `tb_sykueansru`
(
`col_tvoyslqfaz` char(165) CHARACTER SET utf8 NOT NULL,
`col_kcqzudwksh` int(74) zerofill,
CONSTRAINT PRIMARY KEY (`col_tvoyslqfaz`(15)),
UNIQUE `uk_jusgrekcyt` (`col_tvoyslqfaz`(10))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE `tb_ljqwtifhmg` LIKE `tb_srnygbtlet`;
RENAME
TABLE `tb_srnygbtlet` TO `tb_cvldhcmtfi`;
RENAME
TABLE `tb_sykueansru` TO `tb_yizqtrqbqn`;
RENAME
TABLE `tb_cvldhcmtfi` TO `tb_vloxpqyomb`;
DROP TABLE tb_yizqtrqbqn, tb_vloxpqyomb;
ALTER TABLE `tb_ljqwtifhmg` ADD (`col_jskeqnympm` mediumblob, `col_reyjvzjrca` mediumtext);
ALTER TABLE `tb_ljqwtifhmg`
ADD `col_vqkcruulcb` numeric NOT NULL DEFAULT '1' AFTER `col_xtdeqhkius`;
ALTER TABLE `tb_ljqwtifhmg`
ADD `col_udtcfawuge` year NOT NULL;
ALTER TABLE `tb_ljqwtifhmg`
ADD COLUMN `col_zkypjejoqz` longtext CHARACTER SET utf8;
ALTER TABLE `tb_ljqwtifhmg`
ADD COLUMN `col_ebgvlcdynr` tinyint(233) unsigned DEFAULT '1' AFTER `col_jskeqnympm`;
ALTER TABLE `tb_ljqwtifhmg`
ADD COLUMN `col_hfnljoelph` blob;
ALTER TABLE `tb_ljqwtifhmg`
ADD `col_vtvtsqhwby` decimal DEFAULT '1';
ALTER TABLE `tb_ljqwtifhmg` CHARACTER SET = utf8;
ALTER TABLE `tb_ljqwtifhmg`
ADD UNIQUE `uk_geldgbtngh` (`col_reyjvzjrca`(10),`col_udtcfawuge`);
ALTER TABLE `tb_ljqwtifhmg`
ADD UNIQUE (`col_vqkcruulcb`, `col_jskeqnympm`(32));
ALTER TABLE `tb_ljqwtifhmg` CHANGE `col_jfqoynkdul` `col_vlntyfqpdc` longtext CHARACTER SET utf8mb4;
ALTER TABLE `tb_ljqwtifhmg` DROP COLUMN `col_ebgvlcdynr`, DROP COLUMN `col_vqkcruulcb`;
ALTER TABLE `tb_ljqwtifhmg` DROP `col_hfnljoelph`, DROP `col_vtvtsqhwby`;
ALTER TABLE `tb_ljqwtifhmg` DROP COLUMN `col_xtdeqhkius`;
ALTER TABLE `tb_ljqwtifhmg` DROP `col_vlntyfqpdc`, DROP `col_zkypjejoqz`;
ALTER TABLE `tb_ljqwtifhmg` DROP COLUMN `col_udtcfawuge`;
ALTER TABLE `tb_ljqwtifhmg` DROP `col_reyjvzjrca`;
ALTER TABLE `tb_ljqwtifhmg` DROP COLUMN `col_jskeqnympm`;
|
<reponame>kkrakovych/database-maven-plugin<filename>src/it/postgresql-16/verify/service/install_schema_1_schema.sql<gh_stars>1-10
\qecho
\qecho === Deploy Schema [schema]
\qecho
set schema 'schema'
\include ./service/drop_source_code.sql
\qecho Deploy source code.
\include ./service/install_object_1_schema_1_VIEW.sql
\include ./service/install_object_1_schema_2_TRIGGER.sql
\include ./service/install_object_1_schema_3_FUNCTION.sql
|
<reponame>mikuhuyo/health-care<filename>docs/mysql/init.sql<gh_stars>1-10
DROP DATABASE IF EXISTS `health`;
CREATE DATABASE `health` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
USE `health`;
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `t_checkgroup`
-- ----------------------------
DROP TABLE IF EXISTS `t_checkgroup`;
CREATE TABLE `t_checkgroup` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(32) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
`helpCode` varchar(32) DEFAULT NULL,
`sex` char(1) DEFAULT NULL,
`remark` varchar(128) DEFAULT NULL,
`attention` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_checkgroup
-- ----------------------------
INSERT INTO `t_checkgroup` VALUES ('5', '0001', '一般检查', 'YBJC', '0', '一般检查', '无');
INSERT INTO `t_checkgroup` VALUES ('6', '0002', '视力色觉', 'SLSJ', '0', '视力色觉', null);
INSERT INTO `t_checkgroup` VALUES ('7', '0003', '血常规', 'XCG', '0', '血常规', null);
INSERT INTO `t_checkgroup` VALUES ('8', '0004', '尿常规', 'NCG', '0', '尿常规', null);
INSERT INTO `t_checkgroup` VALUES ('9', '0005', '肝功三项', 'GGSX', '0', '肝功三项', null);
INSERT INTO `t_checkgroup` VALUES ('10', '0006', '肾功三项', 'NGSX', '0', '肾功三项', null);
INSERT INTO `t_checkgroup` VALUES ('11', '0007', '血脂四项', 'XZSX', '0', '血脂四项', null);
INSERT INTO `t_checkgroup` VALUES ('12', '0008', '心肌酶三项', 'XJMSX', '0', '心肌酶三项', null);
INSERT INTO `t_checkgroup` VALUES ('13', '0009', '甲功三项', 'JGSX', '0', '甲功三项', null);
INSERT INTO `t_checkgroup` VALUES ('14', '0010', '子宫附件彩超', 'ZGFJCC', '2', '子宫附件彩超', null);
INSERT INTO `t_checkgroup` VALUES ('15', '0011', '胆红素三项', 'DHSSX', '0', '胆红素三项', null);
-- ----------------------------
-- Table structure for `t_checkgroup_checkitem`
-- ----------------------------
DROP TABLE IF EXISTS `t_checkgroup_checkitem`;
CREATE TABLE `t_checkgroup_checkitem` (
`checkgroup_id` int(11) NOT NULL DEFAULT '0',
`checkitem_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`checkgroup_id`,`checkitem_id`),
KEY `item_id` (`checkitem_id`),
CONSTRAINT `group_id` FOREIGN KEY (`checkgroup_id`) REFERENCES `t_checkgroup` (`id`),
CONSTRAINT `item_id` FOREIGN KEY (`checkitem_id`) REFERENCES `t_checkitem` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_checkgroup_checkitem
-- ----------------------------
INSERT INTO `t_checkgroup_checkitem` VALUES ('5', '28');
INSERT INTO `t_checkgroup_checkitem` VALUES ('5', '29');
INSERT INTO `t_checkgroup_checkitem` VALUES ('5', '30');
INSERT INTO `t_checkgroup_checkitem` VALUES ('5', '31');
INSERT INTO `t_checkgroup_checkitem` VALUES ('5', '32');
INSERT INTO `t_checkgroup_checkitem` VALUES ('6', '33');
INSERT INTO `t_checkgroup_checkitem` VALUES ('6', '34');
INSERT INTO `t_checkgroup_checkitem` VALUES ('6', '35');
INSERT INTO `t_checkgroup_checkitem` VALUES ('6', '36');
INSERT INTO `t_checkgroup_checkitem` VALUES ('6', '37');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '38');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '39');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '40');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '41');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '42');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '43');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '44');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '45');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '46');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '47');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '48');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '49');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '50');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '51');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '52');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '53');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '54');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '55');
INSERT INTO `t_checkgroup_checkitem` VALUES ('7', '56');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '57');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '58');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '59');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '60');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '61');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '62');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '63');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '64');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '65');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '66');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '67');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '68');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '69');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '70');
INSERT INTO `t_checkgroup_checkitem` VALUES ('8', '71');
INSERT INTO `t_checkgroup_checkitem` VALUES ('9', '72');
INSERT INTO `t_checkgroup_checkitem` VALUES ('9', '73');
INSERT INTO `t_checkgroup_checkitem` VALUES ('9', '74');
INSERT INTO `t_checkgroup_checkitem` VALUES ('10', '75');
INSERT INTO `t_checkgroup_checkitem` VALUES ('10', '76');
INSERT INTO `t_checkgroup_checkitem` VALUES ('10', '77');
INSERT INTO `t_checkgroup_checkitem` VALUES ('11', '78');
INSERT INTO `t_checkgroup_checkitem` VALUES ('11', '79');
INSERT INTO `t_checkgroup_checkitem` VALUES ('11', '80');
INSERT INTO `t_checkgroup_checkitem` VALUES ('11', '81');
INSERT INTO `t_checkgroup_checkitem` VALUES ('12', '82');
INSERT INTO `t_checkgroup_checkitem` VALUES ('12', '83');
INSERT INTO `t_checkgroup_checkitem` VALUES ('12', '84');
INSERT INTO `t_checkgroup_checkitem` VALUES ('13', '85');
INSERT INTO `t_checkgroup_checkitem` VALUES ('13', '86');
INSERT INTO `t_checkgroup_checkitem` VALUES ('13', '87');
INSERT INTO `t_checkgroup_checkitem` VALUES ('14', '88');
INSERT INTO `t_checkgroup_checkitem` VALUES ('14', '89');
INSERT INTO `t_checkgroup_checkitem` VALUES ('15', '90');
INSERT INTO `t_checkgroup_checkitem` VALUES ('15', '91');
INSERT INTO `t_checkgroup_checkitem` VALUES ('15', '92');
-- ----------------------------
-- Table structure for `t_checkitem`
-- ----------------------------
DROP TABLE IF EXISTS `t_checkitem`;
CREATE TABLE `t_checkitem` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(16) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
`sex` char(1) DEFAULT NULL,
`age` varchar(32) DEFAULT NULL,
`price` float DEFAULT NULL,
`type` char(1) DEFAULT NULL COMMENT '查检项类型,分为检查和检验两种',
`attention` varchar(128) DEFAULT NULL,
`remark` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_checkitem
-- ----------------------------
INSERT INTO `t_checkitem` VALUES ('28', '0001', '身高', '0', '0-100', '5', '1', '无', '身高');
INSERT INTO `t_checkitem` VALUES ('29', '0002', '体重', '0', '0-100', '5', '1', '无', '体重');
INSERT INTO `t_checkitem` VALUES ('30', '0003', '体重指数', '0', '0-100', '5', '1', '无', '体重指数');
INSERT INTO `t_checkitem` VALUES ('31', '0004', '收缩压', '0', '0-100', '5', '1', '无', '收缩压');
INSERT INTO `t_checkitem` VALUES ('32', '0005', '舒张压', '0', '0-100', '5', '1', '无', '舒张压');
INSERT INTO `t_checkitem` VALUES ('33', '0006', '裸视力(右)', '0', '0-100', '5', '1', '无', '裸视力(右)');
INSERT INTO `t_checkitem` VALUES ('34', '0007', '裸视力(左)', '0', '0-100', '5', '1', '无', '裸视力(左)');
INSERT INTO `t_checkitem` VALUES ('35', '0008', '矫正视力(右)', '0', '0-100', '5', '1', '无', '矫正视力(右)');
INSERT INTO `t_checkitem` VALUES ('36', '0009', '矫正视力(左)', '0', '0-100', '5', '1', '无', '矫正视力(左)');
INSERT INTO `t_checkitem` VALUES ('37', '0010', '色觉', '0', '0-100', '5', '1', '无', '色觉');
INSERT INTO `t_checkitem` VALUES ('38', '0011', '白细胞计数', '0', '0-100', '10', '2', '无', '白细胞计数');
INSERT INTO `t_checkitem` VALUES ('39', '0012', '红细胞计数', '0', '0-100', '10', '2', null, '红细胞计数');
INSERT INTO `t_checkitem` VALUES ('40', '0013', '血红蛋白', '0', '0-100', '10', '2', null, '血红蛋白');
INSERT INTO `t_checkitem` VALUES ('41', '0014', '红细胞压积', '0', '0-100', '10', '2', null, '红细胞压积');
INSERT INTO `t_checkitem` VALUES ('42', '0015', '平均红细胞体积', '0', '0-100', '10', '2', null, '平均红细胞体积');
INSERT INTO `t_checkitem` VALUES ('43', '0016', '平均红细胞血红蛋白含量', '0', '0-100', '10', '2', null, '平均红细胞血红蛋白含量');
INSERT INTO `t_checkitem` VALUES ('44', '0017', '平均红细胞血红蛋白浓度', '0', '0-100', '10', '2', null, '平均红细胞血红蛋白浓度');
INSERT INTO `t_checkitem` VALUES ('45', '0018', '红细胞分布宽度-变异系数', '0', '0-100', '10', '2', null, '红细胞分布宽度-变异系数');
INSERT INTO `t_checkitem` VALUES ('46', '0019', '血小板计数', '0', '0-100', '10', '2', null, '血小板计数');
INSERT INTO `t_checkitem` VALUES ('47', '0020', '平均血小板体积', '0', '0-100', '10', '2', null, '平均血小板体积');
INSERT INTO `t_checkitem` VALUES ('48', '0021', '血小板分布宽度', '0', '0-100', '10', '2', null, '血小板分布宽度');
INSERT INTO `t_checkitem` VALUES ('49', '0022', '淋巴细胞百分比', '0', '0-100', '10', '2', null, '淋巴细胞百分比');
INSERT INTO `t_checkitem` VALUES ('50', '0023', '中间细胞百分比', '0', '0-100', '10', '2', null, '中间细胞百分比');
INSERT INTO `t_checkitem` VALUES ('51', '0024', '中性粒细胞百分比', '0', '0-100', '10', '2', null, '中性粒细胞百分比');
INSERT INTO `t_checkitem` VALUES ('52', '0025', '淋巴细胞绝对值', '0', '0-100', '10', '2', null, '淋巴细胞绝对值');
INSERT INTO `t_checkitem` VALUES ('53', '0026', '中间细胞绝对值', '0', '0-100', '10', '2', null, '中间细胞绝对值');
INSERT INTO `t_checkitem` VALUES ('54', '0027', '中性粒细胞绝对值', '0', '0-100', '10', '2', null, '中性粒细胞绝对值');
INSERT INTO `t_checkitem` VALUES ('55', '0028', '红细胞分布宽度-标准差', '0', '0-100', '10', '2', null, '红细胞分布宽度-标准差');
INSERT INTO `t_checkitem` VALUES ('56', '0029', '血小板压积', '0', '0-100', '10', '2', null, '血小板压积');
INSERT INTO `t_checkitem` VALUES ('57', '0030', '尿比重', '0', '0-100', '10', '2', null, '尿比重');
INSERT INTO `t_checkitem` VALUES ('58', '0031', '尿酸碱度', '0', '0-100', '10', '2', null, '尿酸碱度');
INSERT INTO `t_checkitem` VALUES ('59', '0032', '尿白细胞', '0', '0-100', '10', '2', null, '尿白细胞');
INSERT INTO `t_checkitem` VALUES ('60', '0033', '尿亚硝酸盐', '0', '0-100', '10', '2', null, '尿亚硝酸盐');
INSERT INTO `t_checkitem` VALUES ('61', '0034', '尿蛋白质', '0', '0-100', '10', '2', null, '尿蛋白质');
INSERT INTO `t_checkitem` VALUES ('62', '0035', '尿糖', '0', '0-100', '10', '2', null, '尿糖');
INSERT INTO `t_checkitem` VALUES ('63', '0036', '尿酮体', '0', '0-100', '10', '2', null, '尿酮体');
INSERT INTO `t_checkitem` VALUES ('64', '0037', '尿胆原', '0', '0-100', '10', '2', null, '尿胆原');
INSERT INTO `t_checkitem` VALUES ('65', '0038', '尿胆红素', '0', '0-100', '10', '2', null, '尿胆红素');
INSERT INTO `t_checkitem` VALUES ('66', '0039', '尿隐血', '0', '0-100', '10', '2', null, '尿隐血');
INSERT INTO `t_checkitem` VALUES ('67', '0040', '尿镜检红细胞', '0', '0-100', '10', '2', null, '尿镜检红细胞');
INSERT INTO `t_checkitem` VALUES ('68', '0041', '尿镜检白细胞', '0', '0-100', '10', '2', null, '尿镜检白细胞');
INSERT INTO `t_checkitem` VALUES ('69', '0042', '上皮细胞', '0', '0-100', '10', '2', null, '上皮细胞');
INSERT INTO `t_checkitem` VALUES ('70', '0043', '无机盐类', '0', '0-100', '10', '2', null, '无机盐类');
INSERT INTO `t_checkitem` VALUES ('71', '0044', '尿镜检蛋白定性', '0', '0-100', '10', '2', null, '尿镜检蛋白定性');
INSERT INTO `t_checkitem` VALUES ('72', '0045', '丙氨酸氨基转移酶', '0', '0-100', '10', '2', null, '丙氨酸氨基转移酶');
INSERT INTO `t_checkitem` VALUES ('73', '0046', '天门冬氨酸氨基转移酶', '0', '0-100', '10', '2', null, '天门冬氨酸氨基转移酶');
INSERT INTO `t_checkitem` VALUES ('74', '0047', 'Y-谷氨酰转移酶', '0', '0-100', '10', '2', null, 'Y-谷氨酰转移酶');
INSERT INTO `t_checkitem` VALUES ('75', '0048', '尿素', '0', '0-100', '10', '2', null, '尿素');
INSERT INTO `t_checkitem` VALUES ('76', '0049', '肌酐', '0', '0-100', '10', '2', null, '肌酐');
INSERT INTO `t_checkitem` VALUES ('77', '0050', '尿酸', '0', '0-100', '10', '2', null, '尿酸');
INSERT INTO `t_checkitem` VALUES ('78', '0051', '总胆固醇', '0', '0-100', '10', '2', null, '总胆固醇');
INSERT INTO `t_checkitem` VALUES ('79', '0052', '甘油三酯', '0', '0-100', '10', '2', null, '甘油三酯');
INSERT INTO `t_checkitem` VALUES ('80', '0053', '高密度脂蛋白胆固醇', '0', '0-100', '10', '2', null, '高密度脂蛋白胆固醇');
INSERT INTO `t_checkitem` VALUES ('81', '0054', '低密度脂蛋白胆固醇', '0', '0-100', '10', '2', null, '低密度脂蛋白胆固醇');
INSERT INTO `t_checkitem` VALUES ('82', '0055', '磷酸肌酸激酶', '0', '0-100', '10', '2', null, '磷酸肌酸激酶');
INSERT INTO `t_checkitem` VALUES ('83', '0056', '磷酸肌酸激酶同工酶', '0', '0-100', '10', '2', null, '磷酸肌酸激酶同工酶');
INSERT INTO `t_checkitem` VALUES ('84', '0057', '乳酸脱氢酶', '0', '0-100', '10', '2', null, '乳酸脱氢酶');
INSERT INTO `t_checkitem` VALUES ('85', '0058', '三碘甲状腺原氨酸', '0', '0-100', '10', '2', null, '三碘甲状腺原氨酸');
INSERT INTO `t_checkitem` VALUES ('86', '0059', '甲状腺素', '0', '0-100', '10', '2', null, '甲状腺素');
INSERT INTO `t_checkitem` VALUES ('87', '0060', '促甲状腺激素', '0', '0-100', '10', '2', null, '促甲状腺激素');
INSERT INTO `t_checkitem` VALUES ('88', '0061', '子宫', '2', '0-100', '10', '2', null, '子宫');
INSERT INTO `t_checkitem` VALUES ('89', '0062', '附件', '2', '0-100', '10', '2', null, '附件');
INSERT INTO `t_checkitem` VALUES ('90', '0063', '总胆红素', '0', '0-100', '10', '2', null, '总胆红素');
INSERT INTO `t_checkitem` VALUES ('91', '0064', '直接胆红素', '0', '0-100', '10', '2', null, '直接胆红素');
INSERT INTO `t_checkitem` VALUES ('92', '0065', '间接胆红素', '0', '0-100', '10', '2', null, '间接胆红素');
-- ----------------------------
-- Table structure for `t_member`
-- ----------------------------
DROP TABLE IF EXISTS `t_member`;
CREATE TABLE `t_member` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fileNumber` varchar(32) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
`sex` varchar(8) DEFAULT NULL,
`idCard` varchar(18) DEFAULT NULL,
`phoneNumber` varchar(11) DEFAULT NULL,
`regTime` date DEFAULT NULL,
`password` varchar(32) DEFAULT NULL,
`email` varchar(32) DEFAULT NULL,
`birthday` date DEFAULT NULL,
`remark` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=93 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_member
-- ----------------------------
INSERT INTO `t_member` VALUES ('82', null, '小明', '1', '123456789000999999', '18512344321', '2019-03-08', null, null, null, null);
INSERT INTO `t_member` VALUES ('83', null, '王美丽', '1', '132333333333333', '13412345678', '2019-03-11', null, null, null, null);
INSERT INTO `t_member` VALUES ('84', null, 'test', null, null, '18511279942', '2019-03-13', null, null, null, null);
INSERT INTO `t_member` VALUES ('85', null, null, null, null, null, '2019-03-06', null, null, null, null);
INSERT INTO `t_member` VALUES ('86', null, null, null, null, null, '2019-04-04', null, null, null, null);
INSERT INTO `t_member` VALUES ('87', null, null, null, null, null, '2019-02-06', null, null, null, null);
INSERT INTO `t_member` VALUES ('88', null, null, null, null, null, '2019-04-10', null, null, null, null);
INSERT INTO `t_member` VALUES ('89', null, null, null, null, null, '2018-12-01', null, null, null, null);
INSERT INTO `t_member` VALUES ('90', null, null, null, null, null, '2018-12-02', null, null, null, null);
INSERT INTO `t_member` VALUES ('91', null, null, null, null, null, '2018-02-01', null, null, null, null);
INSERT INTO `t_member` VALUES ('92', null, '333', '2', '234234145432121345', '18019286521', '2019-04-19', null, null, null, null);
-- ----------------------------
-- Table structure for `t_menu`
-- ----------------------------
DROP TABLE IF EXISTS `t_menu`;
CREATE TABLE `t_menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) DEFAULT NULL,
`linkUrl` varchar(128) DEFAULT NULL,
`path` varchar(128) DEFAULT NULL,
`priority` int(11) DEFAULT NULL,
`icon` varchar(64) DEFAULT NULL,
`description` varchar(128) DEFAULT NULL,
`parentMenuId` int(11) DEFAULT NULL,
`level` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_Reference_13` (`parentMenuId`),
CONSTRAINT `FK_Reference_13` FOREIGN KEY (`parentMenuId`) REFERENCES `t_menu` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_menu
-- ----------------------------
INSERT INTO `t_menu` VALUES ('1', '会员管理', null, '2', '1', 'fa-user-md', null, null, '1');
INSERT INTO `t_menu` VALUES ('2', '会员档案', 'member.html', '/2-1', '1', null, null, '1', '2');
INSERT INTO `t_menu` VALUES ('3', '体检上传', null, '/2-2', '2', null, null, '1', '2');
INSERT INTO `t_menu` VALUES ('4', '会员统计', null, '/2-3', '3', null, null, '1', '2');
INSERT INTO `t_menu` VALUES ('5', '预约管理', null, '3', '2', 'fa-tty', null, null, '1');
INSERT INTO `t_menu` VALUES ('6', '预约列表', 'ordersettinglist.html', '/3-1', '1', null, null, '5', '2');
INSERT INTO `t_menu` VALUES ('7', '预约设置', 'ordersetting.html', '/3-2', '2', null, null, '5', '2');
INSERT INTO `t_menu` VALUES ('8', '套餐管理', 'setmeal.html', '/3-3', '3', null, null, '5', '2');
INSERT INTO `t_menu` VALUES ('9', '检查组管理', 'checkgroup.html', '/3-4', '4', null, null, '5', '2');
INSERT INTO `t_menu` VALUES ('10', '检查项管理', 'checkitem.html', '/3-5', '5', null, null, '5', '2');
INSERT INTO `t_menu` VALUES ('11', '健康评估', null, '4', '3', 'fa-stethoscope', null, null, '1');
INSERT INTO `t_menu` VALUES ('12', '中医体质辨识', null, '/4-1', '1', null, null, '11', '2');
INSERT INTO `t_menu` VALUES ('13', '统计分析', null, '5', '4', 'fa-heartbeat', null, null, '1');
INSERT INTO `t_menu` VALUES ('14', '会员数量', 'report_member.html', '/5-1', '1', null, null, '13', '2');
INSERT INTO `t_menu` VALUES ('15', '系统设置', null, '6', '5', 'fa-users', null, null, '1');
INSERT INTO `t_menu` VALUES ('16', '菜单管理', 'menu.html', '/6-1', '1', null, null, '15', '2');
INSERT INTO `t_menu` VALUES ('17', '权限管理', 'permission.html', '/6-2', '2', null, null, '15', '2');
INSERT INTO `t_menu` VALUES ('18', '角色管理', 'role.html', '/6-3', '3', null, null, '15', '2');
INSERT INTO `t_menu` VALUES ('19', '用户管理', 'user.html', '/6-4', '4', null, null, '15', '2');
INSERT INTO `t_menu` VALUES ('20', '套餐占比', 'report_setmeal.html', '/5-2', '2', null, null, '13', '2');
INSERT INTO `t_menu` VALUES ('21', '运营数据', 'report_business.html', '/5-3', '3', null, null, '13', '2');
-- ----------------------------
-- Table structure for `t_order`
-- ----------------------------
DROP TABLE IF EXISTS `t_order`;
CREATE TABLE `t_order` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`member_id` int(11) DEFAULT NULL COMMENT '员会id',
`orderDate` date DEFAULT NULL COMMENT '约预日期',
`orderType` varchar(8) DEFAULT NULL COMMENT '约预类型 电话预约/微信预约',
`orderStatus` varchar(8) DEFAULT NULL COMMENT '预约状态(是否到诊)',
`setmeal_id` int(11) DEFAULT NULL COMMENT '餐套id',
PRIMARY KEY (`id`),
KEY `key_member_id` (`member_id`),
KEY `key_setmeal_id` (`setmeal_id`),
CONSTRAINT `key_member_id` FOREIGN KEY (`member_id`) REFERENCES `t_member` (`id`),
CONSTRAINT `key_setmeal_id` FOREIGN KEY (`setmeal_id`) REFERENCES `t_setmeal` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_order
-- ----------------------------
INSERT INTO `t_order` VALUES ('17', '84', '2019-04-28', '微信预约', '未到诊', '12');
-- ----------------------------
-- Table structure for `t_ordersetting`
-- ----------------------------
DROP TABLE IF EXISTS `t_ordersetting`;
CREATE TABLE `t_ordersetting` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`orderDate` date DEFAULT NULL COMMENT '约预日期',
`number` int(11) DEFAULT NULL COMMENT '可预约人数',
`reservations` int(11) DEFAULT NULL COMMENT '已预约人数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_ordersetting
-- ----------------------------
INSERT INTO `t_ordersetting` VALUES ('13', '2019-03-04', '100', '100');
INSERT INTO `t_ordersetting` VALUES ('14', '2019-03-05', '200', '0');
INSERT INTO `t_ordersetting` VALUES ('15', '2019-03-06', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('16', '2019-03-07', '200', '0');
INSERT INTO `t_ordersetting` VALUES ('17', '2019-03-08', '200', '1');
INSERT INTO `t_ordersetting` VALUES ('18', '2019-03-09', '200', '0');
INSERT INTO `t_ordersetting` VALUES ('19', '2019-03-10', '200', '0');
INSERT INTO `t_ordersetting` VALUES ('20', '2019-03-11', '200', '3');
INSERT INTO `t_ordersetting` VALUES ('21', '2019-03-13', '300', '1');
INSERT INTO `t_ordersetting` VALUES ('22', '2019-03-14', '600', '0');
INSERT INTO `t_ordersetting` VALUES ('23', '2019-03-15', '500', '1');
INSERT INTO `t_ordersetting` VALUES ('24', '2019-03-16', '500', '0');
INSERT INTO `t_ordersetting` VALUES ('25', '2019-03-17', '400', '0');
INSERT INTO `t_ordersetting` VALUES ('26', '2019-03-19', '300', '1');
INSERT INTO `t_ordersetting` VALUES ('27', '2019-04-01', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('28', '2019-04-02', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('29', '2019-04-19', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('30', '2019-03-20', '200', '1');
INSERT INTO `t_ordersetting` VALUES ('31', '2019-05-01', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('32', '2019-03-28', '200', '1');
INSERT INTO `t_ordersetting` VALUES ('33', '2019-04-03', '400', '0');
INSERT INTO `t_ordersetting` VALUES ('34', '2019-09-30', '800', '0');
INSERT INTO `t_ordersetting` VALUES ('35', '2019-04-04', '400', '0');
INSERT INTO `t_ordersetting` VALUES ('36', '2019-04-05', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('37', '2019-04-14', '200', '1');
INSERT INTO `t_ordersetting` VALUES ('38', '2019-04-13', '200', '0');
INSERT INTO `t_ordersetting` VALUES ('39', '2019-04-17', '400', '0');
INSERT INTO `t_ordersetting` VALUES ('40', '2019-04-18', '1', '1');
INSERT INTO `t_ordersetting` VALUES ('41', '2019-04-20', '300', '1');
INSERT INTO `t_ordersetting` VALUES ('42', '2019-04-21', '300', '1');
INSERT INTO `t_ordersetting` VALUES ('43', '2019-04-22', '300', '1');
INSERT INTO `t_ordersetting` VALUES ('44', '2019-04-23', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('45', '2019-04-24', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('46', '2019-04-25', '400', '0');
INSERT INTO `t_ordersetting` VALUES ('47', '2019-04-26', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('48', '2019-04-27', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('49', '2019-04-28', '300', '2');
INSERT INTO `t_ordersetting` VALUES ('50', '2019-04-29', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('51', '2019-04-30', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('52', '2019-05-02', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('53', '2019-05-03', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('54', '2019-05-04', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('55', '2019-05-05', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('56', '2019-05-06', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('57', '2019-05-07', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('58', '2019-05-08', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('59', '2019-05-09', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('60', '2019-05-10', '300', '0');
INSERT INTO `t_ordersetting` VALUES ('61', '2019-05-11', '300', '0');
-- ----------------------------
-- Table structure for `t_permission`
-- ----------------------------
DROP TABLE IF EXISTS `t_permission`;
CREATE TABLE `t_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) DEFAULT NULL,
`keyword` varchar(64) DEFAULT NULL,
`description` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_permission
-- ----------------------------
INSERT INTO `t_permission` VALUES ('1', '新增检查项', 'CHECKITEM_ADD', null);
INSERT INTO `t_permission` VALUES ('2', '删除检查项', 'CHECKITEM_DELETE', null);
INSERT INTO `t_permission` VALUES ('3', '编辑检查项', 'CHECKITEM_EDIT', null);
INSERT INTO `t_permission` VALUES ('4', '查询检查项', 'CHECKITEM_QUERY', null);
INSERT INTO `t_permission` VALUES ('5', '新增检查组', 'CHECKGROUP_ADD', null);
INSERT INTO `t_permission` VALUES ('6', '删除检查组', 'CHECKGROUP_DELETE', null);
INSERT INTO `t_permission` VALUES ('7', '编辑检查组', 'CHECKGROUP_EDIT', null);
INSERT INTO `t_permission` VALUES ('8', '查询检查组', 'CHECKGROUP_QUERY', null);
INSERT INTO `t_permission` VALUES ('9', '新增套餐', 'SETMEAL_ADD', null);
INSERT INTO `t_permission` VALUES ('10', '删除套餐', 'SETMEAL_DELETE', null);
INSERT INTO `t_permission` VALUES ('11', '编辑套餐', 'SETMEAL_EDIT', null);
INSERT INTO `t_permission` VALUES ('12', '查询套餐', 'SETMEAL_QUERY', null);
INSERT INTO `t_permission` VALUES ('13', '预约设置', 'ORDERSETTING', null);
INSERT INTO `t_permission` VALUES ('14', '查看统计报表', 'REPORT_VIEW', null);
INSERT INTO `t_permission` VALUES ('15', '新增菜单', 'MENU_ADD', null);
INSERT INTO `t_permission` VALUES ('16', '删除菜单', 'MENU_DELETE', null);
INSERT INTO `t_permission` VALUES ('17', '编辑菜单', 'MENU_EDIT', null);
INSERT INTO `t_permission` VALUES ('18', '查询菜单', 'MENU_QUERY', null);
INSERT INTO `t_permission` VALUES ('19', '新增角色', 'ROLE_ADD', null);
INSERT INTO `t_permission` VALUES ('20', '删除角色', 'ROLE_DELETE', null);
INSERT INTO `t_permission` VALUES ('21', '编辑角色', 'ROLE_EDIT', null);
INSERT INTO `t_permission` VALUES ('22', '查询角色', 'ROLE_QUERY', null);
INSERT INTO `t_permission` VALUES ('23', '新增用户', 'USER_ADD', null);
INSERT INTO `t_permission` VALUES ('24', '删除用户', 'USER_DELETE', null);
INSERT INTO `t_permission` VALUES ('25', '编辑用户', 'USER_EDIT', null);
INSERT INTO `t_permission` VALUES ('26', '查询用户', 'USER_QUERY', null);
-- ----------------------------
-- Table structure for `t_role`
-- ----------------------------
DROP TABLE IF EXISTS `t_role`;
CREATE TABLE `t_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) DEFAULT NULL,
`keyword` varchar(64) DEFAULT NULL,
`description` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_role
-- ----------------------------
INSERT INTO `t_role` VALUES ('1', '系统管理员', 'ROLE_ADMIN', null);
INSERT INTO `t_role` VALUES ('2', '健康管理师', 'ROLE_HEALTH_MANAGER', null);
-- ----------------------------
-- Table structure for `t_role_menu`
-- ----------------------------
DROP TABLE IF EXISTS `t_role_menu`;
CREATE TABLE `t_role_menu` (
`role_id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL,
PRIMARY KEY (`role_id`,`menu_id`),
KEY `FK_Reference_10` (`menu_id`),
CONSTRAINT `FK_Reference_10` FOREIGN KEY (`menu_id`) REFERENCES `t_menu` (`id`),
CONSTRAINT `FK_Reference_9` FOREIGN KEY (`role_id`) REFERENCES `t_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_role_menu
-- ----------------------------
INSERT INTO `t_role_menu` VALUES ('1', '1');
INSERT INTO `t_role_menu` VALUES ('2', '1');
INSERT INTO `t_role_menu` VALUES ('1', '2');
INSERT INTO `t_role_menu` VALUES ('2', '2');
INSERT INTO `t_role_menu` VALUES ('1', '3');
INSERT INTO `t_role_menu` VALUES ('2', '3');
INSERT INTO `t_role_menu` VALUES ('1', '4');
INSERT INTO `t_role_menu` VALUES ('2', '4');
INSERT INTO `t_role_menu` VALUES ('1', '5');
INSERT INTO `t_role_menu` VALUES ('1', '6');
INSERT INTO `t_role_menu` VALUES ('1', '7');
INSERT INTO `t_role_menu` VALUES ('1', '8');
INSERT INTO `t_role_menu` VALUES ('1', '9');
INSERT INTO `t_role_menu` VALUES ('1', '10');
INSERT INTO `t_role_menu` VALUES ('1', '11');
INSERT INTO `t_role_menu` VALUES ('1', '12');
INSERT INTO `t_role_menu` VALUES ('1', '13');
INSERT INTO `t_role_menu` VALUES ('1', '14');
INSERT INTO `t_role_menu` VALUES ('1', '15');
INSERT INTO `t_role_menu` VALUES ('1', '16');
INSERT INTO `t_role_menu` VALUES ('1', '17');
INSERT INTO `t_role_menu` VALUES ('1', '18');
INSERT INTO `t_role_menu` VALUES ('1', '19');
INSERT INTO `t_role_menu` VALUES ('1', '20');
INSERT INTO `t_role_menu` VALUES ('1', '21');
-- ----------------------------
-- Table structure for `t_role_permission`
-- ----------------------------
DROP TABLE IF EXISTS `t_role_permission`;
CREATE TABLE `t_role_permission` (
`role_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`role_id`,`permission_id`),
KEY `FK_Reference_12` (`permission_id`),
CONSTRAINT `FK_Reference_11` FOREIGN KEY (`role_id`) REFERENCES `t_role` (`id`),
CONSTRAINT `FK_Reference_12` FOREIGN KEY (`permission_id`) REFERENCES `t_permission` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_role_permission
-- ----------------------------
INSERT INTO `t_role_permission` VALUES ('1', '1');
INSERT INTO `t_role_permission` VALUES ('2', '1');
INSERT INTO `t_role_permission` VALUES ('1', '2');
INSERT INTO `t_role_permission` VALUES ('2', '2');
INSERT INTO `t_role_permission` VALUES ('1', '3');
INSERT INTO `t_role_permission` VALUES ('2', '3');
INSERT INTO `t_role_permission` VALUES ('1', '4');
INSERT INTO `t_role_permission` VALUES ('2', '4');
INSERT INTO `t_role_permission` VALUES ('1', '5');
INSERT INTO `t_role_permission` VALUES ('2', '5');
INSERT INTO `t_role_permission` VALUES ('1', '6');
INSERT INTO `t_role_permission` VALUES ('2', '6');
INSERT INTO `t_role_permission` VALUES ('1', '7');
INSERT INTO `t_role_permission` VALUES ('2', '7');
INSERT INTO `t_role_permission` VALUES ('1', '8');
INSERT INTO `t_role_permission` VALUES ('2', '8');
INSERT INTO `t_role_permission` VALUES ('1', '9');
INSERT INTO `t_role_permission` VALUES ('2', '9');
INSERT INTO `t_role_permission` VALUES ('1', '10');
INSERT INTO `t_role_permission` VALUES ('2', '10');
INSERT INTO `t_role_permission` VALUES ('1', '11');
INSERT INTO `t_role_permission` VALUES ('2', '11');
INSERT INTO `t_role_permission` VALUES ('1', '12');
INSERT INTO `t_role_permission` VALUES ('2', '12');
INSERT INTO `t_role_permission` VALUES ('1', '13');
INSERT INTO `t_role_permission` VALUES ('2', '13');
INSERT INTO `t_role_permission` VALUES ('1', '14');
INSERT INTO `t_role_permission` VALUES ('2', '14');
INSERT INTO `t_role_permission` VALUES ('1', '15');
INSERT INTO `t_role_permission` VALUES ('1', '16');
INSERT INTO `t_role_permission` VALUES ('1', '17');
INSERT INTO `t_role_permission` VALUES ('1', '18');
INSERT INTO `t_role_permission` VALUES ('1', '19');
INSERT INTO `t_role_permission` VALUES ('1', '20');
INSERT INTO `t_role_permission` VALUES ('1', '21');
INSERT INTO `t_role_permission` VALUES ('1', '22');
INSERT INTO `t_role_permission` VALUES ('1', '23');
INSERT INTO `t_role_permission` VALUES ('1', '24');
INSERT INTO `t_role_permission` VALUES ('1', '25');
INSERT INTO `t_role_permission` VALUES ('1', '26');
-- ----------------------------
-- Table structure for `t_setmeal`
-- ----------------------------
DROP TABLE IF EXISTS `t_setmeal`;
CREATE TABLE `t_setmeal` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(128) DEFAULT NULL,
`code` varchar(8) DEFAULT NULL,
`helpCode` varchar(16) DEFAULT NULL,
`sex` char(1) DEFAULT NULL,
`age` varchar(32) DEFAULT NULL,
`price` float DEFAULT NULL,
`remark` varchar(128) DEFAULT NULL,
`attention` varchar(128) DEFAULT NULL,
`img` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_setmeal
-- ----------------------------
INSERT INTO `t_setmeal` VALUES ('12', '入职无忧体检套餐(男女通用)', '0001', 'RZTJ', '0', '18-60', '300', '入职体检套餐', null, 'a5e8e729-74ce-4939-bf36-9cdc02fb2ae51.jpg');
INSERT INTO `t_setmeal` VALUES ('13', '粉红珍爱(女)升级TM12项筛查体检套餐', '0002', 'FHZA', '2', '18-60', '1200', '本套餐针对宫颈(TCT检查、HPV乳头瘤病毒筛查)、乳腺(彩超,癌抗125),甲状腺(彩超,甲功验血)以及胸片,血常规肝功等有全面检查,非常适合女性全面疾病筛查使用。', null, 'd7114f3d-35bd-4e52-b0b5-9dfc83d54af72.jpg');
INSERT INTO `t_setmeal` VALUES ('14', '阳光爸妈升级肿瘤12项筛查(男女单人)体检套餐', '0003', 'YGBM', '0', '55-100', '1400', '本套餐主要针对常见肿瘤筛查,肝肾、颈动脉、脑血栓、颅内血流筛查,以及风湿、颈椎、骨密度检查', null, '1291b1fb-40c2-4558-b102-02e05c4cff6c3.jpg');
INSERT INTO `t_setmeal` VALUES ('15', '珍爱高端升级肿瘤12项筛查(男女单人)', '0004', 'ZAGD', '0', '14-20', '2400', '本套餐是一款针对生化五项检查,心,肝,胆,胃,甲状腺,颈椎,肺功能,脑部检查(经颅多普勒)以及癌症筛查,适合大众人群体检的套餐', null, '68c7c13f-8fc2-46c3-b5d6-f7ec7992dc6e1.jpg');
-- ----------------------------
-- Table structure for `t_setmeal_checkgroup`
-- ----------------------------
DROP TABLE IF EXISTS `t_setmeal_checkgroup`;
CREATE TABLE `t_setmeal_checkgroup` (
`setmeal_id` int(11) NOT NULL DEFAULT '0',
`checkgroup_id` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`setmeal_id`,`checkgroup_id`),
KEY `checkgroup_key` (`checkgroup_id`),
CONSTRAINT `checkgroup_key` FOREIGN KEY (`checkgroup_id`) REFERENCES `t_checkgroup` (`id`),
CONSTRAINT `setmeal_key` FOREIGN KEY (`setmeal_id`) REFERENCES `t_setmeal` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_setmeal_checkgroup
-- ----------------------------
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '5');
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '6');
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '7');
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '8');
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '9');
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '10');
INSERT INTO `t_setmeal_checkgroup` VALUES ('14', '10');
INSERT INTO `t_setmeal_checkgroup` VALUES ('15', '10');
INSERT INTO `t_setmeal_checkgroup` VALUES ('12', '11');
INSERT INTO `t_setmeal_checkgroup` VALUES ('14', '11');
INSERT INTO `t_setmeal_checkgroup` VALUES ('15', '11');
INSERT INTO `t_setmeal_checkgroup` VALUES ('14', '12');
INSERT INTO `t_setmeal_checkgroup` VALUES ('14', '13');
INSERT INTO `t_setmeal_checkgroup` VALUES ('15', '13');
INSERT INTO `t_setmeal_checkgroup` VALUES ('13', '14');
INSERT INTO `t_setmeal_checkgroup` VALUES ('15', '14');
INSERT INTO `t_setmeal_checkgroup` VALUES ('13', '15');
-- ----------------------------
-- Table structure for `t_user`
-- ----------------------------
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE `t_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`birthday` date DEFAULT NULL,
`gender` varchar(1) DEFAULT NULL,
`username` varchar(32) DEFAULT NULL,
`password` varchar(256) DEFAULT NULL,
`remark` varchar(32) DEFAULT NULL,
`station` varchar(1) DEFAULT NULL,
`telephone` varchar(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user
-- ----------------------------
INSERT INTO `t_user` VALUES ('1', null, null, 'admin', '$2a$10$u/BcsUUqZNWUxdmDhbnoeeobJy6IBsL1Gn/S0dMxI2RbSgnMKJ.4a', null, null, null);
INSERT INTO `t_user` VALUES ('2', null, null, 'xiaoming', '$2a$10$3xW2nBjwBM3rx1LoYprVsemNri5bvxeOd/QfmO7UDFQhW2HRHLi.C', null, null, null);
INSERT INTO `t_user` VALUES ('3', null, null, 'test', '$2a$10$zYJRscVUgHX1wqwu90WereuTmIg6h/JGirGG4SWBsZ60wVPCgtF8W', null, null, null);
-- ----------------------------
-- Table structure for `t_user_role`
-- ----------------------------
DROP TABLE IF EXISTS `t_user_role`;
CREATE TABLE `t_user_role` (
`user_id` int(11) NOT NULL,
`role_id` int(11) NOT NULL,
PRIMARY KEY (`user_id`,`role_id`),
KEY `FK_Reference_8` (`role_id`),
CONSTRAINT `FK_Reference_7` FOREIGN KEY (`user_id`) REFERENCES `t_user` (`id`),
CONSTRAINT `FK_Reference_8` FOREIGN KEY (`role_id`) REFERENCES `t_role` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of t_user_role
-- ----------------------------
INSERT INTO `t_user_role` VALUES ('1', '1');
INSERT INTO `t_user_role` VALUES ('2', '2');
|
ALTER TABLE AUTH_ACCESS CHANGE SCOPE_ID TENANT_ID VARCHAR(200);
ALTER TABLE AUTH_PERM CHANGE SCOPE_ID TENANT_ID VARCHAR(200);
ALTER TABLE AUTH_PERM_TYPE CHANGE SCOPE_ID TENANT_ID VARCHAR(200);
ALTER TABLE AUTH_ROLE CHANGE SCOPE_ID TENANT_ID VARCHAR(200);
ALTER TABLE AUTH_ROLE_DEF CHANGE SCOPE_ID TENANT_ID VARCHAR(200);
ALTER TABLE AUTH_USER_STATUS CHANGE SCOPE_ID TENANT_ID VARCHAR(200);
|
DROP TABLE IF EXISTS experiment_config;
DROP TABLE IF EXISTS experiment_run;
CREATE TABLE IF NOT EXISTS experiments (
id BIGINT,
details JSONB
);
|
<filename>src/data/sql/users.sql
INSERT INTO `users` (`email`,`first_name`,`last_name`,`password`,`date_joined`,`address`,`birthday`,`biography`,`phone`,`skype`)
VALUES ('<EMAIL>','Karrie','Buttress','JcfoKBYAB4k','2019-08-10','38737 Moose Avenue','1989-11-11','In est risus, auctor sed, tristique in, tempus sit amet, sem. Fusce consequat.',64574473047,'high-level'),
('<EMAIL>','Bob','Aymer','ZEE54kg','2018-12-21','738 Hagan Lane','1989-03-05','Pellentesque ultrices mattis odio.',75531015353,'mobile'),
('<EMAIL>','Zilvia','Boulding','VJyMV1Zat','2019-07-25','758 Old Shore Parkway','1989-12-30','Morbi a ipsum. Integer a nibh. In quis justo.',16371407508,'Re-engineered'),
('<EMAIL>','Emalee','Mollon','XUIeJ693h','2018-11-13','11 Dovetail Junction','0629-03-03','Suspendisse potenti.',21468788926,'Grass-roots'),
('<EMAIL>','Maria','Mulberry','oWspnl','2019-07-20','050 Bowman Alley','1989-04-08','Morbi quis tortor id nulla ultrices aliquet. Maecenas leo odio, condimentum id, luctus nec, molestie sed, justo.',62931646367,'fault-tolerant'),
('<EMAIL>','Levey','By','GdtcUU','2019-02-12','5 Iowa Avenue','1989-04-18','Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Mauris viverra diam vitae quam.',63271348718,'Team-oriented'),
('<EMAIL>','Baron','Eates','UQw6VeA','2019-05-03','87119 Northland Hill','1989-03-20','Sed vel enim sit amet nunc viverra dapibus. Nulla suscipit ligula in lacus.',41056175169,'portal'),
('<EMAIL>','Trip','Vink','49znXd7haFGz','2019-01-13','6823 Lillian Point','1989-12-13','Pellentesque viverra pede ac diam. Cras pellentesque volutpat dui. Maecenas tristique, est et tempus semper, est quam pharetra magna, ac consequat metus sapien ut nunc.',72882384431,'intermediate'),
('<EMAIL>','Boonie','Terbeck','unCjJTF7sjs','2019-09-15','43 Marquette Plaza','1989-01-14','Morbi ut odio.',69043821394,'local area network'),
('<EMAIL>','Alonzo',' raviss','dLuVMAg','2018-12-19','5303 Village Green Hill','1989-02-03','Suspendisse ornare consequat lectus. In est risus, auctor sed, tristique in, tempus sit amet, sem. Fusce consequat.',28396220507,'upward-trending'),
('<EMAIL>','Natassia','Wittering','tQlUG4n','2019-03-24','67399 Reindahl Place','1989-05-23','Phasellus sit amet erat. Nulla tempus. Vivamus in felis eu sapien cursus vestibulum.',83344513307,'grid-enabled'),
('<EMAIL>','Felice',' Brooke','s9y9Mcfgy1g','2019-09-27','45 T<NAME>','1989-07-06','Vivamus metus arcu, adipiscing molestie, hendrerit at, vulputate vitae, nisl. Aenean lectus. Pellentesque eget nunc.',64890419671,'background'),
('<EMAIL>','Carlen','Viccary','9qd747vh','2018-12-06','46 Sheridan Place','1903-04-16','Quisque ut erat. Curabitur gravida nisi at nibh. In hac habitasse platea dictumst.',23005580487,'challenge'),
('<EMAIL>','Hendrik','Gethings','zzN5c4','2018-11-18','73 K<NAME>','1989-11-07','Pellentesque at nulla. Suspendisse potenti. Cras in purus eu magna vulputate luctus.',27052074771,'coherent'),
('<EMAIL>','Dunc','Girodias','j9QW6GQI','2018-10-14','85509 Ludington Drive','1989-02-13','Cras pellentesque volutpat dui.',14800371520,'neutral'),
('<EMAIL>','Bibbie','Tanman','1aukKNEIneq','2019-05-03','67 Northwestern Center','1989-07-07','Aliquam erat volutpat. In congue.',75569924500,'Programmable'),
('<EMAIL>','Barnabas','Bartoletti','3chTNtqhoo','2018-12-25','725 Eagle Crest Hill','1989-09-29','Nulla ac enim. In tempor, turpis nec euismod scelerisque, quam turpis adipiscing lorem, vitae mattis nibh ligula nec sem. Duis aliquam convallis nunc.',37349256497,'encompassing'),
('<EMAIL>','Nixie','Cullip','2UdKIR2f','2019-04-07','507 Graceland Junction','1989-03-19','Suspendisse potenti.',12403580562,'knowledge base'),
('<EMAIL>','Matilde','Pimblott','nGZ8disdg','2019-07-18','92 Gina Park','1989-09-29','Phasellus sit amet erat.',40139478003,'dynamic'),
('<EMAIL>','Al','Skurray','bL9tAf','2018-11-25','8 Ridgeview Trail','1989-12-21','Cras pellentesque volutpat dui.',76657531985,'solution'); |
<filename>sql/_31_cherry/issue_22705_parallel_online_index/_003_partition/cases/cubrid_sus665.sql
--Test bug cubrid_sus665
create table par_t (
pgm_id char(20),
dummy char(1000)
)
partition by list (pgm_id) (
partition day_01 values in ('day_01'),
partition day_02 values in ('day_02'),
partition day_03 values in ('day_03')
);
create index par_index on par_t (pgm_id) with online parallel 5;
drop index par_index on par_t;
select * from db_index where index_name like 'par_index%';
drop table par_t;
|
<filename>0.1.x/JFPC-Beans/src/main/java/org/jfpc/beans/platform/MS1C2/MS1C2.sql
CREATE TABLE ms1c2
(
puk VARCHAR(24) DEFAULT '0' NOT NULL,
k01_zzjgbh VARCHAR(24),
k02_zzjgid VARCHAR(24),
f01_jgqc VARCHAR(80),
f02_jgjc VARCHAR(40),
f03_fzr_xm VARCHAR(20),
f04_fzr_sj VARCHAR(20),
f05_fzr_zj VARCHAR(20),
f06_clrq VARCHAR(20),
f07_yyygs VARCHAR(20),
f08_jglb VARCHAR(4),
f09_plsx VARCHAR(4),
bbb VARCHAR(80),
fb1 VARCHAR(80),
fb2 VARCHAR(20),
fb3 VARCHAR(20),
fb4 VARCHAR(20),
fb5 VARCHAR(20),
eb1 VARCHAR(20),
eb2 VARCHAR(20),
eb3 VARCHAR(20),
eb4 VARCHAR(20),
eb5 VARCHAR(20),
ggg VARCHAR(24) DEFAULT 'SYSTEM',
ppp VARCHAR(24) DEFAULT 'SYSTEM',
ddd VARCHAR(4) DEFAULT '0' NOT NULL,
cc1 VARCHAR(24) DEFAULT '2014/2/8' NOT NULL,
cc2 VARCHAR(24) DEFAULT 'SYSTEM' NOT NULL,
uu1 VARCHAR(24),
uu2 VARCHAR(24),
PRIMARY KEY (puk)
)
|
<reponame>HelenIL/HW12-Employee-Tracker<filename>sql/seed.sql
USE employeeDB;
INSERT INTO department (dep_name)
VALUE ("Sales");
INSERT INTO department (dep_name)
VALUE ("Engineering");
INSERT INTO department (dep_name)
VALUE ("Finance");
INSERT INTO department (dep_name)
VALUE ("Legal");
INSERT INTO role (title, salary, department_id)
VALUES ("Sales Lead", 100000, 1);
INSERT INTO role (title, salary, department_id)
VALUES ("Salesperson", 80000, 1);
INSERT INTO role (title, salary, department_id)
VALUES ("Lead Engineer", 150000, 2);
INSERT INTO role (title, salary, department_id)
VALUES ("Software Engineer", 120000, 2);
INSERT INTO role (title, salary, department_id)
VALUES ("Account Manager", 150000, 3);
INSERT INTO role (title, salary, department_id)
VALUES ("Accountant", 125000, 3);
INSERT INTO role (title, salary, department_id)
VALUES ("Legal Team Lead", 250000, 4);
INSERT INTO role (title, salary, department_id)
VALUES ("Legal Assistant", 100000, 4);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Bender", "Rodriguez", 1, null);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Turanga", "Leela", 1, 1);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Phillip", "Fry", 2, 2);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Hubert", "Farnsworth", 3, null);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Amy", "Wong", 4, 4);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Hermes", "Conrad", 5, null);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("John", "Zoidberg", 6,6);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Scruffy", "Scruffington", 7, null);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Wash", "Bucket", 7, 7);
|
<reponame>chili-dog-night/site
CREATE TABLE IF NOT EXISTS media
(
id SERIAL NOT NULL UNIQUE,
title TEXT NOT NULL,
uri TEXT NOT NULL,
rating INT NOT NULL,
viewed_at DATE NOT NULL,
created_at TIMESTAMPTZ NOT NULL,
updated_at TIMESTAMPTZ,
PRIMARY KEY (id)
);
|
<reponame>RedDiamond69/Database-lab-works<gh_stars>0
USE AdventureWorks2012;
GO
CREATE PROCEDURE XmlToTable
@xml XML
AS
BEGIN
SELECT
Address.value('@ID', 'INT') AS [AddressID],
Address.value('(City)[1]', 'NVARCHAR(30)') AS [City],
Address.value('(Province/@ID)[1]', 'INT') AS [StateProvinceID],
Address.value('(Province/Region)[1]', 'NVARCHAR(3)') AS [CountryRegionCode]
FROM @xml.nodes('Addresses/Address') AS X(Address);
END;
GO
DECLARE @xml XML =
(SELECT
[ADR].[AddressID] AS '@ID',
[ADR].[City],
[SP].[StateProvinceID] AS 'Province/@ID',
[SP].[CountryRegionCode] AS 'Province/Region'
FROM [Person].[Address] AS [ADR]
INNER JOIN [Person].[StateProvince] AS [SP]
ON [ADR].[StateProvinceID] = [SP].[StateProvinceID]
FOR XML PATH('Address'), ROOT('Addresses'));
SELECT @xml;
EXEC XmlToTable @xml;
GO
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 14.1 (Debian 14.1-1.pgdg110+1)
-- Dumped by pg_dump version 14.2
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Data for Name: users; Type: TABLE DATA; Schema: auth; Owner: supabase_auth_admin
--
INSERT INTO auth.users VALUES ('00000000-0000-0000-0000-000000000000', 'c881aa73-30be-495f-8e03-53df891c8569', '', 'authenticated', '<EMAIL>', '$2a$10$i9c8SYWZzSqFAZTmLCywm.44yq9Kyb27r0192GE7LU2rmWgMUO.na', '2022-03-10 03:04:24.48735+00', NULL, '', '2022-03-10 03:04:13.284463+00', '', '2022-03-10 03:26:34.868467+00', '', '', NULL, '2022-03-10 03:26:46.241308+00', '{"provider": "email", "providers": ["email"]}', '{}', false, '2022-03-10 03:04:13.273477+00', '2022-03-10 03:04:13.273483+00', NULL, NULL, '', '', NULL, DEFAULT, '', 0, NULL);
--
-- Data for Name: profiles; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTO public.profiles VALUES ('c881aa73-30be-495f-8e03-53df891c8569', '2022-03-10 05:43:08.138+00', 'hirotaka');
--
-- PostgreSQL database dump complete
--
|
-- AlterTable
ALTER TABLE `User` ADD COLUMN `resume_link` VARCHAR(500) NULL;
|
<reponame>mugistanley/CI-Auth<filename>db/db.sql
CREATE DATABASE ci_auth;
USE ci_auth;
CREATE TABLE IF NOT EXISTS user (
id int(11) NOT NULL AUTO_INCREMENT,
username varchar(128) DEFAULT NULL,
password varchar(128) DEFAULT NULL,
salt varchar(128) DEFAULT NULL,
role tinyint(2) NOT NULL DEFAULT '2',
lastLogin datetime DEFAULT '0000-00-00 00:00:00',
createdOn datetime DEFAULT NULL,
lastModified datetime DEFAULT NULL,
PRIMARY KEY (id)
);
INSERT INTO user (id, username, password, salt, role, lastLogin, createdOn, lastModified) VALUES
(1, 'admin', '<PASSWORD>', '<PASSWORD>', 1 , '0000-00-00 00:00:00', '2018-05-07 12:03:31', '0000-00-00 00:00:00'); |
<gh_stars>0
CREATE OR REPLACE VIEW public.vw_pallet_sequence_flat
AS
SELECT ps.id,
ps.pallet_id,
ps.pallet_number,
ps.pallet_sequence_number,
plt_packhouses.plant_resource_code AS plt_packhouse,
plt_lines.plant_resource_code AS plt_line,
packhouses.plant_resource_code AS packhouse,
lines.plant_resource_code AS line,
p.location_id,
locations.location_long_code::text AS location,
p.shipped,
p.in_stock,
p.inspected,
p.reinspected,
p.palletized,
p.partially_palletized,
p.allocated,
floor(fn_calc_age_days(p.id, p.created_at, COALESCE(p.shipped_at, p.scrapped_at))) AS pallet_age,
floor(fn_calc_age_days(p.id, COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at), COALESCE(p.shipped_at, p.scrapped_at))) AS inspection_age,
floor(fn_calc_age_days(p.id, p.stock_created_at, COALESCE(p.shipped_at, p.scrapped_at))) AS stock_age,
floor(fn_calc_age_days(p.id, p.first_cold_storage_at, COALESCE(p.shipped_at, p.scrapped_at))) AS cold_age,
floor(fn_calc_age_days(p.id, COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at), COALESCE(p.shipped_at, p.scrapped_at))) - floor(fn_calc_age_days(p.id, p.first_cold_storage_at, COALESCE(p.shipped_at, p.scrapped_at))) AS ambient_age,
floor(fn_calc_age_days(p.id, p.govt_reinspection_at, COALESCE(p.shipped_at, p.scrapped_at))) AS reinspection_age,
floor(fn_calc_age_days(p.id, COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at), ps.created_at)) AS pack_to_inspect_age,
floor(fn_calc_age_days(p.id, p.first_cold_storage_at, COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at))) AS inspect_to_cold_age,
floor(fn_calc_age_days(p.id, COALESCE(p.first_cold_storage_at, COALESCE(p.shipped_at, p.scrapped_at)), COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at))) AS inspect_to_exit_warm_age,
p.first_cold_storage_at,
p.first_cold_storage_at::date AS first_cold_storage_date,
p.govt_inspection_passed,
p.govt_first_inspection_at,
p.govt_first_inspection_at::date AS govt_first_inspection_date,
p.govt_reinspection_at,
p.govt_reinspection_at::date AS govt_reinspection_date,
p.shipped_at,
p.shipped_at::date AS shipped_date,
ps.created_at AS packed_at,
ps.created_at::date AS packed_date,
to_char(ps.created_at, 'IYYY--IW'::text) AS packed_week,
ps.created_at,
ps.updated_at,
p.scrapped,
p.scrapped_at,
p.scrapped_at::date AS scrapped_date,
ps.production_run_id,
farms.farm_code AS farm,
farm_groups.farm_group_code AS farm_group,
production_regions.production_region_code AS production_region,
production_regions.inspection_region AS production_area,
pucs.puc_code AS puc,
orchards.orchard_code AS orchard,
commodities.code AS commodity,
cultivar_groups.cultivar_group_code AS cultivar_group,
cultivars.cultivar_name AS cultivar,
marketing_varieties.marketing_variety_code AS marketing_variety,
marketing_varieties.inspection_variety,
fn_party_role_name(ps.marketing_org_party_role_id) AS marketing_org,
target_market_groups.target_market_group_name AS packed_tm_group,
target_markets.target_market_name AS target_market,
marks.mark_code AS mark,
pm_marks.packaging_marks,
inventory_codes.inventory_code,
cvv.marketing_variety_code AS customer_variety,
std_fruit_size_counts.size_count_value AS std_size,
fruit_size_references.size_reference AS size_ref,
std_fruit_size_counts.size_count_interval_group AS count_group,
std_fruit_size_counts.marketing_size_range_mm AS diameter_range,
fruit_actual_counts_for_packs.actual_count_for_pack AS actual_count,
basic_pack_codes.basic_pack_code AS basic_pack,
standard_pack_codes.standard_pack_code AS std_pack,
pm_boms.nett_weight AS pm_bom_nett_weight,
standard_product_weights.ratio_to_standard_carton,
standard_product_weights_for_commodity.nett_weight AS standard_product_weights_for_commodity_nett_weight,
CASE
WHEN pm_boms.nett_weight IS NULL THEN ps.carton_quantity::numeric / standard_product_weights.ratio_to_standard_carton
ELSE ps.carton_quantity::numeric * (NULLIF(pm_boms.nett_weight, 0::numeric) / standard_product_weights_for_commodity.nett_weight)
END AS std_ctns,
ps.product_resource_allocation_id AS resource_allocation_id,
( SELECT array_agg(t.treatment_code) AS array_agg
FROM pallet_sequences sq
JOIN treatments t ON t.id = ANY (sq.treatment_ids)
WHERE sq.id = ps.id
GROUP BY sq.id) AS treatments,
ps.client_size_reference AS client_size_ref,
ps.client_product_code,
ps.marketing_order_number AS order_number,
seasons.season_code AS season,
pm_subtypes.subtype_code AS pm_subtype,
pm_types.pm_type_code AS pm_type,
cartons_per_pallet.cartons_per_pallet AS cpp,
pm_products.product_code AS fruit_sticker,
pm_products_2.product_code AS fruit_sticker_2,
COALESCE(p.gross_weight, load_containers.actual_payload / (( SELECT count(*) AS count
FROM pallets
WHERE pallets.load_id = loads.id))::numeric) AS gross_weight,
p.gross_weight_measured_at,
p.nett_weight,
ps.nett_weight AS sequence_nett_weight,
COALESCE(p.gross_weight / p.carton_quantity::numeric, load_containers.actual_payload / (( SELECT sum(pallets.carton_quantity) AS sum
FROM pallets
WHERE pallets.load_id = loads.id))::numeric) AS carton_gross_weight,
ps.nett_weight / ps.carton_quantity::numeric AS carton_nett_weight,
p.exit_ref,
p.phc,
p.stock_created_at,
p.intake_created_at,
p.palletized_at,
p.palletized_at::date AS palletized_date,
p.partially_palletized_at,
p.allocated_at,
pallet_bases.pallet_base_code AS pallet_base,
pallet_stack_types.stack_type_code AS stack_type,
fn_pallet_verification_failed(p.id) AS pallet_verification_failed,
ps.verified,
ps.verification_passed,
pallet_verification_failure_reasons.reason AS verification_failure_reason,
ps.verification_result,
ps.verified_at,
pm_boms.bom_code AS bom,
pm_boms.system_code AS pm_bom_system_code,
ps.extended_columns,
ps.carton_quantity,
ps.scanned_from_carton_id AS scanned_carton,
ps.scrapped_at AS seq_scrapped_at,
ps.exit_ref AS seq_exit_ref,
ps.pick_ref,
p.carton_quantity AS pallet_carton_quantity,
ps.carton_quantity::numeric / p.carton_quantity::numeric AS pallet_size,
p.build_status,
fn_current_status('pallets'::text, p.id) AS status,
fn_current_status('pallet_sequences'::text, ps.id) AS sequence_status,
p.active,
p.load_id,
vessels.vessel_code AS vessel,
voyages.voyage_code AS voyage,
voyages.voyage_number,
load_containers.container_code AS container,
load_containers.internal_container_code AS internal_container,
load_containers.container_seal_code,
cargo_temperatures.temperature_code AS temp_code,
load_vehicles.vehicle_number,
CASE
WHEN p.first_cold_storage_at IS NULL THEN false
ELSE true
END AS cooled,
pol_ports.port_code AS pol,
pod_ports.port_code AS pod,
destination_cities.city_name AS final_destination,
fn_party_role_name(loads.customer_party_role_id) AS customer,
fn_party_role_name(loads.consignee_party_role_id) AS consignee,
fn_party_role_name(loads.final_receiver_party_role_id) AS final_receiver,
fn_party_role_name(loads.exporter_party_role_id) AS exporter,
fn_party_role_name(loads.billing_client_party_role_id) AS billing_client,
loads.exporter_certificate_code,
loads.customer_reference,
loads.order_number AS internal_order_number,
loads.customer_order_number,
destination_countries.country_name AS country,
destination_regions.destination_region_name AS region,
pod_voyage_ports.eta,
pod_voyage_ports.ata,
pol_voyage_ports.etd,
pol_voyage_ports.atd,
COALESCE(pod_voyage_ports.ata, pod_voyage_ports.eta) AS arrival_date,
COALESCE(pol_voyage_ports.atd, pol_voyage_ports.etd) AS departure_date,
COALESCE(p.load_id, 0) AS zero_load_id,
p.fruit_sticker_pm_product_id,
p.fruit_sticker_pm_product_2_id,
ps.pallet_verification_failure_reason_id,
grades.grade_code AS grade,
grades.rmt_grade,
grades.inspection_class,
ps.sell_by_code,
ps.product_chars,
load_voyages.booking_reference,
govt_inspection_pallets.govt_inspection_sheet_id,
COALESCE(govt_inspection_sheets.inspection_point, p.edi_in_inspection_point) AS inspection_point,
inspected_dest_country.country_name AS inspected_dest_country,
p.last_govt_inspection_pallet_id,
p.pallet_format_id,
p.temp_tail,
fn_party_role_name(load_voyages.shipper_party_role_id) AS shipper,
p.depot_pallet,
edi_in_transactions.file_name AS edi_in_file,
p.edi_in_consignment_note_number,
COALESCE(p.govt_reinspection_at, p.govt_first_inspection_at)::date AS inspection_date,
COALESCE(
CASE
WHEN NOT p.govt_inspection_passed THEN govt_inspection_sheets.consignment_note_number || 'F'::text
WHEN p.govt_inspection_passed THEN govt_inspection_sheets.consignment_note_number
ELSE ''::text
END, p.edi_in_consignment_note_number) AS addendum_manifest,
p.repacked,
p.repacked_at,
p.repacked_at::date AS repacked_date,
ps.repacked_from_pallet_id,
repacked_from_pallets.pallet_number AS repacked_from_pallet_number,
otmc.failed_otmc_results,
otmc.failed_otmc,
ps.phyto_data,
ps.created_by,
ps.verified_by,
fn_edi_size_count(standard_pack_codes.use_size_ref_for_edi, commodities.use_size_ref_for_edi, fruit_size_references.edi_out_code, fruit_size_references.size_reference, fruit_actual_counts_for_packs.actual_count_for_pack) AS edi_size_count,
ps.target_customer_party_role_id,
fn_party_role_name(ps.target_customer_party_role_id) AS target_customer,
govt_inspection_sheets.consignment_note_number,
'DN'::text || loads.id::text AS dispatch_note,
depots.depot_code AS depot,
loads.edi_file_name AS po_file_name,
palletizing_bays.plant_resource_code AS palletizing_bay,
p.has_individual_cartons,
palletizer_details.palletizer_identifier,
palletizer_details.palletizer_contract_worker,
palletizer_details.palletizer_personnel_number,
( SELECT count(pallet_sequences.id) AS count
FROM pallet_sequences
WHERE pallet_sequences.pallet_id = p.id) AS sequence_count,
ps.marketing_puc_id,
marketing_pucs.puc_code AS marketing_puc,
ps.marketing_orchard_id,
registered_orchards.orchard_code AS marketing_orchard,
ps.gtin_code,
ps.rmt_class_id,
rmt_classes.rmt_class_code,
ps.packing_specification_item_id,
fn_packing_specification_code(ps.packing_specification_item_id) AS packing_specification_code,
ps.tu_labour_product_id,
tu_pm_products.product_code AS tu_labour_product,
ps.ru_labour_product_id,
ru_pm_products.product_code AS ru_labour_product,
ps.fruit_sticker_ids,
( SELECT array_agg(t.product_code ORDER BY t.product_code) AS array_agg
FROM pm_products t
JOIN pallet_sequences sq ON t.id = ANY (sq.fruit_sticker_ids)
WHERE sq.id = ps.id
GROUP BY sq.id) AS fruit_stickers,
ps.tu_sticker_ids,
( SELECT array_agg(t.product_code ORDER BY t.product_code) AS array_agg
FROM pm_products t
JOIN pallet_sequences sq ON t.id = ANY (sq.tu_sticker_ids)
WHERE sq.id = ps.id
GROUP BY sq.id) AS tu_stickers,
CASE
WHEN p.scrapped THEN 'warning'::text
WHEN p.shipped THEN 'inactive'::text
WHEN p.allocated THEN 'ready'::text
WHEN p.in_stock THEN 'ok'::text
WHEN p.palletized OR p.partially_palletized THEN 'inprogress'::text
WHEN p.inspected AND NOT p.govt_inspection_passed THEN 'error'::text
WHEN ps.verified AND NOT ps.verification_passed THEN 'error'::text
ELSE NULL::text
END AS colour_rule,
pucs.gap_code,
CASE
WHEN target_markets.inspection_tm THEN target_markets.target_market_name
ELSE target_market_groups.target_market_group_name
END AS inspection_tm,
pucs.gap_code_valid_from,
pucs.gap_code_valid_until,
p.batch_number,
p.rmt_container_material_owner_id,
concat(rmt_container_material_types.container_material_type_code, ' - ', fn_party_role_name(rmt_container_material_owners.rmt_material_owner_party_role_id)) AS rmt_container_material_owner,
ps.colour_percentage_id,
colour_percentages.colour_percentage,
colour_percentages.description AS colour_description,
ps.work_order_item_id,
fn_work_order_item_code(ps.work_order_item_id) AS work_order_item_code,
CASE
WHEN p.gross_weight IS NULL THEN ps.nett_weight / (( SELECT sum(pallet_sequences.nett_weight) AS sum
FROM pallet_sequences
WHERE (pallet_sequences.pallet_id IN ( SELECT pallets.id
FROM pallets
WHERE pallets.load_id = loads.id)))) * load_containers.actual_payload
ELSE ps.carton_quantity::numeric / p.carton_quantity::numeric * p.gross_weight
END AS sequence_gross_weight,
p.edi_in_load_number,
ps.actual_cold_treatment_id,
actual_cold_treatments.treatment_code AS actual_cold_treatment,
ps.actual_ripeness_treatment_id,
actual_ripeness_treatments.treatment_code AS actual_ripeness_treatment,
ps.rmt_code_id,
rmt_codes.rmt_code
FROM pallets p
JOIN pallet_sequences ps ON p.id = ps.pallet_id
LEFT JOIN pallets repacked_from_pallets ON repacked_from_pallets.id = ps.repacked_from_pallet_id
LEFT JOIN plant_resources plt_packhouses ON plt_packhouses.id = p.plt_packhouse_resource_id
LEFT JOIN plant_resources plt_lines ON plt_lines.id = p.plt_line_resource_id
LEFT JOIN plant_resources packhouses ON packhouses.id = ps.packhouse_resource_id
LEFT JOIN plant_resources lines ON lines.id = ps.production_line_id
LEFT JOIN plant_resources palletizing_bays ON palletizing_bays.id = p.palletizing_bay_resource_id
JOIN locations ON locations.id = p.location_id
JOIN farms ON farms.id = ps.farm_id
LEFT JOIN farm_groups ON farms.farm_group_id = farm_groups.id
JOIN production_regions ON production_regions.id = farms.pdn_region_id
JOIN pucs ON pucs.id = ps.puc_id
JOIN orchards ON orchards.id = ps.orchard_id
JOIN cultivar_groups ON cultivar_groups.id = ps.cultivar_group_id
LEFT JOIN cultivars ON cultivars.id = ps.cultivar_id
LEFT JOIN commodities ON commodities.id = cultivar_groups.commodity_id
JOIN marketing_varieties ON marketing_varieties.id = ps.marketing_variety_id
JOIN marks ON marks.id = ps.mark_id
LEFT JOIN pm_marks ON pm_marks.id = ps.pm_mark_id
JOIN inventory_codes ON inventory_codes.id = ps.inventory_code_id
JOIN target_market_groups ON target_market_groups.id = ps.packed_tm_group_id
LEFT JOIN target_markets ON target_markets.id = ps.target_market_id
JOIN grades ON grades.id = ps.grade_id
LEFT JOIN customer_varieties ON customer_varieties.id = ps.customer_variety_id
LEFT JOIN marketing_varieties cvv ON cvv.id = customer_varieties.variety_as_customer_variety_id
LEFT JOIN std_fruit_size_counts ON std_fruit_size_counts.id = ps.std_fruit_size_count_id
LEFT JOIN fruit_size_references ON fruit_size_references.id = ps.fruit_size_reference_id
LEFT JOIN fruit_actual_counts_for_packs ON fruit_actual_counts_for_packs.id = ps.fruit_actual_counts_for_pack_id
JOIN basic_pack_codes ON basic_pack_codes.id = ps.basic_pack_code_id
JOIN standard_pack_codes ON standard_pack_codes.id = ps.standard_pack_code_id
LEFT JOIN pm_boms ON pm_boms.id = ps.pm_bom_id
LEFT JOIN pm_subtypes ON pm_subtypes.id = ps.pm_subtype_id
LEFT JOIN pm_types ON pm_types.id = ps.pm_type_id
JOIN seasons ON seasons.id = ps.season_id
JOIN cartons_per_pallet ON cartons_per_pallet.id = ps.cartons_per_pallet_id
LEFT JOIN pm_products ON pm_products.id = p.fruit_sticker_pm_product_id
LEFT JOIN pm_products pm_products_2 ON pm_products_2.id = p.fruit_sticker_pm_product_2_id
LEFT JOIN pallet_formats ON pallet_formats.id = p.pallet_format_id
LEFT JOIN pallet_bases ON pallet_bases.id = pallet_formats.pallet_base_id
LEFT JOIN pallet_stack_types ON pallet_stack_types.id = pallet_formats.pallet_stack_type_id
LEFT JOIN pallet_verification_failure_reasons ON pallet_verification_failure_reasons.id = ps.pallet_verification_failure_reason_id
LEFT JOIN loads ON loads.id = p.load_id
LEFT JOIN load_voyages ON loads.id = load_voyages.load_id
LEFT JOIN voyage_ports pol_voyage_ports ON pol_voyage_ports.id = loads.pol_voyage_port_id
LEFT JOIN voyage_ports pod_voyage_ports ON pod_voyage_ports.id = loads.pod_voyage_port_id
LEFT JOIN voyages ON voyages.id = pol_voyage_ports.voyage_id
LEFT JOIN vessels ON vessels.id = voyages.vessel_id
LEFT JOIN load_containers ON load_containers.load_id = loads.id
LEFT JOIN load_vehicles ON load_vehicles.load_id = loads.id
LEFT JOIN ports pol_ports ON pol_ports.id = pol_voyage_ports.port_id
LEFT JOIN ports pod_ports ON pod_ports.id = pod_voyage_ports.port_id
LEFT JOIN destination_cities ON destination_cities.id = loads.final_destination_id
LEFT JOIN destination_countries ON destination_countries.id = destination_cities.destination_country_id
LEFT JOIN destination_regions ON destination_regions.id = destination_countries.destination_region_id
LEFT JOIN cargo_temperatures ON cargo_temperatures.id = load_containers.cargo_temperature_id
LEFT JOIN govt_inspection_pallets ON govt_inspection_pallets.id = p.last_govt_inspection_pallet_id
LEFT JOIN govt_inspection_sheets ON govt_inspection_sheets.id = govt_inspection_pallets.govt_inspection_sheet_id
LEFT JOIN destination_countries inspected_dest_country ON inspected_dest_country.id = govt_inspection_sheets.destination_country_id
LEFT JOIN edi_in_transactions ON edi_in_transactions.id = p.edi_in_transaction_id
LEFT JOIN depots ON depots.id = loads.depot_id
LEFT JOIN ( SELECT sq.id,
COALESCE(btrim(array_agg(orchard_test_types.test_type_code)::text), ''::text) <> ''::text AS failed_otmc,
array_agg(orchard_test_types.test_type_code) AS failed_otmc_results
FROM pallet_sequences sq
JOIN orchard_test_types ON orchard_test_types.id = ANY (sq.failed_otmc_results)
GROUP BY sq.id) otmc ON otmc.id = ps.id
LEFT JOIN ( SELECT pallet_sequences.pallet_id,
string_agg(DISTINCT palletizers.identifier, ', '::text) AS palletizer_identifier,
string_agg(DISTINCT concat(palletizer_contract_workers.first_name, '_', palletizer_contract_workers.surname), ', '::text) AS palletizer_contract_worker,
string_agg(DISTINCT palletizer_contract_workers.personnel_number, ', '::text) AS palletizer_personnel_number
FROM cartons
LEFT JOIN personnel_identifiers palletizers ON palletizers.id = cartons.palletizer_identifier_id
LEFT JOIN pallet_sequences ON pallet_sequences.id = cartons.pallet_sequence_id
LEFT JOIN contract_workers palletizer_contract_workers ON palletizer_contract_workers.personnel_identifier_id = cartons.palletizer_identifier_id
GROUP BY pallet_sequences.pallet_id) palletizer_details ON ps.pallet_id = palletizer_details.pallet_id
LEFT JOIN standard_product_weights ON standard_product_weights.standard_pack_id = standard_pack_codes.id AND standard_product_weights.commodity_id = commodities.id
LEFT JOIN standard_product_weights standard_product_weights_for_commodity ON standard_product_weights_for_commodity.commodity_id = commodities.id AND standard_product_weights_for_commodity.is_standard_carton
LEFT JOIN pucs marketing_pucs ON marketing_pucs.id = ps.marketing_puc_id
LEFT JOIN registered_orchards ON registered_orchards.id = ps.marketing_orchard_id
LEFT JOIN rmt_classes ON rmt_classes.id = ps.rmt_class_id
LEFT JOIN pm_products tu_pm_products ON tu_pm_products.id = ps.tu_labour_product_id
LEFT JOIN pm_products ru_pm_products ON ru_pm_products.id = ps.ru_labour_product_id
LEFT JOIN rmt_container_material_owners ON rmt_container_material_owners.id = p.rmt_container_material_owner_id
LEFT JOIN rmt_container_material_types ON rmt_container_material_types.id = rmt_container_material_owners.rmt_container_material_type_id
LEFT JOIN colour_percentages ON colour_percentages.id = ps.colour_percentage_id
LEFT JOIN treatments actual_cold_treatments ON actual_cold_treatments.id = ps.actual_cold_treatment_id
LEFT JOIN treatments actual_ripeness_treatments ON actual_ripeness_treatments.id = ps.actual_ripeness_treatment_id
LEFT JOIN rmt_codes ON rmt_codes.id = ps.rmt_code_id
ORDER BY ps.pallet_id DESC, ps.pallet_sequence_number;
|
<gh_stars>1-10
DROP TABLE publisher;
DROP TABLE book;
CREATE TABLE publisher (
id SERIAL unique,
name VARCHAR(255),
city VARCHAR(255)
);
CREATE TABLE book (
id SERIAL,
name VARCHAR(255),
author VARCHAR(255),
publisher_id INT REFERENCES publisher(id)
);
INSERT INTO publisher (name, city)
VALUES ('DMK', 'Moscow'),
('MIF', 'Moscow'),
('Piter', 'St. Petersburg'),
('AST', 'Moscow'),
('Rosman', 'Moscow'),
('Kazan-book', 'Kazan');
INSERT INTO book (name, author, publisher_id)
VALUES ('War and Peace', 'Tolstoy', 1),
('SICP', 'Abelson', 1),
('<NAME>', 'Tolstoy', 4),
('Poetry', 'Pushkin', 3),
('<NAME>', 'Rowling', 5);
INSERT INTO publisher (name, city)
VALUES ('Open source', 'New York');
INSERT INTO publisher (name, city)
VALUES ('Oreilly', 'Sebastopol');
SELECT * FROM publisher;
INSERT INTO book (name, author, publisher_id)
VALUES ('The Subtle Art', 'Manson', 3),
('LYAHFAGG', 'Miron', 7),
('Learning Java', 'Niemeyer', 8),
('Learning React', 'Banks', 8),
('Unix in a Nutshell', 'Robbins', 8),
('HTML5', 'Pilgrim', 8);
-----------------------
-------- TASKS --------
-----------------------
-- вывести пары автор - издательство, упорядоченные по авторам
SELECT DISTINCT b.author, p.name FROM
book b INNER JOIN publisher p
ON b.publisher_id = p.id
ORDER BY b.author;
-- вывести издательства, которые выпускают только Пушкина
SELECT *
FROM publisher p
WHERE EXISTS(SELECT 1
FROM book b
WHERE b.publisher_id = p.id
AND b.author = 'Pushkin')
AND NOT EXISTS(SELECT 1 FROM book b
WHERE b.publisher_id = p.id
AND b.author != 'Pushkin');
SELECT *
FROM publisher p
WHERE EXISTS(SELECT 1
FROM book b
WHERE b.publisher_id = p.id
AND b.author = 'Pushkin');
SELECT DISTINCT p.id, p.name
FROM publisher p JOIN book b
ON p.id = b.publisher_id
GROUP BY b.author, p.id, p.name
HAVING COUNT(b.author) = 1 AND EXISTS(b.author = 'Pushkin')
;
SELECT p.id, p.name
FROM publisher p JOIN book b on p.id = b.publisher_id
WHERE EXISTS(b.author = 'Pushkin')
AND NOT EXISTS(b.author <> 'Pushkin')
;
-- вывести топ 10 издательств по количесвту книг
SELECT p.id, p.name, COUNT(b.id) AS books_count
FROM publisher p
LEFT JOIN book b
ON p.id = b.publisher_id
GROUP BY p.id, p.name
ORDER BY books_count DESC
LIMIT 10
;
-- вывести авторов у которых меньше двух книг в библиотеке
SELECT b.author, COUNT(b.id) AS books_count
FROM book b
GROUP BY b.author
;
-- вывести все издастельва с количеством книг в библиотеке
SELECT p.id, p.name, COUNT(b.id) AS books_count
FROM publisher p
LEFT JOIN book b
ON p.id = b.publisher_id
GROUP BY p.id, p.name
;
-- вывести первые 6 чисел Фибоначчи
SELECT 1 UNION ALL
SELECT 1 UNION ALL
SELECT 2 UNION ALL
SELECT 3 UNION ALL
SELECT 5 UNION ALL
SELECT 8;
SELECT * FROM book LIMIT 120;
DELETE FROM book WHERE id > 15;
-- сгенерировать тысячу записей в книги
INSERT INTO book (name, author, publisher_id)
SELECT k :: VARCHAR, k :: VARCHAR, k % 8 + 1
FROM generate_series(1, 1000) AS k;
|
<reponame>tiagomqsantos/sqlworkshops<filename>AzureSQLWorkshop/azuresqlworkshop/04-Performance/monitor_and_scale/flushquerystore.sql
EXEC sp_query_store_flush_db;
GO |
alter table egbpa_docket add column inspection bigint;
alter table egbpa_docket add column locationOfPlot bigint;
alter table egbpa_docket add constraint fk_insp_docket_key FOREIGN KEY (inspection)
REFERENCES egbpa_inspection (id);
alter table egbpa_inspection drop column docket;
Insert into EG_ACTION (id,name,url,queryparams,parentmodule,ordernumber,displayname,enabled,contextroot,version,createdby,createddate,lastmodifiedby,lastmodifieddate,application)
values (nextval('SEQ_EG_ACTION'),'viewInspection','/application/view-inspection/',null,
(select id from eg_module where name='BPA Transanctions'),1,'View Inspetion details','false','bpa',0,1,now(),1,now(),
(select id from eg_module where name='BPA'));
Insert into eg_roleaction (roleid,actionid) values ((select id from eg_role where name='ULB Operator'),
(select id from eg_action where name='viewInspection'));
Insert into EG_ACTION (id,name,url,queryparams,parentmodule,ordernumber,displayname,enabled,contextroot,version,createdby,createddate,lastmodifiedby,lastmodifieddate,application)
values (nextval('SEQ_EG_ACTION'),'createinspectiondetails','/application/createinspectiondetails/',null,
(select id from eg_module where name='BPA Transanctions'),1,'Capture Inspetion details','false','bpa',0,1,now(),1,now(),
(select id from eg_module where name='BPA'));
Insert into eg_roleaction (roleid,actionid) values ((select id from eg_role where name='ULB Operator'),
(select id from eg_action where name='createinspectiondetails')); |
<reponame>UWIT-IAM/uw-redcap-client<filename>schema/verify/warehouse/encounter.sql
-- Verify seattleflu/schema:warehouse/encounter on pg
begin;
select pg_catalog.has_table_privilege('warehouse.encounter', 'select');
rollback;
|
<filename>src/test/resources/sql/select/fbea22c5.sql
-- file:oidjoins.sql ln:216 expect:true
SELECT ctid, classid
FROM pg_catalog.pg_depend fk
WHERE classid != 0 AND
NOT EXISTS(SELECT 1 FROM pg_catalog.pg_class pk WHERE pk.oid = fk.classid)
|
<gh_stars>10-100
-- file:rangefuncs.sql ln:638 expect:true
select *, row_to_json(u) from unnest(array[(1,'foo')::foo2, null::foo2]) u
|
<reponame>boualimabrouk/tsql-scripts<gh_stars>10-100
----------------------------------------------------------------------
-- Use the sqlos ring_buffer to get info about the last 256 minutes
-- of scheduler activity
-- adapted from <NAME>
--
-- <EMAIL>, go ahead license
-----------------------------------------------------------------------
DECLARE @ts bigint, @cpu_count int;
SELECT
@ts = cpu_ticks/(cpu_ticks/ms_ticks),
@cpu_count = cpu_count
FROM sys.dm_os_sys_info WITH (READUNCOMMITTED)
OPTION (RECOMPILE);
SELECT cpu_count
FROM sys.dm_os_sys_info
;WITH ring_buffer AS (
SELECT
CAST(DATEADD(millisecond, -1 * (@ts - [timestamp]), CURRENT_TIMESTAMP) as datetime2(0)) AS [Time],
CAST(record as XML) as record
FROM sys.dm_os_ring_buffers
WHERE ring_buffer_type = N'RING_BUFFER_SCHEDULER_MONITOR'
AND record LIKE N'%<SystemHealth>%'
),
cte AS (
SELECT
[time],
record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]', 'int') AS [Idle],
record.value('(./Record/SchedulerMonitorEvent/SystemHealth/ProcessUtilization)[1]', 'int') AS [% SQL Process],
CAST(record.value('(./Record/SchedulerMonitorEvent/SystemHealth/UserModeTime)[1]', 'bigint') / 10000.0 / @cpu_count as decimal(20,2)) AS [UserModeTime_ms], -- output is 100ns
CAST(record.value('(./Record/SchedulerMonitorEvent/SystemHealth/KernelModeTime)[1]', 'bigint') / 10000.0 / @cpu_count as decimal(20,2)) AS [KernelModeTime_ms],
record.value('(./Record/SchedulerMonitorEvent/SystemHealth/PageFaults)[1]', 'bigint') AS [PageFaults],
record.value('(//Record/SchedulerMonitorEvent/SystemHealth/WorkingSetDelta)[1]', 'bigint')/1024 AS [WorkingSetDelta],
record.value('(//Record/SchedulerMonitorEvent/SystemHealth/MemoryUtilization)[1]', 'bigint') AS [% Memory Usage]
FROM ring_buffer
)
SELECT
[time],
[% SQL Process],
PageFaults,
WorkingSetDelta,
100 - [% SQL Process] - Idle as [% CPU other],
CAST((100 * KernelModeTime_ms) / (UserModeTime_ms + KernelModeTime_ms) as decimal(5, 2)) As [% Kernel]
FROM cte
ORDER BY [time]; |
<reponame>TaitoUnited/taito-cli
-- used by: delete
\set qdatabase '\'' :database '\''
-- Terminate connections to :database
SELECT pg_terminate_backend( pid ) FROM pg_stat_activity
WHERE pid <> pg_backend_pid( ) AND datname = :qdatabase;
DROP DATABASE :database;
DROP DATABASE :databaseold;
|
CREATE TABLE `wappu_models` (
`project_id` bigint(11) NOT NULL,
`context` text NOT NULL,
`context_hash` varchar(32) NOT NULL,
`interface_version` varchar(1) NOT NULL,
`use_relative_features` boolean NOT NULL,
`item` varchar(20) NOT NULL,
`classifier` varchar(70) NOT NULL,
`model` text NOT NULL,
PRIMARY KEY (`project_id`,`context_hash`,`interface_version`,`item`,`classifier`)
);
|
<gh_stars>10-100
alter table `server_config` add `user_schedule` integer not null default 1;
create table if not exists `command_cache` (
`server_id` integer not null,
`command` integer not null,
`ts` integer not null,
`data` text not null,
primary key (`server_id`, `command`)
) default charset=utf8;
alter table `config_file` add `dir` varchar(128) not null default '';
insert ignore into `config_file` (`name`, `description`, `file`, `options`, `type`, `enabled`, `dir`) values('{file}','Plugin config file: {dir}{file}','[^.]+\.(txt|yml|csv)','','',1,'plugins/*/');
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306
-- Généré le : dim. 27 fév. 2022 à 15:12
-- Version du serveur : 5.7.36
-- Version de PHP : 7.4.26
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `webster`
--
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
`user_name` varchar(255) NOT NULL,
`user_email` varchar(255) NOT NULL,
`user_password` varchar(255) NOT NULL,
`user_image` varchar(255) NOT NULL,
`user_details` varchar(255) NOT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
--
-- Déchargement des données de la table `user`
--
INSERT INTO `user` (`user_id`, `user_name`, `user_email`, `user_password`, `user_image`, `user_details`) VALUES
(11, 'root', '', '', '', '');
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- MySQL dump 10.13 Distrib 5.6.26, for Win64 (x86_64)
--
-- Host: localhost Database: school_history
-- ------------------------------------------------------
-- Server version 5.5.5-10.1.21-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `xs_questions`
--
set character set utf8;
DROP TABLE IF EXISTS `xs_questions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xs_questions` (
`q_id` int(11) NOT NULL AUTO_INCREMENT,
`answer` varchar(1) NOT NULL,
`question` varchar(256) NOT NULL,
`a` varchar(256) DEFAULT NULL,
`b` varchar(256) DEFAULT NULL,
`c` varchar(256) DEFAULT NULL,
`d` varchar(256) DEFAULT NULL,
`type` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`q_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xs_questions`
--
LOCK TABLES `xs_questions` WRITE;
/*!40000 ALTER TABLE `xs_questions` DISABLE KEYS */;
INSERT INTO `xs_questions` VALUES
(1,'A','东南大学在明清时曾是什么机构的原址?','理藩院','枢密院','内阁','国子监',1),
(2,'B','东南大学从创办至今总共更换了几次学校名称?','8','9','10','11',1),
(3,'A','三江师范的创始人是谁?','张之洞','张百熙','李鸿章','梁启超',1),
(4,'D','三江师范时期哪一个省的学生是不能入学的?','江苏','江西','安徽','浙江',1),
(5,'D','三江师范时期的速成科学制是几年?','1','2','3','4',1),
(6,'C','东南大学始创于哪一年?','1901','1902','1903','1904',1),
(7,'C','三江、两江师范的教员主要来自中国和哪一国?','英国','美国','日本','法国',1),
(8,'A','两江优级师范学堂曾于哪年停办过?','1911','1912','1912','1914',1),
(9,'B','东南大学的梅庵是为纪念哪位人物而兴建的?','张之洞','李瑞清','蔡元培','周馥',1),
(10,'B','学校更名为南京高等师范学校是在哪一年?','1902 ','1915','1925','1988',1),
(11,'A','三江师范时期的速成科学制是1年',NULL,NULL,NULL,NULL,0),
(12,'B','高等师范学校继三所师范学校成为我国成立的最早的第四所国立高等师范学校,其中不是这三所学校之一的是武昌高师。',NULL,NULL,NULL,NULL,0),
(13,'B','1918年教育部任命郭秉文为我校校长.',NULL,NULL,NULL,NULL,0),
(14,'B','我校《东南大学报( 自然科学版 )》获得中国百种杰出学术期刊。',NULL,NULL,NULL,NULL,0),
(15,'A','南京高等师范学校的办学方针是崇尚共 和,融合中西。',NULL,NULL,NULL,NULL,0),
(16,'A','在20年代的东南大学的办学指导思想上学生自治不是郭秉文校长主张的',NULL,NULL,NULL,NULL,0),
(17,'B','梅庵因纪念李瑞清而得名',NULL,NULL,NULL,NULL,0),
(18,'A','东大的发展过程中出现过易长风潮,使得东大由盛而衰。此次风潮发生在20年代中期。',NULL,NULL,NULL,NULL,0),
(19,'B','1927年7月大学院决定将包括东大在内的一共7所高校共同组建成为国立第四中山大学。',NULL,NULL,NULL,NULL,0),
(20,'A','中央大学内迁重庆后,1938年10月王若飞曾到校演讲抗战形势,是当时引起轰动的大事。',NULL,NULL,NULL,NULL,0),
(21,'B','下面哪一项不是南京高等师范学院的校风?','诚朴','善问','勤奋','求实',1),
(22,'C','五四运动后南京高等师范学院受到深刻影响,下面哪一项不是师生共同要求的办学理念?','实行民主治校','推行民主管理','严谨治学','提倡科学',1),
(23,'C','被誉为“南雍祭酒,纯粹君子”的哪位校长?','江谦','李瑞清','郭秉文','刘伯明',1),
(24,'D','在南京高等师范学院管理上和民主生活上一个进步中没有的一项是?','推行民主体制','实行教师议政','提倡生活简朴','学生“自动自治”',1),
(25,'D','南京高等师范学院对领导体制作了较大改革,实行校长领导下的“三会制”,下面哪一项不属于“三会”其中之一?','学生会','评议会','教授会','行政委员会',1),
(26,'C','哪一年由中国留美学生组织的“科学社”自美迁回中国并设在南京高等师范学院校园内?','1901','1902','1903','1904',1),
(27,'C','三江、两江师范的教员主要来自中国和哪一国?','英国','美国','日本','法国',1),
(28,'A','两江优级师范学堂曾于哪年停办过?','1916 ','1917 ','1912','1914',1),
(29,'B','下面哪一项不是南京高等师范学院办学者的宗旨(南京高等师范学院教育的特色)?','倡导学生的爱国精神,为国家培养科学人才','调和文理,沟通中西,积极引进国外的先进科学技术','用科学的精神办教育,用科学的方法育才','用科学的精神办教育,用科学的方法育才',1),
(30,'B','江谦任校长倡导的校风是什么?','简朴,勤奋 ','诚实,朴茂 ','诚朴,勤奋,求实','严谨治学,止于至善',1),
(31,'A','2001年2月12日,教育部和南京市人民政府在南京签署协议,决定共同重点建设东南大学。',NULL,NULL,NULL,NULL,0),
(32,'B','高等师范学校继三所师范学校成为我国成立的最早的第四所国立高等师范学校,其中不是这三所学校之一的是武昌高师。',NULL,NULL,NULL,NULL,0),
(33,'B',' 自1956年始,南工有三个专业开始招收研究生,工业热能学、农业机械、粮食储藏及加工工艺。 ',NULL,NULL,NULL,NULL,0),
(34,'B','.1995年10月我校顺利通过了国家教委和江苏省人民政府共同组织的“211工程”部门预审',NULL,NULL,NULL,NULL,0),
(35,'A','我校在80年代理科方面增设了软件工程专业。 ',NULL,NULL,NULL,NULL,0),
(36,'A','1987年,我校和南京医学院签订了两校教学科研合作协议',NULL,NULL,NULL,NULL,0),
(37,'B','1990年9月28日,东南大学的文学院和吴健雄学院正式成立。',NULL,NULL,NULL,NULL,0),
(38,'A','反专政不是我校于1956年一月到四月开展的三反运动。(',NULL,NULL,NULL,NULL,0),
(39,'B','南京高等师范学院不是东南大学曾经的校名。',NULL,NULL,NULL,NULL,0),
(40,'A','“止于至善”( 出于《中庸》 )的校训是由郭秉文校长首先提出的。',NULL,NULL,NULL,NULL,0)
;
/*!40000 ALTER TABLE `xs_questions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `xs_user`
--
DROP TABLE IF EXISTS `xs_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `xs_user` (
`xuehao` char(8) NOT NULL,
`yikatong` char(9) NOT NULL,
`stuid` int(12) NOT NULL AUTO_INCREMENT,
`time` float(19) NOT NULL DEFAULT '-1',
`qqueue` varchar(90) NOT NULL,
`aqueue` varchar(90) NOT NULL,
`mark` int(11) NOT NULL DEFAULT '-1',
PRIMARY KEY (`stuid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `xs_user`
--
LOCK TABLES `xs_user` WRITE;
/*!40000 ALTER TABLE `xs_user` DISABLE KEYS */;
INSERT INTO `xs_user` VALUES
('71114223','213141330',1,-1,'9_4_2_12_19_14_18_17_16_20_13_11_15_','BDBBBBABAABAA',-1),
('71114224','213141331',2,-1,'9_4_2_12_19_14_18_17_16_20_13_11_15_','BDBBBBABAABAA',-1);
/*!40000 ALTER TABLE `xs_user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-02-25 13:48:55
|
<reponame>ghxiao/clipper<filename>clipper-cli/src/test/scripts/v_Subj11Course.sql
DROP VIEW v_Subj11Course CASCADE;
CREATE OR REPLACE VIEW v_Subj11Course AS
SELECT innerRel.x1 AS att1
FROM (
SELECT ca_0.individual AS x1
FROM concept_assertion ca_0
WHERE ca_0.concept=99
) as innerRel
|
<reponame>LanceByun/DQUEEN_OMOP_CDM_Version
/*************************************************************************/
-- Assigment: Plausibility- Uniquness
-- Description: check the duplication super key
-- Author: <NAME>
-- Date: 11.Jan, 2020
-- Job name: check the null status of column using by row count
-- Language: MSSQL
-- Target data: cdm
-->
/*************************************************************************/
use @cdm;--> meta db name
IF OBJECT_ID('tempdb..##count_result', 'U') IS NOT NULL
DROP TABLE ##count_result
create table ##count_result(
tbnm nvarchar(255),
colnm nvarchar(255),
col_cnt nvarchar(255)
)
declare
@tbnm varchar(max)
, @tbnm1 varchar(max)
, @colnm varchar(max)
, @colnm1 varchar(max)
, @datatype varchar(max)
, @datatype1 varchar(max)
, @sql varchar(max)
, @sql1 varchar(max)
, @tb_cnt varchar(max)
set @tbnm= (select stuff(( select stratum3+',' from @resultSchema.dq_check_result
where check_id = 2 and txt_val='Y'
for xml path('')),1,0,''))
print(@tbnm)
while charindex(',',@tbnm) <> 0
begin
set @tbnm1=substring(@tbnm, 1, charindex(',',@tbnm) -1)
print(@tbnm1)
set @colnm= (select stuff(( select stratum4+',' from @resultSchema.dq_check_result
where check_id = 4 and stratum2 = 'cdm' and txt_val= 'Y' and stratum3 = ''+@tbnm1+''
for xml path('')),1,0,''))
print(@colnm)
while ChARINDEX(',', @colnm) <> 0
begin
set @colnm1 = SUBSTRING( @colnm, 1, CHARINDEX(',', @colnm) - 1)
print(@colnm1)
set @datatype= (select stuff(( select data_type+',' from @resultSchema.schema_info
where stage_gb = 'cdm' and tbnm =''+@tbnm1+'' and colnm= ''+@colnm1+''
for xml path('')),1,0,''))
print(@datatype)
while ChARINDEX(',', @datatype) <> 0
begin
set @datatype1 = SUBSTRING( @datatype, 1, CHARINDEX(',', @datatype) - 1)
print(@datatype1)
set @sql= ' IF OBJECT_ID(''tempdb..##co_cnt'', ''U'') IS NOT NULL DROP TABLE ##co_cnt;'
print(@sql)
exec(@sql)
if @datatype1 = 'varchar'
begin
set @sql= 'select cast(count(*) as bigint) as col_cnt into ##co_cnt from (select distinct convert( varchar, '+@colnm1+' )as '+@colnm1+' from '+@tbnm1+ ')v'
print(@sql)
exec(@sql)
set @tb_cnt = (select * from ##co_cnt)
print(@tb_cnt)
insert into ##count_result (tbnm,colnm,col_cnt)
values(@tbnm1, @colnm1, @tb_cnt)
end
else --if @datatype1 = ' varchar'
begin
set @sql= 'select distinct count( '+@colnm1+') as col_cnt into ##co_cnt from '+@tbnm1+''
print(@sql)
exec(@sql)
set @tb_cnt = (select * from ##co_cnt)
print(@tb_cnt)
insert into ##count_result (tbnm,colnm,col_cnt)
values(@tbnm1, @colnm1, @tb_cnt)
end
PRINT( SUBSTRING( @datatype, 1, CHARINDEX(',', @datatype) - 1 ) )
SET @datatype = SUBSTRING( @datatype, CHARINDEX(',', @datatype) + 1, LEN(@datatype) )
end
PRINT( SUBSTRING( @colnm, 1, CHARINDEX(',', @colnm) - 1 ) )
SET @colnm = SUBSTRING( @colnm, CHARINDEX(',', @colnm) + 1, LEN(@colnm) )
end
PRINT( SUBSTRING( @tbnm, 1, CHARINDEX(',', @tbnm) - 1 ) )
SET @tbnm = SUBSTRING( @tbnm, CHARINDEX(',', @tbnm) + 1, LEN(@tbnm) )
end
insert into @resultSchema.archive_data
select
distinct
s1.tb_id
,14 as id
,c1.tbnm as stratum1
,c1.colnm as stratum2
,'distinct col count' as stratum3
,null as num_val
,c1.col_cnt as count_val
from ##count_result as c1
left join (select distinct tb_id, tbnm from @resultSchema.schema_info
where stage_gb = 'cdm') as s1
on s1.tbnm = c1.tbnm
--> data insert
insert into @resultSchema.dq_check_result
select
distinct
a1.id as check_id
,a1.tb_id as stratum1
,'cdm' as stratum2
,a1.stratum1 as stratum3
,a1.stratum2 as stratum4
,null as stratum5
,a1.count_val as count_val
,null as num_val
,null as txt_val
from
@resultSchema.archive_data as a1
inner join (select distinct tbnm, colnm from @resultSchema.schema_info where stage_gb = 'cdm' and sk_yn = 'Y') as s1
on s1.tbnm = a1.stratum1 and a1.stratum2 = s1.colnm
where a1.id = 14
|
ALTER TABLE UserAgents ADD PositionX REAL null;
ALTER TABLE UserAgents ADD PositionY REAL null;
ALTER TABLE UserAgents ADD PositionZ REAL null;
ALTER TABLE UserAgents ADD LookAtX REAL null;
ALTER TABLE UserAgents ADD LookAtY REAL null;
ALTER TABLE UserAgents ADD LookAtZ REAL null;
ALTER TABLE UserProfiles ADD Email NVARCHAR(250) null;
ALTER TABLE UserProfiles ADD HomeRegionID NVARCHAR(36) null;
ALTER TABLE UserProfiles ADD CanDoMask INT null;
ALTER TABLE UserProfiles ADD WantDoMask INT null;
ALTER TABLE UserProfiles ADD UserFlags INT null;
ALTER TABLE UserProfiles ADD GodLevel INT null;
ALTER TABLE UserProfiles ADD CustomType NVARCHAR(32) null;
ALTER TABLE UserProfiles ADD Partner NVARCHAR(36) null;
ALTER TABLE UserAppearances ADD AvatarHeight FLOAT null;
CREATE TABLE UserFriends (
UserFriendID NVARCHAR(36) NOT NULL,
OwnerID NVARCHAR(36) NULL,
FriendID NVARCHAR(36) NULL,
FriendPermissions INT NULL,
PRIMARY KEY (UserFriendID)
);
CREATE INDEX UserFriendsOwnerIdFriendIdIndex ON UserFriends (OwnerID,FriendID);
|
<reponame>NohaAshraf85/Employee-Tracker<gh_stars>0
DROP DATABASE IF EXISTS employeeTracker_db;
CREATE DATABASE employeeTracker_db;
USE employeeTracker_db;
CREATE TABLE department (
id INT AUTO_INCREMENT NOT NULL,
name VARCHAR (30),
PRIMARY KEY (id),
UNIQUE (name)
);
CREATE TABLE role (
id INT AUTO_INCREMENT NOT NULL,
title VARCHAR (30),
salary DECIMAL (10,4),
department_id INT NOT NULL,
PRIMARY KEY (id),
FOREIGN KEY (department_id) REFERENCES department (id),
UNIQUE (title)
);
CREATE TABLE employee(
id INT AUTO_INCREMENT NOT NULL,
first_name VARCHAR (30),
last_name VARCHAR (30),
role_id INT NOT NULL,
manager_id INT,
PRIMARY KEY (id),
FOREIGN KEY (role_id) REFERENCES role (id),
FOREIGN KEY (manager_id) REFERENCES employee (id)
);
SELECT * FROM department;
SELECT * FROM role;
SELECT * FROM employee;
-- select name as departmentname, title,salary from role inner join department on department.id=department_id |
<reponame>roptaty/altinn-notifications
-- Function: notifications.get_unsenttargets
CREATE OR REPLACE FUNCTION notifications.get_unsenttargets()
RETURNS TABLE (
id bigint,
notificationid bigint,
channeltype character varying,
"address" character varying,
"sent" timestamptz)
LANGUAGE 'plpgsql'
AS $BODY$
BEGIN
return query
SELECT t.id, t.notificationid, t.channeltype, t."address", t."sent"
FROM notifications.targets t
WHERE t."sent" IS NULL;
END;
$BODY$;
-- Function: notifications.set_sent_target
CREATE OR REPLACE FUNCTION notifications.update_senttarget(_id bigint)
RETURNS TABLE (
id bigint,
notificationid bigint,
channeltype character varying,
"address" character varying,
"sent" timestamptz)
LANGUAGE 'plpgsql'
AS $BODY$
DECLARE currentTime timestamptz;
BEGIN
SET TIME ZONE UTC;
currentTime := NOW();
RETURN QUERY
UPDATE notifications.targets
SET "sent" = currentTime
WHERE id = _id;
END;
$BODY$;
|
SET check_function_bodies = false;
SET search_path=public,pg_catalog;
-- object: public.get_contest_end | type: FUNCTION --
-- DROP FUNCTION IF EXISTS public.get_contest_end(IN integer) CASCADE;
CREATE OR REPLACE FUNCTION public.get_contest_end (IN contest_id_p integer)
RETURNS timestamptz
LANGUAGE sql
VOLATILE
CALLED ON NULL INPUT
SECURITY INVOKER
COST 1
AS $$
SELECT ( contest.start_time
+ (contest.duration * INTERVAL '1 MILLISECOND')
+ (SELECT ( coalesce (max (contest_participation.time_extension), 0)
* INTERVAL '1 MILLISECOND')
FROM contest_participation
WHERE contest_participation.contest_id = contest_id_p))
FROM contest
WHERE contest.id = contest_id_p
$$;
-- ddl-end --
ALTER FUNCTION public.get_contest_end(IN integer) OWNER TO openolympus;
-- ddl-end --
-- object: public.get_contest_end_for_user | type: FUNCTION --
-- DROP FUNCTION IF EXISTS public.get_contest_end_for_user(IN integer,IN bigint) CASCADE;
CREATE OR REPLACE FUNCTION public.get_contest_end_for_user (IN contest_id_p integer, IN user_id_p bigint)
RETURNS timestamptz
LANGUAGE sql
VOLATILE
CALLED ON NULL INPUT
SECURITY INVOKER
COST 1
AS $$
SELECT ( contest.start_time
+ (contest.duration * INTERVAL '1 MILLISECOND')
+ (SELECT ( coalesce (contest_participation.time_extension, 0)
* INTERVAL '1 MILLISECOND')
FROM contest_participation
WHERE contest_participation.contest_id = contest_id_p
AND contest_participation.user_id = user_id_p))
FROM contest
WHERE contest.id = contest_id_p
$$;
-- ddl-end --
ALTER FUNCTION public.get_contest_end_for_user(IN integer,IN bigint) OWNER TO openolympus;
-- ddl-end --
-- object: public.raise_contest_intersects_error | type: FUNCTION --
-- DROP FUNCTION IF EXISTS public.raise_contest_intersects_error() CASCADE;
CREATE OR REPLACE FUNCTION public.raise_contest_intersects_error ()
RETURNS trigger
LANGUAGE plpgsql
VOLATILE
CALLED ON NULL INPUT
SECURITY INVOKER
COST 1
AS $$
DECLARE
end_time timestamp WITH TIME ZONE;
BEGIN
IF TG_OP = 'UPDATE'
THEN
end_time =
NEW.start_time
+ (NEW.duration * INTERVAL '1 MILLISECOND')
+ (SELECT ( coalesce (max (contest_participation.time_extension),
0)
* INTERVAL '1 MILLISECOND')
FROM contest_participation
WHERE contest_participation.contest_id = NEW.id);
ELSE
end_time = NEW.start_time + (NEW.duration * INTERVAL '1 MILLISECOND');
END IF;
IF EXISTS
(SELECT *
FROM contest
WHERE tstzrange (get_contest_start (contest.id),
get_contest_end (contest.id))
&& tstzrange (NEW.start_time, end_time)
AND contest.id != NEW.id)
THEN
RAISE EXCEPTION 'contest intersects';
END IF;
RETURN NEW;
END;
$$;
-- ddl-end --
ALTER FUNCTION public.raise_contest_intersects_error() OWNER TO openolympus;
-- ddl-end --
|
DROP TABLE IF EXISTS items_by_user;
DROP TABLE IF EXISTS items;
CREATE TABLE IF NOT EXISTS items (item_id SERIAL PRIMARY KEY, listType VARCHAR(55), item VARCHAR (255), amount INTEGER, category VARCHAR (55));
DROP TABLE IF EXISTS users;
CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(55), household INTEGER, base BOOLEAN, heat BOOLEAN, cold BOOLEAN, infant BOOLEAN, child BOOLEAN, meds BOOLEAN, pets BOOLEAN, numberdays INTEGER, userState VARCHAR(2), userCity VARCHAR(50));
CREATE TABLE IF NOT EXISTS items_by_user (user_id INTEGER REFERENCES users, item_id INTEGER REFERENCES items, added_on DATE);
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'flashlight', 1, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'calories of food', 2000, 'per person per day');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'gallon of water', 1, 'per person per day');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'variety of batteries', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'hand crank radio', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'first aid kit', 1, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'set of personal hygiene items for all family members', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'multi tool', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'set of chargers for phones and other devices', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'copies of personal documents for all family members', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'cash', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'emergency blanket', 1, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'insect repellent', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'emergency whistle', 1, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'matches and/or lighters', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'propane stove', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', '4-5 canisters of propane', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'thermometer', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'vaccination records for family', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'a few bottles of pedialite', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'can opener', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'selection of books', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'deck of playing cards', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'paper and pencils', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'set of local maps', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'bags for human waste', 2, 'per person per day');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'rolls of toilet paper', 2, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('base', 'trash can with lid for human waste bags', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('heat', 'sets of light, loose clothing', 2, 'per-person');
INSERT INTO items (listType, item, amount, category) VALUES ('heat', 'extra water rations', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('heat', 'sun hat', 1, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('cold', 'shovel', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('cold', 'pair of gloves', 1, 'per-person');
INSERT INTO items (listType, item, amount, category) VALUES ('cold', 'set of thermal underwear', 1, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('cold', 'sets of warm layers', 2, 'per person');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'pet food', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'gallons water', 3, 'per pet');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'a few rolls of poop bags', 1, 'per pet');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'extra collar', 1, 'per pet');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'extra leash', 1, 'per pet');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'extra crate or carrier for pet', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('pets', 'set of supplies specific to your pet', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('infant', '3 or 4 cans of formula', 1, 'per infant');
INSERT INTO items (listType, item, amount, category) VALUES ('infant', 'large pack diapers', 1, 'per infant');
INSERT INTO items (listType, item, amount, category) VALUES ('infant', 'baby wipes', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('infant', 'set of baby blankets', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('infant', 'diaper rash cream', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('infant', 'baby sling or carrier', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('child', 'collection of small games', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('child', 'set of hygiene items for your child', 1, ' ');
INSERT INTO items (listType, item, amount, category) VALUES ('meds', 'store of all current medications', 1, ' '); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 01, 2022 at 05:50 AM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `walking_library_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `buku`
--
CREATE TABLE `buku` (
`id` int(11) NOT NULL,
`gambar` varchar(255) DEFAULT NULL,
`nama` varchar(255) NOT NULL,
`deskripsi_buku` text NOT NULL,
`jml_halaman` varchar(10) NOT NULL,
`penerbit` varchar(150) NOT NULL,
`penulis` varchar(150) NOT NULL,
`tgl_terbit` date NOT NULL,
`berat` varchar(10) NOT NULL,
`isbn` varchar(50) DEFAULT NULL,
`lebar` varchar(10) NOT NULL,
`bahasa` varchar(20) NOT NULL,
`panjang` varchar(10) NOT NULL,
`harga` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `buku`
--
INSERT INTO `buku` (`id`, `gambar`, `nama`, `deskripsi_buku`, `jml_halaman`, `penerbit`, `penulis`, `tgl_terbit`, `berat`, `isbn`, `lebar`, `bahasa`, `panjang`, `harga`) VALUES
(1, 'card1.svg', 'Pemrograman Vb.Net Untuk Pemula', 'Peluang untuk menjadi developer aplikasi berbasis MS Windows masih terbentang luas mengingat sistem operasi ini merupakan yang terpopuler di dunia. Maka dengan segala kemudahan dan kepraktisannya, Visual Basic .Net masih memiliki banyak penggemar. Buku ini mengupas pemrograman Visual Basic .Net yang dapat dipelajari baik melalui teori maupun video course yang disertakan. Pembahasan di dalam buku ini meliputi: • Instalasi Visual Studio • Cara bekerja dengan menggunakan form dan kontrol • Teori tentang pemrograman berbasis object dan methods • Teknik dasar pemrograman Visual Basic .Net • Struktur percabangan dan perulangan. • Pembuatan function dan subprocedure • Pembuatan menu, dan masih banyak lagi. Setelah itu, Anda akan dilatih untuk membuat aplikasi menggunakan bantuan video course gratis! (thinkjubilee)', '232', 'Elex Media Komputindo', 'Jubilee Enterprise', '2020-06-07', '0.25 Kg', '9786230018732', '14.0 cm', 'Indonesia', '21.0cm', 65000),
(2, 'ID_PWTL2018MTH11WTL.jpg', '7 in 1 Pemrograman Web Tingkat Lanjut', 'Laravel dan VueJS merupakan 2 teknologi pemrograman web yang sedang popular saat ini. Keduanya dibahas dalam buku ini beserta integrasinya dalam pembuatan aplikasi. Selain itu, didukung juga dengan materi lain yang tidak kalah penting dengan total 7 materi pemrogaman web. Buku ini merupakan kelanjutan dari buku sebelumnya yang membahas 7 pemrograman website untuk pemula. Setiap materi dibahas mulai dari teori dasar disertai contoh script di setiap pembahasan. Beberapa materi disertai langkah-langkah membuat aplikasi dengan menerapkan materi yang dibahas. Total terdapat 5 pembahasan membuat aplikasi dari mulai login, mengatur template aplikasi, operasi CRUD, hingga logout. Kelima aplikasi tersebut terdiri atas aplikasi dengan teknik OOP, PDO, dan MVC; aplikasi dengan AJAX Jquery; aplikasi dengan Laravel; aplikasi dengan integrasi Laravel dan VueJS; serta aplikasi dengan plugin Wordpress. Keterampilan: Menengah, Tingkat Mahir Kelompok: Pemrograman Jenis buku: Referensi, Tutorial', '336', 'Elex Media Komputindo', '<NAME>', '2018-11-26', '0.420 kg', '9786020486628', '14 cm', 'Indonesia', '21cm', 74800),
(3, 'card3.svg', 'Rekayasa Perangkat Lunak Berorientasi Objek Menggunakan Php', 'Buku Rekayasa Perangkat Lunak Berbasis Objek berbasis bahasa PHP ini dibuat untuk digunakan pada program studi Teknik Komputer, Ilmu Komputer, Teknik Elektro, Teknik Informatika disekitar tahun kedua perkuliahan dengan beban sebanyak 3 SKS. Buku ini disertai contoh penggunaan tools dalam mempelajari siklus hidup perangkat lunak. Pada buku ini juga dipaparkan sejarah mengapa kita sampai pada bentuk rekayasa perangkat lunak seperti sekarang ini. Pembuatan program perangkat lunak merupakan teknologi yang sangat cepat berkembang, mengingat berkembangnya infrastruktur dan perangkat keras yang tersedia.\r\nStruktur buku ini memuat mengenai sejarah, definisi, komponen dan siklus hidup Rekayasa Perangkat Lunak. Selanjutnya dijelaskan pula tentang model pengembangan perangkat lunak dan manajemen pengembangan perangkat lunak. Selain itu Penulis juga menjelaskan mengenai kualitas perangkat lunak dan paradigma rekayasa perangkat lunak.', '304', 'Andi Offset', 'PROF. DR. IR. RIRI FITRI SARI, M.M., M.SC., DTM, SMIEEE', '2021-11-30', '0.405 kg', '9786230117886', '16.0 cm', 'Indonesia', '23.0cm', 89000),
(4, 'card4.svg', 'Psychological Tests For Teens: Check Your Mental Health', 'Masa remaja merupakan masa yang penuh gejolak. Dengan perkembangan fisik dan mental secara drastis, membuat kita mengalami goncangan dalam hidup. Padahal masa ini teramat sangat pendek lho, tak lebih dari 10 tahun. Namun, tanpa persiapan yang baik, akan menyulitkan kita untuk beradaptasi. Hal ini sangat memengaruhi kesehatan mental kita. Buku ini mengajak kita memahami perkembangan yang terjadi, sehingga kita yang masih remaja bisa menerimanya sebagai sesuatu hal yang alamiah. Kita perlu bersiap sehingga jika masa remaja tiba, kita bisa mengelola masa ini dengan baik. Bersiapnya kita menyongsong masa remaja, menjadikan kita mudah beradaptasi sehingga kesehatan mental kita bisa terjaga. Buku ini juga memuat serangkaian tes psikologi. Semakin lengkap kita mengerjakannya, semakin terbaca pula profile pribadi kita. Semua tes ini tidak ada yang salah. Semua jawaban benar asalkan dikerjakan secara jujur. Jangan ragu untuk mengerjakan semua soal sehingga hasilnya menampilkan kepribadian kita yang sebenarnya. Bagaimanapun hasilnya, jangan berputus asa. Kondisi mental tidak sepenuhnya bersifat permanen. Masih ada kesempatan untuk memperbaiki diri sehingga kehidupan bisa berjalan dengan menyenangkan. Selamat mencoba.\r\n', '280', 'Elex Media Komputindo', '<NAME>', '2021-05-12', '0.35 kg', '9786230026287', '14.0 cm', 'Indonesia', '21.0cm', 105000),
(7, 'card5.svg', '<NAME>', '<NAME> telah menantang dan mengubah cara pikir puluhan juta orang di seluruh dunia tentang uang. Dengan perspektif yang kerap bertentangan dengan kebijaksanaan umum, Robert memiliki reputasi sebagai orang yang bicara secara apa adanya, tidak menganggap penting hal-hal yang umumnya dianggap serius, dan berani. Dia diakui di seluruh dunia sebagai orang yang berdedikasi dan peduli dengan pendidikan keuangan.\r\n\r\n“Alasan utama orang mengalami kesulitan keuangan adalah mereka menghabiskan waktu bertahun-tahun di sekolah tapi tidak belajar apa-apa tentang uang. Akibatnya, orang belajar untuk bekerja demi uang… tapi tidak pernah belajar membuat uang bekerja bagi mereka.”\r\n—<NAME>', '244', 'Gramedia Pustaka Utama', '<NAME>', '2016-08-22', '0.269 kg', '9786020333175', '15.0 cm', 'Indonesia', '23.0cm', 68000);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`nama` varchar(50) NOT NULL,
`username` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`role_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `nama`, `username`, `email`, `password`, `role_id`) VALUES
(27, '<NAME>', '<PASSWORD>', '<EMAIL>', <PASSWORD>', 2),
(28, '<NAME>', 'ade', '<EMAIL>', <PASSWORD>', 2);
-- --------------------------------------------------------
--
-- Table structure for table `user_role`
--
CREATE TABLE `user_role` (
`id` int(11) NOT NULL,
`role` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user_role`
--
INSERT INTO `user_role` (`id`, `role`) VALUES
(1, 'Administrator'),
(2, 'Member');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `buku`
--
ALTER TABLE `buku`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_role`
--
ALTER TABLE `user_role`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `buku`
--
ALTER TABLE `buku`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `user_role`
--
ALTER TABLE `user_role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
create sequence user_id_seq start with 1;
CREATE TABLE "user" (
user_id INTEGER PRIMARY KEY NOT NULL DEFAULT nextval('user_id_seq'::regclass),
email CHARACTER VARYING(100) NOT NULL,
uuid UUID NOT NULL DEFAULT uuid_in((md5(((random())::text || (now())::text)))::cstring),
last_modified_date TIMESTAMP WITHOUT TIME ZONE,
last_modified_by INTEGER NULL,
first_name CHARACTER VARYING(50),
last_name CHARACTER VARYING(50),
avatar CHARACTER VARYING(255) DEFAULT 'http://thesocietypages.org/socimages/files/2009/05/hotmail.png'::character varying,
password CHARACTER VARYING(255),
salt CHARACTER VARYING(255),
created_date TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now(),
last_login_date TIMESTAMP WITHOUT TIME ZONE,
num_logins INTEGER NOT NULL DEFAULT 0,
ckey CHARACTER VARYING(50),
ctime CHARACTER VARYING(50),
telephone CHARACTER VARYING(16)
);
CREATE UNIQUE INDEX idx_unique_email ON "user" USING BTREE (email);
CREATE UNIQUE INDEX uq_user_id ON "user" USING BTREE (user_id);
ALTER TABLE "__table_name__" ADD CONSTRAINT __table_name__last_modified_by_fk
FOREIGN KEY (last_modified_by) REFERENCES "user" (user_id);
|
select a.branch_code,c.customer_name1,a.cust_ac_no,a.ac_desc,a.lcy_curr_balance solde_en_compte,a.tod_limit autorisation,b.balance encours_engagement,sum(nvl(s.amount,0)) engagement_initial,sum(nvl(s.emi_amount,0)) engagement_mensuel, sv.cust_ac_no Epargne, sv.lcy_curr_balance Solde_Epargne
from sttm_customer c,sttm_cust_account a,cltb_account_master l,cltb_account_comp_bal_breakup b, CLTB_ACCOUNT_COMP_SCH s, (select cust_no,cust_ac_no,lcy_curr_balance from sttm_cust_account where account_class in ('381','382','383') ) sv
where a.cust_ac_no=l.DR_PROD_AC
and b.account_number=l.ACCOUNT_NUMBER
and s.account_number = l.ACCOUNT_NUMBER
and c.customer_no=a.cust_no
and c.customer_no = sv.cust_no
and b.component='PRINCIPAL'
--and a.cust_ac_no='0402820102632321'
and a.cust_ac_no in
('0212820100973809',
'0302820102354566',
'0302820101842891',
'0432820104778013',
'0302820102400350',
'0202820100398032',
'0302820101800211',
'0202820104430613',
'0202820100411515',
'0232820104650467',
'0212820100793292',
'0222820104389455',
'0402820101159279',
'0202820100183953',
'0412820102535985',
'0202820100106353',
'0302820104333851',
'0302820102293359',
'0302820102356797',
'0302820106260756',
'0402820102773359',
'0302820100067306',
'0302820101777707',
'0302820101778095',
'0432820100044995',
'0212820100987680',
'0202820100412097',
'0302820102055612',
'0302820101832803',
'0302820102041838',
'0412820103300539',
'0402820104501608',
'0412820100127087',
'0402820102647259',
'0432820104796055',
'0202820106051192',
'0302820101398437',
'0432820103699373',
'0432820104561121',
'0422820103511305',
'0312820105310044',
'0502820103771921',
'0422820103446703',
'0402820104485312',
'0202820100623169',
'0312820104768008',
'0502820104273896',
'0242820101640639',
'0302820104155371',
'0212820105560066',
'0232820104505937',
'0312820204553557',
'0312820102433703',
'0432820103572497',
'0242820101651406',
'0302820104100178',
'0432820104347430',
'0232820104581888',
'0422820104475582',
'0502820104758314',
'0242820101625216',
'0402820104556801',
'0502820104186790',
'0402820104414793',
'0432820103736815',
'0302820104526202',
'0242820104005402',
'0302820101712523',
'0432820103729831',
'0242820104096097',
'0402820104080725',
'0432820104104833',
'0242820101653346',
'0312820102476189',
'0222820104152775',
'0432820103681622',
'0232820104082144',
'0242820101664016',
'0242820104186695',
'0202820104115848',
'0412820104294401',
'0402820104555734',
'0432820104139850',
'0432820103572303',
'0242820101652473',
'0302820102135443',
'0302820102090047',
'0412820104306041',
'0242820101671194',
'0242820101648108',
'0412820103199756',
'0512820104305018',
'0302820102230309',
'0432820104081650',
'0242820103970094',
'0312820104266712',
'0432820104090477',
'0432820103949051',
'0502820104293684',
'0402820104112929',
'0502820104551510',
'0402820204421987',
'0422820104448810',
'0212820104095269',
'0242820101657614',
'0432820104134224',
'0222820104077018',
'0312820102476771',
'0432820104461017',
'0302820104010259',
'0232820104442984',
'0422820103458440',
'0202820104175503',
'0402820103982658',
'0402820104823648',
'0402820104657196',
'0302820104547833',
'0432820104157407',
'0302820104650847',
'0312820104211228',
'0432820103751947',
'0402820104111377',
'0232820104286232',
'0242820104593707',
'0302820104357325',
'0302820104742609',
'0312820104227136',
'0312820104367107',
'0432820104239663',
'0302820104274293',
'0232820204366079',
'0242820104182718',
'0232820104782775',
'0432820103716542',
'0432820104673350',
'0232820104394096',
'0432820104515143',
'0432820104466837',
'0302820104692266',
'0432820104385745',
'0302820104361981',
'0402820104393162',
'0512820104783422',
'0312820104589916',
'0302820104376725',
'0312820104502810',
'0312820104466338',
'0402820104363383',
'0302820104568397',
'0242820104764039',
'0432820104374105',
'0232820104586835',
'0232820104305438',
'0432820104509614',
'0302820105012657',
'0312820104449751',
'0312820104389805',
'0222820104428934',
'0232820104464033',
'0222820104468219',
'0302820104322308',
'0302820104469360',
'0302820104549482',
'0202820104725202',
'0432820104586050',
'0232820104342007',
'0402820104321964',
'0432820104468486',
'0512820204371867',
'0432820104363047',
'0402820104428470',
'0412820104415166',
'0302820104619419',
'0232820104480426',
'0422820104526313',
'0432820104361883',
'0432820104653659',
'0422820104459674',
'0302820104394379',
'0222820104468510',
'0402820104378224',
'0232820104458892',
'0432820104645026',
'0512820104305212',
'0422820104651055',
'0302820104480903',
'0402820104494915',
'0312820104670717',
'0432820104550257',
'0402820104702689',
'0302820105003345',
'0412820105045278',
'0422820104990070',
'0302820104760457',
'0312820104886833',
'0302820104656085',
'0322820105352321',
'0232830105270539',
'0212820106857053',
'0302820104955815',
'0232820105038370',
'0302820105369520',
'0312820105524026',
'0512820105177630',
'0432820205110739',
'0202820105085654',
'0422820105366527',
'0202820106139559',
'0512820104734922',
'0302820105292114',
'0422820106172597',
'0402820106348779',
'0312820106338535',
'0402820106349264',
'0302820106180440',
'0202820106549190',
'0312820106332909',
'0302820106223314',
'0412820106448868',
'0432820106636727',
'0402820106453539',
'0302820106183156',
'0432820106450196',
'0312820105907952',
'0202820106514076',
'0212820105970764',
'0242820106472888',
'0222820206315115',
'0502820206459516',
'0312820106469873',
'0432820106448256',
'0432820106451651',
'0312820105364170',
'0242820106691041',
'0432820106448450',
'0312820106056071',
'0302820105339644',
'0432820105554304',
'0212820105255971',
'0242820106545444',
'0202820106541721',
'0312820106324082',
'0242820106460375',
'0232820106541191',
'0402820105517101',
'0432820105996915',
'0322820106390027',
'0402820106454606',
'0402820106454315',
'0312820106470164',
'0242820106248236',
'0312820106641175',
'0512820106823817',
'0312820106323791',
'0242820106539236',
'0242820106691138',
'0402820106464403',
'0412820105551327',
'0202820106539102',
'0432820106449129',
'0412820106449256',
'0402820106464015',
'0302820105590486',
'0222820106839384',
'0432820105538493',
'0312820106321075',
'0242820106551555',
'0312820106393146',
'0432820105996721',
'0432820106450875',
'0422820106028746',
'0422820106311889',
'0312820106332812',
'0232820106003423',
'0432820106448062',
'0402820206463449',
'0412820106493585',
'0302820106250474',
'0422820106846359',
'0402820106697203',
'0221730101338326')
and b.balance<>0
group by a.branch_code,c.customer_name1,a.cust_ac_no,a.ac_desc,a.lcy_curr_balance,a.tod_limit,b.balance, sv.cust_ac_no , sv.lcy_curr_balance
union
select a.branch_code,c.customer_name1,a.cust_ac_no,a.ac_desc,a.lcy_curr_balance solde_en_compte,a.tod_limit autorisation,b.balance encours_engagement,sum(nvl(s.amount,0)) engagement_initial,sum(nvl(s.emi_amount,0)) engagement_mensuel, sv.cust_ac_no Epargne, sv.lcy_curr_balance Solde_Epargne
from sttm_customer c,sttm_cust_account a,cltb_account_master l,cltb_account_comp_bal_breakup b, CLTB_ACCOUNT_COMP_SCH s, (select cust_no,cust_ac_no,lcy_curr_balance from sttm_cust_account where account_class in ('381','382','383') ) sv
where a.cust_ac_no=l.DR_PROD_AC
and b.account_number=l.ACCOUNT_NUMBER
and s.account_number = l.ACCOUNT_NUMBER
and c.customer_no=a.cust_no
and c.customer_no = sv.cust_no
and b.component='PRINCIPAL'
--and a.cust_ac_no='0402820102632321'
and ( substr(a.alt_ac_no,3,16) in
('0413728043068169',
'0213728023132738',
'0403728040243253',
'0213728023039230',
'0213728023359039',
'0423728046199605',
'0413728043071758',
'0303728030253276',
'0223717028055944',
'0203728020732488',
'0203728020210725',
'0303728030259387',
'0403728040311832',
'0303728030466482',
'0223728028116874',
'0303728030434084',
'0203728020330908',
'0203728020401912',
'0203728020237109',
'0303728030282958',
'0433728046111708',
'0433728043027011',
'0223717028055944',
'0303728030146285',
'0403728040220070',
'0303728030429622',
'0303728030189838',
'0413728043113080',
'0203728020268925',
'0213728023476603',
'0213728023074344',
'0213728023470686',
'0303728030143666',
'0303728030428458',
'0413728043081749',
'0403728040205908',
'0203728020220231',
'0413728043040330',
'0213728023077836',
'0213728023313837',
'0403728040145671',
'0223728030031751',
'0303728030411871',
'0213728023241863',
'0213728023185021',
'0213728023161741',
'0213728023462926',
'0213728023207719',
'0213728023215673',
'0213728023484654',
'0213728023184633',
'0213728023289684',
'0223717028055944',
'0213728023223530',
'0403728040142955',
'0213728023392019',
'0213728023213248',
'0213728023392213',
'0213728023200056',
'0213728023352249',
'0213728023217904',
'0413728043005216',
'0413728023355635',
'0403728040111527',
'0213728023401525',
'0213728023093938',
'0213728023185894',
'0203728020311993',
'0213728023252533',
'0413728043100955',
'0213728023170762',
'0213728023456136',
'0303728030466870',
'0223717028055944',
'0213728023328775',
'0423728046174191',
'0303728030238047',
'0403728040291365',
'0423728046172833',
'0213728023413747',
'0213728023032925',
'0213728023024971',
'0213728023190841',
'0303728030345329',
'0213728023026911',
'0303728030139010',
'0423728046040816',
'0213728023273873',
'0403728040144507',
'0303728046161470',
'0423728046170796',
'0213728023390855',
'0213728023361949',
'0413728043093389',
'0213728023400167',
'0213728023358069',
'0213728023461665',
'0213728023288035',
'0213728023164263',
'0213728023383774',
'0213728023073180',
'0213728023374559',
'0403728040269055',
'0213728023336050',
'0423728046122684',
'0303728030313707',
'0213728023359233',
'0413728043019766',
'0213728023216740',
'0303728030189741',
'0403728040235784',
'0413728043020154',
'0203728020549934',
'0423728046147710',
'0303728030199538',
'0203728020311411',
'0433728043393671',
'0303728030273258',
'0403728040077189',
'0303728030293919',
'0303728030333786',
'0413728043043628',
'0223728028138311',
'0403728040406601',
'0403728040282635',
'0203728020363112',
'0223728028088841',
'0433728043015080',
'0203728020807857',
'0403728040142470',
'0413728043048575',
'0223717028055944',
'0403728040361108',
'0303728030271415',
'0213728023301421',
'0303728030228250',
'0303728030251627',
'0403728040245872',
'0203728020342645',
'0203728020187930',
'0403728040211922',
'0413728043004537',
'0403728040309795',
'0203728020563514',
'0203728020221007',
'0403728040189030',
'0213728023120322',
'0303728030322825',
'0303728030172281',
'0203728020254472',
'0423728046171863',
'0403728040252371',
'0403728040068265',
'0403728040116862',
'0213728023545376',
'0203728020273096',
'0213728023330230',
'0303728030283831',
'0403728040216287',
'0403728040089023',
'0213728023410352',
'0403728040158087',
'0213728023343131',
'0213728023366023',
'0403728040182628',
'0303728030076251',
'0423728046095427',
'0413728043102701',
'0213728023403562',
'0303728030147546',
'0213728023238371',
'0213728023278529',
'0203728020397741',
'0213728023289490',
'0213728023202675',
'0213728023200153',
'0213728023146027',
'0213728023276880',
'0213728023053295',
'0203728020119254',
'0213728023559150',
'0213728023365344',
'0213728023163584',
'0213728023266986',
'0213728023267083',
'0213728023015465',
'0213728023329551',
'0213728023493869',
'0213728023140692',
'0213728023416269',
'0303728030425063',
'0303728030294792',
'0203728020441391',
'0213728023396578',
'0213728023054265',
'0223728020098078',
'0203728020944239',
'0213728023319754',
'0303728030379958',
'0203728020143407',
'0303728030292852',
'0213728023424514',
'0403728040224629',
'0213728023479901',
'0213728023279402',
'0213728023396675',
'0433728040103916',
'0213728023091416',
'0203728020427132',
'0303728030307887',
'0413728043125496',
'0213728023492802',
'0213728023340803',
'0403728040051484',
'0213728023131671',
'0403728040466741',
'0203728020433340',
'0213728023212569',
'0213728023231969',
'0403728040132576',
'0303728046001323',
'0213728023388430',
'0203728020560119',
'0433728030431076',
'0203728020319074',
'0203728020740733',
'0303728030108164',
'0403728040267891',
'0403728040066713',
'0303728030104381',
'0403728040069332',
'0433728043168631',
'0213728023244191',
'0213728023369903',
'0203728020407247',
'0203728020428781',
'0213728023135454',
'0413728043039069',
'0223717028055944',
'0503728030007372',
'0203728020142728',
'0213728023513948',
'0213728023232551',
'0203728020297928',
'0213728023262427',
'0203728040260916',
'0203728020197145',
'0423728046135585',
'0213728023352152',
'0203728020230028',
'0213728023605419',
'0303728030417885',
'0203728020913393',
'0213728023367090',
'0403728023406769',
'0213728023358263',
'0203728020293854',
'0213728023299966',
'0213728023369806',
'0213728023470977',
'0213728023169889',
'0213728023247489',
'0213728023317620',
'0213728023185603',
'0213728023334013',
'0213728023134290',
'0213728023335080',
'0213728023335759',
'0213728023374171',
'0213728023260681',
'0213728023234685',
'0213728023222366',
'0213728023172993',
'0213728023152235',
'0213728023046796',
'0213728023160480',
'0213728023267956',
'0303728030287517',
'0213728030381548',
'0213728023282021',
'0213728023317232',
'0413728043164490',
'0413728043129376',
'0213728023335274',
'0213728023225276',
'0403728040262750',
'0213728023490571',
'0213728023487855',
'0213728023153205',
'0413728043100470',
'0423728046143442',
'0213728023176097',
'0213728023324410',
'0203728020924451',
'0213728023310733',
'0403728040153043',
'0403728040275166',
'0213728023321791',
'0213728023228574',
'0203728020188221',
'0213728023112950',
'0213728023239147',
'0423728046184861',
'0213728023130992',
'0213728023217322',
'0213728023288908',
'0413728043145478',
'0403728040151006',
'0203728020049996',
'0303728030103314',
'0413728043173511',
'0213728023253309',
'0413728043074086',
'0203728020821146',
'0203728020071627',
'0403728040070011',
'0203728020186766',
'0433728043092971',
'0213728023462053',
'0213728023314710',
'0213728023405211',
'0213728023320239',
'0213728023101213',
'0213728023156988',
'0213728023184536',
'0203728020313545',
'0423728046056142',
'0423728046131123',
'0413728043125593',
'0423728046143345',
'0413728030336919',
'0433728040293454',
'0423728046088152',
'0213728023080358',
'0213728023181432',
'0213728023044953',
'0413728043328905',
'0213728023301130',
'0213728023340318',
'0213728023302391',
'0213728023434020',
'0213728023286677',
'0213728023164166',
'0223717028055944',
'0213728023144475',
'0213728023413844',
'0213728023235849',
'0213728023135842',
'0213728023345847',
'0213728023261166',
'0503728050109555',
'0203728020160479',
'0403728040499818',
'0403728040688580',
'0303728030315744',
'0213728023062219',
'0403728040376725',
'0403728040173704',
'0403728040299610',
'0213728023051355',
'0433728043104708',
'0303728043105388',
'0213728023155339',
'0423728046164879',
'0303728030397806',
'0303728030308469',
'0213728023340124',
'0413728043017050',
'0203728020087438',
'0203728020203547',
'0213728023511135',
'0203728020089281',
'0413728043051485',
'0223728028348607',
'0403728040150715',
'0213728023064159',
'0203728021137366',
'0213728023433923',
'0223717028055944',
'0423728046078646',
'0213728023400458',
'0403728040069041',
'0303728030192069',
'0213728023332073',
'0213728023149325',
'0213728023024874',
'0213728023025941',
'0213728023314807',
'0213728023154078',
'0213728023428394',
'0213728023245161',
'0213728023436348',
'0213728023333528',
'0213728023363889',
'0213728023193848',
'0213728023319366',
'0213728023404047',
'0403728040226860',
'0213728023554203',
'0213728023400555',
'0213728023260390',
'0213728023267665',
'0303728030276071',
'0303728030539620',
'0213728023403659',
'0213728023154757',
'0303728030007575',
'0423728046136846',
'0213728023457785',
'0213728023063189',
'0213728023214606',
'0403728040292044',
'0303728030622167',
'0423728046102314',
'0213728023210338',
'0413728043140725',
'0413728043098918',
'0423728046013365',
'0213728023416754',
'0213728023209077',
'0213728023037969',
'0213728023535773',
'0213728023512105',
'0213728023149713',
'0213728023450510',
'0213728023443914',
'0213728023226440',
'0403728030136144',
'0213728023234588',
'0213728023386102',
'0423728046023841',
'0303728030190032',
'0413728043039166',
'0213728023161159',
'0203728020579034',
'0203728020344585',
'0303728030332137',
'0413728043090382',
'0203728020292011',
'0303728030110007',
'0303728030218938',
'0303728030476958',
'0403728040082718',
'0213728023150780',
'0203728020317037',
'0503728023262768',
'0213728023106257',
'0303728030120386',
'0213728023486303',
'0213728023197146',
'0213728023594749',
'0213728023386781',
'0213728023448764',
'0213728023277365',
'0403728023109852',
'0213728023296183',
'0213728023293370',
'0213728023416560',
'0223717028055944',
'0213728023447212',
'0213728023034671',
'0303728030203127',
'0213728023200832',
'0203728020374461',
'0213728023477864',
'0303728030149486',
'0203728020389011',
'0303728030144151',
'0203728020229543',
'0203728020083752',
'0303728030513430',
'0213728023117315',
'0413728043143053',
'0303728030506252',
'0303728043004314',
'0203728020050384',
'0303728030037354',
'0303728046186011',
'0303728030043174',
'0433728043405602',
'0303728030040943',
'0203728020412194',
'0433728040279486',
'0303728023125813',
'0203728020039035',
'0203728020380378',
'0413728043117057',
'0203728020499494',
'0203728020255345',
'0303728030055978',
'0203728020166590',
'0203728020310441',
'0303728030431368',
'0203728020549740',
'0303728030059179',
'0303728030247941',
'0303728030063835',
'0413728043060409',
'0403728040267794',
'0203728020419857',
'0213728023172120',
'0213728023109264',
'0213728023108876',
'0403728040286612',
'0213728023171829',
'0213728023223142',
'0213728023117994',
'0213728023181626',
'0203728020477960',
'0213728023105772',
'0213728023265337',
'0203728020906409',
'0403728040289231',
'0403728040255087',
'0213728040258864',
'0403728040246842',
'0403728040270025',
'0413728030026131',
'0203728020549449',
'0413728043135487',
'0403728040240149',
'0413728043107745',
'0203728020563417',
'0403728040107938',
'0413728043096202',
'0413728043161386',
'0203728020001108',
'0303728030061410',
'0203728020168336',
'0403728040242671',
'0423728046080101',
'0203728020819012',
'0433728030058111',
'0203728020193071',
'0403728040137329',
'0403728040105222',
'0303728030198859',
'0413728043018117',
'0403728040244029',
'0413728043009387',
'0303728030141532',
'0303728030400037',
'0413728043352670',
'0203728020242444',
'0203728020183662',
'0413728043124429',
'0203728020182110',
'0403728040316779',
'0303728046173304',
'0423728046165364',
'0303728030312155',
'0203728021008065',
'0203728020259225',
'0213728023239244',
'0403728040306109',
'0413728043071176',
'0203728046064523',
'0203728020243996',
'0303728030366669',
'0203728020194235',
'0303728030097397',
'0303728030316811',
'0203728020246615',
'0203728020215672',
'0303728030204582',
'0303728030220878',
'0303728040084517',
'0303728030065484',
'0303728030270348',
'0403728040250431',
'0403728040318331',
'0413728043087569',
'0213728023272709',
'0213728023462441',
'0403728040277397',
'0213728023211405',
'0213728023176873',
'0213728023263785',
'0223717028055944',
'0303728030408282',
'0213728023310442',
'0213728023183372',
'0213728023117218',
'0213728023253697',
'0203728030399314',
'0203728020242056',
'0303728030007769',
'0213728023123038',
'0213728023475827',
'0213728023269120',
'0303728030419534',
'0203728020263202',
'0303728030411095',
'0213728023137394',
'0223728028197481',
'0203728020272223',
'0203728020281632',
'0203728020050772',
'0303728030104478',
'0203728020330132',
'0413728043108036',
'0223728028195056',
'0423728046188547',
'0403728030123534',
'0203728020566909',
'0303728030145703',
'0203728020375237',
'0403728040250528',
'0303728030107776',
'0203728030111127',
'0203728020345070',
'0303728030105739',
'0403728040251207',
'0303728030107679',
'0203728020366119',
'0303728030118252',
'0223728043155851',
'0203728020402106',
'0203728040251410',
'0203728020102085',
'0303728030105545',
'0203728020918146',
'0403728040095037',
'0303728030670473',
'0203728020058435',
'0403728040094358',
'0203728040267221',
'0203728020410060',
'0303728020432511',
'0303728030529920',
'0203728020409866',
'0433728040267070',
'0203728020408217',
'0203728020429848',
'0303728030131638',
'0203728020373103',
'0203728020480773',
'0203728020742770',
'0403728046086436',
'0223717028055944',
'0223717028055944',
'0213728023524230',
'0213728023561866',
'0213728023556822',
'0303728030219229',
'0203728020462731',
'0423728046091062',
'0213728023489601',
'0203728021074025',
'0413728043164005',
'0213728023612985',
'0223717028055944',
'0213728023493675',
'0203728021070921',
'0223717028055944',
'0203728020089960',
'0303728030516437',
'0413728043323182',
'0303728030225146',
'0413728046065566',
'0203728020425095',
'0203728020674676',
'0403728040287873',
'0203728020997201',
'0203728020430915',
'0203728020419372',
'0203728020431594',
'0203728020919795',
'0203728020675646',
'0403728040490409',
'0413728043161580',
'0303728030508871',
'0303728030228347',
'0203728020830361',
'0233728025165052',
'0303728030509065',
'0303728030234749',
'0303728030246971',
'0413728020112440',
'0203728020108778',
'0203728020430721',
'0303728030540978',
'0303728030242218',
'0303728030125430',
'0303728030509162',
'0403728040311735',
'0303728030552327',
'0403728040313093',
'0413728043166139',
'0203728020541883',
'0303728030176840',
'0203728020534317',
'0223717028055944',
'0203728020743643',
'0213728023497555',
'0223717028055944',
'0203728020909804',
'0223728028219209',
'0403728040507578',
'0203728020731906',
'0413728020480555',
'0303728043170863',
'0303728030246777',
'0303728030245516',
'0203728020565842',
'0303728030519929',
'0203728020482034',
'0203728020812028',
'0403728020533047',
'0223717028055944',
'0413728043314840',
'0303728030518571',
'0203728020539555',
'0403728040404079',
'0203728020560022',
'0203728020912035',
'0203728020602508',
'0203728020606097',
'0223728028260725',
'0203728020559537',
'0303728030540590',
'0303728030534479',
'0303728020488383',
'0303728030247747',
'0203728020488824',
'0203728020489794',
'0303728030516922',
'0213728023540623',
'0423728046199702',
'0303728030595201',
'0203728020549352',
'0413728043274391',
'0413728043273809',
'0203728020817945',
'0203728020567297',
'0303728030548738',
'0203728020804559',
'0403728040470718',
'0203728020542756',
'0303728030550290',
'0223728028112218',
'0203728020841904',
'0203728020838994',
'0303728030583949',
'0303728030513721',
'0303728020541442',
'0413728043294664',
'0303728030553685',
'0303728030546313',
'0303728030547671',
'0303728030545052',
'0423728046202030',
'0303728030671055',
'0303728030554267',
'0303728030551066',
'0203728020595815',
'0203728020569431',
'0413728046203403',
'0203728020548673',
'0203728040508169',
'0203728020548770',
'0203728020939971',
'0203728020729190',
'0203728020910968',
'0223717028055944',
'0223717028055944',
'0413728046227750',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0213728023535385',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0213728023605613',
'0223717028055944',
'0223717028055944',
'0203728020865281',
'0203728020747523',
'0423728046212021',
'0223717028055944')
or substr(a.alt_ac_no,3,16) in
('0223717028055944',
'0213728023530050',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223717028055944',
'0223728028092430',
'0403728040386328',
'0223728028105428',
'0203728020672930',
'0203728020594360',
'0303728030581330',
'0223728028118232',
'0403728040480321',
'0303728040385314',
'0223728028171970',
'0303728043311319',
'0303728020598963',
'0203728020593196',
'0203728020614051',
'0303728030575607',
'0413728043315907',
'0423728046217647',
'0303728030570951',
'0203728020594554',
'0303728030574540',
'0403728040388850',
'0203728020670214',
'0403728040509421',
'0203728020599695',
'0303728030576189',
'0403728040393312',
'0203728020594263',
'0403728040407765',
'0423728046221818',
'0223717028055944',
'0213728023559732',
'0223717028055944',
'0303728030669406',
'0303728030589381',
'0203728020821631',
'0223728028100675',
'0433728020927016',
'0203728020938710',
'0203728020614730',
'0303728030577838',
'0203728020660223',
'0303728030581136',
'0203728020634033',
'0403728040425807',
'0203728020907379',
'0303728030596171',
'0303728030595589',
'0203728020743061',
'0303728030598887',
'0303728030621003',
'0403728040453840',
'0303728030599566',
'0413728043349857',
'0203728020725310',
'0303728030617123',
'0403728040445013',
'0303728030619742',
'0403728040473725',
'0303728030791432',
'0303728020806834',
'0303728030621779',
'0423728046238987',
'0303728030624010',
'0303728030624301',
'0403728040460436',
'0203728020814550',
'0413728043383613',
'0203728020831040',
'0203728020803492',
'0203728020803201',
'0413728043365474',
'0403728040477605',
'0433728043366317',
'0203728020925615',
'0223717028055944',
'0223717028055944',
'0203728020845396',
'0223728050000268',
'0213728023618417',
'0423728046246553',
'0203728020990896',
'0203728020983621',
'0203728021178882',
'0413728048016139',
'0203728043373937',
'0303728030648939',
'0203728020929883',
'0413728043388172',
'0403728040507287',
'0303728030664750',
'0303728030666302',
'0203728020949477',
'0223728028217851',
'0223717028055944',
'0423728046269445',
'0403728040521934',
'0433728048006894',
'0203728020959662',
'0403728040535320',
'0403728040529888',
'0223717028055944',
'0223717028055944',
'0413728043404856',
'0223728028214456',
'0403728040533768',
'0223728028217754',
'0223728028309613',
'0503728050092871',
'0303728030690552',
'0203728021089739',
'0303728030686672',
'0203728021033091',
'0403728040536969',
'0303728030688224',
'0223717028055944',
'0223728028160718',
'0203728021181792',
'0423728046277205',
'0423728046283316',
'0403728040560055',
'0223728028270716',
'0223717028055944',
'0403728040565196',
'0403728040590028',
'0423728046282540',
'0223717028055944',
'0223717028055944',
'0403728040561122',
'0403728040562480',
'0403728040547154',
'0403728040551907',
'0403728040552004',
'0303728030697730',
'0423728046276817',
'0203728021020675',
'0423728046284189',
'0303728030692007',
'0403728040547833',
'0423728046278951',
'0203728021016213',
'0303728030715190',
'0203728021013691',
'0213728028283826',
'0203728020867997',
'0403728040556660',
'0403728040552295',
'0403728040558697',
'0403728040558018',
'0423728046288166',
'0203728021090127',
'0303728030693850',
'0303728030696954',
'0403728040548803',
'0203728021089351',
'0403728040599146',
'0223728028358986',
'0423728046283801',
'0423728046302037',
'0303728030722853',
'0403728040571307',
'0203728021084016',
'0223728028264702',
'0403728040588379',
'0423728046281085',
'0423728046294083',
'0403728040572374',
'0403728040574702',
'0403728040574023',
'0223717028055944',
'0303728030706363',
'0303728030732553',
'0433728048037837',
'0303728030714705',
'0423728046279242',
'0223717028055944',
'0223728028272947',
'0423728046263140',
'0403728040593326',
'0203728021043276',
'0213728023617350',
'0203728021132904',
'0423728046295441',
'0203728021109236',
'0433728048021832',
'0433728048021347',
'0223728028276730',
'0403728040601959',
'0433728048041717',
'0223717028055944',
'0403728040598855',
'0413728043442395',
'0413728043437836',
'0423728046631740',
'0403728040603317',
'0203728021091873',
'0433728048046664',
'0203728030382630',
'0433728048028525',
'0303728030728576',
'0223728028055958',
'0303728030732165',
'0433728048026876',
'0413728043437739',
'0403728040617091',
'0403728040603123',
'0403728040600601',
'0403728040602832',
'0403728040620389',
'0403728040609816',
'0433728048027361',
'0433728048080323',
'0303728030729837',
'0423728046263334',
'0503728050105869',
'0203728021124271',
'0223728083076977',
'0403728040605160',
'0403728040624463',
'0303728030772032',
'0303728030733135',
'0403728040616024',
'0433728048053745',
'0433728048037546',
'0403728040622911',
'0423728046325123',
'0403728040644639',
'0403728040628537',
'0223717028055944',
'0423728046327839',
'0433728048059856',
'0503728050034380',
'0203728021042888',
'0503728050047281',
'0223728028255972',
'0223728028299816',
'0303728030740604',
'0303728030746521',
'0303728030745745',
'0203728021112146',
'0503728050042431',
'0433728048061990',
'0243728037029592',
'0403728040651817',
'0303728030761362',
'0503728050094423',
'0413728043464608',
'0423728046332883',
'0403728040656279',
'0313728035001896',
'0403728040650653',
'0403728040658704',
'0413728043463638',
'0403728040650750',
'0423728046324347',
'0503728050108391',
'0403728040655309',
'0303728030764757',
'0303728030764854',
'0303728030765630',
'0403728040664136',
'0423728046323571',
'0403728040652108',
'0403728040657346',
'0213728023623849',
'0313728035015670',
'0303728030783090',
'0403728040675776',
'0413728043479255',
'0203728021116996',
'0203728021189067',
'0243728037002432',
'0423728046352380',
'0313728035044867',
'0203728021168697',
'0303728030792305',
'0403728040691587',
'0423728046339188',
'0433728048113206',
'0423728046347821',
'0413728043487597',
'0303728030801908',
'0203728021191686',
'0203728021183150',
'0433728048138717',
'0403728040702451',
'0433728048030077',
'0243728037033084',
'0313728035032354',
'0413728043505057',
'0313728035029250',
'0303728030803072',
'0313728035039920',
'0313728035042442',
'0423728046355484',
'0243728037037255',
'0423728046368676',
'0423728046368482'))
and b.balance<>0
group by a.branch_code,c.customer_name1,a.cust_ac_no,a.ac_desc,a.lcy_curr_balance,a.tod_limit,b.balance, sv.cust_ac_no , sv.lcy_curr_balance
--order by a.cust_ac_no
|
/*
Navicat Premium Data Transfer
Source Server : 11
Source Server Type : MySQL
Source Server Version : 80015
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80015
File Encoding : 65001
Date: 06/07/2019 16:40:06
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for updateinfo
-- ----------------------------
DROP TABLE IF EXISTS `updateinfo`;
CREATE TABLE `updateinfo` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`version` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '版本号',
`updatetime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`disc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of updateinfo
-- ----------------------------
INSERT INTO `updateinfo` VALUES (1, '1.0', '2019-05-20 13:14:47', '我希望你开心,也希望你不开心');
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat Premium Data Transfer
Source Server : 11
Source Server Type : MySQL
Source Server Version : 80015
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80015
File Encoding : 65001
Date: 06/07/2019 16:43:14
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for tbl_quartz_job
-- ----------------------------
DROP TABLE IF EXISTS `tbl_quartz_job`;
CREATE TABLE `tbl_quartz_job` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`job_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
`job_group` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务分组',
`job_class_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '执行类',
`cron_expression` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'cron表达式',
`trigger_state` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务状态',
`old_job_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '修改之前的任务名称',
`old_job_group` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '修改之前的任务分组',
`description` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '描述',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `un_group_name`(`job_group`, `job_name`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '定时任务' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of tbl_quartz_job
-- ----------------------------
INSERT INTO `tbl_quartz_job` VALUES (2, 'ss', 'ss', 'com.hiqiblog.job.SendEmailJob', '*/5 * * * * ?', 'PAUSED', 'ss', 'ss', 'ss');
SET FOREIGN_KEY_CHECKS = 1;
/*
Navicat Premium Data Transfer
Source Server : 11
Source Server Type : MySQL
Source Server Version : 80015
Source Host : localhost:3306
Source Schema : test
Target Server Type : MySQL
Target Server Version : 80015
File Encoding : 65001
Date: 06/07/2019 16:43:23
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`createTime` datetime(0) NULL DEFAULT NULL,
`path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`usersex` int(11) NULL DEFAULT NULL,
`userdesc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`status` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 115 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
|
<reponame>mehmetdoganay/Patika-dev
SELECT * FROM film
WHERE replacement_cost BETWEEN 12.99 AND 16.99; |
<filename>scripts/database/pg/migrations/028.do.add-lead-online-sessions.sql
DO $$
BEGIN
BEGIN
ALTER TABLE cd_dojoleads ADD COLUMN online_sessions smallint NOT NULL DEFAULT 0;
EXCEPTION
WHEN duplicate_column THEN RAISE NOTICE 'column online_sessions already exists in cd_dojoleads.';
END;
END;
$$
|
/*
Warnings:
- You are about to drop the column `active` on the `LfgGroup` table. All the data in the column will be lost.
- You are about to drop the column `looking` on the `LfgGroup` table. All the data in the column will be lost.
*/
-- CreateEnum
CREATE TYPE "LfgGroupStatus" AS ENUM ('PRE_ADD', 'LOOKING', 'MATCH', 'INACTIVE');
-- DropIndex
DROP INDEX "LfgGroup_active_idx";
-- DropIndex
DROP INDEX "LfgGroup_looking_idx";
-- AlterTable
ALTER TABLE "LfgGroup" DROP COLUMN "active",
DROP COLUMN "looking",
ADD COLUMN "status" "LfgGroupStatus" NOT NULL DEFAULT E'INACTIVE';
-- CreateIndex
CREATE INDEX "LfgGroup_status_idx" ON "LfgGroup"("status");
|
<gh_stars>10-100
DROP TABLE IF EXISTS transactions CASCADE;
CREATE TABLE transactions(
txid INTEGER PRIMARY KEY,
ts TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
description text NOT NULL,
sekvensnummerfra INTEGER,
sekvensnummertil INTEGER
);
CREATE INDEX ON transactions(ts);
DROP TABLE IF EXISTS current_tx;
CREATE TABLE current_tx(
txid INTEGER
);
INSERT INTO current_tx VALUES (null);
CREATE UNIQUE INDEX
ON current_tx((true));
|
<filename>pkg/parser/testdata/input/ddl/alter_table_drop_row_deletion_policy.sql
alter table foo drop row deletion policy
|
<gh_stars>1-10
SELECT
permit_number,
account_number,
legal_name,
doing_business_as_name,
issued_date,
expiration_date,
address,
zip_code,
latitude,
longitude
WHERE issued_date <= "2021-07-15"
LIMIT 100000 |
/* Formatted on 10/6/2014 9:01:44 PM (QP5 v5.126.903.23003) */
-- TABLE: SCM.SCM_TAX_CODES
-- DROP TABLE SCM.SCM_TAX_CODES;
CREATE TABLE SCM.SCM_TAX_CODES (
CODE_ID NUMBER NOT NULL,
CODE_NAME VARCHAR2 (50 BYTE),
CODE_DESC VARCHAR2 (200 BYTE),
CREATED_BY NUMBER,
CREATION_DATE VARCHAR2 (50 BYTE),
LAST_UPDATE_BY NUMBER,
LAST_UPDATE_DATE VARCHAR2 (50 BYTE),
ITM_TYPE VARCHAR2 (20 BYTE),
IS_ENABLED VARCHAR2 (1 BYTE),
TAXES_PAYABLES_ACCNT_ID NUMBER,
DSCOUNT_EXPNS_ACCNT_ID NUMBER,
CHRGE_REVNU_ACCNT_ID NUMBER,
ORG_ID NUMBER,
SQL_FORMULAR CLOB,
IS_RECOVRBL_TAX VARCHAR2 (1 BYTE) DEFAULT 0 NOT NULL,
TAX_EXPENSE_ACCNT_ID NUMBER DEFAULT -1 NOT NULL,
PRCHS_DSCNT_ACCNT_ID NUMBER DEFAULT -1 NOT NULL,
CHRGE_EXPNS_ACCNT_ID NUMBER DEFAULT -1 NOT NULL,
IS_WITHLDNG_TAX VARCHAR2 (1 BYTE) DEFAULT '0' NOT NULL
)
TABLESPACE RHODB
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (PCTINCREASE 0 BUFFER_POOL DEFAULT)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
ALTER TABLE SCM.SCM_TAX_CODES
ADD( CONSTRAINT PK_CODE_ID PRIMARY KEY (CODE_ID ));
-- INDEX: SCM.SCM.IDX_CODE_DESC
-- DROP INDEX SCM.SCM.IDX_CODE_DESC;
CREATE INDEX SCM.IDX_CODE_DESC
ON SCM.SCM_TAX_CODES (CODE_DESC)
LOGGING
TABLESPACE RHODB
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (PCTINCREASE 0 BUFFER_POOL DEFAULT)
NOPARALLEL;
/*
-- INDEX: SCM.SCM.IDX_CODE_ID
-- DROP INDEX SCM.SCM.IDX_CODE_ID;
CREATE UNIQUE INDEX SCM.IDX_CODE_ID
ON SCM.SCM_TAX_CODES (CODE_ID)
LOGGING
TABLESPACE RHODB
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (PCTINCREASE 0 BUFFER_POOL DEFAULT)
NOPARALLEL;
*/
-- INDEX: SCM.SCM.IDX_CODE_NAME
-- DROP INDEX SCM.SCM.IDX_CODE_NAME;
CREATE INDEX SCM.IDX_CODE_NAME
ON SCM.SCM_TAX_CODES (CODE_NAME)
LOGGING
TABLESPACE RHODB
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (PCTINCREASE 0 BUFFER_POOL DEFAULT)
NOPARALLEL;
CREATE SEQUENCE SCM.SCM_ITM_TAX_CODES_CODE_ID_SEQ
START WITH 1
MAXVALUE 9223372036854775807
MINVALUE 1
NOCYCLE
CACHE 20
ORDER;
CREATE OR REPLACE TRIGGER SCM.SCM_ITM_TAX_CODES_CODE_ID_TRG
BEFORE INSERT
ON SCM.SCM_TAX_CODES
FOR EACH ROW
-- OPTIONALLY RESTRICT THIS TRIGGER TO FIRE ONLY WHEN REALLY NEEDED
WHEN (NEW.CODE_ID IS NULL)
DECLARE
V_ID SCM.SCM_TAX_CODES.CODE_ID%TYPE;
BEGIN
SELECT SCM.SCM_ITM_TAX_CODES_CODE_ID_SEQ.NEXTVAL INTO V_ID FROM DUAL;
:NEW.CODE_ID := V_ID;
END SCM_ITM_TAX_CODES_CODE_ID_TRG; |
<filename>database/20210714.13 - Create Stored Procedure - upsert_Log_Source_Virtualisation_Template.sql
DROP PROCEDURE IF EXISTS [dbo].[upsert_Log_Source_Virtualisation_Template]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 2021-07-14 -- Discovery and POC, Bring POC into Store Procedure
-- Update date: 2021-09-10 -- Refactor to not need to add a SP to EMDB
-- =============================================
CREATE PROCEDURE [dbo].[upsert_Log_Source_Virtualisation_Template]
@Virt_Template_UID varchar(40) = '0d7544aa-5760-4c5e-be62-26262f3cd1db', -- UID of the EZ Cloud Template
@Virt_Template_Name varchar(50) = 'EZ Cloud', -- Name of the new Template
@ItemToInsert_ID int = NULL, -- ID of Template Item to insert, or NULL if none
@ItemToInsert_SortOrder int = NULL, -- SortOrder of the Template Item to insert, or NULL if none or happy to get the Max +1
@ItemToDelete_ID int = NULL -- ID of Template Item to delete, or NULL if none
AS
BEGIN
-- Get the ID of the Virtual Source Template for EZ CLoud
DECLARE @UpsertedVirtualSourceTemplateID int
SELECT TOP 1 @UpsertedVirtualSourceTemplateID = VirtualSourceTemplateID
FROM [LogRhythmEMDB].[dbo].[VirtualSourceTemplate]
WHERE [Description] LIKE CONCAT('%*** EZ_UID:', @Virt_Template_UID, ':DIU_ZE ***%')
-- Prepare the Long Description with the UID and Name
DECLARE @LongDescWithUID varchar(255)
SELECT @LongDescWithUID = CONCAT('_____________________________________________________
_ Automatically created by EZ Cloud Onboarder _
___________ DO NOT MODIFY THE LINE BELOW __________
*** EZ_UID:', @Virt_Template_UID, ':DIU_ZE ***')
-- And BAM, get the job done as [LogRhythmEMDB] as the context
DECLARE @RC int
EXEC @RC = LogRhythmEMDB.sys.sp_executesql N'
-- Prepare the "list" of Item to insert
DECLARE @ListOfItemsToInsert dbo.DualIntTableType -- 👈👈👈👈👈👈👈
IF @ItemToInsert_ID IS NOT NULL
BEGIN
IF @ItemToInsert_SortOrder IS NULL
-- Look for the SortOrder the Item ID, if it exists
SELECT @ItemToInsert_SortOrder = SortOrder
FROM [dbo].[VirtualSourceTemplateToVirtualSourceTemplateItem]
WHERE VirtualSourceTemplateID = @UpsertedVirtualSourceTemplateID
AND VirtualSourceTemplateItemID = @ItemToInsert_ID
IF @ItemToInsert_SortOrder IS NULL
-- Get the Max SortOrder +1 for the EZ Cloud Virtual Template
SELECT @ItemToInsert_SortOrder = ISNULL(MAX(SortOrder),0) + 1
FROM [dbo].[VirtualSourceTemplateToVirtualSourceTemplateItem]
WHERE VirtualSourceTemplateID = @UpsertedVirtualSourceTemplateID
-- Add this puppy to the list
INSERT INTO @ListOfItemsToInsert VALUES(@ItemToInsert_ID, @ItemToInsert_SortOrder)
END
-- Prepare the "list" of Item to delete
DECLARE @ListOfItemsToDelete dbo.IntTableType -- 👈👈👈👈👈👈
IF @ItemToDelete_ID IS NOT NULL
-- Add this old branch to the list
INSERT INTO @ListOfItemsToDelete VALUES(@ItemToDelete_ID)
-- KA BOOM!!!
-- EXEC [LogRhythmEMDB].[dbo].[LogRhythm_EMDB_VirtualSourceTemplate_Upsert] @Name=@Virt_Template_Name,
EXEC [dbo].[LogRhythm_EMDB_VirtualSourceTemplate_Upsert] @Name=@Virt_Template_Name,
@Description=@LongDescWithUID,
@VirtualSourceTemplateID=@UpsertedVirtualSourceTemplateID OUTPUT,
@ItemsToInsert=@ListOfItemsToInsert,
@ItemsToDelete=@ListOfItemsToDelete,
@IsSuperUser=0;
'
,N'
@Virt_Template_Name varchar(50),
@LongDescWithUID varchar(255),
@UpsertedVirtualSourceTemplateID int OUTPUT,
@ItemToInsert_ID int,
@ItemToInsert_SortOrder int,
@ItemToDelete_ID int
'
,@Virt_Template_Name=@Virt_Template_Name
,@LongDescWithUID=@LongDescWithUID
,@UpsertedVirtualSourceTemplateID=@UpsertedVirtualSourceTemplateID
,@ItemToInsert_ID=@ItemToInsert_ID
,@ItemToInsert_SortOrder=@ItemToInsert_SortOrder
,@ItemToDelete_ID=@ItemToDelete_ID
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT @UpsertedVirtualSourceTemplateID AS 'New_Virtual_Source_Template_ID',
@RC AS 'EMDB_SP_Return_Code'
END
GO
|
<filename>database_schema/SQLMonitor/Views/Monitor/database_tables.sql<gh_stars>10-100
USE [SQLMonitor]
GO
IF OBJECT_ID('[Monitor].[database_tables]') IS NOT NULL
DROP VIEW [Monitor].[database_tables]
GO
CREATE VIEW [Monitor].[database_tables]
AS
SELECT [ServerName]
,[DatabaseName]
,[TableName]
,[RowCount]
,[ReservedKB]
,[DataSizeKB]
,[IndexSizeKB]
,[UnusedSpaceKB]
,[RecordStatus]
,[RecordCreated]
FROM [Monitor].[DatabaseTables]
--WHERE [RecordStatus] = 'A'
GO
|
-- file:int8.sql ln:161 expect:true
select '100'::int2 + '9223372036854775800'::int8
|
SET @sName = 'bx_timeline';
-- SETTINGS
UPDATE `sys_options` SET `value`='5' WHERE `name`='bx_timeline_events_per_preload';
UPDATE `sys_options` SET `value`='' WHERE `name`='bx_timeline_enable_jump_to_switcher';
|
<filename>benchmarking/pgbench/truncate-tables.sql
-- remove pgbench tables
TRUNCATE TABLE pgbench_inserts_unlogged RESTART IDENTITY;
TRUNCATE TABLE pgbench_inserts_normal RESTART IDENTITY;
TRUNCATE TABLE pgbench_inserts_indexed RESTART IDENTITY;
|
<gh_stars>1-10
-- AlterTable
ALTER TABLE "users" ADD COLUMN "useOTP" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "otpSecret" TEXT,
ALTER COLUMN "birthday" SET DEFAULT '1970-01-01 00:00:00 +00:00';
|
---Data Engineering
-- Drop Tables if Existing
DROP TABLE IF EXISTS Departments;
DROP TABLE IF EXISTS Dept_Emp;
DROP TABLE IF EXISTS Dept_Manager;
DROP TABLE IF EXISTS Employees;
DROP TABLE IF EXISTS Salaries;
DROP TABLE IF EXISTS Titles;
-- Exported from QuickDBD: https://www.quickdatabasediagrams.com/
-- Link to schema: https://app.quickdatabasediagrams.com/#/d/z2Ek26
-- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here.
-- Logical ERD
CREATE TABLE Departments (
dept_no VARCHAR NOT NULL,
dept_name VARCHAR NOT NULL,
CONSTRAINT pk_Departments PRIMARY KEY (
dept_no
)
);
CREATE TABLE Dept_Emp (
emp_no Integer NOT NULL,
dept_no VARCHAR NOT NULL,
from_date Date NOT NULL,
to_date Date NOT NULL
);
CREATE TABLE Dept_Manager (
dept_no VARCHAR NOT NULL,
emp_no Integer NOT NULL,
from_date Date NOT NULL,
to_date Date NOT NULL
);
CREATE TABLE Employees (
emp_no Integer NOT NULL,
birth_date Date NOT NULL,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
gender VARCHAR NOT NULL,
hire_date Date NOT NULL,
CONSTRAINT pk_Employees PRIMARY KEY (
emp_no
)
);
CREATE TABLE Salaries (
emp_no Integer NOT NULL,
salary Integer NOT NULL,
from_date Date NOT NULL,
to_date Date NOT NULL
);
CREATE TABLE Titles (
emp_no Integer NOT NULL,
title VARCHAR NOT NULL,
from_date Date NOT NULL,
to_date Date NOT NULL
);
ALTER TABLE Dept_Emp ADD CONSTRAINT fk_Dept_Emp_emp_no FOREIGN KEY(emp_no)
REFERENCES Employees (emp_no);
ALTER TABLE Dept_Emp ADD CONSTRAINT fk_Dept_Emp_dept_no FOREIGN KEY(dept_no)
REFERENCES Departments (dept_no);
ALTER TABLE Dept_Manager ADD CONSTRAINT fk_Dept_Manager_dept_no FOREIGN KEY(dept_no)
REFERENCES Departments (dept_no);
ALTER TABLE Dept_Manager ADD CONSTRAINT fk_Dept_Manager_emp_no FOREIGN KEY(emp_no)
REFERENCES Employees (emp_no);
ALTER TABLE Salaries ADD CONSTRAINT fk_Salaries_emp_no FOREIGN KEY(emp_no)
REFERENCES Employees (emp_no);
ALTER TABLE Titles ADD CONSTRAINT fk_Titles_emp_no FOREIGN KEY(emp_no)
REFERENCES Employees (emp_no);
--Query from the tables generated
SELECT * FROM Departments;
SELECT * FROM Dept_Emp;
SELECT * FROM Dept_Manager;
SELECT * FROM Employees;
SELECT * FROM Salaries;
SELECT * FROM Titles;
--selection from salaries and title
select t.title as Titles, avg(s.salary) as avg_salary
from Salaries s join Titles t
on s.emp_no =t.emp_no
group by Titles; |
<filename>factbook.sql<gh_stars>10-100
CREATE TABLE "facts" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
"code" varchar(255) NOT NULL,
"name" varchar(255) NOT NULL,
---------------------------------------
-- Geography
"area" integer,
"area_land" integer,
"area_water" integer,
----------------------------------------
-- People and Society
"population" integer,
"population_growth" float,
"birth_rate" float,
"death_rate" float,
"migration_rate" float,
--------------------------------
-- Timestamp
"created_at" datetime,
"updated_at" datetime
)
|
<reponame>RWTH-i5-IDSG/xsharing-services-integrator
-- 0) Prepare constraints
ALTER TABLE ixsi.push_event_consumption
DROP CONSTRAINT push_event_consumption_consumption_id_fkey,
ADD FOREIGN KEY (consumption_id) REFERENCES ixsi.consumption (consumption_id)
ON UPDATE NO ACTION ON DELETE CASCADE;
-- 1) Add the split columns
ALTER TABLE ixsi.consumption
ADD COLUMN time_period_from timestamp without time zone,
ADD COLUMN time_period_to timestamp without time zone;
-- 2) split time_period (tsrange) into the two new columns
UPDATE ixsi.consumption con
SET time_period_from = lower(con.time_period),
time_period_to = upper(con.time_period);
-- 3) delete all consumptions with 'empty' tsrange.
-- with this we lose data, but it is not a deal breaker since we can always subscribe to get the consumptions again
WITH booking_id_select AS (
SELECT DISTINCT cc.booking_id
FROM ixsi.consumption cc
WHERE cc.time_period = 'empty'
)
DELETE FROM ixsi.consumption c
WHERE c.booking_id IN (SELECT booking_id FROM booking_id_select);
-- 4) delete time_period (redundant now)
ALTER TABLE ixsi.consumption DROP COLUMN time_period;
|
UPDATE settings
SET setting_value='{"brackets":{"2":{"jumlah":2,"data":{"teams":[["Undian:1","Undian:2"]],"results":[]}},"3":{"jumlah":3,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"]],"results":[]}},"4":{"jumlah":4,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"]],"results":[]}},"5":{"jumlah":5,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],[null,null],["Undian:4","Undian:5"]],"results":[]}},"6":{"jumlah":6,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null]],"results":[]}},"7":{"jumlah":7,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"],["Undian:5","Undian:6"],["Undian:7",null]],"results":[]}},"8":{"jumlah":8,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"],["Undian:5","Undian:6"],["Undian:7","Undian:8"]],"results":[]}},"9":{"jumlah":9,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],[null,null],["Undian:4","Undian:5"],["Undian:6","Undian:7"],[null,null],["Undian:8","Undian:9"],[null,null]],"results":[]}},"10":{"jumlah":10,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],[null,null],["Undian:6","Undian:7"],[null,null],["Undian:8","Undian:9"],["Undian:10",null]],"results":[]}},"11":{"jumlah":11,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null]],"results":[]}},"12":{"jumlah":12,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null]],"results":[]}},"13":{"jumlah":13,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11","Undian:12"],["Undian:13",null]],"results":[]}},"14":{"jumlah":14,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12","Undian:13"],["Undian:14",null]],"results":[]}},"15":{"jumlah":15,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"],["Undian:5","Undian:6"],["Undian:7","Undian:8"],["Undian:9",null],["Undian:10","Undian:11"],["Undian:12","Undian:13"],["Undian:14","Undian:15"]],"results":[]}},"16":{"jumlah":16,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"],["Undian:5","Undian:6"],["Undian:7","Undian:8"],["Undian:9","Undian:10"],["Undian:11","Undian:12"],["Undian:13","Undian:14"],["Undian:15","Undian:16"]],"results":[]}},"17":{"jumlah":17,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9",null],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17",null]],"results":[]}},"18":{"jumlah":18,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9",null],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16","Undian:17"],["Undian:18",null]],"results":[]}},"19":{"jumlah":19,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17","Undian:18"],["Undian:19",null]],"results":[]}},"20":{"jumlah":20,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10",null],["Undian:11",null],["Undian:12","Undian:13"],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18","Undian:19"],["Undian:20",null]],"results":[]}},"21":{"jumlah":21,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null],["Undian:12",null],["Undian:13","Undian:14"],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18",null],["Undian:19","Undian:20"],["Undian:21",null]],"results":[]}},"22":{"jumlah":22,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null],["Undian:12",null],["Undian:13","Undian:14"],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18","Undian:19"],["Undian:20","Undian:21"],["Undian:22",null]],"results":[]}},"23":{"jumlah":23,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null],["Undian:13",null],["Undian:14","Undian:15"],["Undian:16",null],["Undian:17",null],["Undian:18",null],["Undian:19","Undian:20"],["Undian:21","Undian:22"],["Undian:23",null]],"results":[]}},"24":{"jumlah":24,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null],["Undian:13",null],["Undian:14","Undian:15"],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24",null]],"results":[]}},"25":{"jumlah":25,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11","Undian:12"],["Undian:13",null],["Undian:14",null],["Undian:15","Undian:16"],["Undian:17","Undian:18"],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23","Undian:24"],["Undian:25",null]],"results":[]}},"26":{"jumlah":26,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11","Undian:12"],["Undian:13",null],["Undian:14",null],["Undian:15","Undian:16"],["Undian:17","Undian:18"],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24","Undian:25"],["Undian:26",null]],"results":[]}},"27":{"jumlah":27,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12","Undian:13"],["Undian:14",null],["Undian:15",null],["Undian:16","Undian:17"],["Undian:18","Undian:19"],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23","Undian:24"],["Undian:25","Undian:26"],["Undian:27",null]],"results":[]}},"28":{"jumlah":28,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12","Undian:13"],["Undian:14",null],["Undian:15",null],["Undian:16","Undian:17"],["Undian:18","Undian:19"],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24","Undian:25"],["Undian:26","Undian:27"],["Undian:28",null]],"results":[]}},"29":{"jumlah":29,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12","Undian:13"],["Undian:14","Undian:15"],["Undian:16",null],["Undian:17","Undian:18"],["Undian:19","Undian:20"],["Undian:21","Undian:22"],["Undian:23","Undian:24"],["Undian:25","Undian:26"],["Undian:27","Undian:28"],["Undian:29",null]],"results":[]}},"30":{"jumlah":30,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12","Undian:13"],["Undian:14","Undian:15"],["Undian:16","Undian:17"],["Undian:18","Undian:19"],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24","Undian:25"],["Undian:26","Undian:27"],["Undian:28","Undian:29"],["Undian:30",null]],"results":[]}},"31":{"jumlah":31,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"],["Undian:5","Undian:6"],["Undian:6","Undian:8"],["Undian:8","Undian:10"],["Undian:10","Undian:12"],["Undian:12","Undian:14"],["Undian:14","Undian:16"],["Undian:17",null],["Undian:18","Undian:19"],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24","Undian:25"],["Undian:26","Undian:27"],["Undian:28","Undian:29"],["Undian:30","Undian:31"]],"results":[]}},"32":{"jumlah":32,"data":{"teams":[["Undian:1","Undian:2"],["Undian:3","Undian:4"],["Undian:5","Undian:6"],["Undian:6","Undian:8"],["Undian:8","Undian:10"],["Undian:10","Undian:12"],["Undian:12","Undian:14"],["Undian:14","Undian:16"],["Undian:17","Undian:18"],["Undian:19","Undian:20"],["Undian:21","Undian:22"],["Undian:23","Undian:24"],["Undian:25","Undian:26"],["Undian:27","Undian:28"],["Undian:29","Undian:30"],["Undian:31","Undian:32"]],"results":[]}},"33":{"jumlah":33,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9",null],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18",null],["Undian:19",null],["Undian:20",null],["Undian:21",null],["Undian:22",null],["Undian:23",null],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32",null],["Undian:33",null]],"results":[]}},"34":{"jumlah":34,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9",null],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18",null],["Undian:19",null],["Undian:20",null],["Undian:21",null],["Undian:22",null],["Undian:23",null],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32","Undian:33"],["Undian:34",null]],"results":[]}},"35":{"jumlah":35,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9",null],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20",null],["Undian:21",null],["Undian:22",null],["Undian:23",null],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32",null],["Undian:33","Undian:34"],["Undian:35",null]],"results":[]}},"36":{"jumlah":36,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9",null],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22",null],["Undian:23",null],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32",null],["Undian:33",null],["Undian:34","Undian:35"],["Undian:36",null]],"results":[]}},"37":{"jumlah":37,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23",null],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32",null],["Undian:33",null],["Undian:34",null],["Undian:35","Undian:36"],["Undian:37",null]],"results":[]}},"38":{"jumlah":38,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10",null],["Undian:11",null],["Undian:12",null],["Undian:13",null],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17","Undian:18"],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23",null],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30","Undian:31"],["Undian:32",null],["Undian:33",null],["Undian:34",null],["Undian:35",null],["Undian:36","Undian:37"],["Undian:38",null]],"results":[]}},"39":{"jumlah":39,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10",null],["Undian:11",null],["Undian:12","Undian:13"],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18","Undian:19"],["Undian:20",null],["Undian:21",null],["Undian:22","Undian:23"],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31","Undian:32"],["Undian:33",null],["Undian:34",null],["Undian:35",null],["Undian:36",null],["Undian:37","Undian:38"],["Undian:39",null]],"results":[]}},"40":{"jumlah":40,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4",null],["Undian:5",null],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10",null],["Undian:11",null],["Undian:12","Undian:13"],["Undian:14",null],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18","Undian:19"],["Undian:20",null],["Undian:21",null],["Undian:22","Undian:23"],["Undian:24",null],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28","Undian:29"],["Undian:30",null],["Undian:31",null],["Undian:32","Undian:33"],["Undian:34",null],["Undian:35",null],["Undian:36",null],["Undian:37",null],["Undian:38","Undian:39"],["Undian:40",null]],"results":[]}},"41":{"jumlah":41,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null],["Undian:12",null],["Undian:13","Undian:14"],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18",null],["Undian:19","Undian:20"],["Undian:21",null],["Undian:22",null],["Undian:23","Undian:24"],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29","Undian:30"],["Undian:31",null],["Undian:32",null],["Undian:33","Undian:34"],["Undian:35",null],["Undian:36",null],["Undian:37",null],["Undian:38",null],["Undian:39","Undian:40"],["Undian:41",null]],"results":[]}},"42":{"jumlah":42,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null],["Undian:12",null],["Undian:13","Undian:14"],["Undian:15",null],["Undian:16",null],["Undian:17",null],["Undian:18",null],["Undian:19","Undian:20"],["Undian:21",null],["Undian:22",null],["Undian:23","Undian:24"],["Undian:25",null],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29","Undian:30"],["Undian:31",null],["Undian:32",null],["Undian:33","Undian:34"],["Undian:35",null],["Undian:36",null],["Undian:37",null],["Undian:38","Undian:39"],["Undian:40","Undian:41"],["Undian:42",null]],"results":[]}},"43":{"jumlah":43,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null],["Undian:12",null],["Undian:13","Undian:14"],["Undian:15","Undian:6"],["Undian:17",null],["Undian:18",null],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22",null],["Undian:23",null],["Undian:24","Undian:25"],["Undian:26",null],["Undian:27",null],["Undian:28",null],["Undian:29",null],["Undian:30","Undian:31"],["Undian:32",null],["Undian:33",null],["Undian:35","Undian:34"],["Undian:36",null],["Undian:37",null],["Undian:38",null],["Undian:39","Undian:40"],["Undian:41","Undian:42"],["Undian:43",null]],"results":[]}},"44":{"jumlah":44,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11",null],["Undian:12",null],["Undian:13","Undian:14"],["Undian:15","Undian:6"],["Undian:17",null],["Undian:18",null],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22",null],["Undian:23",null],["Undian:24","Undian:25"],["Undian:26","Undian:27"],["Undian:28",null],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32","Undian:33"],["Undian:34",null],["Undian:35","Undian:36"],["Undian:37",null],["Undian:38",null],["Undian:39",null],["Undian:40","Undian:41"],["Undian:42","Undian:43"],["Undian:44",null]],"results":[]}},"45":{"jumlah":45,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null],["Undian:13",null],["Undian:14","Undian:15"],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23",null],["Undian:24",null],["Undian:25","Undian:26"],["Undian:27","Undian:28"],["Undian:29",null],["Undian:30",null],["Undian:31",null],["Undian:32",null],["Undian:33","Undian:34"],["Undian:35",null],["Undian:36","Undian:37"],["Undian:38",null],["Undian:39",null],["Undian:40",null],["Undian:41","Undian:42"],["Undian:43","Undian:44"],["Undian:45",null]],"results":[]}},"46":{"jumlah":46,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null],["Undian:13",null],["Undian:14","Undian:15"],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23",null],["Undian:24",null],["Undian:25","Undian:26"],["Undian:27","Undian:28"],["Undian:29",null],["Undian:30",null],["Undian:31","Undian:32"],["Undian:33",null],["Undian:34",null],["Undian:35",null],["Undian:36","Undian:37"],["Undian:38","Undian:39"],["Undian:40",null],["Undian:41",null],["Undian:42","Undian:43"],["Undian:444","Undian:45"],["Undian:46",null]],"results":[]}},"47":{"jumlah":47,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null],["Undian:13",null],["Undian:14","Undian:15"],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24",null],["Undian:25",null],["Undian:26","Undian:27"],["Undian:28","Undian:29"],["Undian:30",null],["Undian:31",null],["Undian:32","Undian:33"],["Undian:34",null],["Undian:35",null],["Undian:36",null],["Undian:37","Undian:38"],["Undian:39","Undian:40"],["Undian:41",null],["Undian:42",null],["Undian:43","Undian:44"],["Undian:45","Undian:46"],["Undian:47",null]],"results":[]}},"48":{"jumlah":48,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6",null],["Undian:7",null],["Undian:8","Undian:9"],["Undian:10","Undian:11"],["Undian:12",null],["Undian:13",null],["Undian:14","Undian:15"],["Undian:16","Undian:17"],["Undian:18",null],["Undian:19",null],["Undian:20","Undian:21"],["Undian:22","Undian:23"],["Undian:24",null],["Undian:25",null],["Undian:26","Undian:27"],["Undian:28","Undian:29"],["Undian:30",null],["Undian:31",null],["Undian:32","Undian:33"],["Undian:34","Undian:34"],["Undian:36",null],["Undian:37",null],["Undian:38","Undian:38"],["Undian:40","Undian:41"],["Undian:42",null],["Undian:43",null],["Undian:44","Undian:45"],["Undian:46","Undian:47"],["Undian:48",null]],"results":[]}},"49":{"jumlah":49,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11","Undian:12"],["Undian:13",null],["Undian:14",null],["Undian:15","Undian:16"],["Undian:17","Undian:18"],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23","Undian:24"],["Undian:25",null],["Undian:26",null],["Undian:27","Undian:28"],["Undian:29","Undian:30"],["Undian:31",null],["Undian:32",null],["Undian:33","Undian:34"],["Undian:35","Undian:36"],["Undian:37",null],["Undian:38",null],["Undian:39","Undian:40"],["Undian:41","Undian:42"],["Undian:43",null],["Undian:44",null],["Undian:45","Undian:46"],["Undian:47","Undian:48"],["Undian:49",null]],"results":[]}},"50":{"jumlah":50,"data":{"teams":[["Undian:1",null],["Undian:2","Undian:3"],["Undian:4","Undian:5"],["Undian:6","Undian:7"],["Undian:8",null],["Undian:9","Undian:10"],["Undian:11","Undian:12"],["Undian:13",null],["Undian:14",null],["Undian:15","Undian:16"],["Undian:17","Undian:18"],["Undian:19",null],["Undian:20",null],["Undian:21","Undian:22"],["Undian:23","Undian:24"],["Undian:25",null],["Undian:26",null],["Undian:27","Undian:28"],["Undian:29","Undian:30"],["Undian:31",null],["Undian:32",null],["Undian:33","Undian:34"],["Undian:35","Undian:36"],["Undian:37",null],["Undian:38",null],["Undian:39","Undian:40"],["Undian:41","Undian:42"],["Undian:43",null],["Undian:44","Undian:45"],["Undian:46","Undian:47"],["Undian:48","Undian:49"],["Undian:50",null]],"results":[]}}}}'
WHERE setting_type = "TEMPLATE_BAGAN"; |
<reponame>liujiaxiang/mb
/*
Navicat MySQL Data Transfer
Source Server : local
Source Server Version : 50616
Source Host : localhost:3306
Source Database : fcms
Target Server Type : MYSQL
Target Server Version : 50616
File Encoding : 65001
Date: 2017-09-27 11:14:08
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `article_type`
-- ----------------------------
DROP TABLE IF EXISTS `article_type`;
CREATE TABLE `article_type` (
`id` int(11) NOT NULL COMMENT '文章类别ID',
`article_type` varchar(255) NOT NULL COMMENT '文章分类',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of article_type
-- ----------------------------
INSERT INTO `article_type` VALUES ('1', '编程');
INSERT INTO `article_type` VALUES ('2', '兴趣');
INSERT INTO `article_type` VALUES ('3', '电影');
INSERT INTO `article_type` VALUES ('4', '摄影');
-- ----------------------------
-- Table structure for `auth_code`
-- ----------------------------
DROP TABLE IF EXISTS `auth_code`;
CREATE TABLE `auth_code` (
`id` varchar(33) NOT NULL,
`expireAt` bigint(20) NOT NULL,
`accountId` int(11) NOT NULL,
`type` int(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of auth_code
-- ----------------------------
INSERT INTO `auth_code` VALUES ('5816431282d84ea2b5cadc37af2a8125', '1504084414732', '2', '0');
-- ----------------------------
-- Table structure for `friend`
-- ----------------------------
DROP TABLE IF EXISTS `friend`;
CREATE TABLE `friend` (
`userId` int(11) NOT NULL COMMENT '用户ID',
`friendId` int(11) NOT NULL COMMENT '朋友ID',
`createAt` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`userId`,`friendId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of friend
-- ----------------------------
-- ----------------------------
-- Table structure for `friend_link`
-- ----------------------------
DROP TABLE IF EXISTS `friend_link`;
CREATE TABLE `friend_link` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`logo` varchar(255) DEFAULT NULL COMMENT '友情链接logo',
`site_name` varchar(255) NOT NULL COMMENT '网站名',
`url` varchar(255) NOT NULL COMMENT '网站url',
`sort` int(11) DEFAULT NULL COMMENT '顺序',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of friend_link
-- ----------------------------
INSERT INTO `friend_link` VALUES ('2', '/upload/51f881397251f.jpg', '百度', 'www.baidu.com', null);
-- ----------------------------
-- Table structure for `like_message_log`
-- ----------------------------
DROP TABLE IF EXISTS `like_message_log`;
CREATE TABLE `like_message_log` (
`accountId` int(11) NOT NULL,
`refType` int(11) NOT NULL,
`refId` int(11) NOT NULL,
`createAt` datetime NOT NULL COMMENT 'creatAt用于未来清除该表中时间比较久远的记录',
PRIMARY KEY (`accountId`,`refType`,`refId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用于保存点赞的记录,用于记录点赞后发布过系统消息,保障只发一次';
-- ----------------------------
-- Table structure for `login_log`
-- ----------------------------
DROP TABLE IF EXISTS `login_log`;
CREATE TABLE `login_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键',
`accountId` int(11) NOT NULL,
`loginAt` datetime NOT NULL,
`ip` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=134 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `menu`
-- ----------------------------
DROP TABLE IF EXISTS `menu`;
CREATE TABLE `menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(18) DEFAULT NULL,
`target` varchar(18) DEFAULT NULL,
`url` varchar(255) DEFAULT NULL,
`weight` int(11) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of menu
-- ----------------------------
INSERT INTO `menu` VALUES ('1', '文章', '_self', 'blog', '0', '0');
INSERT INTO `menu` VALUES ('2', '视频', '_self', 'video', '0', '0');
INSERT INTO `menu` VALUES ('3', '问答', '_self', 'ask', '0', '0');
INSERT INTO `menu` VALUES ('4', '发现', '_self', 'tags', '0', '0');
INSERT INTO `menu` VALUES ('5', '走廊', '_self', 'gallery', '0', '0');
-- ----------------------------
-- Table structure for `message`
-- ----------------------------
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user` int(11) NOT NULL COMMENT '消息的主人',
`friend` int(11) NOT NULL COMMENT '对方的ID',
`sender` int(11) NOT NULL COMMENT '发送者',
`receiver` int(11) NOT NULL COMMENT '接收者',
`type` tinyint(2) NOT NULL COMMENT '0:普通消息,1:系统消息',
`content` text NOT NULL,
`createAt` datetime NOT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of message
-- ----------------------------
-- ----------------------------
-- Table structure for `news_feed`
-- ----------------------------
DROP TABLE IF EXISTS `news_feed`;
CREATE TABLE `news_feed` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`accountId` int(11) NOT NULL COMMENT '动态创建者',
`refType` tinyint(2) NOT NULL COMMENT '动态引用类型',
`refId` int(11) NOT NULL DEFAULT '0' COMMENT '动态引用所关联的 id',
`refParentType` tinyint(2) NOT NULL DEFAULT '0' COMMENT 'reply所属的贴子类型, 与type 字段填的值一样',
`refParentId` int(11) NOT NULL DEFAULT '0',
`createAt` datetime NOT NULL COMMENT '动态创建时间',
PRIMARY KEY (`id`),
KEY `refId` (`refId`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `posts`
-- ----------------------------
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '发布内容ID',
`userId` int(11) NOT NULL COMMENT '作者',
`comments` int(11) DEFAULT '0' COMMENT '评论数',
`content` longtext NOT NULL COMMENT '内容',
`createAt` datetime NOT NULL COMMENT '创建时间',
`images` text DEFAULT NULL COMMENT '图片',
`tags` varchar(255) DEFAULT NULL COMMENT '标签',
`title` varchar(255) NOT NULL COMMENT '标题',
`views` int(11) NOT NULL DEFAULT '0' COMMENT '浏览数',
`likeCount` int(11) NOT NULL DEFAULT '0' COMMENT '点赞数',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '状态,1表示发布,0表示草稿,2表示锁定',
`summary` varchar(255) DEFAULT NULL COMMENT '摘要',
`post_type` int(11) NOT NULL COMMENT '发布的类型,比如文章,图片,视频等',
`last_images` varchar(255) DEFAULT NULL COMMENT '最后一张图片',
`video` varchar(255) DEFAULT NULL COMMENT '视频地址',
`article_type` int(11) DEFAULT NULL COMMENT '文章分类,可为空,发布文章时才需要选择分类',
`privacy` int(11) DEFAULT NULL COMMENT '权限,0表示公开,1表示不公开',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=98 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `posts_comment`
-- ----------------------------
DROP TABLE IF EXISTS `posts_comment`;
CREATE TABLE `posts_comment` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论ID',
`userId` int(11) NOT NULL COMMENT '作者Id',
`content` text NOT NULL COMMENT '评论内容',
`createAt` datetime NOT NULL COMMENT '创建时间',
`postId` int(11) NOT NULL COMMENT 'POST的ID',
`toId` int(11) DEFAULT NULL COMMENT '要回复的评论的id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `posts_like`
-- ----------------------------
DROP TABLE IF EXISTS `posts_like`;
CREATE TABLE `posts_like` (
`userId` int(11) NOT NULL COMMENT '点赞用户ID',
`refId` int(11) NOT NULL COMMENT '点赞关联表ID,这里统一为posts的ID',
`createAt` datetime NOT NULL COMMENT '点赞时间',
PRIMARY KEY (`userId`,`refId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of posts_like
-- ----------------------------
-- ----------------------------
-- Table structure for `post_type`
-- ----------------------------
DROP TABLE IF EXISTS `post_type`;
CREATE TABLE `post_type` (
`id` int(11) NOT NULL COMMENT 'post_type的ID',
`post_type` varchar(255) NOT NULL COMMENT 'post_type类型',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of post_type
-- ----------------------------
INSERT INTO `post_type` VALUES ('1', '文章');
INSERT INTO `post_type` VALUES ('2', '视频');
INSERT INTO `post_type` VALUES ('3', '图片');
INSERT INTO `post_type` VALUES ('4', '问答');
-- ----------------------------
-- Table structure for `refer_me`
-- ----------------------------
DROP TABLE IF EXISTS `refer_me`;
CREATE TABLE `refer_me` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`referAccountId` int(11) NOT NULL COMMENT '接收者账号id',
`newsFeedId` int(11) NOT NULL COMMENT 'newsFeedId',
`type` tinyint(2) NOT NULL COMMENT '@我、评论我等等的refer类型',
`createAt` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of refer_me
-- ----------------------------
-- ----------------------------
-- Table structure for `remind`
-- ----------------------------
DROP TABLE IF EXISTS `remind`;
CREATE TABLE `remind` (
`accountId` int(11) NOT NULL COMMENT '用户账号id,必须手动指定,不自增',
`referMe` int(11) NOT NULL DEFAULT '0' COMMENT '提到我的消息条数',
`message` int(11) NOT NULL DEFAULT '0' COMMENT '私信条数',
`fans` int(11) NOT NULL DEFAULT '0' COMMENT '粉丝增加个数',
PRIMARY KEY (`accountId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of remind
-- ----------------------------
-- ----------------------------
-- Table structure for `role`
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`id` int(11) NOT NULL,
`role_name` char(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of role
-- ----------------------------
-- ----------------------------
-- Table structure for `sensitive_words`
-- ----------------------------
DROP TABLE IF EXISTS `sensitive_words`;
CREATE TABLE `sensitive_words` (
`id` int(11) NOT NULL,
`word` varchar(32) NOT NULL,
`status` tinyint(4) NOT NULL,
`word_pinyin` varchar(60) NOT NULL COMMENT '敏感词',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sensitive_words
-- ----------------------------
-- ----------------------------
-- Table structure for `session`
-- ----------------------------
DROP TABLE IF EXISTS `session`;
CREATE TABLE `session` (
`id` varchar(33) NOT NULL,
`accountId` int(11) NOT NULL,
`expireAt` bigint(20) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `site_info`
-- ----------------------------
DROP TABLE IF EXISTS `site_info`;
CREATE TABLE `site_info` (
`id` int(11) NOT NULL,
`title` varchar(255) DEFAULT NULL COMMENT '网站标题',
`description` text COMMENT '网站描述',
`keywords` varchar(255) DEFAULT NULL COMMENT '关键词',
`logo` varchar(255) DEFAULT NULL COMMENT '网站logo',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of site_info
-- ----------------------------
INSERT INTO `site_info` VALUES ('1', 'MB,Media & Blog,萌博', 'MB官网', 'Media,Blog,媒体博客,博客,技术,Jfinal,分享,生活', '/upload/logo/mb_big.png');
-- ----------------------------
-- Table structure for `tags`
-- ----------------------------
DROP TABLE IF EXISTS `tags`;
CREATE TABLE `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'ID',
`name` varchar(255) NOT NULL COMMENT '标签名',
`posts` int(11) DEFAULT '0' COMMENT '发表数',
`locked` int(11) DEFAULT '0' COMMENT '是否锁定,0表示不锁定,1表示锁定',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `upload_counter`
-- ----------------------------
DROP TABLE IF EXISTS `upload_counter`;
CREATE TABLE `upload_counter` (
`uploadType` varchar(50) NOT NULL,
`counter` int(11) NOT NULL,
`descr` varchar(50) NOT NULL,
PRIMARY KEY (`uploadType`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of upload_counter
-- ----------------------------
INSERT INTO `upload_counter` VALUES ('article', '11', '记录article模块上传图片,用于生成相对路径');
INSERT INTO `upload_counter` VALUES ('blog', '70', '记录blog模块上传图片的总数量,用于生成相对路径');
INSERT INTO `upload_counter` VALUES ('gallery', '0', '记录gallery模块上传图片的总数量,用于生成相对路径');
INSERT INTO `upload_counter` VALUES ('share', '202', '记录share模块上传图片的总数量,用于生成相对路径');
INSERT INTO `upload_counter` VALUES ('video', '311', '记录video模块上传图片的总数量,用于生成相对路径');
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`email` varchar(255) NOT NULL COMMENT '用户邮箱',
`password` varchar(255) NOT NULL COMMENT '密码',
`salt` varchar(255) NOT NULL COMMENT '盐值',
`nickName` varchar(255) NOT NULL COMMENT '昵称',
`userName` varchar(255) NOT NULL COMMENT '用户名',
`avatar` varchar(255) DEFAULT NULL COMMENT '头像',
`gender` int(11) DEFAULT NULL COMMENT '性别',
`roleId` int(11) DEFAULT NULL COMMENT '角色ID',
`mobile` varchar(11) DEFAULT NULL COMMENT '手机号',
`signature` varchar(255) DEFAULT NULL COMMENT '签名',
`createAt` datetime NOT NULL COMMENT '创建时间',
`status` int(11) DEFAULT NULL COMMENT '用户状态',
`ip` varchar(255) NOT NULL COMMENT '注册IP',
`likeCount` int(11) DEFAULT '0' COMMENT '获赞数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', '<EMAIL>', '<PASSWORD>819764f8022971ee5b5e02d4248ef0e54855005ce0d47cb01cfe44', 'SrZAswE1su0SKKDWnGQvl1kO4lnk-fTH', 'test', 'test', '/assets/images/avatar/default.jpg', null, '2', null, 'just do it!', '2017-08-30 16:17:13', '1', '0:0:0:0:0:0:0:1', '0');
-- ----------------------------
-- Table structure for `users_open_oauth`
-- ----------------------------
DROP TABLE IF EXISTS `users_open_oauth`;
CREATE TABLE `users_open_oauth` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`access_token` varchar(255) DEFAULT NULL,
`expire_in` varchar(255) DEFAULT NULL,
`oauth_code` varchar(255) DEFAULT NULL,
`oauth_type` int(11) DEFAULT NULL,
`oauth_user_id` varchar(255) DEFAULT NULL,
`refresh_token` varchar(255) DEFAULT NULL,
`user_id` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of users_open_oauth
-- ----------------------------
|
alter table DBCER_REMINDER add column REMIND_AT timestamp ;
|
<reponame>lulosol/tradekit<filename>db/tables/040 - asset_strategy.sql
CREATE TABLE IF NOT EXISTS asset_strategy (
id INTEGER PRIMARY KEY,
asset_id INTEGER NOT NULL,
strategy_id INTEGER NOT NULL,
FOREIGN KEY (asset_id) REFERENCES asset (id),
FOREIGN KEY (strategy_id) REFERENCES strategy (id)
) |
create table ACT_CY_CONN_CONFIG (
ID_ varchar(255) NOT NULL,
PLUGIN_ID_ varchar(255) NOT NULL,
INSTANCE_NAME_ varchar(255) NOT NULL,
INSTANCE_ID_ varchar(255) NOT NULL,
USER_ varchar(255),
GROUP_ varchar(255),
VALUES_ text,
primary key (ID_)
);
create table ACT_CY_CONFIG (
ID_ varchar(255) NOT NULL,
GROUP_ varchar(255) NOT NULL,
KEY_ varchar(255) NOT NULL,
VALUE_ text,
primary key (ID_)
);
create table ACT_CY_LINK (
ID_ varchar(255) NOT NULL,
SOURCE_CONNECTOR_ID_ varchar(255),
SOURCE_ARTIFACT_ID_ varchar(550),
SOURCE_ELEMENT_ID_ varchar(255) DEFAULT NULL,
SOURCE_ELEMENT_NAME_ varchar(255) DEFAULT NULL,
SOURCE_REVISION_ bigint DEFAULT NULL,
TARGET_CONNECTOR_ID_ varchar(255),
TARGET_ARTIFACT_ID_ varchar(550),
TARGET_ELEMENT_ID_ varchar(255) DEFAULT NULL,
TARGET_ELEMENT_NAME_ varchar(255) DEFAULT NULL,
TARGET_REVISION_ bigint DEFAULT NULL,
LINK_TYPE_ varchar(255),
COMMENT_ varchar(1000),
LINKED_BOTH_WAYS_ boolean,
primary key(ID_)
);
create table ACT_CY_PEOPLE_LINK (
ID_ varchar(255) NOT NULL,
SOURCE_CONNECTOR_ID_ varchar(255),
SOURCE_ARTIFACT_ID_ varchar(550),
SOURCE_REVISION_ bigint DEFAULT NULL,
USER_ID_ varchar(255),
GROUP_ID_ varchar(255),
LINK_TYPE_ varchar(255),
COMMENT_ varchar(1000),
primary key(ID_)
);
create table ACT_CY_TAG (
ID_ varchar(255),
NAME_ varchar(700),
CONNECTOR_ID_ varchar(255),
ARTIFACT_ID_ varchar(550),
ALIAS_ varchar(255),
primary key(ID_)
);
create table ACT_CY_COMMENT (
ID_ varchar(255) NOT NULL,
CONNECTOR_ID_ varchar(255) NOT NULL,
NODE_ID_ varchar(550) NOT NULL,
ELEMENT_ID_ varchar(255) DEFAULT NULL,
CONTENT_ varchar(5000) NOT NULL,
AUTHOR_ varchar(255),
DATE_ timestamp NOT NULL,
ANSWERED_COMMENT_ID_ varchar(255) DEFAULT NULL,
primary key(ID_)
);
create index ACT_CY_IDX_COMMENT on ACT_CY_COMMENT(ANSWERED_COMMENT_ID_);
alter table ACT_CY_COMMENT
add constraint FK_CY_COMMENT_COMMENT
foreign key (ANSWERED_COMMENT_ID_)
references ACT_CY_COMMENT (ID_);
create table ACT_CY_PROCESS_SOLUTION (
ID_ varchar(128) NOT NULL,
LABEL_ varchar(255) NOT NULL,
STATE_ varchar(32) NOT NULL,
primary key(ID_)
);
create table ACT_CY_V_FOLDER (
ID_ varchar(128) NOT NULL,
LABEL_ varchar(255) NOT NULL,
CONNECTOR_ID_ varchar(128) NOT NULL,
REFERENCED_NODE_ID_ varchar(550) NOT NULL,
PROCESS_SOLUTION_ID_ varchar(128) NOT NULL,
TYPE_ varchar(32) NOT NULL,
primary key(ID_)
);
create index ACT_CY_IDX_V_FOLDER on ACT_CY_V_FOLDER(PROCESS_SOLUTION_ID_);
alter table ACT_CY_V_FOLDER
add constraint FK_CY_PROCESS_SOLUTION
foreign key (PROCESS_SOLUTION_ID_)
references ACT_CY_PROCESS_SOLUTION (ID_);
|
DROP VIEW v_ConferencePaper CASCADE;
CREATE OR REPLACE VIEW v_ConferencePaper AS
SELECT innerRel.x1 AS att1
FROM (
SELECT ca_0.individual AS x1
FROM concept_assertion ca_0
WHERE ca_0.concept=14
) as innerRel
|
<filename>posda/posdatools/queries/sql/GetCTQP.sql<gh_stars>1-10
-- Name: GetCTQP
-- Schema: posda_files
-- Columns: ['collection', 'site', 'patient_id', 'qualified']
-- Args: []
-- Tags: ['clin_qual']
-- Description: Create An Activity Timepoint
--
--
select
collection, site, patient_id, qualified
from
clinical_trial_qualified_patient_id |
<filename>obevo-db-impls/obevo-db-oracle/src/test/resources/platforms/oracle/example1/step2/schema1/table/COMMENT_COL_TABLE.sql<gh_stars>100-1000
//// CHANGE name="init" comment="testing table with comments only on columns"
CREATE TABLE COMMENT_COL_TABLE
(
ID NUMBER NOT NULL,
VAL2 NUMBER NULL
)
GO
//// CHANGE name="init1"
COMMENT ON COLUMN COMMENT_COL_TABLE.ID
IS 'comment col table id'
GO
//// CHANGE name="init2"
COMMENT ON COLUMN COMMENT_COL_TABLE.VAL2
IS 'comment col table val2'
GO
|
<filename>optimizer/creative_w_plan/patch/copy.sql
@drop
connect / as sysdba
declare
hints varchar2(1024) := '';
v_sql CLOB;
cursor c1 is
SELECT extractValue(value(h),'.') AS hint
FROM v$sql_plan sp,
TABLE(xmlsequence(
extract(xmltype(sp.other_xml),'/*/outline_data/hint'))) h
WHERE sp.other_xml is not null
AND sql_id = 'bshak75293cfs' /* Take outline from this SQL */
AND child_number = 0;
begin
for c in c1
loop
hints := hints || ' ' ||c.hint;
end loop;
select sql_fulltext
into v_sql
from v$sqlarea
where sql_id='afbaqn1zcxs7c'; /* Apply to this SQL */
sys.dbms_sqldiag_internal.i_create_patch(
sql_text =>v_sql,
hint_text =>hints,
name =>'q2_patch');
end;
/
connect adhoc/adhoc
|
<reponame>strk/nz-buildings
-- Verify nz-buildings:buildings_reference/functions/territorial_authority on pg
BEGIN;
SELECT has_function_privilege('buildings_reference.territorial_authority_grid_intersect_polygon(geometry)', 'execute');
SELECT has_function_privilege('buildings_reference.territorial_authority_intersect_polygon(geometry)', 'execute');
SELECT has_function_privilege('buildings_reference.territorial_auth_delete_areas()', 'execute');
SELECT has_function_privilege('buildings_reference.territorial_auth_insert_areas()', 'execute');
SELECT has_function_privilege('buildings_reference.territorial_auth_update_areas()', 'execute');
DO $$
BEGIN
PERFORM proname, proargnames, prosrc
FROM pg_proc
WHERE proname = 'territorial_auth_update_areas'
AND prosrc LIKE '%JOIN%';
IF FOUND THEN
RAISE EXCEPTION 'JOIN found.';
END IF;
END $$;
ROLLBACK;
|
-- @author prabhd
-- @created 2014-04-01 12:00:00
-- @modified 2012-04-01 12:00:00
-- @tags dml MPP-21090 ORCA
-- @optimizer_mode on
-- @description Tests for MPP-21090
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS mpp21090_xchange_pttab_dropcol_dml_date;
CREATE TABLE mpp21090_xchange_pttab_dropcol_dml_date
(
col1 date,
col2 date,
col3 char,
col4 int,
col5 date
)
DISTRIBUTED by (col1)
PARTITION BY RANGE(col2)(partition partone start('2013-12-01') end('2013-12-31') WITH(APPENDONLY=true, COMPRESSLEVEL=5, ORIENTATION=column),partition parttwo start('2013-12-31') end('2014-01-01') WITH (APPENDONLY=true, COMPRESSLEVEL=5, ORIENTATION=row),partition partthree start('2014-01-01') end('2014-02-01'));
INSERT INTO mpp21090_xchange_pttab_dropcol_dml_date VALUES('2013-12-30','2013-12-30','a',0, '2013-12-30');
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date ORDER BY 1,2,3,4;
ALTER TABLE mpp21090_xchange_pttab_dropcol_dml_date DROP COLUMN col1;
-- Create Candidate table for Exchange
DROP TABLE IF EXISTS mpp21090_xchange_pttab_dropcol_dml_date_candidate;
CREATE TABLE mpp21090_xchange_pttab_dropcol_dml_date_candidate( like mpp21090_xchange_pttab_dropcol_dml_date) distributed randomly;
INSERT INTO mpp21090_xchange_pttab_dropcol_dml_date_candidate VALUES('2013-12-30','z',1,'2013-12-30');
-- Exchange
ALTER TABLE mpp21090_xchange_pttab_dropcol_dml_date EXCHANGE PARTITION FOR('2013-12-15') WITH TABLE mpp21090_xchange_pttab_dropcol_dml_date_candidate;
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date ORDER BY 1,2,3;
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date_candidate ORDER BY 1,2,3;
-- DML on partition table
INSERT INTO mpp21090_xchange_pttab_dropcol_dml_date SELECT '2013-12-01','b', 1, '2013-12-01';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date ORDER BY 1,2,3;
UPDATE mpp21090_xchange_pttab_dropcol_dml_date SET col5 = '2014-02-10' WHERE col2 = '2013-12-01' AND col5 = '2013-12-01';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date ORDER BY 1,2,3;
UPDATE mpp21090_xchange_pttab_dropcol_dml_date SET col2 ='2013-12-30' WHERE col3='b';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date ORDER BY 1,2,3;
DELETE FROM mpp21090_xchange_pttab_dropcol_dml_date WHERE col3='b';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date ORDER BY 1,2,3;
-- DML on candidate table
INSERT INTO mpp21090_xchange_pttab_dropcol_dml_date_candidate SELECT '2013-12-01','b', 1, '2013-12-01';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date_candidate ORDER BY 1,2,3;
UPDATE mpp21090_xchange_pttab_dropcol_dml_date_candidate SET col2='2013-12-30' WHERE col3='a';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date_candidate ORDER BY 1,2,3;
DELETE FROM mpp21090_xchange_pttab_dropcol_dml_date_candidate WHERE col3='a';
SELECT * FROM mpp21090_xchange_pttab_dropcol_dml_date_candidate ORDER BY 1,2,3;
|
<gh_stars>0
INSERT INTO template_step (id_template, title, description) VALUES (1, 'Activité', '');
INSERT INTO template_step (id_template, title, description) VALUES (2, 'Candidature', '');
INSERT INTO template_step (id_template, title, description) VALUES (3, 'Coordonnées du gestionnaire administratif', 'Coordonnées du gestionnaire administratif');
INSERT INTO template_step (id_template, title, description) VALUES (4, 'Demandeur', '');
INSERT INTO template_step (id_template, title, description) VALUES (5, 'Identité', '');
INSERT INTO template_step (id_template, title, description) VALUES (6, 'Introduction', '');
INSERT INTO template_step (id_template, title, description) VALUES (7, 'Porteur du projet', 'Porteur du projet');
INSERT INTO template_step (id_template, title, description) VALUES (8, 'Projet', 'Projet');
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (1, 106, 'Secteur d''activité', 'question_111', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (2, 104, 'Date de création de l''activité', 'question_112', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (3, 106, 'Effectif de l''entreprise', 'question_113', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (4, 102, 'Nombre de personnes par statut', 'question_114', '', '', 1, 1, 0, 0, '', 0, '', 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (5, 106, 'Nombre de personnes salariées', 'question_115', '', '', 0, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (6, 106, 'Nombre de personne en free-lance', 'question_116', '', '', 0, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (7, 106, 'Nombre d''apprentis', 'question_117', '', '', 0, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (8, 106, 'Nombre de stagiaires', 'question_118', '', '', 0, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (9, 101, 'Chiffre d''affaires', 'question_119', '', '', 1, 1, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (10, 106, 'Numéro de SIRET', 'question_100', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (11, 106, 'Nom', 'question_102', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (12, 106, 'Prénom', 'question_103', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (13, 106, 'Nom de l''entreprise ou de la marque', 'question_104', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (14, 106, 'Adresse de résidence', 'question_105', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (15, 106, 'Code postal', 'question_106', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (16, 106, 'Ville', 'question_107', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (17, 106, 'Téléphone fixe', 'question_108', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (18, 106, 'Téléphone portable', 'question_109', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (19, 113, 'Courriel', 'question_110', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (20, 106, 'Nom', 'question_44', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (21, 106, 'Prénom', 'question_45', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (22, 106, 'Fonction', 'question_46', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (23, 106, 'Adresse/rue', 'question_47', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (24, 106, 'Téléphone', 'question_48', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (25, 106, 'Email', 'question_49', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (26, 108, 'RIB de l''organisme', 'question_50', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (27, 101, 'Le demandeur est', 'question_69', '', '', 1, 1, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (28, 106, 'Nom de la structure', 'question_70', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (29, 106, 'numéro SIRET ou RNA', 'question_71', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (30, 106, 'Nom de la structure', 'question_73', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (31, 106, 'numéro SIRET ou RNA', 'question_75', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (32, 101, 'Civilité', 'question_76', '', '', 1, 1, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (33, 106, 'Nom', 'question_77', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (34, 106, 'Prénom', 'question_78', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (35, 106, 'Téléphone', 'question_79', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (36, 106, 'Adresse de la structure ou perso', 'question_81', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (37, 106, 'Code postal', 'question_82', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (38, 106, 'Ville', 'question_83', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (39, 113, 'Courriel', 'question_131', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (40, 103, NULL, 'question_206', NULL, '<p>Attention : Les caractères < > # & "" ne sont pas autorisés dans la saisie des contenus.</p>', 0, 0, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (41, 106, 'Nom', 'question_254', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (42, 106, 'Prénom', 'question_255', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (43, 106, 'A', 'question_257', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (44, 106, 'Nationalité', 'question_258', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (45, 106, 'Adresse', 'question_259', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (46, 106, 'Code postal', 'question_260', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (47, 106, 'Ville', 'question_261', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (48, 113, 'Courriel', 'question_262', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (49, 106, 'Téléphone fixe ou portable', 'question_263', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (50, 104, 'Né.e', 'question_270', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (51, 103, NULL, 'question_253', NULL, '<p>L’espace CoWaC accueille étudiants, entrepreneurs et associations dans les secteurs Métiers d’art, Mode et Design ou développant un projet de soutien à ces secteurs. Il offre un véritable poste de travail hors de chez soi et des interactions avec d’autres professionnels pour enrichir ses compétences, développer son réseau ou partager des ressources. 3 formules du ponctuel au temps complet pour bénéficier d’un des 8 postes de travail en co-working ainsi qu’un accès à des salles de réunion. Profiter de l’espace CoWaC c’est également accéder à l’offre conseil et accompagnement des Ateliers de Paris.<br />• ¼ temps (5 jours/mois ou 10 demi-journées/mois) à 60€ le mois.<br /><br />• ½ temps (10 jours/mois ou 20 demi-journées/mois) à 100€ le mois<br /><br />• Temps complet (accès illimité) à 160€ le mois<br /><br />• Tarif étudiant : 8€ la journée, 4€ la demi-journée<br /><br /><br />Pièce à joindre au dossier<br />• dossier de candidature <a href="https://cdn.paris.fr/paris/2021/02/02/bfcc124133723c6c3cefe25d37d1d4c9.pdf" target="_blank">(télécharger)</a><br /><br />Informations :<br />Pour toutes questions complémentaires : <NAME>, <EMAIL> , 30 rue du Faubourg Saint Antoine, 75012 Paris. Tél. : 01 71 18 75 74<br />Vous serez recontactés suite à votre candidature. Si votre dossier est validé, votre accueil pourra être mis en liste d’attente si toutes les places sont prises.</p>', 0, 0, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (52, 101, 'Civilité', 'question_4', '', '', 1, 1, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (53, 106, 'Nom', 'question_5', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (54, 106, 'Prénom', 'question_6', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (55, 104, 'Date de naissance (JJ/MM/AAAA)', 'question_7', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (56, 106, 'Nationalité', 'question_9', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (57, 106, 'Responsabilités', 'question_10', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (58, 106, 'Laboratoire /Organisme', 'question_11', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (59, 106, 'Adresse/rue', 'question_12', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (60, 106, 'Code postal', 'question_13', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (61, 106, 'Ville', 'question_14', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (62, 113, 'Email', 'question_15', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (63, 106, 'Téléphone', 'question_16', '', '', 1, 0, 0, 0, '', 0, '', 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (64, 107, 'Titre du projet (en français et/ou en anglais, max 3 lignes) et son abrégé (3 ou 4 mots)', 'question_17', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (65, 107, 'Cinq mots Clés', 'question_18', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 1);
INSERT INTO template_entry (id_entry, id_type, title, code, help_message, comment, mandatory, fields_in_line, pos, field_unique, css_class, pos_conditional, error_message, is_only_display_back, is_indexed) VALUES (66, 101, 'Champ disciplinaire principal', 'question_19', '', '', 1, 0, 0, 0, '', 0, NULL, 0, 0);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (1, 1, '-1', 'use_ref_list', 'false', 0, 1, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (2, 1, '', 'anonymizable', 'false', 0, 2, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (3, 1, '-1', 'use_ref_list', 'false', 0, 3, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (4, 1, '', 'anonymizable', 'false', 0, 4, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (5, 1, NULL, 'used_in_correct_form_response', 'false', 0, 5, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (6, 1, NULL, 'used_in_complete_form_response', 'false', 0, 6, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (7, 1, NULL, 'exportable', 'true', 0, 7, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (8, 1, NULL, 'text_config', '', 0, 8, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (9, 1, NULL, 'width', '0', 0, 9, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (10, 1, NULL, 'max_size', '-1', 0, 10, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (11, 1, NULL, 'confirm_field', 'false', 0, 11, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (12, 1, NULL, 'exportable_pdf', 'true', 0, 12, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (13, 2, '-1', 'use_ref_list', 'false', 0, 13, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (14, 2, '', 'anonymizable', 'false', 0, 14, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (15, 2, '-1', 'use_ref_list', 'false', 0, 15, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (16, 2, '', 'anonymizable', 'false', 0, 16, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (17, 2, NULL, 'used_in_correct_form_response', 'false', 0, 17, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (18, 2, NULL, 'used_in_complete_form_response', 'false', 0, 18, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (19, 2, NULL, 'exportable', 'false', 0, 19, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (20, 2, NULL, 'default_date_value', NULL, 0, 20, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (21, 3, '-1', 'use_ref_list', 'false', 0, 21, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (22, 3, '', 'anonymizable', 'false', 0, 22, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (23, 3, '-1', 'use_ref_list', 'false', 0, 23, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (24, 3, '', 'anonymizable', 'false', 0, 24, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (25, 3, NULL, 'used_in_correct_form_response', 'false', 0, 25, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (26, 3, NULL, 'used_in_complete_form_response', 'false', 0, 26, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (27, 3, NULL, 'exportable', 'true', 0, 27, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (28, 3, NULL, 'text_config', '', 0, 28, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (29, 3, NULL, 'width', '0', 0, 29, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (30, 3, NULL, 'max_size', '-1', 0, 30, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (31, 3, NULL, 'confirm_field', 'false', 0, 31, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (32, 3, NULL, 'exportable_pdf', 'true', 0, 32, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (33, 4, '-1', 'anonymizable', 'false', 0, 33, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (34, 4, '-1', 'use_ref_list', 'false', 0, 34, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (35, 4, '', 'anonymizable', 'false', 0, 35, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (36, 4, '-1', 'use_ref_list', 'false', 0, 36, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (37, 4, '', 'anonymizable', 'false', 0, 37, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (38, 4, NULL, 'used_in_correct_form_response', 'false', 0, 38, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (39, 4, NULL, 'used_in_complete_form_response', 'false', 0, 39, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (40, 4, NULL, 'exportable', 'false', 0, 40, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (41, 4, 'Salarié ', 'answer_choice', 'Salarie', 0, 41, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (42, 4, 'Free-lance ', 'answer_choice', 'Free_lance', 0, 42, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (43, 4, 'Apprenti ', 'answer_choice', 'Apprenti', 0, 43, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (44, 4, 'Stagiaire', 'answer_choice', 'Stagiaire', 0, 44, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (45, 5, '-1', 'use_ref_list', 'false', 0, 45, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (46, 5, '', 'anonymizable', 'false', 0, 46, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (47, 5, '-1', 'use_ref_list', 'false', 0, 47, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (48, 5, '', 'anonymizable', 'false', 0, 48, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (49, 5, NULL, 'used_in_correct_form_response', 'false', 0, 49, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (50, 5, NULL, 'used_in_complete_form_response', 'false', 0, 50, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (51, 5, NULL, 'exportable', 'false', 0, 51, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (52, 5, NULL, 'text_config', '', 0, 52, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (53, 5, NULL, 'width', '0', 0, 53, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (54, 5, NULL, 'max_size', '-1', 0, 54, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (55, 5, NULL, 'confirm_field', 'false', 0, 55, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (56, 6, '-1', 'use_ref_list', 'false', 0, 56, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (57, 6, '', 'anonymizable', 'false', 0, 57, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (58, 6, '-1', 'use_ref_list', 'false', 0, 58, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (59, 6, '', 'anonymizable', 'false', 0, 59, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (60, 6, NULL, 'used_in_correct_form_response', 'false', 0, 60, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (61, 6, NULL, 'used_in_complete_form_response', 'false', 0, 61, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (62, 6, NULL, 'exportable', 'false', 0, 62, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (63, 6, NULL, 'text_config', '', 0, 63, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (64, 6, NULL, 'width', '0', 0, 64, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (65, 6, NULL, 'max_size', '-1', 0, 65, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (66, 6, NULL, 'confirm_field', 'false', 0, 66, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (67, 7, '-1', 'use_ref_list', 'false', 0, 67, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (68, 7, '', 'anonymizable', 'false', 0, 68, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (69, 7, '-1', 'use_ref_list', 'false', 0, 69, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (70, 7, '', 'anonymizable', 'false', 0, 70, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (71, 7, NULL, 'used_in_correct_form_response', 'false', 0, 71, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (72, 7, NULL, 'used_in_complete_form_response', 'false', 0, 72, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (73, 7, NULL, 'exportable', 'false', 0, 73, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (74, 7, NULL, 'text_config', '', 0, 74, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (75, 7, NULL, 'width', '0', 0, 75, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (76, 7, NULL, 'max_size', '-1', 0, 76, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (77, 7, NULL, 'confirm_field', 'false', 0, 77, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (78, 8, '-1', 'use_ref_list', 'false', 0, 78, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (79, 8, '', 'anonymizable', 'false', 0, 79, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (80, 8, '-1', 'use_ref_list', 'false', 0, 80, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (81, 8, '', 'anonymizable', 'false', 0, 81, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (82, 8, NULL, 'used_in_correct_form_response', 'false', 0, 82, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (83, 8, NULL, 'used_in_complete_form_response', 'false', 0, 83, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (84, 8, NULL, 'exportable', 'false', 0, 84, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (85, 8, NULL, 'text_config', '', 0, 85, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (86, 8, NULL, 'width', '0', 0, 86, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (87, 8, NULL, 'max_size', '-1', 0, 87, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (88, 8, NULL, 'confirm_field', 'false', 0, 88, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (89, 9, '-1', 'anonymizable', 'false', 0, 89, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (90, 9, '-1', 'use_ref_list', 'false', 0, 90, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (91, 9, '', 'anonymizable', 'false', 0, 91, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (92, 9, '-1', 'use_ref_list', 'false', 0, 92, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (93, 9, '', 'anonymizable', 'false', 0, 93, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (94, 9, NULL, 'used_in_correct_form_response', 'false', 0, 94, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (95, 9, NULL, 'used_in_complete_form_response', 'false', 0, 95, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (96, 9, NULL, 'exportable', 'true', 0, 96, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (97, 9, 'moins de 50 000 euros par an', 'answer_choice', 'moins_de_50_000_euros_par_an', 0, 97, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (98, 9, 'moins de 100 000 euros par an', 'answer_choice', 'moins_de_100_000_euros_par_an', 0, 98, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (99, 9, 'moins de 200 000 euros par an', 'answer_choice', 'moins_de_200_000_euros_par_an', 0, 99, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (100, 9, '+ de 200 000 euros par an', 'answer_choice', 'plus_de_200_000_euros_par_an', 0, 100, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (101, 9, NULL, 'exportable_pdf', 'true', 0, 101, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (102, 10, '-1', 'use_ref_list', 'false', 0, 102, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (103, 10, '', 'anonymizable', 'false', 0, 103, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (104, 10, '-1', 'use_ref_list', 'false', 0, 104, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (105, 10, '', 'anonymizable', 'false', 0, 105, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (106, 10, NULL, 'used_in_correct_form_response', 'false', 0, 106, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (107, 10, NULL, 'used_in_complete_form_response', 'false', 0, 107, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (108, 10, NULL, 'exportable', 'true', 0, 108, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (109, 10, NULL, 'text_config', '', 0, 109, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (110, 10, NULL, 'width', '0', 0, 110, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (111, 10, NULL, 'max_size', '-1', 0, 111, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (112, 10, NULL, 'confirm_field', 'false', 0, 112, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (113, 10, NULL, 'exportable_pdf', 'true', 0, 113, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (114, 11, '-1', 'use_ref_list', 'false', 0, 114, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (115, 11, '', 'anonymizable', 'false', 0, 115, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (116, 11, '-1', 'use_ref_list', 'false', 0, 116, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (117, 11, '', 'anonymizable', 'false', 0, 117, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (118, 11, NULL, 'used_in_correct_form_response', 'false', 0, 118, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (119, 11, NULL, 'used_in_complete_form_response', 'false', 0, 119, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (120, 11, NULL, 'exportable', 'true', 0, 120, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (121, 11, NULL, 'text_config', '', 0, 121, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (122, 11, NULL, 'width', '0', 0, 122, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (123, 11, NULL, 'max_size', '-1', 0, 123, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (124, 11, NULL, 'confirm_field', 'false', 0, 124, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (125, 11, NULL, 'exportable_pdf', 'true', 0, 125, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (126, 12, '-1', 'use_ref_list', 'false', 0, 126, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (127, 12, '', 'anonymizable', 'false', 0, 127, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (128, 12, '-1', 'use_ref_list', 'false', 0, 128, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (129, 12, '', 'anonymizable', 'false', 0, 129, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (130, 12, NULL, 'used_in_correct_form_response', 'false', 0, 130, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (131, 12, NULL, 'used_in_complete_form_response', 'false', 0, 131, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (132, 12, NULL, 'exportable', 'true', 0, 132, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (133, 12, NULL, 'text_config', '', 0, 133, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (134, 12, NULL, 'width', '0', 0, 134, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (135, 12, NULL, 'max_size', '-1', 0, 135, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (136, 12, NULL, 'confirm_field', 'false', 0, 136, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (137, 12, NULL, 'exportable_pdf', 'true', 0, 137, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (138, 13, '-1', 'use_ref_list', 'false', 0, 138, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (139, 13, '', 'anonymizable', 'false', 0, 139, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (140, 13, '-1', 'use_ref_list', 'false', 0, 140, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (141, 13, '', 'anonymizable', 'false', 0, 141, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (142, 13, NULL, 'used_in_correct_form_response', 'false', 0, 142, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (143, 13, NULL, 'used_in_complete_form_response', 'false', 0, 143, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (144, 13, NULL, 'exportable', 'true', 0, 144, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (145, 13, NULL, 'text_config', '', 0, 145, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (146, 13, NULL, 'width', '0', 0, 146, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (147, 13, NULL, 'max_size', '-1', 0, 147, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (148, 13, NULL, 'confirm_field', 'false', 0, 148, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (149, 13, NULL, 'exportable_pdf', 'true', 0, 149, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (150, 14, '-1', 'use_ref_list', 'false', 0, 150, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (151, 14, '', 'anonymizable', 'false', 0, 151, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (152, 14, '-1', 'use_ref_list', 'false', 0, 152, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (153, 14, '', 'anonymizable', 'false', 0, 153, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (154, 14, NULL, 'used_in_correct_form_response', 'false', 0, 154, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (155, 14, NULL, 'used_in_complete_form_response', 'false', 0, 155, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (156, 14, NULL, 'exportable', 'true', 0, 156, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (157, 14, NULL, 'text_config', '', 0, 157, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (158, 14, NULL, 'width', '0', 0, 158, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (159, 14, NULL, 'max_size', '-1', 0, 159, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (160, 14, NULL, 'confirm_field', 'false', 0, 160, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (161, 14, NULL, 'exportable_pdf', 'true', 0, 161, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (162, 15, '-1', 'use_ref_list', 'false', 0, 162, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (163, 15, '', 'anonymizable', 'false', 0, 163, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (164, 15, '-1', 'use_ref_list', 'false', 0, 164, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (165, 15, '', 'anonymizable', 'false', 0, 165, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (166, 15, NULL, 'used_in_correct_form_response', 'false', 0, 166, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (167, 15, NULL, 'used_in_complete_form_response', 'false', 0, 167, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (168, 15, NULL, 'exportable', 'true', 0, 168, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (169, 15, NULL, 'text_config', '', 0, 169, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (170, 15, NULL, 'width', '0', 0, 170, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (171, 15, NULL, 'max_size', '-1', 0, 171, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (172, 15, NULL, 'confirm_field', 'false', 0, 172, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (173, 15, NULL, 'exportable_pdf', 'true', 0, 173, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (174, 16, '-1', 'use_ref_list', 'false', 0, 174, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (175, 16, '', 'anonymizable', 'false', 0, 175, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (176, 16, '-1', 'use_ref_list', 'false', 0, 176, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (177, 16, '', 'anonymizable', 'false', 0, 177, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (178, 16, NULL, 'used_in_correct_form_response', 'false', 0, 178, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (179, 16, NULL, 'used_in_complete_form_response', 'false', 0, 179, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (180, 16, NULL, 'exportable', 'true', 0, 180, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (181, 16, NULL, 'text_config', '', 0, 181, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (182, 16, NULL, 'width', '0', 0, 182, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (183, 16, NULL, 'max_size', '-1', 0, 183, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (184, 16, NULL, 'confirm_field', 'false', 0, 184, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (185, 16, NULL, 'exportable_pdf', 'true', 0, 185, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (186, 17, '-1', 'use_ref_list', 'false', 0, 186, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (187, 17, '', 'anonymizable', 'false', 0, 187, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (188, 17, '-1', 'use_ref_list', 'false', 0, 188, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (189, 17, '', 'anonymizable', 'false', 0, 189, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (190, 17, NULL, 'used_in_correct_form_response', 'false', 0, 190, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (191, 17, NULL, 'used_in_complete_form_response', 'false', 0, 191, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (192, 17, NULL, 'exportable', 'true', 0, 192, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (193, 17, NULL, 'text_config', '', 0, 193, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (194, 17, NULL, 'width', '0', 0, 194, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (195, 17, NULL, 'max_size', '-1', 0, 195, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (196, 17, NULL, 'confirm_field', 'false', 0, 196, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (197, 17, NULL, 'exportable_pdf', 'true', 0, 197, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (198, 18, '-1', 'use_ref_list', 'false', 0, 198, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (199, 18, '', 'anonymizable', 'false', 0, 199, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (200, 18, '-1', 'use_ref_list', 'false', 0, 200, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (201, 18, '', 'anonymizable', 'false', 0, 201, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (202, 18, NULL, 'used_in_correct_form_response', 'false', 0, 202, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (203, 18, NULL, 'used_in_complete_form_response', 'false', 0, 203, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (204, 18, NULL, 'exportable', 'true', 0, 204, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (205, 18, NULL, 'text_config', '', 0, 205, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (206, 18, NULL, 'width', '0', 0, 206, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (207, 18, NULL, 'max_size', '-1', 0, 207, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (208, 18, NULL, 'confirm_field', 'false', 0, 208, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (209, 18, NULL, 'exportable_pdf', 'true', 0, 209, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (210, 19, '-1', 'use_ref_list', 'false', 0, 210, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (211, 19, '', 'anonymizable', 'false', 0, 211, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (212, 19, '-1', 'use_ref_list', 'false', 0, 212, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (213, 19, '', 'anonymizable', 'false', 0, 213, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (214, 19, NULL, 'used_in_correct_form_response', 'false', 0, 214, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (215, 19, NULL, 'used_in_complete_form_response', 'false', 0, 215, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (216, 19, NULL, 'exportable', 'true', 0, 216, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (217, 19, NULL, 'attribute_name', 'user.home-info.online.email', 0, 217, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (218, 19, NULL, 'exportable_pdf', 'true', 0, 218, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (219, 20, '-1', 'use_ref_list', 'false', 0, 219, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (220, 20, '', 'anonymizable', 'false', 0, 220, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (221, 20, '-1', 'use_ref_list', 'false', 0, 221, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (222, 20, '', 'anonymizable', 'false', 0, 222, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (223, 20, NULL, 'used_in_correct_form_response', 'false', 0, 223, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (224, 20, NULL, 'used_in_complete_form_response', 'false', 0, 224, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (225, 20, NULL, 'exportable', 'true', 0, 225, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (226, 20, NULL, 'text_config', '', 0, 226, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (227, 20, NULL, 'width', '0', 0, 227, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (228, 20, NULL, 'max_size', '-1', 0, 228, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (229, 20, NULL, 'confirm_field', 'false', 0, 229, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (230, 20, NULL, 'exportable_pdf', 'true', 0, 230, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (231, 21, '-1', 'use_ref_list', 'false', 0, 231, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (232, 21, '', 'anonymizable', 'false', 0, 232, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (233, 21, '-1', 'use_ref_list', 'false', 0, 233, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (234, 21, '', 'anonymizable', 'false', 0, 234, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (235, 21, NULL, 'used_in_correct_form_response', 'false', 0, 235, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (236, 21, NULL, 'used_in_complete_form_response', 'false', 0, 236, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (237, 21, NULL, 'exportable', 'true', 0, 237, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (238, 21, NULL, 'text_config', '', 0, 238, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (239, 21, NULL, 'width', '0', 0, 239, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (240, 21, NULL, 'max_size', '-1', 0, 240, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (241, 21, NULL, 'confirm_field', 'false', 0, 241, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (242, 21, NULL, 'exportable_pdf', 'true', 0, 242, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (243, 22, '-1', 'use_ref_list', 'false', 0, 243, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (244, 22, '', 'anonymizable', 'false', 0, 244, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (245, 22, '-1', 'use_ref_list', 'false', 0, 245, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (246, 22, '', 'anonymizable', 'false', 0, 246, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (247, 22, NULL, 'used_in_correct_form_response', 'false', 0, 247, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (248, 22, NULL, 'used_in_complete_form_response', 'false', 0, 248, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (249, 22, NULL, 'exportable', 'true', 0, 249, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (250, 22, NULL, 'text_config', '', 0, 250, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (251, 22, NULL, 'width', '0', 0, 251, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (252, 22, NULL, 'max_size', '-1', 0, 252, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (253, 22, NULL, 'confirm_field', 'false', 0, 253, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (254, 22, NULL, 'exportable_pdf', 'true', 0, 254, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (255, 23, '-1', 'use_ref_list', 'false', 0, 255, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (256, 23, '', 'anonymizable', 'false', 0, 256, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (257, 23, '-1', 'use_ref_list', 'false', 0, 257, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (258, 23, '', 'anonymizable', 'false', 0, 258, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (259, 23, NULL, 'used_in_correct_form_response', 'false', 0, 259, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (260, 23, NULL, 'used_in_complete_form_response', 'false', 0, 260, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (261, 23, NULL, 'exportable', 'true', 0, 261, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (262, 23, NULL, 'text_config', '', 0, 262, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (263, 23, NULL, 'width', '0', 0, 263, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (264, 23, NULL, 'max_size', '-1', 0, 264, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (265, 23, NULL, 'confirm_field', 'false', 0, 265, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (266, 23, NULL, 'exportable_pdf', 'true', 0, 266, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (267, 24, '-1', 'use_ref_list', 'false', 0, 267, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (268, 24, '', 'anonymizable', 'false', 0, 268, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (269, 24, '-1', 'use_ref_list', 'false', 0, 269, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (270, 24, '', 'anonymizable', 'false', 0, 270, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (271, 24, NULL, 'used_in_correct_form_response', 'false', 0, 271, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (272, 24, NULL, 'used_in_complete_form_response', 'false', 0, 272, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (273, 24, NULL, 'exportable', 'true', 0, 273, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (274, 24, NULL, 'text_config', '', 0, 274, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (275, 24, NULL, 'width', '0', 0, 275, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (276, 24, NULL, 'max_size', '-1', 0, 276, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (277, 24, NULL, 'confirm_field', 'false', 0, 277, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (278, 24, NULL, 'exportable_pdf', 'true', 0, 278, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (279, 25, '-1', 'use_ref_list', 'false', 0, 279, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (280, 25, '', 'anonymizable', 'false', 0, 280, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (281, 25, '-1', 'use_ref_list', 'false', 0, 281, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (282, 25, '', 'anonymizable', 'false', 0, 282, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (283, 25, NULL, 'used_in_correct_form_response', 'false', 0, 283, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (284, 25, NULL, 'used_in_complete_form_response', 'false', 0, 284, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (285, 25, NULL, 'exportable', 'true', 0, 285, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (286, 25, NULL, 'text_config', '', 0, 286, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (287, 25, NULL, 'width', '0', 0, 287, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (288, 25, NULL, 'max_size', '-1', 0, 288, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (289, 25, NULL, 'confirm_field', 'false', 0, 289, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (290, 25, NULL, 'exportable_pdf', 'true', 0, 290, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (291, 26, '-1', 'use_ref_list', 'false', 0, 291, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (292, 26, '', 'anonymizable', 'false', 0, 292, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (293, 26, '-1', 'use_ref_list', 'false', 0, 293, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (294, 26, '', 'anonymizable', 'false', 0, 294, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (295, 26, NULL, 'used_in_correct_form_response', 'false', 0, 295, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (296, 26, NULL, 'used_in_complete_form_response', 'true', 0, 296, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (297, 26, NULL, 'exportable', 'true', 0, 297, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (298, 26, NULL, 'file_max_size', '2097152', 0, 298, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (299, 26, NULL, 'max_files', '1', 0, 299, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (300, 26, NULL, 'export_binary', 'false', 0, 300, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (301, 27, '-1', 'anonymizable', 'false', 0, 301, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (302, 27, '-1', 'use_ref_list', 'false', 0, 302, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (303, 27, '', 'anonymizable', 'false', 0, 303, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (304, 27, '-1', 'use_ref_list', 'false', 0, 304, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (305, 27, '', 'anonymizable', 'false', 0, 305, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (306, 27, NULL, 'used_in_correct_form_response', 'false', 0, 306, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (307, 27, NULL, 'used_in_complete_form_response', 'false', 0, 307, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (308, 27, NULL, 'exportable', 'true', 0, 308, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (309, 27, 'Association', 'answer_choice', 'Association', 0, 309, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (310, 27, 'société', 'answer_choice', 'societe', 0, 310, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (311, 27, 'Personne physique', 'answer_choice', 'personne_physique', 0, 311, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (312, 28, '-1', 'use_ref_list', 'false', 0, 312, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (313, 28, '', 'anonymizable', 'false', 0, 313, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (314, 28, '-1', 'use_ref_list', 'false', 0, 314, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (315, 28, '', 'anonymizable', 'false', 0, 315, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (316, 28, NULL, 'used_in_correct_form_response', 'false', 0, 316, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (317, 28, NULL, 'used_in_complete_form_response', 'false', 0, 317, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (318, 28, NULL, 'exportable', 'true', 0, 318, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (319, 28, NULL, 'text_config', '', 0, 319, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (320, 28, NULL, 'width', '0', 0, 320, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (321, 28, NULL, 'max_size', '-1', 0, 321, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (322, 28, NULL, 'confirm_field', 'false', 0, 322, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (323, 29, '-1', 'use_ref_list', 'false', 0, 323, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (324, 29, '', 'anonymizable', 'false', 0, 324, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (325, 29, '-1', 'use_ref_list', 'false', 0, 325, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (326, 29, '', 'anonymizable', 'false', 0, 326, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (327, 29, NULL, 'used_in_correct_form_response', 'false', 0, 327, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (328, 29, NULL, 'used_in_complete_form_response', 'false', 0, 328, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (329, 29, NULL, 'exportable', 'true', 0, 329, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (330, 29, NULL, 'text_config', '', 0, 330, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (331, 29, NULL, 'width', '0', 0, 331, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (332, 29, NULL, 'max_size', '-1', 0, 332, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (333, 29, NULL, 'confirm_field', 'false', 0, 333, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (334, 30, '-1', 'use_ref_list', 'false', 0, 334, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (335, 30, '', 'anonymizable', 'false', 0, 335, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (336, 30, '-1', 'use_ref_list', 'false', 0, 336, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (337, 30, '', 'anonymizable', 'false', 0, 337, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (338, 30, NULL, 'used_in_correct_form_response', 'false', 0, 338, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (339, 30, NULL, 'used_in_complete_form_response', 'false', 0, 339, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (340, 30, NULL, 'exportable', 'true', 0, 340, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (341, 30, NULL, 'text_config', '', 0, 341, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (342, 30, NULL, 'width', '0', 0, 342, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (343, 30, NULL, 'max_size', '-1', 0, 343, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (344, 30, NULL, 'confirm_field', 'false', 0, 344, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (345, 31, '-1', 'use_ref_list', 'false', 0, 345, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (346, 31, '', 'anonymizable', 'false', 0, 346, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (347, 31, '-1', 'use_ref_list', 'false', 0, 347, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (348, 31, '', 'anonymizable', 'false', 0, 348, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (349, 31, NULL, 'used_in_correct_form_response', 'false', 0, 349, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (350, 31, NULL, 'used_in_complete_form_response', 'false', 0, 350, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (351, 31, NULL, 'exportable', 'true', 0, 351, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (352, 31, NULL, 'text_config', '', 0, 352, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (353, 31, NULL, 'width', '0', 0, 353, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (354, 31, NULL, 'max_size', '-1', 0, 354, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (355, 31, NULL, 'confirm_field', 'false', 0, 355, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (356, 32, '-1', 'anonymizable', 'false', 0, 356, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (357, 32, '-1', 'use_ref_list', 'false', 0, 357, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (358, 32, '', 'anonymizable', 'false', 0, 358, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (359, 32, '-1', 'use_ref_list', 'false', 0, 359, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (360, 32, '', 'anonymizable', 'false', 0, 360, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (361, 32, NULL, 'used_in_correct_form_response', 'false', 0, 361, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (362, 32, NULL, 'used_in_complete_form_response', 'false', 0, 362, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (363, 32, NULL, 'exportable', 'true', 0, 363, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (364, 32, 'Madame', 'answer_choice', 'Madame', 0, 364, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (365, 32, 'Monsieur', 'answer_choice', 'Monsieur', 0, 365, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (366, 33, '-1', 'use_ref_list', 'false', 0, 366, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (367, 33, '', 'anonymizable', 'false', 0, 367, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (368, 33, '-1', 'use_ref_list', 'false', 0, 368, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (369, 33, '', 'anonymizable', 'false', 0, 369, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (370, 33, NULL, 'used_in_correct_form_response', 'false', 0, 370, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (371, 33, NULL, 'used_in_complete_form_response', 'false', 0, 371, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (372, 33, NULL, 'exportable', 'true', 0, 372, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (373, 33, NULL, 'text_config', '', 0, 373, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (374, 33, NULL, 'width', '0', 0, 374, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (375, 33, NULL, 'max_size', '-1', 0, 375, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (376, 33, NULL, 'confirm_field', 'false', 0, 376, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (377, 34, '-1', 'use_ref_list', 'false', 0, 377, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (378, 34, '', 'anonymizable', 'false', 0, 378, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (379, 34, '-1', 'use_ref_list', 'false', 0, 379, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (380, 34, '', 'anonymizable', 'false', 0, 380, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (381, 34, NULL, 'used_in_correct_form_response', 'false', 0, 381, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (382, 34, NULL, 'used_in_complete_form_response', 'false', 0, 382, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (383, 34, NULL, 'exportable', 'true', 0, 383, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (384, 34, NULL, 'text_config', '', 0, 384, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (385, 34, NULL, 'width', '0', 0, 385, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (386, 34, NULL, 'max_size', '-1', 0, 386, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (387, 34, NULL, 'confirm_field', 'false', 0, 387, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (388, 35, '-1', 'use_ref_list', 'false', 0, 388, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (389, 35, '', 'anonymizable', 'false', 0, 389, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (390, 35, '-1', 'use_ref_list', 'false', 0, 390, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (391, 35, '', 'anonymizable', 'false', 0, 391, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (392, 35, NULL, 'used_in_correct_form_response', 'false', 0, 392, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (393, 35, NULL, 'used_in_complete_form_response', 'false', 0, 393, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (394, 35, NULL, 'exportable', 'true', 0, 394, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (395, 35, NULL, 'text_config', '', 0, 395, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (396, 35, NULL, 'width', '0', 0, 396, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (397, 35, NULL, 'max_size', '-1', 0, 397, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (398, 35, NULL, 'confirm_field', 'false', 0, 398, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (399, 36, '-1', 'use_ref_list', 'false', 0, 399, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (400, 36, '', 'anonymizable', 'false', 0, 400, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (401, 36, '-1', 'use_ref_list', 'false', 0, 401, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (402, 36, '', 'anonymizable', 'false', 0, 402, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (403, 36, NULL, 'used_in_correct_form_response', 'false', 0, 403, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (404, 36, NULL, 'used_in_complete_form_response', 'false', 0, 404, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (405, 36, NULL, 'exportable', 'true', 0, 405, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (406, 36, NULL, 'text_config', '', 0, 406, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (407, 36, NULL, 'width', '0', 0, 407, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (408, 36, NULL, 'max_size', '-1', 0, 408, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (409, 36, NULL, 'confirm_field', 'false', 0, 409, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (410, 37, '-1', 'use_ref_list', 'false', 0, 410, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (411, 37, '', 'anonymizable', 'false', 0, 411, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (412, 37, '-1', 'use_ref_list', 'false', 0, 412, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (413, 37, '', 'anonymizable', 'false', 0, 413, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (414, 37, NULL, 'used_in_correct_form_response', 'false', 0, 414, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (415, 37, NULL, 'used_in_complete_form_response', 'false', 0, 415, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (416, 37, NULL, 'exportable', 'true', 0, 416, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (417, 37, NULL, 'text_config', '', 0, 417, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (418, 37, NULL, 'width', '0', 0, 418, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (419, 37, NULL, 'max_size', '-1', 0, 419, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (420, 37, NULL, 'confirm_field', 'false', 0, 420, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (421, 38, '-1', 'use_ref_list', 'false', 0, 421, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (422, 38, '', 'anonymizable', 'false', 0, 422, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (423, 38, '-1', 'use_ref_list', 'false', 0, 423, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (424, 38, '', 'anonymizable', 'false', 0, 424, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (425, 38, NULL, 'used_in_correct_form_response', 'false', 0, 425, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (426, 38, NULL, 'used_in_complete_form_response', 'false', 0, 426, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (427, 38, NULL, 'exportable', 'true', 0, 427, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (428, 38, NULL, 'text_config', '', 0, 428, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (429, 38, NULL, 'width', '0', 0, 429, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (430, 38, NULL, 'max_size', '-1', 0, 430, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (431, 38, NULL, 'confirm_field', 'false', 0, 431, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (432, 39, '-1', 'use_ref_list', 'false', 0, 432, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (433, 39, '', 'anonymizable', 'false', 0, 433, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (434, 39, '-1', 'use_ref_list', 'false', 0, 434, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (435, 39, '', 'anonymizable', 'false', 0, 435, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (436, 39, NULL, 'used_in_correct_form_response', 'false', 0, 436, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (437, 39, NULL, 'used_in_complete_form_response', 'false', 0, 437, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (438, 39, NULL, 'exportable', 'true', 0, 438, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (439, 39, NULL, 'attribute_name', 'user.home-info.online.email', 0, 439, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (440, 40, '-1', 'use_ref_list', 'false', 0, 440, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (441, 40, '', 'anonymizable', 'false', 0, 441, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (442, 40, '-1', 'use_ref_list', 'false', 0, 442, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (443, 40, '', 'anonymizable', 'false', 0, 443, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (444, 40, NULL, 'used_in_correct_form_response', 'false', 0, 444, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (445, 40, NULL, 'used_in_complete_form_response', 'false', 0, 445, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (446, 40, NULL, 'exportable', 'false', 0, 446, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (447, 40, NULL, 'display_in_bo', 'false', 0, 447, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (448, 41, '-1', 'use_ref_list', 'false', 0, 448, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (449, 41, '', 'anonymizable', 'false', 0, 449, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (450, 41, '-1', 'use_ref_list', 'false', 0, 450, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (451, 41, '', 'anonymizable', 'false', 0, 451, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (452, 41, NULL, 'used_in_correct_form_response', 'false', 0, 452, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (453, 41, NULL, 'used_in_complete_form_response', 'false', 0, 453, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (454, 41, NULL, 'exportable', 'true', 0, 454, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (455, 41, NULL, 'text_config', '', 0, 455, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (456, 41, NULL, 'width', '0', 0, 456, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (457, 41, NULL, 'max_size', '-1', 0, 457, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (458, 41, NULL, 'confirm_field', 'false', 0, 458, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (459, 41, NULL, 'exportable_pdf', 'true', 0, 459, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (460, 42, '-1', 'use_ref_list', 'false', 0, 460, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (461, 42, '', 'anonymizable', 'false', 0, 461, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (462, 42, '-1', 'use_ref_list', 'false', 0, 462, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (463, 42, '', 'anonymizable', 'false', 0, 463, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (464, 42, NULL, 'used_in_correct_form_response', 'false', 0, 464, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (465, 42, NULL, 'used_in_complete_form_response', 'false', 0, 465, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (466, 42, NULL, 'exportable', 'true', 0, 466, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (467, 42, NULL, 'text_config', '', 0, 467, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (468, 42, NULL, 'width', '0', 0, 468, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (469, 42, NULL, 'max_size', '-1', 0, 469, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (470, 42, NULL, 'confirm_field', 'false', 0, 470, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (471, 42, NULL, 'exportable_pdf', 'true', 0, 471, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (472, 43, '-1', 'use_ref_list', 'false', 0, 472, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (473, 43, '', 'anonymizable', 'false', 0, 473, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (474, 43, '-1', 'use_ref_list', 'false', 0, 474, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (475, 43, '', 'anonymizable', 'false', 0, 475, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (476, 43, NULL, 'used_in_correct_form_response', 'false', 0, 476, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (477, 43, NULL, 'used_in_complete_form_response', 'false', 0, 477, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (478, 43, NULL, 'exportable', 'true', 0, 478, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (479, 43, NULL, 'text_config', '', 0, 479, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (480, 43, NULL, 'width', '0', 0, 480, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (481, 43, NULL, 'max_size', '-1', 0, 481, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (482, 43, NULL, 'confirm_field', 'false', 0, 482, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (483, 43, NULL, 'exportable_pdf', 'true', 0, 483, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (484, 44, '-1', 'use_ref_list', 'false', 0, 484, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (485, 44, '', 'anonymizable', 'false', 0, 485, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (486, 44, '-1', 'use_ref_list', 'false', 0, 486, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (487, 44, '', 'anonymizable', 'false', 0, 487, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (488, 44, NULL, 'used_in_correct_form_response', 'false', 0, 488, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (489, 44, NULL, 'used_in_complete_form_response', 'false', 0, 489, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (490, 44, NULL, 'exportable', 'true', 0, 490, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (491, 44, NULL, 'text_config', '', 0, 491, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (492, 44, NULL, 'width', '0', 0, 492, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (493, 44, NULL, 'max_size', '-1', 0, 493, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (494, 44, NULL, 'confirm_field', 'false', 0, 494, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (495, 44, NULL, 'exportable_pdf', 'true', 0, 495, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (496, 45, '-1', 'use_ref_list', 'false', 0, 496, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (497, 45, '', 'anonymizable', 'false', 0, 497, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (498, 45, '-1', 'use_ref_list', 'false', 0, 498, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (499, 45, '', 'anonymizable', 'false', 0, 499, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (500, 45, NULL, 'used_in_correct_form_response', 'false', 0, 500, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (501, 45, NULL, 'used_in_complete_form_response', 'false', 0, 501, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (502, 45, NULL, 'exportable', 'true', 0, 502, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (503, 45, NULL, 'text_config', '', 0, 503, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (504, 45, NULL, 'width', '0', 0, 504, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (505, 45, NULL, 'max_size', '-1', 0, 505, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (506, 45, NULL, 'confirm_field', 'false', 0, 506, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (507, 45, NULL, 'exportable_pdf', 'true', 0, 507, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (508, 46, '-1', 'use_ref_list', 'false', 0, 508, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (509, 46, '', 'anonymizable', 'false', 0, 509, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (510, 46, '-1', 'use_ref_list', 'false', 0, 510, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (511, 46, '', 'anonymizable', 'false', 0, 511, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (512, 46, NULL, 'used_in_correct_form_response', 'false', 0, 512, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (513, 46, NULL, 'used_in_complete_form_response', 'false', 0, 513, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (514, 46, NULL, 'exportable', 'true', 0, 514, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (515, 46, NULL, 'text_config', '', 0, 515, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (516, 46, NULL, 'width', '0', 0, 516, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (517, 46, NULL, 'max_size', '-1', 0, 517, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (518, 46, NULL, 'confirm_field', 'false', 0, 518, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (519, 46, NULL, 'exportable_pdf', 'true', 0, 519, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (520, 47, '-1', 'use_ref_list', 'false', 0, 520, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (521, 47, '', 'anonymizable', 'false', 0, 521, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (522, 47, '-1', 'use_ref_list', 'false', 0, 522, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (523, 47, '', 'anonymizable', 'false', 0, 523, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (524, 47, NULL, 'used_in_correct_form_response', 'false', 0, 524, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (525, 47, NULL, 'used_in_complete_form_response', 'false', 0, 525, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (526, 47, NULL, 'exportable', 'true', 0, 526, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (527, 47, NULL, 'text_config', '', 0, 527, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (528, 47, NULL, 'width', '0', 0, 528, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (529, 47, NULL, 'max_size', '-1', 0, 529, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (530, 47, NULL, 'confirm_field', 'false', 0, 530, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (531, 47, NULL, 'exportable_pdf', 'true', 0, 531, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (532, 48, '-1', 'use_ref_list', 'false', 0, 532, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (533, 48, '', 'anonymizable', 'false', 0, 533, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (534, 48, '-1', 'use_ref_list', 'false', 0, 534, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (535, 48, '', 'anonymizable', 'false', 0, 535, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (536, 48, NULL, 'used_in_correct_form_response', 'false', 0, 536, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (537, 48, NULL, 'used_in_complete_form_response', 'false', 0, 537, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (538, 48, NULL, 'exportable', 'true', 0, 538, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (539, 48, NULL, 'attribute_name', 'user.home-info.online.email', 0, 539, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (540, 48, NULL, 'exportable_pdf', 'true', 0, 540, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (541, 49, '-1', 'use_ref_list', 'false', 0, 541, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (542, 49, '', 'anonymizable', 'false', 0, 542, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (543, 49, '-1', 'use_ref_list', 'false', 0, 543, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (544, 49, '', 'anonymizable', 'false', 0, 544, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (545, 49, NULL, 'used_in_correct_form_response', 'false', 0, 545, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (546, 49, NULL, 'used_in_complete_form_response', 'false', 0, 546, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (547, 49, NULL, 'exportable', 'true', 0, 547, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (548, 49, NULL, 'text_config', '', 0, 548, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (549, 49, NULL, 'width', '0', 0, 549, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (550, 49, NULL, 'max_size', '-1', 0, 550, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (551, 49, NULL, 'confirm_field', 'false', 0, 551, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (552, 49, NULL, 'exportable_pdf', 'true', 0, 552, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (553, 50, '-1', 'use_ref_list', 'false', 0, 553, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (554, 50, '', 'anonymizable', 'false', 0, 554, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (555, 50, '-1', 'use_ref_list', 'false', 0, 555, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (556, 50, '', 'anonymizable', 'false', 0, 556, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (557, 50, NULL, 'used_in_correct_form_response', 'false', 0, 557, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (558, 50, NULL, 'used_in_complete_form_response', 'false', 0, 558, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (559, 50, NULL, 'exportable', 'true', 0, 559, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (560, 50, NULL, 'default_date_value', NULL, 0, 560, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (561, 50, NULL, 'exportable_pdf', 'true', 0, 561, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (562, 51, '-1', 'use_ref_list', 'false', 0, 562, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (563, 51, '', 'anonymizable', 'false', 0, 563, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (564, 51, '-1', 'use_ref_list', 'false', 0, 564, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (565, 51, '', 'anonymizable', 'false', 0, 565, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (566, 51, NULL, 'used_in_correct_form_response', 'false', 0, 566, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (567, 51, NULL, 'used_in_complete_form_response', 'false', 0, 567, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (568, 51, NULL, 'exportable', 'false', 0, 568, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (569, 51, NULL, 'display_in_bo', 'false', 0, 569, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (570, 52, '-1', 'anonymizable', 'false', 0, 570, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (571, 52, '-1', 'use_ref_list', 'false', 0, 571, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (572, 52, '', 'anonymizable', 'false', 0, 572, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (573, 52, '-1', 'use_ref_list', 'false', 0, 573, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (574, 52, '', 'anonymizable', 'false', 0, 574, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (575, 52, NULL, 'used_in_correct_form_response', 'false', 0, 575, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (576, 52, NULL, 'used_in_complete_form_response', 'false', 0, 576, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (577, 52, NULL, 'exportable', 'true', 0, 577, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (578, 52, 'Madame', 'answer_choice', 'Madame', 0, 578, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (579, 52, 'Monsieur', 'answer_choice', 'Monsieur', 0, 579, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (580, 53, '-1', 'use_ref_list', 'false', 0, 580, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (581, 53, '', 'anonymizable', 'false', 0, 581, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (582, 53, '-1', 'use_ref_list', 'false', 0, 582, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (583, 53, '', 'anonymizable', 'false', 0, 583, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (584, 53, NULL, 'used_in_correct_form_response', 'false', 0, 584, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (585, 53, NULL, 'used_in_complete_form_response', 'false', 0, 585, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (586, 53, NULL, 'exportable', 'true', 0, 586, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (587, 53, NULL, 'text_config', '', 0, 587, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (588, 53, NULL, 'width', '0', 0, 588, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (589, 53, NULL, 'max_size', '-1', 0, 589, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (590, 53, NULL, 'confirm_field', 'false', 0, 590, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (591, 53, NULL, 'exportable_pdf', 'true', 0, 591, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (592, 54, '-1', 'use_ref_list', 'false', 0, 592, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (593, 54, '', 'anonymizable', 'false', 0, 593, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (594, 54, '-1', 'use_ref_list', 'false', 0, 594, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (595, 54, '', 'anonymizable', 'false', 0, 595, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (596, 54, NULL, 'used_in_correct_form_response', 'false', 0, 596, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (597, 54, NULL, 'used_in_complete_form_response', 'false', 0, 597, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (598, 54, NULL, 'exportable', 'true', 0, 598, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (599, 54, NULL, 'text_config', '', 0, 599, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (600, 54, NULL, 'width', '0', 0, 600, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (601, 54, NULL, 'max_size', '-1', 0, 601, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (602, 54, NULL, 'confirm_field', 'false', 0, 602, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (603, 54, NULL, 'exportable_pdf', 'true', 0, 603, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (604, 55, '-1', 'use_ref_list', 'false', 0, 604, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (605, 55, '', 'anonymizable', 'false', 0, 605, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (606, 55, '-1', 'use_ref_list', 'false', 0, 606, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (607, 55, '', 'anonymizable', 'false', 0, 607, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (608, 55, NULL, 'used_in_correct_form_response', 'false', 0, 608, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (609, 55, NULL, 'used_in_complete_form_response', 'false', 0, 609, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (610, 55, NULL, 'exportable', 'true', 0, 610, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (611, 55, NULL, 'default_date_value', NULL, 0, 611, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (612, 55, NULL, 'exportable_pdf', 'true', 0, 612, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (613, 56, '-1', 'use_ref_list', 'false', 0, 613, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (614, 56, '', 'anonymizable', 'false', 0, 614, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (615, 56, '-1', 'use_ref_list', 'false', 0, 615, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (616, 56, '', 'anonymizable', 'false', 0, 616, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (617, 56, NULL, 'used_in_correct_form_response', 'false', 0, 617, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (618, 56, NULL, 'used_in_complete_form_response', 'false', 0, 618, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (619, 56, NULL, 'exportable', 'true', 0, 619, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (620, 56, NULL, 'text_config', '', 0, 620, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (621, 56, NULL, 'width', '0', 0, 621, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (622, 56, NULL, 'max_size', '-1', 0, 622, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (623, 56, NULL, 'confirm_field', 'false', 0, 623, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (624, 56, NULL, 'exportable_pdf', 'true', 0, 624, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (625, 57, '-1', 'use_ref_list', 'false', 0, 625, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (626, 57, '', 'anonymizable', 'false', 0, 626, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (627, 57, '-1', 'use_ref_list', 'false', 0, 627, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (628, 57, '', 'anonymizable', 'false', 0, 628, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (629, 57, NULL, 'used_in_correct_form_response', 'false', 0, 629, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (630, 57, NULL, 'used_in_complete_form_response', 'false', 0, 630, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (631, 57, NULL, 'exportable', 'true', 0, 631, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (632, 57, NULL, 'text_config', '', 0, 632, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (633, 57, NULL, 'width', '0', 0, 633, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (634, 57, NULL, 'max_size', '-1', 0, 634, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (635, 57, NULL, 'confirm_field', 'false', 0, 635, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (636, 57, NULL, 'exportable_pdf', 'true', 0, 636, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (637, 58, '-1', 'use_ref_list', 'false', 0, 637, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (638, 58, '', 'anonymizable', 'false', 0, 638, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (639, 58, '-1', 'use_ref_list', 'false', 0, 639, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (640, 58, '', 'anonymizable', 'false', 0, 640, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (641, 58, NULL, 'used_in_correct_form_response', 'false', 0, 641, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (642, 58, NULL, 'used_in_complete_form_response', 'false', 0, 642, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (643, 58, NULL, 'exportable', 'true', 0, 643, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (644, 58, NULL, 'text_config', '', 0, 644, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (645, 58, NULL, 'width', '0', 0, 645, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (646, 58, NULL, 'max_size', '-1', 0, 646, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (647, 58, NULL, 'confirm_field', 'false', 0, 647, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (648, 58, NULL, 'exportable_pdf', 'true', 0, 648, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (649, 59, '-1', 'use_ref_list', 'false', 0, 649, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (650, 59, '', 'anonymizable', 'false', 0, 650, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (651, 59, '-1', 'use_ref_list', 'false', 0, 651, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (652, 59, '', 'anonymizable', 'false', 0, 652, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (653, 59, NULL, 'used_in_correct_form_response', 'false', 0, 653, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (654, 59, NULL, 'used_in_complete_form_response', 'false', 0, 654, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (655, 59, NULL, 'exportable', 'true', 0, 655, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (656, 59, NULL, 'text_config', '', 0, 656, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (657, 59, NULL, 'width', '0', 0, 657, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (658, 59, NULL, 'max_size', '-1', 0, 658, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (659, 59, NULL, 'confirm_field', 'false', 0, 659, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (660, 59, NULL, 'exportable_pdf', 'true', 0, 660, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (661, 60, '-1', 'use_ref_list', 'false', 0, 661, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (662, 60, '', 'anonymizable', 'false', 0, 662, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (663, 60, '-1', 'use_ref_list', 'false', 0, 663, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (664, 60, '', 'anonymizable', 'false', 0, 664, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (665, 60, NULL, 'used_in_correct_form_response', 'false', 0, 665, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (666, 60, NULL, 'used_in_complete_form_response', 'false', 0, 666, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (667, 60, NULL, 'exportable', 'true', 0, 667, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (668, 60, NULL, 'text_config', '', 0, 668, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (669, 60, NULL, 'width', '0', 0, 669, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (670, 60, NULL, 'max_size', '-1', 0, 670, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (671, 60, NULL, 'confirm_field', 'false', 0, 671, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (672, 60, NULL, 'exportable_pdf', 'true', 0, 672, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (673, 61, '-1', 'use_ref_list', 'false', 0, 673, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (674, 61, '', 'anonymizable', 'false', 0, 674, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (675, 61, '-1', 'use_ref_list', 'false', 0, 675, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (676, 61, '', 'anonymizable', 'false', 0, 676, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (677, 61, NULL, 'used_in_correct_form_response', 'false', 0, 677, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (678, 61, NULL, 'used_in_complete_form_response', 'false', 0, 678, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (679, 61, NULL, 'exportable', 'true', 0, 679, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (680, 61, NULL, 'text_config', '', 0, 680, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (681, 61, NULL, 'width', '0', 0, 681, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (682, 61, NULL, 'max_size', '-1', 0, 682, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (683, 61, NULL, 'confirm_field', 'false', 0, 683, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (684, 61, NULL, 'exportable_pdf', 'true', 0, 684, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (685, 62, '-1', 'use_ref_list', 'false', 0, 685, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (686, 62, '', 'anonymizable', 'false', 0, 686, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (687, 62, '-1', 'use_ref_list', 'false', 0, 687, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (688, 62, '', 'anonymizable', 'false', 0, 688, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (689, 62, NULL, 'used_in_correct_form_response', 'false', 0, 689, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (690, 62, NULL, 'used_in_complete_form_response', 'false', 0, 690, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (691, 62, NULL, 'exportable', 'true', 0, 691, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (692, 62, NULL, 'attribute_name', 'user.home-info.online.email', 0, 692, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (693, 62, NULL, 'exportable_pdf', 'true', 0, 693, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (694, 63, '-1', 'use_ref_list', 'false', 0, 694, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (695, 63, '', 'anonymizable', 'false', 0, 695, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (696, 63, '-1', 'use_ref_list', 'false', 0, 696, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (697, 63, '', 'anonymizable', 'false', 0, 697, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (698, 63, NULL, 'used_in_correct_form_response', 'false', 0, 698, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (699, 63, NULL, 'used_in_complete_form_response', 'false', 0, 699, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (700, 63, NULL, 'exportable', 'true', 0, 700, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (701, 63, NULL, 'text_config', '', 0, 701, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (702, 63, NULL, 'width', '0', 0, 702, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (703, 63, NULL, 'max_size', '-1', 0, 703, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (704, 63, NULL, 'confirm_field', 'false', 0, 704, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (705, 63, NULL, 'exportable_pdf', 'true', 0, 705, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (706, 64, '-1', 'use_ref_list', 'false', 0, 706, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (707, 64, '', 'anonymizable', 'false', 0, 707, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (708, 64, '-1', 'use_ref_list', 'false', 0, 708, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (709, 64, '', 'anonymizable', 'false', 0, 709, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (710, 64, NULL, 'used_in_correct_form_response', 'false', 0, 710, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (711, 64, NULL, 'used_in_complete_form_response', 'false', 0, 711, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (712, 64, NULL, 'exportable', 'true', 0, 712, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (713, 64, NULL, 'text_config', '', 0, 713, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (714, 64, NULL, 'max_size', '500', 0, 714, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (715, 64, NULL, 'width', '0', 0, 715, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (716, 64, NULL, 'height', '5', 0, 716, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (717, 64, NULL, 'richtext', 'false', 0, 717, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (718, 64, NULL, 'exportable_pdf', 'true', 0, 718, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (719, 65, '-1', 'use_ref_list', 'false', 0, 719, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (720, 65, '', 'anonymizable', 'false', 0, 720, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (721, 65, '-1', 'use_ref_list', 'false', 0, 721, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (722, 65, '', 'anonymizable', 'false', 0, 722, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (723, 65, NULL, 'used_in_correct_form_response', 'false', 0, 723, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (724, 65, NULL, 'used_in_complete_form_response', 'false', 0, 724, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (725, 65, NULL, 'exportable', 'false', 0, 725, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (726, 65, NULL, 'text_config', '-1- \r\n-2- \r\n-3- \r\n-4- \r\n-5- ', 0, 726, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (727, 65, NULL, 'max_size', '500', 0, 727, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (728, 65, NULL, 'width', '0', 0, 728, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (729, 65, NULL, 'height', '5', 0, 729, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (730, 65, NULL, 'richtext', 'false', 0, 730, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (731, 65, NULL, 'exportable_pdf', 'true', 0, 731, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (732, 66, '-1', 'anonymizable', 'false', 0, 732, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (733, 66, '-1', 'use_ref_list', 'false', 0, 733, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (734, 66, '', 'anonymizable', 'false', 0, 734, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (735, 66, '-1', 'use_ref_list', 'false', 0, 735, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (736, 66, '', 'anonymizable', 'false', 0, 736, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (737, 66, NULL, 'used_in_correct_form_response', 'false', 0, 737, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (738, 66, NULL, 'used_in_complete_form_response', 'false', 0, 738, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (739, 66, NULL, 'exportable', 'true', 0, 739, NULL, 0, NULL);
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (740, 66, 'Sciences humaines et sociales', 'answer_choice', 'Sciences_humaines_sociales', 0, 740, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (741, 66, 'Sciences exactes ', 'answer_choice', 'Sciences_exactes', 0, 741, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (742, 66, 'Biologie et Médecine', 'answer_choice', 'Biologie_medecine', 0, 742, NULL, 0, '');
INSERT INTO template_field (id_field, id_entry, title, code, value, default_value, pos, value_type_date, no_display_title, comment) VALUES (743, 66, NULL, 'exportable_pdf', 'true', 0, 743, NULL, 0, NULL);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (1, 'Secteur d''activité', 'question_111', '', 1, 1, 0, 1, 0, 'Secteur d''activité ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (2, 'Date de création de l''activité ', 'question_112', '', 2, 1, 0, 0, 0, 'Date de création de l''activité ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (3, 'Effectif de l''entreprise', 'question_113', '', 3, 1, 0, 1, 0, 'Effectif de l''entreprise ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (4, 'Nombre de personnes par statut', 'question_114', '', 4, 1, 0, 0, 0, 'Nombre de personnes par statut ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (5, 'Nombre de personnes salariées', 'question_115', '', 5, 1, 0, 0, 0, 'Nombre de personnes salariées', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (6, 'Nombre de personne en free-lance', 'question_116', '', 6, 1, 0, 0, 0, 'Nombre de personne en free-lance', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (7, 'Nombre d''apprentis', 'question_117', '', 7, 1, 0, 0, 0, 'Nombre d''apprentis', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (8, 'Nombre de stagiaires', 'question_118', '', 8, 1, 0, 0, 0, 'Nombre de stagiaires', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (9, 'Chiffre d''affaires', 'question_119', '', 9, 1, 0, 1, 0, 'Chiffre d''affaires', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (10, 'Numéro de SIRET', 'question_100', '', 10, 2, 0, 0, 0, 'Numéro de SIRET ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (11, 'Nom', 'question_102', '', 11, 2, 1, 1, 0, 'Nom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (12, 'Prénom', 'question_103', '', 12, 2, 1, 1, 0, 'Prénom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (13, 'Nom de l''entreprise ou de la marque', 'question_104', '', 13, 2, 0, 1, 0, 'Nom de l''entreprise ou de la marque ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (14, 'Adresse de résidence', 'question_105', '', 14, 2, 0, 1, 0, 'Adresse de résidence ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (15, 'Code postal', 'question_106', '', 15, 2, 0, 1, 0, 'Code postal', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (16, 'Ville', 'question_107', '', 16, 2, 0, 1, 0, 'Ville', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (17, 'Téléphone fixe', 'question_108', '', 17, 2, 0, 1, 0, ' Téléphone fixe ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (18, 'Téléphone portable', 'question_109', '', 18, 2, 0, 1, 0, 'Téléphone portable ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (19, 'Courriel', 'question_110', '', 19, 2, 0, 0, 0, 'Courriel', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (20, 'Nom', 'question_44', '', 20, 3, 0, 0, 0, 'Nom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (21, 'Prénom', 'question_45', '', 21, 3, 0, 0, 0, 'Prénom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (22, 'Fonction', 'question_46', '', 22, 3, 0, 0, 0, 'Fonction', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (23, 'Adresse/rue', 'question_47', '', 23, 3, 0, 0, 0, 'Adresse/rue ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (24, 'Téléphone', 'question_48', '', 24, 3, 0, 0, 0, 'Téléphone ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (25, 'Email', 'question_49', '', 25, 3, 0, 0, 0, 'Email ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (26, 'RIB de l''organisme', 'question_50', '', 26, 3, 0, 0, 0, 'RIB de l''organisme', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (27, 'Le demandeur est', 'question_69', '', 27, 4, 0, 0, 0, 'Le demandeur est', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (28, 'Nom de la structure', 'question_70', '', 28, 4, 0, 0, 0, 'Nom de la structure', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (29, 'numéro SIRET ou RNA', 'question_71', '', 29, 4, 0, 0, 0, 'numéro SIRET ou RNA', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (30, 'Nom de la structure', 'question_73', '', 30, 4, 0, 0, 0, 'Nom de la structure', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (31, 'numéro SIRET ou RNA', 'question_75', '', 31, 4, 0, 0, 0, 'numéro SIRET ou RNA', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (32, 'Civilité', 'question_76', '', 32, 4, 0, 0, 0, 'Civilité', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (33, 'Nom', 'question_77', '', 33, 4, 0, 0, 0, 'Nom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (34, 'Prénom', 'question_78', '', 34, 4, 0, 0, 0, 'Prénom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (35, 'Téléphone', 'question_79', '', 35, 4, 0, 0, 0, 'Téléphone', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (36, 'Adresse de la structure ou perso', 'question_81', '', 36, 4, 0, 0, 0, ' Adresse de la structure ou perso', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (37, 'Code postal', 'question_82', '', 37, 4, 0, 0, 0, 'Code postal', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (38, 'Ville', 'question_83', '', 38, 4, 0, 0, 0, 'Ville', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (39, 'Courriel', 'question_131', '', 39, 4, 0, 0, 0, 'Courriel', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (40, 'commentaire', 'question_206', '<p>Attention : Les caractères < > # & "" ne sont pas autorisés dans la saisie des contenus.</p>', 40, 4, 0, 0, 0, 'commentaire', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (41, 'Nom', 'question_254', '', 41, 5, 0, 1, 0, 'Nom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (42, 'Prénom', 'question_255', '', 42, 5, 0, 1, 0, 'Prénom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (43, 'A', 'question_257', '', 43, 5, 0, 0, 0, 'A', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (44, 'Nationalité', 'question_258', '', 44, 5, 0, 0, 0, 'Nationalité', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (45, 'Adresse', 'question_259', '', 45, 5, 0, 0, 0, 'Adresse', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (46, 'Code postal', 'question_260', '', 46, 5, 0, 0, 0, 'Code postal', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (47, 'Ville', 'question_261', '', 47, 5, 0, 0, 0, 'Ville', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (48, 'Courriel', 'question_262', '', 48, 5, 0, 1, 0, 'Courriel', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (49, 'Téléphone fixe ou portable', 'question_263', '', 49, 5, 0, 1, 0, 'Téléphone fixe ou portable', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (50, 'Né.e', 'question_270', '', 50, 5, 0, 0, 0, 'Né.e', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (51, 'commentaire', 'question_253', '<p>L’espace CoWaC accueille étudiants, entrepreneurs et associations dans les secteurs Métiers d’art, Mode et Design ou développant un projet de soutien à ces secteurs. Il offre un véritable poste de travail hors de chez soi et des interactions avec d’autres professionnels pour enrichir ses compétences, développer son réseau ou partager des ressources. 3 formules du ponctuel au temps complet pour bénéficier d’un des 8 postes de travail en co-working ainsi qu’un accès à des salles de réunion. Profiter de l’espace CoWaC c’est également accéder à l’offre conseil et accompagnement des Ateliers de Paris.<br />• ¼ temps (5 jours/mois ou 10 demi-journées/mois) à 60€ le mois.<br /><br />• ½ temps (10 jours/mois ou 20 demi-journées/mois) à 100€ le mois<br /><br />• Temps complet (accès illimité) à 160€ le mois<br /><br />• Tarif étudiant : 8€ la journée, 4€ la demi-journée<br /><br /><br />Pièce à joindre au dossier<br />• dossier de candidature <a href="https://cdn.paris.fr/paris/2021/02/02/bfcc124133723c6c3cefe25d37d1d4c9.pdf" target="_blank">(télécharger)</a><br /><br />Informations :<br />Pour toutes questions complémentaires : <NAME>, <EMAIL> , 30 rue du Faubourg Saint Antoine, 75012 Paris. Tél. : 01 71 18 75 74<br />Vous serez recontactés suite à votre candidature. Si votre dossier est validé, votre accueil pourra être mis en liste d’attente si toutes les places sont prises.</p>', 51, 6, 0, 0, 0, 'commentaire', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (52, 'Civilité', 'question_4', '', 52, 7, 0, 0, 0, 'Civilité', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (53, 'Nom', 'question_5', '', 53, 7, 1, 1, 0, 'Nom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (54, 'Prénom', 'question_6', '', 54, 7, 1, 1, 0, 'Prénom', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (55, 'Date de naissance (JJ/MM/AAAA)', 'question_7', '', 55, 7, 0, 0, 0, 'Date de naissance (JJ/MM/AAAA)', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (56, 'Nationalité', 'question_9', '', 56, 7, 0, 0, 0, 'Nationalité ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (57, 'Responsabilités', 'question_10', '', 57, 7, 0, 0, 0, 'Responsabilités ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (58, 'Laboratoire /Organisme', 'question_11', '', 58, 7, 0, 0, 0, 'Laboratoire /Organisme ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (59, 'Adresse/rue', 'question_12', '', 59, 7, 0, 0, 0, 'Adresse/rue', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (60, 'Code postal', 'question_13', '', 60, 7, 0, 0, 0, 'Code postal', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (61, 'Ville', 'question_14', '', 61, 7, 0, 0, 0, 'Ville ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (62, 'Email', 'question_15', '', 62, 7, 0, 1, 0, 'Email', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (63, 'Téléphone', 'question_16', '', 63, 7, 0, 0, 0, 'Téléphone', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (64, 'Titre du projet (en français et/ou en anglais, max 3 lignes) et son abrégé (3 ou 4 mots)', 'question_17', '', 64, 8, 0, 0, 0, 'Titre du projet (en français et/ou en anglais, max 3 lignes) et son abrégé (3 ou 4 mots) ', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (65, 'Cinq mots Clés', 'question_18', '', 65, 8, 0, 0, 0, 'Cinq mots Clés', 0, 0);
INSERT INTO template_question (id_question, title, code, description, id_entry, id_template, is_visible_multiview_global, is_visible_multiview_form_selected, multiview_column_order, column_title, is_filterable_multiview_global, is_filterable_multiview_form_selected) VALUES (66, 'Champ disciplinaire principal', 'question_19', '', 66, 8, 0, 0, 0, 'Champ disciplinaire principal', 0, 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (1, 1, 1, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (2, 1, 2, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (3, 1, 3, 0, 3, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (4, 1, 4, 0, 4, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (5, 1, 5, 0, 5, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (6, 1, 6, 0, 6, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (7, 1, 7, 0, 7, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (8, 1, 8, 0, 8, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (9, 1, 9, 0, 9, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (10, 2, 10, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (11, 2, 11, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (12, 2, 12, 0, 3, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (13, 2, 13, 0, 4, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (14, 2, 14, 0, 5, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (15, 2, 15, 0, 6, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (16, 2, 16, 0, 7, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (17, 2, 17, 0, 8, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (18, 2, 18, 0, 9, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (19, 2, 19, 0, 10, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (20, 3, 20, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (21, 3, 21, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (22, 3, 22, 0, 3, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (23, 3, 23, 0, 4, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (24, 3, 24, 0, 5, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (25, 3, 25, 0, 6, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (26, 3, 26, 0, 7, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (27, 4, 27, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (28, 4, 28, 0, 3, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (29, 4, 29, 0, 4, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (30, 4, 30, 0, 5, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (31, 4, 31, 0, 6, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (32, 4, 32, 0, 7, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (33, 4, 33, 0, 8, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (34, 4, 34, 0, 9, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (35, 4, 35, 0, 10, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (36, 4, 36, 0, 12, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (37, 4, 37, 0, 13, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (38, 4, 38, 0, 14, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (39, 4, 39, 0, 11, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (40, 4, 40, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (41, 5, 41, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (42, 5, 42, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (43, 5, 43, 0, 4, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (44, 5, 44, 0, 5, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (45, 5, 45, 0, 6, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (46, 5, 46, 0, 7, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (47, 5, 47, 0, 8, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (48, 5, 48, 0, 9, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (49, 5, 49, 0, 10, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (50, 5, 50, 0, 3, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (51, 6, 51, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (52, 7, 52, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (53, 7, 53, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (54, 7, 54, 0, 3, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (55, 7, 55, 0, 4, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (56, 7, 56, 0, 5, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (57, 7, 57, 0, 6, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (58, 7, 58, 0, 7, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (59, 7, 59, 0, 8, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (60, 7, 60, 0, 9, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (61, 7, 61, 0, 10, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (62, 7, 62, 0, 11, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (63, 7, 63, 0, 12, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (64, 8, 64, 0, 1, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (65, 8, 65, 0, 2, 'question', 0);
INSERT INTO template_display (id_display, id_template, id_composite, id_parent, display_order, composite_type, display_depth) VALUES (66, 8, 66, 0, 3, 'question', 0);
|
<filename>sql/animal-shelter-db.sqlite.sql
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS `shelters` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`name` TEXT NOT NULL,
`deleted` INTEGER NOT NULL DEFAULT 0
);
INSERT INTO `shelters` VALUES (1,'Shelter 0.61495800 1567889978',0);
INSERT INTO `shelters` VALUES (2,'Shelter 0.29923800 1567890066',0);
INSERT INTO `shelters` VALUES (3,'Shelter 0.33581500 1567890190',0);
INSERT INTO `shelters` VALUES (4,'Shelter 0.60192600 1567890228',0);
INSERT INTO `shelters` VALUES (5,'Shelter 0.56217100 1567890248',0);
INSERT INTO `shelters` VALUES (6,'Shelter 0.40715000 1567890296',0);
INSERT INTO `shelters` VALUES (7,'Shelter 0.20720600 1567890394',0);
INSERT INTO `shelters` VALUES (8,'Shelter 0.30651300 1567890411',0);
INSERT INTO `shelters` VALUES (9,'Shelter 0.43665600 1567890514',0);
INSERT INTO `shelters` VALUES (10,'Shelter 0.04089700 1567890534',0);
INSERT INTO `shelters` VALUES (11,'Shelter 0.57545900 1567890600',0);
INSERT INTO `shelters` VALUES (12,'Shelter 0.57800800 1567930460',0);
INSERT INTO `shelters` VALUES (13,'Shelter 0.38806500 1567930799',0);
INSERT INTO `shelters` VALUES (14,'Shelter 0.48599400 1567931295',0);
INSERT INTO `shelters` VALUES (15,'Shelter 0.50133400 1567931631',0);
INSERT INTO `shelters` VALUES (16,'Shelter 0.33321900 1567931783',0);
INSERT INTO `shelters` VALUES (17,'Shelter 0.24420700 1567932985',0);
INSERT INTO `shelters` VALUES (18,'Shelter 0.24855900 1567933018',0);
INSERT INTO `shelters` VALUES (19,'Shelter 0.98335200 1567933078',0);
INSERT INTO `shelters` VALUES (20,'Shelter 0.49751400 1567933147',0);
INSERT INTO `shelters` VALUES (21,'Shelter 0.01073600 1567933194',0);
INSERT INTO `shelters` VALUES (22,'Shelter 0.78227800 1567933208',0);
INSERT INTO `shelters` VALUES (23,'Shelter 0.02188100 1567933238',0);
INSERT INTO `shelters` VALUES (24,'Shelter 0.07895800 1567933249',0);
INSERT INTO `shelters` VALUES (25,'Shelter 0.30833500 1567933261',0);
INSERT INTO `shelters` VALUES (26,'Shelter 0.07446300 1567933326',0);
INSERT INTO `shelters` VALUES (27,'Shelter 0.95900400 1567933478',0);
INSERT INTO `shelters` VALUES (28,'Shelter 0.56543900 1567933494',0);
INSERT INTO `shelters` VALUES (29,'Shelter 0.50334400 1567933509',0);
INSERT INTO `shelters` VALUES (30,'Shelter 0.38185900 1567933531',0);
INSERT INTO `shelters` VALUES (31,'Shelter 0.55673300 1567933539',0);
INSERT INTO `shelters` VALUES (32,'Shelter 0.73800700 1567933556',0);
INSERT INTO `shelters` VALUES (33,'Shelter 0.25076100 1567933573',0);
INSERT INTO `shelters` VALUES (34,'Shelter 0.53292600 1567933591',0);
INSERT INTO `shelters` VALUES (35,'Shelter 0.28370000 1567933606',0);
INSERT INTO `shelters` VALUES (36,'Shelter 0.46899800 1567933623',0);
INSERT INTO `shelters` VALUES (37,'Shelter 0.20909700 1567933651',0);
INSERT INTO `shelters` VALUES (38,'Shelter 0.16904300 1567934276',0);
INSERT INTO `shelters` VALUES (39,'Shelter 0.92749000 1567934286',0);
INSERT INTO `shelters` VALUES (40,'Shelter 0.58136900 1567934500',0);
INSERT INTO `shelters` VALUES (41,'Shelter 0.98159500 1567934567',0);
INSERT INTO `shelters` VALUES (42,'Shelter 0.66218800 1567934576',0);
INSERT INTO `shelters` VALUES (43,'Shelter 0.15490700 1567934905',0);
INSERT INTO `shelters` VALUES (44,'Shelter 0.38581700 1567934942',0);
INSERT INTO `shelters` VALUES (45,'Shelter 0.29744400 1567935200',0);
INSERT INTO `shelters` VALUES (47,'',0);
INSERT INTO `shelters` VALUES (48,'',0);
INSERT INTO `shelters` VALUES (49,'Shelter test',0);
INSERT INTO `shelters` VALUES (50,'Shelter test',0);
INSERT INTO `shelters` VALUES (51,'Shelter test',0);
INSERT INTO `shelters` VALUES (52,'Shelter test',0);
INSERT INTO `shelters` VALUES (53,'Shelter test',0);
INSERT INTO `shelters` VALUES (54,'Shelter test',0);
INSERT INTO `shelters` VALUES (55,'Shelter test',0);
INSERT INTO `shelters` VALUES (56,'Shelter test',0);
INSERT INTO `shelters` VALUES (57,'Shelter test',0);
INSERT INTO `shelters` VALUES (58,'Shelter test',0);
INSERT INTO `shelters` VALUES (59,'Shelter test',0);
INSERT INTO `shelters` VALUES (60,'Shelter test',0);
INSERT INTO `shelters` VALUES (61,'Shelter test',0);
INSERT INTO `shelters` VALUES (62,'Shelter test',0);
INSERT INTO `shelters` VALUES (63,'Shelter test',0);
INSERT INTO `shelters` VALUES (64,'Shelter test',0);
INSERT INTO `shelters` VALUES (65,'',0);
INSERT INTO `shelters` VALUES (66,'',0);
INSERT INTO `shelters` VALUES (67,'',0);
INSERT INTO `shelters` VALUES (68,'',0);
INSERT INTO `shelters` VALUES (69,'',0);
INSERT INTO `shelters` VALUES (70,'',0);
INSERT INTO `shelters` VALUES (71,'Joselito''s Shelter',0);
INSERT INTO `shelters` VALUES (72,'Joselito''s Shelter',0);
INSERT INTO `shelters` VALUES (73,'My new place',0);
INSERT INTO `shelters` VALUES (74,'',0);
INSERT INTO `shelters` VALUES (75,'',0);
INSERT INTO `shelters` VALUES (76,'not defined',0);
INSERT INTO `shelters` VALUES (77,'not defined',0);
INSERT INTO `shelters` VALUES (78,'not defined',0);
INSERT INTO `shelters` VALUES (79,'not defined',0);
INSERT INTO `shelters` VALUES (80,'Joselito''s Shelter',0);
INSERT INTO `shelters` VALUES (81,'My new place',0);
INSERT INTO `shelters` VALUES (82,'My new place',0);
INSERT INTO `shelters` VALUES (83,'name here',0);
CREATE TABLE IF NOT EXISTS `animals` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`shelterId` INTEGER NOT NULL,
`temporaryName` TEXT NOT NULL,
`picture` TEXT,
`medicalCondition` TEXT,
`suposedRace` TEXT,
`adoptable` INTEGER NOT NULL DEFAULT 0,
FOREIGN KEY(`shelterId`) REFERENCES `shelters`(`id`)
);
INSERT INTO `animals` VALUES (1,1,'fluffy cat',NULL,NULL,NULL,0);
INSERT INTO `animals` VALUES (2,1,'baby',NULL,NULL,NULL,0);
INSERT INTO `animals` VALUES (3,3,'black dog',NULL,NULL,NULL,0);
CREATE TABLE IF NOT EXISTS `adoptionRequests` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`adopterId` INTEGER NOT NULL,
`animalId` INTEGER NOT NULL,
FOREIGN KEY(`adopterId`) REFERENCES `adopters`(`id`)
);
CREATE TABLE IF NOT EXISTS `adopters` (
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
`name` TEXT NOT NULL,
`email` TEXT NOT NULL,
`phone` TEXT NOT NULL
);
COMMIT;
|
CREATE TABLE calendarobjects (
id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
calendardata TEXT,
uri VARCHAR(100),
calendarid INTEGER UNSIGNED NOT NULL,
lastmodified DATETIME
);
CREATE TABLE calendars (
id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
principaluri VARCHAR(100),
displayname VARCHAR(100),
uri VARCHAR(100),
ctag INTEGER UNSIGNED NOT NULL DEFAULT '0',
description TEXT,
calendarorder INTEGER UNSIGNED NOT NULL DEFAULT '0',
calendarcolor VARCHAR(10),
timezone TEXT,
components VARCHAR(20)
);
|
<filename>1-Count-Distinct-Ordering/2-Count-CountDistinct-NullRecords.sql
SELECT
COUNT(*) AS num_rows,
COUNT(borough) AS borough_count,
COUNT(DISTINCT borough) AS distinct_borough_count,
COUNT(contributing_factor_vehicle_3) AS contributing_factor_vehicle_3_count,
COUNT(contributing_factor_vehicle_1) AS contributing_factor_vehicle_1_count,
COUNT(DISTINCT contributing_factor_vehicle_1) AS distinct_contributing_factor_vehicle_1_count
FROM
`bigquery-public-data.new_york_mv_collisions.nypd_mv_collisions` |
CREATE DATABASE IF NOT EXISTS `fizzmod`;
USE `fizzmod`;
CREATE TABLE IF NOT EXISTS `user_status`(
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`description` VARCHAR(255),
PRIMARY KEY(id)
);
CREATE TABLE IF NOT EXISTS `users`(
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`firstname` VARCHAR(90) NOT NULL,
`lastname` VARCHAR(90) NOT NULL,
`username` VARCHAR(40) NOT NULL,
`email` VARCHAR(90) NOT NULL,
`created_at` DATETIME NOT NULL,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`user_status_id` INTEGER(11) UNSIGNED,
PRIMARY KEY(id),
UNIQUE INDEX `users_email_unique` (`email`),
UNIQUE INDEX `users_username_unique` (`username`),
INDEX `posts_user_status_id_foreign` (`user_status_id`),
CONSTRAINT `posts_user_status_id_foreign` FOREIGN KEY (`user_status_id`) REFERENCES `user_status` (`id`) ON UPDATE CASCADE ON DELETE RESTRICT
);
CREATE TABLE IF NOT EXISTS `message_status`(
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`description` VARCHAR(255),
PRIMARY KEY(id)
);
CREATE TABLE IF NOT EXISTS `messages`(
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`body` TEXT NOT NULL,
`created_at` DATETIME NOT NULL,
`updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`user_id` INTEGER(11) UNSIGNED,
`message_status_id` INTEGER(11) UNSIGNED,
PRIMARY KEY(id),
INDEX `posts_user_id_foreign` (`user_id`),
INDEX `posts_message_status_id_foreign` (`message_status_id`),
CONSTRAINT `posts_message_status_id_foreign` FOREIGN KEY (`message_status_id`) REFERENCES `message_status` (`id`) ON UPDATE CASCADE ON DELETE RESTRICT,
CONSTRAINT `posts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON UPDATE CASCADE ON DELETE RESTRICT
); |
CREATE TABLE [dbo].[Responsavel]
(
[Id] INT NOT NULL PRIMARY KEY IDENTITY,
[Nome] VARCHAR(200) NOT NULL,
[Produto] VARCHAR(150) NOT NULL,
[Email] VARCHAR(150) NOT NULL
)
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:8889
-- Generation Time: Nov 23, 2019 at 01:44 PM
-- Server version: 5.7.26
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `foodtrack`
--
-- --------------------------------------------------------
--
-- Table structure for table `alimento`
--
CREATE TABLE `alimento` (
`id` int(11) NOT NULL,
`nombre` text NOT NULL,
`kcal` int(11) DEFAULT NULL,
`fecha_caducidad` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `alimento`
--
INSERT INTO `alimento` (`id`, `nombre`, `kcal`, `fecha_caducidad`) VALUES
(1, 'leche', 120, '2020-01-15'),
(2, 'pan', 300, '2020-01-12');
-- --------------------------------------------------------
--
-- Table structure for table `comida`
--
CREATE TABLE `comida` (
`id` int(11) NOT NULL,
`fecha` date NOT NULL,
`id_receta` int(11) NOT NULL,
`tipo_comida` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `lista_compra`
--
CREATE TABLE `lista_compra` (
`id` int(11) NOT NULL,
`id_alimento` int(11) DEFAULT NULL,
`cantidad` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `receta`
--
CREATE TABLE `receta` (
`id` int(11) NOT NULL,
`nombre` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `receta_alimento`
--
CREATE TABLE `receta_alimento` (
`id_receta` int(11) NOT NULL,
`id_alimento` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `stock`
--
CREATE TABLE `stock` (
`id` int(11) NOT NULL,
`id_alimento` int(11) DEFAULT NULL,
`cantidad` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tipo_comida`
--
CREATE TABLE `tipo_comida` (
`id` int(11) NOT NULL,
`nombre` varchar(10) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `alimento`
--
ALTER TABLE `alimento`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `comida`
--
ALTER TABLE `comida`
ADD PRIMARY KEY (`id`),
ADD KEY `id_receta` (`id_receta`),
ADD KEY `tipo_comida` (`tipo_comida`);
--
-- Indexes for table `lista_compra`
--
ALTER TABLE `lista_compra`
ADD PRIMARY KEY (`id`),
ADD KEY `id_alimento` (`id_alimento`);
--
-- Indexes for table `receta`
--
ALTER TABLE `receta`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `receta_alimento`
--
ALTER TABLE `receta_alimento`
ADD PRIMARY KEY (`id_receta`,`id_alimento`),
ADD KEY `id_alimento` (`id_alimento`);
--
-- Indexes for table `stock`
--
ALTER TABLE `stock`
ADD PRIMARY KEY (`id`),
ADD KEY `id_alimento` (`id_alimento`);
--
-- Indexes for table `tipo_comida`
--
ALTER TABLE `tipo_comida`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `alimento`
--
ALTER TABLE `alimento`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `receta`
--
ALTER TABLE `receta`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `comida`
--
ALTER TABLE `comida`
ADD CONSTRAINT `comida_ibfk_1` FOREIGN KEY (`id_receta`) REFERENCES `receta` (`id`),
ADD CONSTRAINT `comida_ibfk_2` FOREIGN KEY (`tipo_comida`) REFERENCES `tipo_comida` (`id`);
--
-- Constraints for table `lista_compra`
--
ALTER TABLE `lista_compra`
ADD CONSTRAINT `lista_compra_ibfk_1` FOREIGN KEY (`id_alimento`) REFERENCES `alimento` (`id`);
--
-- Constraints for table `receta_alimento`
--
ALTER TABLE `receta_alimento`
ADD CONSTRAINT `receta_alimento_ibfk_1` FOREIGN KEY (`id_receta`) REFERENCES `receta` (`id`),
ADD CONSTRAINT `receta_alimento_ibfk_2` FOREIGN KEY (`id_alimento`) REFERENCES `alimento` (`id`);
--
-- Constraints for table `stock`
--
ALTER TABLE `stock`
ADD CONSTRAINT `stock_ibfk_1` FOREIGN KEY (`id_alimento`) REFERENCES `alimento` (`id`);
|
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Feb 20, 2019 at 09:34 AM
-- Server version: 5.6.21
-- PHP Version: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `db_etms`
--
-- --------------------------------------------------------
--
-- Table structure for table `asset_series`
--
CREATE TABLE IF NOT EXISTS `asset_series` (
`asset_id` int(11) NOT NULL,
`subcat_prefix` varchar(50) DEFAULT NULL,
`series` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `asset_series`
--
INSERT INTO `asset_series` (`asset_id`, `subcat_prefix`, `series`) VALUES
(1, 'FFA-BBA', 1001);
-- --------------------------------------------------------
--
-- Table structure for table `atf_series`
--
CREATE TABLE IF NOT EXISTS `atf_series` (
`atf_id` int(11) NOT NULL,
`atf_prefix` varchar(255) DEFAULT NULL,
`series` int(11) DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `atf_series`
--
INSERT INTO `atf_series` (`atf_id`, `atf_prefix`, `series`) VALUES
(1, '2019', 1001),
(2, '2019', 1001);
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE IF NOT EXISTS `category` (
`category_id` int(11) NOT NULL,
`category_name` varchar(100) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`category_id`, `category_name`) VALUES
(1, 'Furniture, Fixtures and Equipment');
-- --------------------------------------------------------
--
-- Table structure for table `damage_info`
--
CREATE TABLE IF NOT EXISTS `damage_info` (
`damage_id` int(11) NOT NULL,
`incident_date` varchar(20) DEFAULT NULL,
`etdr_no` varchar(50) DEFAULT NULL,
`activity` text,
`et_id` int(11) NOT NULL DEFAULT '0',
`ed_id` int(11) NOT NULL DEFAULT '0',
`damage_location` text,
`accountability_id` int(11) NOT NULL DEFAULT '0',
`incident_description` text,
`equip_damage` text,
`recommendation` text,
`submitted_by` int(11) NOT NULL DEFAULT '0',
`checked_by` int(11) NOT NULL DEFAULT '0',
`noted_by` int(11) NOT NULL DEFAULT '0',
`create_date` varchar(20) DEFAULT NULL,
`user_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `damage_info`
--
INSERT INTO `damage_info` (`damage_id`, `incident_date`, `etdr_no`, `activity`, `et_id`, `ed_id`, `damage_location`, `accountability_id`, `incident_description`, `equip_damage`, `recommendation`, `submitted_by`, `checked_by`, `noted_by`, `create_date`, `user_id`) VALUES
(1, '2019-02-20', '2019-02-1001', 'as', 1, 1, 'as', 14, 'as', 'as', 'as', 14, 31, 3, '2019-02-20 16:15:08', 1);
-- --------------------------------------------------------
--
-- Table structure for table `damage_series`
--
CREATE TABLE IF NOT EXISTS `damage_series` (
`ds_id` int(11) NOT NULL,
`damage_prefix` varchar(100) DEFAULT NULL,
`series` int(11) DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `damage_series`
--
INSERT INTO `damage_series` (`ds_id`, `damage_prefix`, `series`) VALUES
(1, '2019-02', 1001);
-- --------------------------------------------------------
--
-- Table structure for table `department`
--
CREATE TABLE IF NOT EXISTS `department` (
`department_id` int(11) NOT NULL,
`department_name` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE IF NOT EXISTS `employees` (
`employee_id` int(11) NOT NULL,
`employee_name` varchar(255) DEFAULT NULL,
`department` varchar(255) DEFAULT NULL,
`location_id` int(11) NOT NULL DEFAULT '0',
`aaf_no` varchar(100) DEFAULT NULL,
`position` varchar(255) DEFAULT NULL,
`contact_no` varchar(255) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=122 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`employee_id`, `employee_name`, `department`, `location_id`, `aaf_no`, `position`, `contact_no`, `email`) VALUES
(1, '<NAME>', 'Management', 0, NULL, 'General Manager', '0917-5924080', ''),
(2, '<NAME>', 'Trading', 0, NULL, 'Trader', '0920-6398529', ''),
(3, '<NAME>', 'IT Department', 0, NULL, 'Software Development Supervisor', '0932-4515369', ''),
(4, '<NAME>', 'Purchasing', 0, NULL, 'Procurement Assistant', '0930-2357794', ''),
(5, '<NAME>', 'Admin', 0, NULL, 'Service Vehicle Driver', '0950-2900419', ''),
(6, '<NAME>', 'Purchasing', 0, NULL, 'Purchasing Officer', '09099491894/09234597487', ''),
(7, '<NAME>', 'Admin', 0, NULL, 'Service Vehicle Driver', '0912 5905319', ''),
(8, '<NAME>', 'Accounting', 0, NULL, 'Accounting Associate', '0916-3961389', ''),
(9, '<NAME>', 'Accounting', 0, NULL, 'Accounting Supervisor', '0922-4386979', ''),
(10, '<NAME>', 'Special Projects', 0, NULL, 'Projects and Asset Management Assistant', '0920-5205418', ''),
(11, '<NAME>', 'Trading', 0, NULL, 'Lead Trader', '0923-4187139', ''),
(12, '<NAME>', 'Accounting / Finance', 0, NULL, 'A/P & Credit Supervisor', '0918-6760758', ''),
(13, '<NAME>', 'HR/Admin', 0, NULL, 'HR Assistant', '0917-9941917', ''),
(14, '<NAME>', 'IT Department', 0, NULL, 'Software Development Assistant', '0939-6488141', ''),
(15, '<NAME>', 'EMG-Billing', 0, NULL, 'Billing Assistant', '0939-1159164', ''),
(16, '<NAME>', '0', 0, NULL, '0', '0', ''),
(17, '<NAME>', 'EMG-Billing', 0, NULL, 'Billing & Settlement Officer', '0907-4494479', ''),
(18, '<NAME>', 'Trading', 0, NULL, 'Trader', '0922-3271576', ''),
(19, '<NAME>', 'Accounting', 0, NULL, 'Accounting Assistant', '0909-9579077', ''),
(20, '<NAME>', 'Trading', 0, NULL, 'Trader', '0927-8212228', ''),
(21, '<NAME>', 'IT Department', 0, NULL, 'IT Specialist', '0908-7636105', ''),
(22, '<NAME>', 'Accounting', 0, NULL, 'Corporate Accountant', '0932-3649978', ''),
(23, '<NAME>', 'Trading', 0, NULL, 'Trader', '0912-4746470/09773640452', ''),
(24, '<NAME>', 'Trading', 0, NULL, 'Energy Market Analyst', '0948-9285185', ''),
(25, '<NAME>', 'Accounting', 0, NULL, 'Internal Auditor', '0977-8215247', ''),
(26, '<NAME>', 'Admin', 0, NULL, 'Utility', '0910-4526879', ''),
(27, '<NAME>', 'Finance', 0, NULL, 'Finance Supervisor', '0932-8737196', ''),
(28, '<NAME>', 'HR/Admin', 0, NULL, 'HR Assistant', '09272257127/09454569188', ''),
(29, '<NAME>', 'Trading', 0, NULL, 'EMG Manager / WESM Compliance Officer', '0932-8773754', ''),
(30, '<NAME>', 'Trading', 0, NULL, 'Trader', '0917-9512950', ''),
(31, '<NAME>', 'IT Department', 0, '', 'Software Development Assistant', '0977-7106914', ''),
(32, '<NAME>', 'Engineering Dept.', 0, NULL, 'Grid Integration Manager', '9177996939', ''),
(33, '<NAME>', 'HR/Admin', 0, NULL, 'HR Supervisor', '0923-2802343', ''),
(34, '<NAME>', 'Finance', 0, NULL, 'Finance Assistant', '0917-7793318', ''),
(35, '<NAME>', 'HR/Admin', 0, NULL, 'Payroll Assistant', '0946-3348559', ''),
(36, '<NAME>', 'IT Department', 0, NULL, 'IT Encoder ', '0945-5743745', ''),
(37, '<NAME>', 'Contracts & Compliance', 0, NULL, 'Contracts & Compliance Asst.', '0923-6828813', ''),
(38, '<NAME>', 'Trading', 0, NULL, 'Trader', '0930-7871989', ''),
(39, '<NAME>', 'Electrical & Instrumentation', 0, NULL, 'E & IC Technician', '0912-5896720', ''),
(40, '<NAME>', 'Operations', 0, NULL, 'Auxiliary Operator ', '0916-5321090', ''),
(41, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Plant Mechanic', '0926-8161359', ''),
(42, '<NAME>', 'Trading', 0, NULL, 'Operations Analyst', '09235607021 / 09485342153', ''),
(43, '<NAME> ', 'Trading', 0, NULL, 'Performance Monitoring Supervisor', '0906-3425996', ''),
(44, '<NAME>', 'Fuel Management', 0, NULL, 'Fuel Management Asst.', '0909-4620177', ''),
(45, '<NAME>', 'Operations', 0, NULL, 'Operations Analyst', '0995-3634548', ''),
(46, '<NAME>', 'Electrical & Instrumentation', 0, NULL, 'Electrical Supervisor', '09196745918', ''),
(47, '<NAME>', 'Electrical & Instrumentation', 0, NULL, 'Power Delivery & Technical Manager', '0917-8653566', ''),
(48, '<NAME>', 'Operations', 0, NULL, 'Operations Planner', '0919-3725318', ''),
(49, '<NAME>', 'Operations', 0, NULL, 'Auxiliary Operator', '0906-8802652', ''),
(50, '<NAME>', 'Special Projects', 0, NULL, 'Projects Coordinator Assistant', '0910-1980348', ''),
(51, '<NAME>', 'Machine Shop and Reconditioning', 0, NULL, 'Machine Shop & Reconditioning Supervisor', '0920-2128998', ''),
(52, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Plant Mechanic', '0939-2369794', ''),
(53, '<NAME>', 'Accounting', 0, NULL, 'Asset Management Asst.', '0930-7765706', ''),
(54, '<NAME>', 'Electrical & Instrumentation', 0, NULL, ' E&IC Technician', '09267932911 / 09265638526', ''),
(55, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Plant Mechanic', '0949-1547358', ''),
(56, '<NAME>', 'Operations', 0, NULL, 'Engine Room Operator', '0920-6995646', ''),
(57, '<NAME>', 'Operations', 0, NULL, 'Operation Shift Supervisor', '0918-6438993', ''),
(58, '<NAME>', 'HR/Admin', 0, NULL, 'Admin Assistant', '0930-1553296/0916-6984461', ''),
(59, '<NAME>', 'Purchasing', 0, NULL, 'Purchasing Assistant', '0927-4597157', ''),
(60, '<NAME>', 'HR/Admin', 0, NULL, 'Utility', '0932-5420679', ''),
(61, '<NAME>', 'Operations', 0, NULL, 'Auxiliary Operator', '0918-2685507', ''),
(62, '<NAME>', 'Operations', 0, NULL, 'Auxiliary Operator', '0908-3317408', ''),
(63, '<NAME>', 'Warehouse', 0, NULL, 'Parts Inventory Assistant', '0916-2779697', '<EMAIL>'),
(64, '<NAME>', 'Warehouse', 0, NULL, 'Warehouse Assistant', '0948-7024664', ''),
(65, '<NAME>', 'Electrical & Instrumentation', 0, NULL, 'E&IC Technician', '0930-9363013', ''),
(66, '<NAME>', 'Management', 0, NULL, 'Plant Director', '0917-8607244', ''),
(67, '<NAME>', 'IT Department', 0, NULL, 'IT Assistant', '0912-3867454', ''),
(68, '<NAME>', 'HR/Admin', 0, NULL, 'Service Vehicle Driver', '0933-3388374', ''),
(69, '<NAME>', 'Warehouse', 0, NULL, 'Warehouse Assistant', '0912 922 1944', ''),
(70, '<NAME>', 'Operations', 0, NULL, 'Auxiliary Operator Trainee', '0910-5787327', ''),
(71, '<NAME>', 'Warehouse', 0, NULL, 'Parts Engineer', '0925-4887286', ''),
(72, '<NAME>', 'Machine Shop and Reconditioning', 0, NULL, 'Foreman (Machine Shop & Recon)', '0999-8143307', ''),
(73, '<NAME>', 'Admin', 0, NULL, 'Safety Officer', '0918-6268028', ''),
(74, '<NAME>', 'Operations', 0, NULL, 'Engine Room Operator', '0935-4046632', ''),
(75, '<NAME>.', 'Fuel Management', 0, NULL, 'Fuel Tender', '0999-7353561', ''),
(76, '<NAME>', 'Electrical Department', 0, NULL, 'Project Consultant', '0915-326-1829', ''),
(77, '<NAME>', 'Admin', 0, NULL, 'Pollution Control Officer ', '0912-5356230', ''),
(78, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Plant Mechanic', '0918-2063492', ''),
(79, '<NAME>', 'Operations', 0, NULL, 'Shift Supervisor Trainee', '0932-2400663', ''),
(80, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Plant Mechanic', '0929-2629467', ''),
(81, '<NAME>', 'Operations', 0, NULL, 'Control Room Operator', '0933-6159620', ''),
(82, '<NAME>', 'Operations', 0, NULL, 'Shift Supervisor Trainee', '0927-1687549', ''),
(83, '<NAME>.', 'Special Projects', 0, NULL, 'Technical Assistant', '0927-6537369', ''),
(84, '<NAME>', 'Electrical & Instrumentation', 0, NULL, 'E&IC Technician', '0936-6568781', ''),
(85, '<NAME>', 'Operations', 0, NULL, 'Control Room Operator', '0947-9916563', ''),
(86, '<NAME>', 'Special Projects', 0, NULL, 'Project Consultant', '0927-741-1950', ''),
(87, '<NAME>', 'Operations', 0, NULL, 'O&M Superintendent', '0908-6094932', ''),
(88, '<NAME>', 'Testing Group', 0, NULL, 'Test Engineer', '0977-7842536', ''),
(89, '<NAME>', 'Admin', 0, NULL, 'Site Facilities Supervisor', '0948-2732052', ''),
(90, '<NAME>', 'Operations', 0, NULL, 'Engine Room Operator Trainee', '0932-1253131', ''),
(91, '<NAME>', '0', 0, NULL, '0', '0', ''),
(92, '<NAME>', 'Operations', 0, NULL, 'Control Room Operator', '0936-2138490', ''),
(93, '<NAME>', 'Warehouse', 0, NULL, 'Driver', '0915-9555253', ''),
(94, '<NAME>', 'Operations', 0, NULL, 'Shift Supervisor Trainee', '0927-2885847', ''),
(95, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Mechanical Maintenance Supervisor / Equipment & Parts Engr.', '0999 677 8341', ''),
(96, '<NAME>', 'Mechanical Maintenance', 0, NULL, 'Plant Mechanic', '0930-8736393', ''),
(97, '<NAME>', 'Admin', 0, NULL, 'Company Nurse', '0917-1595665', ''),
(98, '<NAME>', 'Accounting', 0, NULL, 'Accounting Assistant/ Bookkeeper', '0949-3005-813', ''),
(99, '<NAME>', 'Admin', 0, NULL, 'Site Admin Officer', '0932-8657926', ''),
(100, '<NAME>', 'Operations', 0, NULL, 'Auxiliary Operator', '', ''),
(101, '<NAME>', '', 0, NULL, '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `employee_inclusion`
--
CREATE TABLE IF NOT EXISTS `employee_inclusion` (
`ei_id` int(11) NOT NULL,
`parent_id` int(11) NOT NULL DEFAULT '0',
`child_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `employee_series`
--
CREATE TABLE IF NOT EXISTS `employee_series` (
`empser_id` int(11) NOT NULL,
`aaf_prefix` varchar(100) DEFAULT NULL,
`series` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `et_details`
--
CREATE TABLE IF NOT EXISTS `et_details` (
`ed_id` int(11) NOT NULL,
`et_id` int(11) NOT NULL DEFAULT '0',
`serial_no` varchar(50) DEFAULT NULL,
`brand` varchar(50) DEFAULT NULL,
`model` varchar(50) DEFAULT NULL,
`type` varchar(50) DEFAULT NULL,
`unit_price` decimal(10,2) NOT NULL DEFAULT '0.00',
`acquisition_date` varchar(20) DEFAULT NULL,
`date_issued` varchar(20) DEFAULT NULL,
`remarks` text,
`asset_control_no` varchar(50) DEFAULT NULL,
`damage` int(11) NOT NULL DEFAULT '0',
`acquired_by` varchar(50) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `et_details`
--
INSERT INTO `et_details` (`ed_id`, `et_id`, `serial_no`, `brand`, `model`, `type`, `unit_price`, `acquisition_date`, `date_issued`, `remarks`, `asset_control_no`, `damage`, `acquired_by`) VALUES
(1, 1, 'as', 'as', 'as', 'as', '0.00', '2019-02-20', '', '', 'FFA-BBA-1001', 1, '');
-- --------------------------------------------------------
--
-- Table structure for table `et_head`
--
CREATE TABLE IF NOT EXISTS `et_head` (
`et_id` int(11) NOT NULL,
`accountability_id` int(11) NOT NULL DEFAULT '0',
`category_id` int(11) NOT NULL DEFAULT '0',
`subcat_id` int(11) NOT NULL DEFAULT '0',
`create_date` varchar(100) DEFAULT NULL,
`et_desc` varchar(255) DEFAULT NULL,
`qty` decimal(10,2) NOT NULL DEFAULT '0.00',
`unit_id` int(11) NOT NULL DEFAULT '0',
`department` varchar(50) DEFAULT NULL,
`user_id` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `et_head`
--
INSERT INTO `et_head` (`et_id`, `accountability_id`, `category_id`, `subcat_id`, `create_date`, `et_desc`, `qty`, `unit_id`, `department`, `user_id`) VALUES
(1, 31, 1, 1, '2019-02-20 15:52:50', 'Screw Driver', '1.00', 1, 'IT Department', 1);
-- --------------------------------------------------------
--
-- Table structure for table `et_info`
--
CREATE TABLE IF NOT EXISTS `et_info` (
`et_id` int(11) NOT NULL,
`accountability_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`subcat_id` int(11) NOT NULL,
`model` varchar(100) DEFAULT NULL,
`brand` varchar(100) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
`serial_no` varchar(100) DEFAULT NULL,
`acquisition_date` varchar(100) DEFAULT NULL,
`create_date` varchar(100) DEFAULT NULL,
`date_issued` varchar(100) DEFAULT NULL,
`et_desc` varchar(255) DEFAULT NULL,
`qty` decimal(10,2) NOT NULL DEFAULT '0.00',
`unit_id` int(11) NOT NULL,
`unit_price` decimal(10,2) NOT NULL DEFAULT '0.00',
`location_id` int(11) NOT NULL,
`department_id` int(11) NOT NULL,
`remarks` text,
`damaged` int(11) DEFAULT '0',
`damaged_remarks` text,
`damaged_of_unit` text,
`aaf_no` varchar(100) DEFAULT NULL,
`asset_control_no` varchar(100) DEFAULT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `location`
--
CREATE TABLE IF NOT EXISTS `location` (
`location_id` int(11) NOT NULL,
`location_name` varchar(100) DEFAULT NULL,
`location_prefix` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `returned_et`
--
CREATE TABLE IF NOT EXISTS `returned_et` (
`return_id` int(11) NOT NULL,
`et_id` int(11) NOT NULL DEFAULT '0',
`accountability_id` int(11) NOT NULL DEFAULT '0',
`receive_by` int(11) NOT NULL DEFAULT '0',
`quantity` decimal(10,2) NOT NULL DEFAULT '0.00',
`ars_no` varchar(255) DEFAULT NULL,
`return_date` varchar(20) DEFAULT NULL,
`date_issued` varchar(20) DEFAULT NULL,
`create_date` varchar(100) DEFAULT NULL,
`return_remarks` text
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `returned_series`
--
CREATE TABLE IF NOT EXISTS `returned_series` (
`series_id` int(11) NOT NULL,
`prefix` varchar(100) DEFAULT NULL,
`series` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `returned_series`
--
INSERT INTO `returned_series` (`series_id`, `prefix`, `series`) VALUES
(1, '2019-02', 1001),
(2, '2019-02', 1001);
-- --------------------------------------------------------
--
-- Table structure for table `return_details`
--
CREATE TABLE IF NOT EXISTS `return_details` (
`rd_id` int(11) NOT NULL,
`return_id` int(11) NOT NULL DEFAULT '0',
`et_id` int(11) NOT NULL DEFAULT '0',
`ed_id` int(11) NOT NULL DEFAULT '0',
`date_issued` varchar(20) DEFAULT NULL,
`return_remarks` text
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `return_details`
--
INSERT INTO `return_details` (`rd_id`, `return_id`, `et_id`, `ed_id`, `date_issued`, `return_remarks`) VALUES
(1, 1, 1, 1, '', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `return_head`
--
CREATE TABLE IF NOT EXISTS `return_head` (
`return_id` int(11) NOT NULL,
`ars_no` varchar(255) DEFAULT NULL,
`atf_no` varchar(255) DEFAULT NULL,
`return_date` varchar(20) DEFAULT NULL,
`accountability_id` int(11) NOT NULL DEFAULT '0',
`received_by` int(11) NOT NULL DEFAULT '0',
`return_remarks` text,
`create_date` varchar(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `return_head`
--
INSERT INTO `return_head` (`return_id`, `ars_no`, `atf_no`, `return_date`, `accountability_id`, `received_by`, `return_remarks`, `create_date`) VALUES
(1, '2019-02-1001', '2019-1001', '2019-02-20', 31, 31, '', '2019-02-20 16:13:52');
-- --------------------------------------------------------
--
-- Table structure for table `subcategory`
--
CREATE TABLE IF NOT EXISTS `subcategory` (
`subcat_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL DEFAULT '0',
`subcat_name` varchar(100) DEFAULT NULL,
`subcat_prefix` varchar(100) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subcategory`
--
INSERT INTO `subcategory` (`subcat_id`, `category_id`, `subcat_name`, `subcat_prefix`) VALUES
(1, 1, 'Transportation Equipment', 'FFA-BBA');
-- --------------------------------------------------------
--
-- Table structure for table `transfer_details`
--
CREATE TABLE IF NOT EXISTS `transfer_details` (
`td_id` int(11) NOT NULL,
`transfer_id` int(11) NOT NULL DEFAULT '0',
`et_id` int(11) NOT NULL DEFAULT '0',
`ed_id` int(11) NOT NULL DEFAULT '0',
`date_issued` varchar(20) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `transfer_details`
--
INSERT INTO `transfer_details` (`td_id`, `transfer_id`, `et_id`, `ed_id`, `date_issued`) VALUES
(1, 1, 1, 1, '');
-- --------------------------------------------------------
--
-- Table structure for table `transfer_head`
--
CREATE TABLE IF NOT EXISTS `transfer_head` (
`transfer_id` int(11) NOT NULL,
`accountability_id` int(11) NOT NULL DEFAULT '0',
`transfer_to` int(11) NOT NULL DEFAULT '0',
`transfer_date` varchar(20) DEFAULT NULL,
`create_date` varchar(100) DEFAULT NULL,
`transfer_remarks` text
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `transfer_head`
--
INSERT INTO `transfer_head` (`transfer_id`, `accountability_id`, `transfer_to`, `transfer_date`, `create_date`, `transfer_remarks`) VALUES
(1, 31, 14, '2019-02-20', '2019-02-20 16:14:28', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `unit`
--
CREATE TABLE IF NOT EXISTS `unit` (
`unit_id` int(11) NOT NULL,
`unit_name` varchar(100) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `unit`
--
INSERT INTO `unit` (`unit_id`, `unit_name`) VALUES
(1, 'pc/s');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`user_id` int(11) NOT NULL,
`fullname` varchar(100) DEFAULT NULL,
`username` varchar(100) DEFAULT NULL,
`password` varchar(100) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`user_id`, `fullname`, `username`, `password`) VALUES
(1, 'admin', '<PASSWORD>', '<PASSWORD>');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `asset_series`
--
ALTER TABLE `asset_series`
ADD PRIMARY KEY (`asset_id`);
--
-- Indexes for table `atf_series`
--
ALTER TABLE `atf_series`
ADD PRIMARY KEY (`atf_id`);
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`category_id`);
--
-- Indexes for table `damage_info`
--
ALTER TABLE `damage_info`
ADD PRIMARY KEY (`damage_id`);
--
-- Indexes for table `damage_series`
--
ALTER TABLE `damage_series`
ADD PRIMARY KEY (`ds_id`);
--
-- Indexes for table `department`
--
ALTER TABLE `department`
ADD PRIMARY KEY (`department_id`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`employee_id`);
--
-- Indexes for table `employee_inclusion`
--
ALTER TABLE `employee_inclusion`
ADD PRIMARY KEY (`ei_id`);
--
-- Indexes for table `employee_series`
--
ALTER TABLE `employee_series`
ADD PRIMARY KEY (`empser_id`);
--
-- Indexes for table `et_details`
--
ALTER TABLE `et_details`
ADD PRIMARY KEY (`ed_id`);
--
-- Indexes for table `et_head`
--
ALTER TABLE `et_head`
ADD PRIMARY KEY (`et_id`);
--
-- Indexes for table `et_info`
--
ALTER TABLE `et_info`
ADD PRIMARY KEY (`et_id`);
--
-- Indexes for table `location`
--
ALTER TABLE `location`
ADD PRIMARY KEY (`location_id`);
--
-- Indexes for table `returned_et`
--
ALTER TABLE `returned_et`
ADD PRIMARY KEY (`return_id`);
--
-- Indexes for table `returned_series`
--
ALTER TABLE `returned_series`
ADD PRIMARY KEY (`series_id`);
--
-- Indexes for table `return_details`
--
ALTER TABLE `return_details`
ADD PRIMARY KEY (`rd_id`);
--
-- Indexes for table `return_head`
--
ALTER TABLE `return_head`
ADD PRIMARY KEY (`return_id`);
--
-- Indexes for table `subcategory`
--
ALTER TABLE `subcategory`
ADD PRIMARY KEY (`subcat_id`);
--
-- Indexes for table `transfer_details`
--
ALTER TABLE `transfer_details`
ADD PRIMARY KEY (`td_id`);
--
-- Indexes for table `transfer_head`
--
ALTER TABLE `transfer_head`
ADD PRIMARY KEY (`transfer_id`);
--
-- Indexes for table `unit`
--
ALTER TABLE `unit`
ADD PRIMARY KEY (`unit_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `asset_series`
--
ALTER TABLE `asset_series`
MODIFY `asset_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `atf_series`
--
ALTER TABLE `atf_series`
MODIFY `atf_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `damage_info`
--
ALTER TABLE `damage_info`
MODIFY `damage_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `damage_series`
--
ALTER TABLE `damage_series`
MODIFY `ds_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `department`
--
ALTER TABLE `department`
MODIFY `department_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `employee_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=122;
--
-- AUTO_INCREMENT for table `employee_inclusion`
--
ALTER TABLE `employee_inclusion`
MODIFY `ei_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `employee_series`
--
ALTER TABLE `employee_series`
MODIFY `empser_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `et_details`
--
ALTER TABLE `et_details`
MODIFY `ed_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `et_head`
--
ALTER TABLE `et_head`
MODIFY `et_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `et_info`
--
ALTER TABLE `et_info`
MODIFY `et_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `location`
--
ALTER TABLE `location`
MODIFY `location_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `returned_et`
--
ALTER TABLE `returned_et`
MODIFY `return_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `returned_series`
--
ALTER TABLE `returned_series`
MODIFY `series_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `return_details`
--
ALTER TABLE `return_details`
MODIFY `rd_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `return_head`
--
ALTER TABLE `return_head`
MODIFY `return_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `subcategory`
--
ALTER TABLE `subcategory`
MODIFY `subcat_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `transfer_details`
--
ALTER TABLE `transfer_details`
MODIFY `td_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `transfer_head`
--
ALTER TABLE `transfer_head`
MODIFY `transfer_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `unit`
--
ALTER TABLE `unit`
MODIFY `unit_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- MySQL Script generated by MySQL Workbench
-- Tue Nov 5 20:27:42 2019
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
DROP SCHEMA IF EXISTS `mydb` ;
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET utf8 ;
USE `mydb` ;
-- -----------------------------------------------------
-- Table `mydb`.`ingridients`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`ingridients` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `mydb`.`User-group`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`User-group` (
`id` INT NOT NULL,
`name` VARCHAR(45) NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `mydb`.`users`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`users` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NULL,
`User-group_id` INT NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_users_User-group1_idx` (`User-group_id` ASC) VISIBLE,
CONSTRAINT `fk_users_User-group1`
FOREIGN KEY (`User-group_id`)
REFERENCES `mydb`.`User-group` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `mydb`.`coctails`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`coctails` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NULL,
`users_id` INT NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_coctails_users1_idx` (`users_id` ASC) VISIBLE,
CONSTRAINT `fk_coctails_users1`
FOREIGN KEY (`users_id`)
REFERENCES `mydb`.`users` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `mydb`.`consist`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `mydb`.`consist` (
`id` INT NOT NULL AUTO_INCREMENT,
`ingridients_id` INT NOT NULL,
`coctails_id` INT NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_consist_ingridients_idx` (`ingridients_id` ASC) VISIBLE,
INDEX `fk_consist_coctails1_idx` (`coctails_id` ASC) VISIBLE,
CONSTRAINT `fk_consist_ingridients`
FOREIGN KEY (`ingridients_id`)
REFERENCES `mydb`.`ingridients` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_consist_coctails1`
FOREIGN KEY (`coctails_id`)
REFERENCES `mydb`.`coctails` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
DEF title = 'Column Sample Size (dba_tab_columns dba_tables)';
DEF filename = 'ColumnSampleSize.html';
DEF nextpage = 'ColumnNullAnalyzed.html';
DEF prevpage = 'LongVarchar2Histograms.html';
@@00_begin.sql
PRO
PRO
SET MARK HTML OFF;
PRO <h2>Sample Percent < 5%:</h2>
SET MARK HTML ON TABLE "class=sortable";
@@sql/sub/ColumnSampleSize.sql
SET MARK HTML OFF;
PRO <h2>Comments</h2>
PRO <p>Statistics with a low sample size might cause performance issues.</p>
@@00_end.sql
|
drop table ldap_oc_mappings;
drop sequence ldap_oc_mappings_id_seq;
create table ldap_oc_mappings
(
id serial not null primary key,
name varchar(64) not null,
keytbl varchar(64) not null,
keycol varchar(64) not null,
create_proc varchar(255),
delete_proc varchar(255),
expect_return int not null
);
drop table ldap_attr_mappings;
drop sequence ldap_attr_mappings_id_seq;
create table ldap_attr_mappings
(
id serial not null primary key,
oc_map_id integer not null references ldap_oc_mappings(id),
name varchar(255) not null,
sel_expr varchar(255) not null,
sel_expr_u varchar(255),
from_tbls varchar(255) not null,
join_where varchar(255),
add_proc varchar(255),
delete_proc varchar(255),
param_order int not null,
expect_return int not null
);
drop table ldap_entries;
drop sequence ldap_entries_id_seq;
create table ldap_entries
(
id serial not null primary key,
dn varchar(255) not null,
oc_map_id integer not null references ldap_oc_mappings(id),
parent int NOT NULL,
keyval int NOT NULL,
UNIQUE ( oc_map_id, keyval ),
UNIQUE ( dn )
);
drop table ldap_referrals;
create table ldap_referrals
(
entry_id integer not null references ldap_entries(id),
url text not null
);
drop table ldap_entry_objclasses;
create table ldap_entry_objclasses
(
entry_id integer not null references ldap_entries(id),
oc_name varchar(64)
);
|
<reponame>oinume/lekcije<filename>db/migrations/20180518060000_create_stat_daily_notification_event.sql
-- +goose Up
-- SQL in section 'Up' is executed when this migration is applied
CREATE TABLE stat_daily_notification_event (
`date` date NOT NULL,
`event` enum('click','delivered','open','deferred','dropped','bounce','block') COLLATE utf8mb4_bin NOT NULL,
`count` int(10) unsigned NOT NULL,
`uu_count` int(10) unsigned NOT NULL,
PRIMARY KEY (`date`,`event`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;
INSERT INTO stat_daily_notification_event SELECT * FROM stat_new_lesson_notifier;
-- +goose Down
-- SQL section 'Down' is executed when this migration is rolled back
DROP TABLE stat_daily_notification_event;
|
-- [database log]
ALTER TABLE `logs` ADD INDEX `log_expiredate` (`expiredate`);
ALTER TABLE `logs` ADD INDEX `log_caller` (`caller`);
ALTER TABLE `logs` ADD INDEX `log_code` (`code`);
|
<reponame>lycantropos/seek-well
CREATE OR REPLACE VIEW v_tournament_rake AS (
WITH
t_tournament_rake_by_date AS (
SELECT
tr.f_param_player_id AS f_player_id,
tr.f_stamp::DATE AS f_date,
tour.f_tournament_type,
(SUM(tr.f_value)::NUMERIC / 100) AS f_value -- in dollars
FROM
v_completed_transactions_on_real_money AS tr,
t_tournament AS tour
WHERE
tour.f_id = tr.f_param_tournament_id AND
tr.f_type IN (69, 71, 510, 511)
GROUP BY
tr.f_param_player_id,
f_date,
tour.f_tournament_type
)
SELECT
f_player_id,
f_date,
SUM(CASE WHEN f_tournament_type = 'G' THEN f_value ELSE 0 END) AS f_SNG_rake,
SUM(CASE WHEN f_tournament_type = 'S' THEN f_value ELSE 0 END) AS f_MTT_rake
FROM
t_tournament_rake_by_date
GROUP BY
f_player_id,
f_date
); |
-- file:alter_table.sql ln:760 expect:true
alter table myview alter column test drop not null
|
DROP DATABASE IF EXISTS employees_db;
CREATE DATABASE employees_db;
USE employees_db;
CREATE TABLE departments (
id INT NOT NULL AUTO_INCREMENT,
dept_name VARCHAR(30) NOT NULL,
PRIMARY KEY(id)
);
CREATE TABLE roles (
id INT NOT NULL AUTO_INCREMENT,
title VARCHAR(100) NOT NULL,
salary DECIMAL,
department_id INT NULL,
PRIMARY KEY(id)
);
CREATE TABLE employees (
id INT NOT NULL AUTO_INCREMENT,
first_name VARCHAR(30) NOT NULL,
last_name VARCHAR(30) NOT NULL,
role_id INT NULL,
manager_id INT NULL,
PRIMARY KEY(id)
);
ALTER TABLE departments AUTO_INCREMENT=11;
ALTER TABLE roles AUTO_INCREMENT=101;
ALTER TABLE employees AUTO_INCREMENT=1001;
-- add manager name column
ALTER TABLE employees ADD manager_name VARCHAR(150); |
<filename>Databases/monthlyScholarships.sql
CREATE PROCEDURE monthlyScholarships()
BEGIN
SELECT id, scholarship/12 FROM scholarships;
END
/*
Students at your university get scholarships that are paid out throughout the year.
Information about the scholarships is stored in the table scholarships, which has the structure:
id: the unique student id;
scholarship: the amount of the annual scholarship the student has been awarded.
Now you need to calculate the amount of money each student should get per month. Given the table scholarships, build the resulting table as follows:
The table should have the same columns as the initial table, but the scholarship column should contain the amount of the student's monthly scholarship payout.
The rows should be ordered by the students' ids.
Example
For the following table scholarships
id scholarship
----------------
1 12000
2 18000
3 24000
4 15000
5 21000
6 13000
*/
|
/*
SQLyog Community v13.1.5 (64 bit)
MySQL - 8.0.17 : Database - oauth
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`oauth` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `oauth`;
/*Table structure for table `oauth_access_tokens` */
DROP TABLE IF EXISTS `oauth_access_tokens`;
CREATE TABLE `oauth_access_tokens` (
`access_token` varchar(40) NOT NULL COMMENT 'access_token',
`client_id` varchar(80) NOT NULL COMMENT 'Appid',
`user_id` varchar(255) DEFAULT NULL COMMENT 'id',
`expires` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'date("Y-m-d H:i:s")',
`scope` varchar(2000) DEFAULT NULL COMMENT 'scope',
PRIMARY KEY (`access_token`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_access_tokens` */
/*Table structure for table `oauth_authorization_codes` */
DROP TABLE IF EXISTS `oauth_authorization_codes`;
CREATE TABLE `oauth_authorization_codes` (
`authorization_code` varchar(40) NOT NULL COMMENT 'Authorization code,access_token',
`client_id` varchar(80) NOT NULL COMMENT 'Appid',
`user_id` varchar(255) DEFAULT NULL COMMENT 'id',
`redirect_uri` varchar(2000) DEFAULT NULL COMMENT 'url',
`expires` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'date("Y-m-d H:i:s")',
`scope` varchar(2000) DEFAULT NULL COMMENT 'scope',
PRIMARY KEY (`authorization_code`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_authorization_codes` */
/*Table structure for table `oauth_clients` */
DROP TABLE IF EXISTS `oauth_clients`;
CREATE TABLE `oauth_clients` (
`client_id` varchar(80) NOT NULL COMMENT 'AppId',
`client_secret` varchar(80) NOT NULL COMMENT 'AppSecret',
`redirect_uri` varchar(2000) NOT NULL COMMENT 'url',
`grant_types` varchar(80) DEFAULT NULL COMMENT 'grant_type',
`scope` varchar(100) DEFAULT NULL COMMENT 'scope',
`user_id` varchar(80) DEFAULT NULL COMMENT 'user_id',
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_clients` */
insert into `oauth_clients`(`client_id`,`client_secret`,`redirect_uri`,`grant_types`,`scope`,`user_id`) values
('client2','pass2','http://localhost','authorization_code','file node userinfo cloud','xiaocao'),
('testclient','testpass','http://localhost','client_credentials password authorization_code refresh_token','file node userinfo cloud','xiaocao');
/*Table structure for table `oauth_jwt` */
DROP TABLE IF EXISTS `oauth_jwt`;
CREATE TABLE `oauth_jwt` (
`client_id` varchar(80) NOT NULL COMMENT 'id',
`subject` varchar(80) DEFAULT NULL,
`public_key` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_jwt` */
/*Table structure for table `oauth_refresh_tokens` */
DROP TABLE IF EXISTS `oauth_refresh_tokens`;
CREATE TABLE `oauth_refresh_tokens` (
`refresh_token` varchar(40) NOT NULL COMMENT 'refresh_token for access_token',
`client_id` varchar(80) NOT NULL COMMENT 'AppId',
`user_id` varchar(255) DEFAULT NULL COMMENT 'id',
`expires` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'date("Y-m-d H:i:s")',
`scope` varchar(2000) DEFAULT NULL COMMENT 'scope',
PRIMARY KEY (`refresh_token`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_refresh_tokens` */
/*Table structure for table `oauth_scopes` */
DROP TABLE IF EXISTS `oauth_scopes`;
CREATE TABLE `oauth_scopes` (
`scope` text COMMENT 'scope',
`is_default` tinyint(1) DEFAULT NULL COMMENT 'Default 1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_scopes` */
insert into `oauth_scopes`(`scope`,`is_default`) values
('userinfo',1),
('file',1),
('node',1),
('cloud',1),
('share',1);
/*Table structure for table `oauth_users` */
DROP TABLE IF EXISTS `oauth_users`;
CREATE TABLE `oauth_users` (
`username` varchar(255) NOT NULL COMMENT 'username',
`password` varchar(2000) DEFAULT NULL COMMENT 'password',
`first_name` varchar(255) DEFAULT NULL COMMENT 'firstname',
`last_name` varchar(255) DEFAULT NULL COMMENT 'lastname',
PRIMARY KEY (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*Data for the table `oauth_users` */
insert into `oauth_users`(`username`,`password`,`first_name`,`last_name`) values
('user','pass','<PASSWORD>','<PASSWORD>'),
('username','password','<PASSWORD>','<PASSWORD>');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
SELECT
src_ip ,
sum(bytes) as bytes
FROM ${database}."flowlogs"
group by src_ip
order by bytes desc;
|
<gh_stars>1-10
-- LegalEntityCountryCode must contain a valid three character GENC country code. U.S. Territories and Freely
-- Associated States must be submitted with country code = USA and their state/territory code; they cannot be submitted
-- with their GENC country code.
SELECT
dafa.row_number,
dafa.legal_entity_country_code
FROM detached_award_financial_assistance AS dafa
WHERE submission_id={0}
AND NOT EXISTS (
SELECT 1
FROM country_code AS cc
WHERE UPPER(dafa.legal_entity_country_code) = UPPER(cc.country_code)
AND cc.territory_free_state IS FALSE
);
|
<reponame>williamjie/sprintboot_test
CREATE TABLE `tp_user` (
`user_id` int(10) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`tel` bigint(19) NOT NULL COMMENT '手机号=用户名',
`password` varchar(35) NOT NULL COMMENT '密码',
`nickname` varchar(30) DEFAULT NULL COMMENT '昵称',
`secret` varchar(35) NOT NULL COMMENT '秘钥',
`portrait` varchar(120) DEFAULT NULL COMMENT '头像地址',
`i_card` varchar(18) NOT NULL DEFAULT '' COMMENT '身份证',
`area` int(10) NOT NULL DEFAULT '0' COMMENT '所在区域',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
`update_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=238 DEFAULT CHARSET=utf8 |
<reponame>BanzaiTokyo/tokyo
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64)
--
-- Host: localhost Database: askapp
-- ------------------------------------------------------
-- Server version 5.7.19
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `account_emailaddress`
--
DROP TABLE IF EXISTS `account_emailaddress`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_emailaddress` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(254) NOT NULL,
`verified` tinyint(1) NOT NULL,
`primary` tinyint(1) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`),
KEY `account_emailaddress_user_id_2c513194_fk_auth_user_id` (`user_id`),
CONSTRAINT `account_emailaddress_user_id_2c513194_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `account_emailaddress`
--
LOCK TABLES `account_emailaddress` WRITE;
/*!40000 ALTER TABLE `account_emailaddress` DISABLE KEYS */;
/*!40000 ALTER TABLE `account_emailaddress` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `account_emailconfirmation`
--
DROP TABLE IF EXISTS `account_emailconfirmation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_emailconfirmation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`sent` datetime(6) DEFAULT NULL,
`key` varchar(64) NOT NULL,
`email_address_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `key` (`key`),
KEY `account_emailconfirm_email_address_id_5b7f8c58_fk_account_e` (`email_address_id`),
CONSTRAINT `account_emailconfirm_email_address_id_5b7f8c58_fk_account_e` FOREIGN KEY (`email_address_id`) REFERENCES `account_emailaddress` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `account_emailconfirmation`
--
LOCK TABLES `account_emailconfirmation` WRITE;
/*!40000 ALTER TABLE `account_emailconfirmation` DISABLE KEYS */;
/*!40000 ALTER TABLE `account_emailconfirmation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_auditmodel`
--
DROP TABLE IF EXISTS `askapp_auditmodel`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_auditmodel` (
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_auditmodel`
--
LOCK TABLES `askapp_auditmodel` WRITE;
/*!40000 ALTER TABLE `askapp_auditmodel` DISABLE KEYS */;
/*!40000 ALTER TABLE `askapp_auditmodel` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_auditthread`
--
DROP TABLE IF EXISTS `askapp_auditthread`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_auditthread` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action` longtext NOT NULL,
`created` datetime(6) NOT NULL,
`content` longtext,
`thread_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `askapp_auditthread_user_id_f0857531_fk_auth_user_id` (`user_id`),
KEY `askapp_auditthread_thread_id_cfe3ab22_fk_askapp_thread_id` (`thread_id`),
CONSTRAINT `askapp_auditthread_thread_id_cfe3ab22_fk_askapp_thread_id` FOREIGN KEY (`thread_id`) REFERENCES `askapp_thread` (`id`),
CONSTRAINT `askapp_auditthread_user_id_f0857531_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_auditthread`
--
LOCK TABLES `askapp_auditthread` WRITE;
/*!40000 ALTER TABLE `askapp_auditthread` DISABLE KEYS */;
INSERT INTO `askapp_auditthread` VALUES (1,'sticky','2020-10-18 20:57:27.423467',NULL,3,1);
/*!40000 ALTER TABLE `askapp_auditthread` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_post`
--
DROP TABLE IF EXISTS `askapp_post`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_post` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`parent_id` int(11) DEFAULT NULL,
`text` longtext,
`is_answer` tinyint(1) NOT NULL,
`thread_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`level` int(10) unsigned NOT NULL,
`lft` int(10) unsigned NOT NULL,
`rght` int(10) unsigned NOT NULL,
`tree_id` int(10) unsigned NOT NULL,
`deleted` tinyint(1) NOT NULL,
`accepted` datetime(6) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `askapp_post_thread_id_d9db3a2d_fk_askapp_thread_id` (`thread_id`),
KEY `askapp_post_user_id_da83df60_fk_auth_user_id` (`user_id`),
KEY `askapp_post_parent_id_904a68f7_fk_askapp_post_id` (`parent_id`),
KEY `askapp_post_tree_id_0be5a134` (`tree_id`),
CONSTRAINT `askapp_post_parent_id_904a68f7_fk_askapp_post_id` FOREIGN KEY (`parent_id`) REFERENCES `askapp_post` (`id`),
CONSTRAINT `askapp_post_thread_id_d9db3a2d_fk_askapp_thread_id` FOREIGN KEY (`thread_id`) REFERENCES `askapp_thread` (`id`),
CONSTRAINT `askapp_post_user_id_da83df60_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_post`
--
LOCK TABLES `askapp_post` WRITE;
/*!40000 ALTER TABLE `askapp_post` DISABLE KEYS */;
INSERT INTO `askapp_post` VALUES (1,'2020-10-18 19:22:21.452923',NULL,'Thanks for your interest in AskApp. We also believe that it is a nice content management tool. Unfortunately we haven\'t written a comprehensive documentation where you can learn about everything AskApp can do. But this is how Open Source works - if you see something is missing in a repository, feel free to contribute. If you are not interested in writing the doc yourself, you can post an issue in the repository. That way we\'ll know what exactly you need and we\'ll do our best to help. Isues motivate us to move forward.',0,6,1,0,1,4,1,0,NULL),(2,'2020-10-18 19:28:51.228877',1,'This is nice to hear, I will check out AskApp repository and see how I could contribute!',0,6,4,1,2,3,1,0,NULL),(3,'2020-10-18 20:58:01.809000',NULL,'Why is this article highlighted?',0,3,1,0,1,4,2,0,NULL),(4,'2020-10-18 20:59:16.800263',3,'I am glad you have asked! In the admin panel you can choose to make any document sticky. It will make the document appear at the top of the feed for the duration of time you chose for it to be sticky. You can program the document to be sticky for any duration. Once the period expired, the document will return to being normal.',0,3,4,1,2,3,2,0,NULL);
/*!40000 ALTER TABLE `askapp_post` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_postlike`
--
DROP TABLE IF EXISTS `askapp_postlike`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_postlike` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`points` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`post_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `askapp_postlike_user_id_5dc04ebc_fk_auth_user_id` (`user_id`),
KEY `askapp_postlike_post_id_c7c2d1ea_fk_askapp_post_id` (`post_id`),
CONSTRAINT `askapp_postlike_post_id_c7c2d1ea_fk_askapp_post_id` FOREIGN KEY (`post_id`) REFERENCES `askapp_post` (`id`),
CONSTRAINT `askapp_postlike_user_id_5dc04ebc_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_postlike`
--
LOCK TABLES `askapp_postlike` WRITE;
/*!40000 ALTER TABLE `askapp_postlike` DISABLE KEYS */;
/*!40000 ALTER TABLE `askapp_postlike` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_profile`
--
DROP TABLE IF EXISTS `askapp_profile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_profile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`avatar` varchar(100) NOT NULL,
`country` varchar(2) NOT NULL,
`city` varchar(50) NOT NULL,
`about` longtext NOT NULL,
`user_id` int(11) NOT NULL,
`level_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
KEY `askapp_profile_level_id_ab8f8537_fk_askapp_userlevel_id` (`level_id`),
CONSTRAINT `askapp_profile_level_id_ab8f8537_fk_askapp_userlevel_id` FOREIGN KEY (`level_id`) REFERENCES `askapp_userlevel` (`id`),
CONSTRAINT `askapp_profile_user_id_d55e2c5d_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_profile`
--
LOCK TABLES `askapp_profile` WRITE;
/*!40000 ALTER TABLE `askapp_profile` DISABLE KEYS */;
INSERT INTO `askapp_profile` VALUES (1,'user_profile/askapp1.jpg','FR','Toulouse','I am a testing admin account. My password is <PASSWORD>. The same as for all other test users.',1,1),(4,'user_profile/RamenRyan3.jpg','KH','<NAME>','I am a test user, I don\'t really live in Cambodia.',3,1),(5,'user_profile/SobaSmith4.jpg','GB','London','I am a test user. I don\'t exist in real life.',4,1),(6,'user_profile/CarlosYuzu5.jpg','AR','Buenos Aires','I am just a test user',5,1),(7,'user_profile/BarbaraEbara6.jpg','JP','Toyama','I am a test user, I don\'t exist in real life. But Ebara exists. It is a tiny train station near Toyama city in Japan.',6,1);
/*!40000 ALTER TABLE `askapp_profile` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_tag`
--
DROP TABLE IF EXISTS `askapp_tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_tag` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(60) NOT NULL,
`slug` varchar(60) NOT NULL,
PRIMARY KEY (`id`),
KEY `askapp_tag_slug_85920a06` (`slug`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_tag`
--
LOCK TABLES `askapp_tag` WRITE;
/*!40000 ALTER TABLE `askapp_tag` DISABLE KEYS */;
INSERT INTO `askapp_tag` VALUES (1,'AskApp','askapp'),(2,'Example','example'),(3,'FunFact','funfact');
/*!40000 ALTER TABLE `askapp_tag` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_thread`
--
DROP TABLE IF EXISTS `askapp_thread`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_thread` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hidden` tinyint(1) NOT NULL,
`closed` tinyint(1) NOT NULL,
`sticky` date DEFAULT NULL,
`featured` tinyint(1) NOT NULL,
`created` datetime(6) NOT NULL,
`modified` datetime(6) NOT NULL,
`thread_type` varchar(2) DEFAULT NULL,
`text` longtext,
`title` varchar(255) DEFAULT NULL,
`image` varchar(100) DEFAULT NULL,
`score` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`link` varchar(200) DEFAULT NULL,
`thumbnail` varchar(100) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL,
`domain` varchar(255) DEFAULT NULL,
`original_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `askapp_thread_link_cab6fd3a_uniq` (`link`),
KEY `askapp_thread_user_id_e7f37374_fk_auth_user_id` (`user_id`),
KEY `askapp_thread_original_id_87c0a1ba_fk_askapp_thread_id` (`original_id`),
CONSTRAINT `askapp_thread_original_id_87c0a1ba_fk_askapp_thread_id` FOREIGN KEY (`original_id`) REFERENCES `askapp_thread` (`id`),
CONSTRAINT `askapp_thread_user_id_e7f37374_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_thread`
--
LOCK TABLES `askapp_thread` WRITE;
/*!40000 ALTER TABLE `askapp_thread` DISABLE KEYS */;
INSERT INTO `askapp_thread` VALUES (1,0,0,NULL,0,'2020-10-18 18:49:39.287907','2020-10-18 18:49:39.287950','DD','Here\'s a photo of a web sloth. Because why not. You can use AskApp for any content.','Wet Sloth','uploads/images/2020/10/18/wet_sloth.jpg',0,5,NULL,'',0,NULL,NULL),(2,0,0,NULL,0,'2020-10-18 18:53:09.540153','2020-10-18 18:53:09.540200','YT','There is a YouTube video type of document in AskApp. You can just paste the YouTube URL and click \"Preload\" button and it will pull the video\'s description from youtube that you can later modify.','PSY - GANGNAM STYLE','uploads/images/2020/10/18/9bZkp7q19f0.jpg',0,5,'https://www.youtube.com/watch?v=9bZkp7q19f0','',0,NULL,NULL),(3,0,0,'2021-10-26',0,'2020-10-18 18:54:19.988537','2020-10-18 20:57:27.421241','DD','The main feature of AskApp is content curation. Much like HackerNews or Reddit, the articles posted here are displayed in a chronological order and the top page features the most upvoted articles with the priority given to more recent posts.','What is AskApp About?','',2,4,NULL,'',0,NULL,NULL),(4,0,0,NULL,0,'2020-10-18 19:10:08.782238','2020-10-18 20:54:48.837363','LL','It is a showcase website for AspApp. It collects and curates articles about Japan. You can find all types of documents - Links, Discussions, YouTube videos.','Akihabara.Tokyo','uploads/images/2020/10/18/largelogo_6l3yibd.jpg',1,4,'https://akihabara.tokyo','',0,'akihabara.tokyo',NULL),(5,0,0,NULL,1,'2020-10-18 19:21:10.659009','2020-10-18 19:24:43.658746','DD','This is an example of a featured document. It doesn\'t matter what type it is, it can be a Link, a Discussion or a YouTube video. The point of being featured is that it will appear in the feed highlighted. Unlike a Sticky document, it will not remain at the top of the feed, but will be pushed down in the Recent feed as new documents are added. It may or may not get featured on the Top page depending on the number of upvotes it gets, just like any other document.','This is a Featured Document','',0,3,NULL,'',0,NULL,NULL),(6,0,0,NULL,0,'2020-10-18 19:21:52.418147','2020-10-18 19:21:52.418182','DD','AskApp looks cool and I would be interested in using it, but I can\'t seem to find complete documentation. I wish there was a place where I could read about all the features.','I wish there was a more complete documentation','',0,3,NULL,'',0,NULL,NULL),(7,0,0,NULL,0,'2020-10-18 19:36:43.119561','2020-10-18 19:36:43.119597','LL','AskApp is the content curation and community building system. It is simple, yet flexible. If you are reading this you have already cloned the code from the repository and even managed to run the dockerezed version locally. Great job!','Here\'s AskApp code repository','',0,1,'https://github.com/BanzaiTokyo/askapp','',0,'github.com',NULL);
/*!40000 ALTER TABLE `askapp_thread` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_thread_tags`
--
DROP TABLE IF EXISTS `askapp_thread_tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_thread_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`thread_id` int(11) NOT NULL,
`tag_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `askapp_thread_tags_thread_id_tag_id_995ef60a_uniq` (`thread_id`,`tag_id`),
KEY `askapp_thread_tags_tag_id_09eae662_fk_askapp_tag_id` (`tag_id`),
CONSTRAINT `askapp_thread_tags_tag_id_09eae662_fk_askapp_tag_id` FOREIGN KEY (`tag_id`) REFERENCES `askapp_tag` (`id`),
CONSTRAINT `askapp_thread_tags_thread_id_46786677_fk_askapp_thread_id` FOREIGN KEY (`thread_id`) REFERENCES `askapp_thread` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_thread_tags`
--
LOCK TABLES `askapp_thread_tags` WRITE;
/*!40000 ALTER TABLE `askapp_thread_tags` DISABLE KEYS */;
INSERT INTO `askapp_thread_tags` VALUES (1,1,3),(2,2,3),(3,3,1),(4,4,1),(5,5,1),(6,6,1),(7,7,1);
/*!40000 ALTER TABLE `askapp_thread_tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_threadlike`
--
DROP TABLE IF EXISTS `askapp_threadlike`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_threadlike` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime(6) NOT NULL,
`points` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`thread_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `askapp_threadlike_user_id_359acf5e_fk_auth_user_id` (`user_id`),
KEY `askapp_threadlike_thread_id_f6ffde17_fk_askapp_thread_id` (`thread_id`),
CONSTRAINT `askapp_threadlike_thread_id_f6ffde17_fk_askapp_thread_id` FOREIGN KEY (`thread_id`) REFERENCES `askapp_thread` (`id`),
CONSTRAINT `askapp_threadlike_user_id_359acf5e_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_threadlike`
--
LOCK TABLES `askapp_threadlike` WRITE;
/*!40000 ALTER TABLE `askapp_threadlike` DISABLE KEYS */;
INSERT INTO `askapp_threadlike` VALUES (1,'2020-10-18 19:19:27.714051',2,1,3),(2,'2020-10-18 19:19:29.396234',1,1,4);
/*!40000 ALTER TABLE `askapp_threadlike` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `askapp_userlevel`
--
DROP TABLE IF EXISTS `askapp_userlevel`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `askapp_userlevel` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`upvotes` int(11) NOT NULL,
`downvotes` int(11) NOT NULL,
`upvote_same` int(11) NOT NULL,
`downvote_same` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `askapp_userlevel`
--
LOCK TABLES `askapp_userlevel` WRITE;
/*!40000 ALTER TABLE `askapp_userlevel` DISABLE KEYS */;
INSERT INTO `askapp_userlevel` VALUES (1,'Level 1',3,0,1,1);
/*!40000 ALTER TABLE `askapp_userlevel` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group`
--
DROP TABLE IF EXISTS `auth_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group`
--
LOCK TABLES `auth_group` WRITE;
/*!40000 ALTER TABLE `auth_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_group_permissions`
--
DROP TABLE IF EXISTS `auth_group_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_group_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_group_permissions`
--
LOCK TABLES `auth_group_permissions` WRITE;
/*!40000 ALTER TABLE `auth_group_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_permission`
--
DROP TABLE IF EXISTS `auth_permission`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_permission` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`content_type_id` int(11) NOT NULL,
`codename` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_permission`
--
LOCK TABLES `auth_permission` WRITE;
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
INSERT INTO `auth_permission` VALUES (1,'Can add Preference',1,'add_preference'),(2,'Can change Preference',1,'change_preference'),(3,'Can delete Preference',1,'delete_preference'),(4,'Can view Preference',1,'view_preference'),(5,'Can add Comment',2,'add_post'),(6,'Can change Comment',2,'change_post'),(7,'Can delete Comment',2,'delete_post'),(8,'Can view Comment',2,'view_post'),(9,'Can add tag',3,'add_tag'),(10,'Can change tag',3,'change_tag'),(11,'Can delete tag',3,'delete_tag'),(12,'Can view tag',3,'view_tag'),(13,'Can add action',4,'add_action'),(14,'Can change action',4,'change_action'),(15,'Can delete action',4,'delete_action'),(16,'Can view action',4,'view_action'),(17,'Can add thread',5,'add_thread'),(18,'Can change thread',5,'change_thread'),(19,'Can delete thread',5,'delete_thread'),(20,'Can view thread',5,'view_thread'),(21,'Can add post like',6,'add_postlike'),(22,'Can change post like',6,'change_postlike'),(23,'Can delete post like',6,'delete_postlike'),(24,'Can view post like',6,'view_postlike'),(25,'Can add thread like',7,'add_threadlike'),(26,'Can change thread like',7,'change_threadlike'),(27,'Can delete thread like',7,'delete_threadlike'),(28,'Can view thread like',7,'view_threadlike'),(29,'Can add profile',8,'add_profile'),(30,'Can change profile',8,'change_profile'),(31,'Can delete profile',8,'delete_profile'),(32,'Can view profile',8,'view_profile'),(33,'Can add audit thread',9,'add_auditthread'),(34,'Can change audit thread',9,'change_auditthread'),(35,'Can delete audit thread',9,'delete_auditthread'),(36,'Can view audit thread',9,'view_auditthread'),(37,'Can add user level',10,'add_userlevel'),(38,'Can change user level',10,'change_userlevel'),(39,'Can delete user level',10,'delete_userlevel'),(40,'Can view user level',10,'view_userlevel'),(41,'Can add log entry',11,'add_logentry'),(42,'Can change log entry',11,'change_logentry'),(43,'Can delete log entry',11,'delete_logentry'),(44,'Can view log entry',11,'view_logentry'),(45,'Can add permission',12,'add_permission'),(46,'Can change permission',12,'change_permission'),(47,'Can delete permission',12,'delete_permission'),(48,'Can view permission',12,'view_permission'),(49,'Can add group',13,'add_group'),(50,'Can change group',13,'change_group'),(51,'Can delete group',13,'delete_group'),(52,'Can view group',13,'view_group'),(53,'Can add user',14,'add_user'),(54,'Can change user',14,'change_user'),(55,'Can delete user',14,'delete_user'),(56,'Can view user',14,'view_user'),(57,'Can add content type',15,'add_contenttype'),(58,'Can change content type',15,'change_contenttype'),(59,'Can delete content type',15,'delete_contenttype'),(60,'Can view content type',15,'view_contenttype'),(61,'Can add session',16,'add_session'),(62,'Can change session',16,'change_session'),(63,'Can delete session',16,'delete_session'),(64,'Can view session',16,'view_session'),(65,'Can add registration profile',17,'add_registrationprofile'),(66,'Can change registration profile',17,'change_registrationprofile'),(67,'Can delete registration profile',17,'delete_registrationprofile'),(68,'Can view registration profile',17,'view_registrationprofile'),(69,'Can add supervised registration profile',18,'add_supervisedregistrationprofile'),(70,'Can change supervised registration profile',18,'change_supervisedregistrationprofile'),(71,'Can delete supervised registration profile',18,'delete_supervisedregistrationprofile'),(72,'Can view supervised registration profile',18,'view_supervisedregistrationprofile'),(73,'Can change config',19,'change_config'),(74,'Can view config',19,'view_config'),(75,'Can add constance',20,'add_constance'),(76,'Can change constance',20,'change_constance'),(77,'Can delete constance',20,'delete_constance'),(78,'Can view constance',20,'view_constance'),(79,'Can add audit model',21,'add_auditmodel'),(80,'Can change audit model',21,'change_auditmodel'),(81,'Can delete audit model',21,'delete_auditmodel'),(82,'Can view audit model',21,'view_auditmodel'),(83,'Can add log entry',22,'add_logentry'),(84,'Can change log entry',22,'change_logentry'),(85,'Can delete log entry',22,'delete_logentry'),(86,'Can view log entry',22,'view_logentry'),(87,'Can add site',23,'add_site'),(88,'Can change site',23,'change_site'),(89,'Can delete site',23,'delete_site'),(90,'Can view site',23,'view_site'),(91,'Can add email address',24,'add_emailaddress'),(92,'Can change email address',24,'change_emailaddress'),(93,'Can delete email address',24,'delete_emailaddress'),(94,'Can view email address',24,'view_emailaddress'),(95,'Can add email confirmation',25,'add_emailconfirmation'),(96,'Can change email confirmation',25,'change_emailconfirmation'),(97,'Can delete email confirmation',25,'delete_emailconfirmation'),(98,'Can view email confirmation',25,'view_emailconfirmation'),(99,'Can add social account',26,'add_socialaccount'),(100,'Can change social account',26,'change_socialaccount'),(101,'Can delete social account',26,'delete_socialaccount'),(102,'Can view social account',26,'view_socialaccount'),(103,'Can add social application',27,'add_socialapp'),(104,'Can change social application',27,'change_socialapp'),(105,'Can delete social application',27,'delete_socialapp'),(106,'Can view social application',27,'view_socialapp'),(107,'Can add social application token',28,'add_socialtoken'),(108,'Can change social application token',28,'change_socialtoken'),(109,'Can delete social application token',28,'delete_socialtoken'),(110,'Can view social application token',28,'view_socialtoken');
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user`
--
DROP TABLE IF EXISTS `auth_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`password` varchar(128) NOT NULL,
`last_login` datetime(6) DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL,
`username` varchar(150) NOT NULL,
`first_name` varchar(150) NOT NULL,
`last_name` varchar(150) NOT NULL,
`email` varchar(254) NOT NULL,
`is_staff` tinyint(1) NOT NULL,
`is_active` tinyint(1) NOT NULL,
`date_joined` datetime(6) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user`
--
LOCK TABLES `auth_user` WRITE;
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
INSERT INTO `auth_user` VALUES (1,'pbkdf2_sha256$150000$7YO0IhWrnNGW$r2KhVW5tickuP9JoRaeOZvRhiqUZK7QPPtKksuuIkSU=','2020-10-19 19:18:50.340697',1,'askapp','','','<EMAIL>',1,1,'2020-09-26 22:06:39.198823'),(3,'pbkdf2_sha256$150000$fwFqzKH9ROrI$H3cW69NtUf3uQ9tk6RygKZ9iau4jCnywoZoTGrZrdxk=','2020-10-18 19:29:12.928720',0,'RamenRyan','','','',0,1,'2020-10-18 18:20:46.207807'),(4,'pbkdf2_sha256$150000$qN4UDoyLPglg$avwS2tIA6jtvjBa4w9BbwoMeasBMYtFtWUdZwdlJQTY=','2020-10-18 20:58:18.611945',0,'SobaSmith','','','',0,1,'2020-10-18 18:22:07.327790'),(5,'pbkdf2_sha256$150000$ZbkgNqo5dtme$US5eysEmoevtEUFaGa5Hej3aho90R2oRcRVJoPH7Ra8=','2020-10-18 18:49:12.304445',0,'CarlosYuzu','','','',0,1,'2020-10-18 18:22:38.357723'),(6,'pbkdf2_sha256$150000$QsQDnp8hodS1$c+zktvRPM5UOBlQ7zCppektCOBhCelaFKWZqbfPTTbM=','2020-10-18 19:30:36.986458',0,'BarbaraEbara','','','',0,1,'2020-10-18 18:23:48.997651');
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_groups`
--
DROP TABLE IF EXISTS `auth_user_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_groups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`group_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_groups`
--
LOCK TABLES `auth_user_groups` WRITE;
/*!40000 ALTER TABLE `auth_user_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `auth_user_user_permissions`
--
DROP TABLE IF EXISTS `auth_user_user_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auth_user_user_permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`permission_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `auth_user_user_permissions`
--
LOCK TABLES `auth_user_user_permissions` WRITE;
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `constance_config`
--
DROP TABLE IF EXISTS `constance_config`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `constance_config` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(255) NOT NULL,
`value` longtext,
PRIMARY KEY (`id`),
UNIQUE KEY `key` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `constance_config`
--
LOCK TABLES `constance_config` WRITE;
/*!40000 ALTER TABLE `constance_config` DISABLE KEYS */;
INSERT INTO `constance_config` VALUES (1,'SITE_LOGO','gAJYDgAAAHRleHRidWJibGUucG5ncQAu'),(2,'SITE_NAME','gAJYCwAAAEFza0FwcCBEZW1vcQAu'),(3,'ABOUT_TEXT','<KEY>'),(4,'REGISTRATION_OPEN','gAKILg=='),(5,'NUM_DOMAIN_STATS','gAJLMi4=');
/*!40000 ALTER TABLE `constance_config` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_admin_log`
--
DROP TABLE IF EXISTS `django_admin_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_admin_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`action_time` datetime(6) NOT NULL,
`object_id` longtext,
`object_repr` varchar(200) NOT NULL,
`action_flag` smallint(5) unsigned NOT NULL,
`change_message` longtext NOT NULL,
`content_type_id` int(11) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
CONSTRAINT `django_admin_log_user_id_c564eba6_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_admin_log`
--
LOCK TABLES `django_admin_log` WRITE;
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
INSERT INTO `django_admin_log` VALUES (1,'2020-10-18 18:20:46.363205','3','RamenRyan',1,'[{\"added\": {}}]',14,1);
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_content_type`
--
DROP TABLE IF EXISTS `django_content_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_content_type` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app_label` varchar(100) NOT NULL,
`model` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_content_type_app_label_model_76bd3d3b_uniq` (`app_label`,`model`)
) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_content_type`
--
LOCK TABLES `django_content_type` WRITE;
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
INSERT INTO `django_content_type` VALUES (24,'account','emailaddress'),(25,'account','emailconfirmation'),(22,'admin','logentry'),(4,'askapp','action'),(21,'askapp','auditmodel'),(9,'askapp','auditthread'),(2,'askapp','post'),(6,'askapp','postlike'),(8,'askapp','profile'),(3,'askapp','tag'),(5,'askapp','thread'),(7,'askapp','threadlike'),(10,'askapp','userlevel'),(13,'auth','group'),(12,'auth','permission'),(14,'auth','user'),(19,'constance','config'),(15,'contenttypes','contenttype'),(20,'database','constance'),(17,'registration','registrationprofile'),(18,'registration','supervisedregistrationprofile'),(16,'sessions','session'),(23,'sites','site'),(26,'socialaccount','socialaccount'),(27,'socialaccount','socialapp'),(28,'socialaccount','socialtoken');
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_migrations`
--
DROP TABLE IF EXISTS `django_migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_migrations` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`app` varchar(255) NOT NULL,
`name` varchar(255) NOT NULL,
`applied` datetime(6) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_migrations`
--
LOCK TABLES `django_migrations` WRITE;
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
INSERT INTO `django_migrations` VALUES (1,'contenttypes','0001_initial','2020-10-19 18:44:29.498013'),(2,'auth','0001_initial','2020-09-26 21:58:29.025619'),(3,'admin','0001_initial','2020-09-26 21:58:29.659220'),(4,'admin','0002_logentry_remove_auto_add','2020-09-26 21:58:29.755076'),(5,'admin','0003_logentry_add_action_flag_choices','2020-09-26 21:58:29.768123'),(6,'askapp','0001_initial','2020-09-26 21:58:30.246910'),(7,'askapp','0002_thread_thumbnail','2020-09-26 21:58:30.695898'),(8,'askapp','0003_profile','2020-09-26 21:58:30.750171'),(9,'askapp','0004_auto_20161226_1858','2020-09-26 21:58:31.320132'),(10,'askapp','0005_auto_20161227_1123','2020-09-26 21:58:31.853940'),(11,'askapp','0006_post_deleted','2020-09-26 21:58:32.031575'),(12,'askapp','0007_auto_20161228_0818','2020-09-26 21:58:32.123546'),(13,'askapp','0008_auto_20161228_1931','2020-09-26 21:58:32.395629'),(14,'askapp','0009_auto_20170105_1944','2020-09-26 21:58:32.606420'),(15,'askapp','0010_auto_20170106_0657','2020-09-26 21:58:32.637783'),(16,'askapp','0011_auto_20170110_1905','2020-09-26 21:58:32.888390'),(17,'askapp','0012_auto_20170203_1436','2020-09-26 21:58:33.223488'),(18,'askapp','0013_auto_20170206_0748','2020-09-26 21:58:33.338845'),(19,'askapp','0014_auto_20170529_1106','2020-09-26 21:58:33.474184'),(20,'askapp','0015_thread_domain','2020-09-26 21:58:33.544614'),(21,'askapp','0016_populate_domain','2020-09-26 21:58:33.574611'),(22,'askapp','0017_auto_20191105_1229','2020-09-26 21:58:33.669750'),(23,'askapp','0018_auto_20191109_1248','2020-09-26 21:58:33.765568'),(24,'askapp','0019_auto_20191119_0846','2020-09-26 21:58:33.943705'),(25,'contenttypes','0002_remove_content_type_name','2020-09-26 21:58:34.110056'),(26,'auth','0002_alter_permission_name_max_length','2020-09-26 21:58:34.143061'),(27,'auth','0003_alter_user_email_max_length','2020-09-26 21:58:34.193309'),(28,'auth','0004_alter_user_username_opts','2020-09-26 21:58:34.223287'),(29,'auth','0005_alter_user_last_login_null','2020-09-26 21:58:34.268763'),(30,'auth','0006_require_contenttypes_0002','2020-09-26 21:58:34.271412'),(31,'auth','0007_alter_validators_add_error_messages','2020-09-26 21:58:34.295259'),(32,'auth','0008_alter_user_username_max_length','2020-09-26 21:58:34.374245'),(33,'auth','0009_alter_user_last_name_max_length','2020-09-26 21:58:34.520196'),(34,'auth','0010_alter_group_name_max_length','2020-09-26 21:58:34.561457'),(35,'auth','0011_update_proxy_permissions','2020-09-26 21:58:34.602354'),(36,'registration','0001_initial','2020-09-26 21:58:34.645033'),(37,'registration','0002_registrationprofile_activated','2020-09-26 21:58:34.732076'),(38,'registration','0003_migrate_activatedstatus','2020-09-26 21:58:34.762271'),(39,'registration','0004_supervisedregistrationprofile','2020-09-26 21:58:34.798096'),(40,'sessions','0001_initial','2020-09-26 21:58:34.869995'),(41,'registration','0004_supervisedregistrationprofile','2020-10-19 18:44:35.973952'),(42,'database','0001_initial','2020-10-18 18:43:51.918819'),(43,'database','0002_auto_20190129_2304','2020-10-18 18:43:52.102986'),(44,'account','0001_initial','2020-11-04 18:58:00.091068'),(45,'account','0002_email_max_length','2020-11-04 18:58:00.230112'),(46,'askapp','0020_auto_20201101_1818','2020-11-04 18:58:00.450512'),(47,'auth','0012_alter_user_first_name_max_length','2020-11-04 18:58:00.496080'),(48,'sites','0001_initial','2020-11-04 18:58:00.555526'),(49,'sites','0002_alter_domain_unique','2020-11-04 18:58:00.591848'),(50,'socialaccount','0001_initial','2020-11-04 18:58:00.838835'),(51,'socialaccount','0002_token_max_lengths','2020-11-04 18:58:01.131134'),(52,'socialaccount','0003_extra_data_default_dict','2020-11-04 18:58:01.159920');
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_session`
--
DROP TABLE IF EXISTS `django_session`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_session` (
`session_key` varchar(40) NOT NULL,
`session_data` longtext NOT NULL,
`expire_date` datetime(6) NOT NULL,
PRIMARY KEY (`session_key`),
KEY `django_session_expire_date_a5c62663` (`expire_date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_session`
--
LOCK TABLES `django_session` WRITE;
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
INSERT INTO `django_session` VALUES ('1ypco8z4t2orjdt1xjxp8iikz0d0kg29','MTBmZmJkMjA5ZDAzYWFhYmMyZjJmMzJjMzA3ODQyNWZiOTY4YTQzYjp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiJkMDljMWUwZjY2MTQ5NDRmMzhkOTUwYTMyNmI0ZmU3ZDQ3MGVhMWJlIn0=','2020-11-02 19:18:50.363711');
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `django_site`
--
DROP TABLE IF EXISTS `django_site`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `django_site` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`domain` varchar(100) NOT NULL,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `django_site_domain_a2e37b91_uniq` (`domain`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `django_site`
--
LOCK TABLES `django_site` WRITE;
/*!40000 ALTER TABLE `django_site` DISABLE KEYS */;
INSERT INTO `django_site` VALUES (1,'example.com','example.com');
/*!40000 ALTER TABLE `django_site` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registration_registrationprofile`
--
DROP TABLE IF EXISTS `registration_registrationprofile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registration_registrationprofile` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`activation_key` varchar(40) NOT NULL,
`user_id` int(11) NOT NULL,
`activated` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `user_id` (`user_id`),
CONSTRAINT `registration_registr_user_id_5fcbf725_fk_auth_user` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registration_registrationprofile`
--
LOCK TABLES `registration_registrationprofile` WRITE;
/*!40000 ALTER TABLE `registration_registrationprofile` DISABLE KEYS */;
/*!40000 ALTER TABLE `registration_registrationprofile` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `registration_supervisedregistrationprofile`
--
DROP TABLE IF EXISTS `registration_supervisedregistrationprofile`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `registration_supervisedregistrationprofile` (
`registrationprofile_ptr_id` int(11) NOT NULL,
PRIMARY KEY (`registrationprofile_ptr_id`),
CONSTRAINT `registration_supervi_registrationprofile__0a59f3b2_fk_registrat` FOREIGN KEY (`registrationprofile_ptr_id`) REFERENCES `registration_registrationprofile` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `registration_supervisedregistrationprofile`
--
LOCK TABLES `registration_supervisedregistrationprofile` WRITE;
/*!40000 ALTER TABLE `registration_supervisedregistrationprofile` DISABLE KEYS */;
/*!40000 ALTER TABLE `registration_supervisedregistrationprofile` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `socialaccount_socialaccount`
--
DROP TABLE IF EXISTS `socialaccount_socialaccount`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `socialaccount_socialaccount` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`provider` varchar(30) NOT NULL,
`uid` varchar(191) NOT NULL,
`last_login` datetime(6) NOT NULL,
`date_joined` datetime(6) NOT NULL,
`extra_data` longtext NOT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `socialaccount_socialaccount_provider_uid_fc810c6e_uniq` (`provider`,`uid`),
KEY `socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id` (`user_id`),
CONSTRAINT `socialaccount_socialaccount_user_id_8146e70c_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `socialaccount_socialaccount`
--
LOCK TABLES `socialaccount_socialaccount` WRITE;
/*!40000 ALTER TABLE `socialaccount_socialaccount` DISABLE KEYS */;
/*!40000 ALTER TABLE `socialaccount_socialaccount` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `socialaccount_socialapp`
--
DROP TABLE IF EXISTS `socialaccount_socialapp`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `socialaccount_socialapp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`provider` varchar(30) NOT NULL,
`name` varchar(40) NOT NULL,
`client_id` varchar(191) NOT NULL,
`secret` varchar(191) NOT NULL,
`key` varchar(191) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `socialaccount_socialapp`
--
LOCK TABLES `socialaccount_socialapp` WRITE;
/*!40000 ALTER TABLE `socialaccount_socialapp` DISABLE KEYS */;
/*!40000 ALTER TABLE `socialaccount_socialapp` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `socialaccount_socialapp_sites`
--
DROP TABLE IF EXISTS `socialaccount_socialapp_sites`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `socialaccount_socialapp_sites` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`socialapp_id` int(11) NOT NULL,
`site_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `socialaccount_socialapp_sites_socialapp_id_site_id_71a9a768_uniq` (`socialapp_id`,`site_id`),
KEY `socialaccount_socialapp_sites_site_id_2579dee5_fk_django_site_id` (`site_id`),
CONSTRAINT `socialaccount_social_socialapp_id_97fb6e7d_fk_socialacc` FOREIGN KEY (`socialapp_id`) REFERENCES `socialaccount_socialapp` (`id`),
CONSTRAINT `socialaccount_socialapp_sites_site_id_2579dee5_fk_django_site_id` FOREIGN KEY (`site_id`) REFERENCES `django_site` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `socialaccount_socialapp_sites`
--
LOCK TABLES `socialaccount_socialapp_sites` WRITE;
/*!40000 ALTER TABLE `socialaccount_socialapp_sites` DISABLE KEYS */;
/*!40000 ALTER TABLE `socialaccount_socialapp_sites` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `socialaccount_socialtoken`
--
DROP TABLE IF EXISTS `socialaccount_socialtoken`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `socialaccount_socialtoken` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`token` longtext NOT NULL,
`token_secret` longtext NOT NULL,
`expires_at` datetime(6) DEFAULT NULL,
`account_id` int(11) NOT NULL,
`app_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `socialaccount_socialtoken_app_id_account_id_fca4e0ac_uniq` (`app_id`,`account_id`),
KEY `socialaccount_social_account_id_951f210e_fk_socialacc` (`account_id`),
CONSTRAINT `socialaccount_social_account_id_951f210e_fk_socialacc` FOREIGN KEY (`account_id`) REFERENCES `socialaccount_socialaccount` (`id`),
CONSTRAINT `socialaccount_social_app_id_636a42d7_fk_socialacc` FOREIGN KEY (`app_id`) REFERENCES `socialaccount_socialapp` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `socialaccount_socialtoken`
--
LOCK TABLES `socialaccount_socialtoken` WRITE;
/*!40000 ALTER TABLE `socialaccount_socialtoken` DISABLE KEYS */;
/*!40000 ALTER TABLE `socialaccount_socialtoken` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2020-11-04 19:02:35
|
<filename>fixtures/doctests/fdwhandler/047/input.sql
ForeignDataWrapper *
GetForeignDataWrapper(Oid fdwid);
|
/**
* Create Tables
*/
CREATE TABLE [custom_entity]
(
[id] [BIGINT] NOT NULL,
[description] [NVARCHAR](150),
CONSTRAINT [pk_custom_entity] PRIMARY KEY (
[id]
)
);
/**
* Create sequences
*/
CREATE SEQUENCE [s_custom_entityid] AS [BIGINT] START WITH 1 INCREMENT BY 1 MINVALUE 0;
|
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 18, 2021 at 09:36 AM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `elearning`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(64) NOT NULL,
`username` varchar(128) NOT NULL,
`password` varchar(128) NOT NULL,
`email` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`, `email`) VALUES
(0, 'admin', <PASSWORD>.', '<EMAIL>');
-- --------------------------------------------------------
--
-- Table structure for table `guru`
--
CREATE TABLE `guru` (
`nip` int(64) NOT NULL,
`email` varchar(255) NOT NULL,
`nama_guru` varchar(128) NOT NULL,
`password` varchar(255) NOT NULL,
`nama_mapel` varchar(64) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `guru`
--
INSERT INTO `guru` (`nip`, `email`, `nama_guru`, `password`, `nama_mapel`) VALUES
(123456, '<EMAIL>', 'Teacher', '$2y$10$3qQ2TYrtQHy44LblPMexnu4ZQrCWD.dYh20P.sOL5cyo6Z48fJQEq', '2'),
(214748364, '<EMAIL>', '<NAME>', '$2y$10$EX0L5MeIQldpkCuTZW.mjujTaj.Yy20IW0GOluecU/c...', '1'),
(214748365, '<EMAIL>', '<PASSWORD>', '$2y$10$3qQ2TYrtQHy44LblPMexnu4ZQrCWD.dYh20P.sOL5cyo6Z48fJQEq', '3'),
(1819107728, '<EMAIL>', '<NAME>', <PASSWORD>', '3'),
(2147483647, '<EMAIL>', 'xyz', <PASSWORD>', '2');
-- --------------------------------------------------------
--
-- Table structure for table `jawaban`
--
CREATE TABLE `jawaban` (
`id` int(3) NOT NULL,
`siswa_id` int(4) NOT NULL,
`tugas_id` int(11) NOT NULL,
`jawaban` varchar(500) NOT NULL,
`tanggal_pengerjaan` datetime NOT NULL DEFAULT current_timestamp(),
`tgl_selesai` datetime NOT NULL DEFAULT current_timestamp(),
`nilai` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `jawaban`
--
INSERT INTO `jawaban` (`id`, `siswa_id`, `tugas_id`, `jawaban`, `tanggal_pengerjaan`, `tgl_selesai`, `nilai`) VALUES
(1, 2, 1, '{\"durasi\":27,\"jawaban\":{\"1\":\"A\",\"2\":\"A\",\"3\":\"E\",\"4\":\"B\",\"5\":\"D\"}}', '2021-11-10 21:42:37', '2021-11-10 21:42:37', '20'),
(2, 2, 2, '{\"durasi\":11,\"jawaban\":{\"6\":\"C\"}}', '2021-11-11 09:22:35', '2021-11-11 09:22:35', '100');
-- --------------------------------------------------------
--
-- Table structure for table `kelas`
--
CREATE TABLE `kelas` (
`id` int(11) NOT NULL,
`nama` varchar(45) NOT NULL,
`kategori_id` int(11) DEFAULT NULL,
`aktif` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1=aktif 0=tidak'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `kelas`
--
INSERT INTO `kelas` (`id`, `nama`, `kategori_id`, `aktif`) VALUES
(1, 'XI IPA B', 1, 1),
(2, 'XI IPS A', 2, 1);
-- --------------------------------------------------------
--
-- Table structure for table `kelas_guru`
--
CREATE TABLE `kelas_guru` (
`id` int(11) NOT NULL,
`id_kelas` int(11) NOT NULL,
`id_guru` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `kelas_guru`
--
INSERT INTO `kelas_guru` (`id`, `id_kelas`, `id_guru`) VALUES
(4, 2, 2147483647),
(5, 1, 2147483647);
-- --------------------------------------------------------
--
-- Table structure for table `kelas_kategori`
--
CREATE TABLE `kelas_kategori` (
`id` int(11) NOT NULL,
`kategori` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `kelas_kategori`
--
INSERT INTO `kelas_kategori` (`id`, `kategori`) VALUES
(1, 'IPA'),
(2, 'IPS');
-- --------------------------------------------------------
--
-- Table structure for table `kelas_mapel`
--
CREATE TABLE `kelas_mapel` (
`id` int(11) NOT NULL,
`id_kelas` int(11) NOT NULL,
`id_mapel` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `kelas_mapel`
--
INSERT INTO `kelas_mapel` (`id`, `id_kelas`, `id_mapel`) VALUES
(19, 2, 1),
(20, 2, 2),
(21, 2, 3),
(22, 2, 4),
(23, 2, 7),
(24, 2, 8),
(25, 1, 1),
(26, 1, 2),
(27, 1, 3),
(28, 1, 6),
(29, 1, 7),
(30, 1, 8),
(31, 1, 9),
(32, 1, 10),
(33, 1, 11);
-- --------------------------------------------------------
--
-- Table structure for table `kelas_siswa`
--
CREATE TABLE `kelas_siswa` (
`id` int(11) NOT NULL,
`kelas_id` int(11) NOT NULL,
`siswa_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `kelas_siswa`
--
INSERT INTO `kelas_siswa` (`id`, `kelas_id`, `siswa_id`) VALUES
(1, 1, 0),
(2, 1, 2),
(3, 1, 3);
-- --------------------------------------------------------
--
-- Table structure for table `mapel`
--
CREATE TABLE `mapel` (
`id` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`info` text DEFAULT NULL,
`aktif` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = ya, 0 = tidak'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `mapel`
--
INSERT INTO `mapel` (`id`, `nama`, `info`, `aktif`) VALUES
(1, 'Bahasa Indonesia', NULL, 1),
(2, 'Bahasa Inggris', NULL, 1),
(3, 'Matematika', NULL, 1),
(4, 'Ekonomi', NULL, 1),
(6, 'IPA', NULL, 1),
(7, 'Penjas', NULL, 1),
(8, 'Agama', NULL, 1),
(9, 'Fisika', NULL, 1),
(10, 'Kimia', NULL, 1),
(11, 'Biologi', NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `materi`
--
CREATE TABLE `materi` (
`id` int(11) NOT NULL,
`nama_guru` varchar(128) NOT NULL,
`nama_mapel` varchar(128) NOT NULL,
`video` varchar(255) NOT NULL,
`deskripsi` varchar(1024) NOT NULL,
`kelas` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `materi`
--
INSERT INTO `materi` (`id`, `nama_guru`, `nama_mapel`, `video`, `deskripsi`, `kelas`) VALUES
(1, '123456', '2', 'ELearning-SMANSA_!_-_Google_Chrome_2021-09-02_12-19-222.mp4', ' materi', '11'),
(2, '123456', '2', 'VID20200827130349_x264.mp4', 'fgygyg', '11'),
(3, '123456', '2', 'Data_Siswa_-_Google_Chrome_2021-10-27_14-11-02.mp4', 'materi', '11');
-- --------------------------------------------------------
--
-- Table structure for table `pilihan`
--
CREATE TABLE `pilihan` (
`id` int(11) NOT NULL,
`pertanyaan_id` int(11) NOT NULL,
`konten` text NOT NULL,
`kunci` tinyint(4) NOT NULL DEFAULT 0 COMMENT '0=tidak',
`urutan` char(11) NOT NULL,
`aktif` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `pilihan`
--
INSERT INTO `pilihan` (`id`, `pertanyaan_id`, `konten`, `kunci`, `urutan`, `aktif`) VALUES
(1, 1, '<p><span xss=removed><span xss=removed><span xss=removed><span xss=removed><span xss=removed><span xss=removed>Analytical Exposition</span></span></span></span></span></span></p>', 1, 'A', 1),
(2, 1, '<p>Report</p>', 0, 'B', 1),
(3, 1, '<p>Hortatory Exposition</p>', 0, 'C', 1),
(4, 1, '<p>Explanation Text</p>', 0, 'D', 1),
(5, 1, '<p>Descriptive text</p>', 0, 'E', 1),
(6, 2, '<p><span xss=removed><span xss=removed><span xss=removed>Federal government</span></span></span></p>', 1, 'A', 1),
(7, 2, '<p><span xss=removed><span xss=removed><span xss=removed>State Government</span></span></span></p>', 0, 'B', 1),
(8, 2, '<p><span xss=removed><span xss=removed><span xss=removed>Federal and State Government</span></span></span></p>', 0, 'C', 1),
(9, 2, '<p><span xss=removed><span xss=removed><span xss=removed>Federal and Local Government</span></span></span></p>', 0, 'D', 1),
(10, 2, '<p><span xss=removed><span xss=removed><span xss=removed>Local Government</span></span></span></p>', 0, 'E', 1),
(11, 3, '<p><span xss=removed><span xss=removed><span xss=removed>all governments</span></span></span></p>', 0, 'A', 1),
(12, 3, '<p><span xss=removed><span xss=removed><span xss=removed>Australia</span></span></span></p>', 0, 'B', 1),
(13, 3, '<p><span xss=removed><span xss=removed><span xss=removed>Federal government</span></span></span></p>', 0, 'C', 1),
(14, 3, '<p><span xss=removed><span xss=removed><span xss=removed>State governement</span></span></span></p>', 0, 'D', 1),
(15, 3, '<p><span xss=removed><span xss=removed><span xss=removed>Local government</span></span></span></p>', 1, 'E', 1),
(16, 4, '<p><span xss=removed><span xss=removed><span xss=removed>Plants</span></span></span></p>', 0, 'A', 1),
(17, 4, '<p><span xss=removed><span xss=removed><span xss=removed>Ecology</span></span></span></p>', 0, 'B', 1),
(18, 4, '<p><span xss=removed><span xss=removed><span xss=removed>Animals</span></span></span></p>', 0, 'C', 1),
(19, 4, '<p>Environment</p>', 0, 'D', 1),
(20, 4, '<p>Human Beings</p>', 1, 'E', 1),
(21, 5, '<p><span xss=removed><span xss=removed><span xss=removed>The fourth paragraph supports the idea stated in paragraph two.</span></span></span></p>', 0, 'A', 1),
(22, 5, '<p>Both paragraphs tell about the disadvantages of using pesticides.</p>', 1, 'B', 1),
(23, 5, '<p>Both paragraphs tell about how pesticides affect the quality of farm products.</p>', 0, 'C', 1),
(24, 5, '<p>The statement in paragraph is contrary to the statement in paragraph four.</p>', 0, 'D', 1),
(25, 5, '<p>The second paragraph tells about the effects of using pesticides on animals mentioned in paragraph four.</p>', 0, 'E', 1),
(26, 6, '<p><span xss=removed><span xss=removed><span xss=removed>Narrative.</span></span></span></p>', 0, 'A', 1),
(27, 6, '<p><span xss=removed><span xss=removed><span xss=removed>Report.</span></span></span></p>', 0, 'B', 1),
(28, 6, '<p><span xss=removed><span xss=removed><span xss=removed>Analytical.</span></span></span></p>', 1, 'C', 1),
(29, 6, '<p><span xss=removed><span xss=removed><span xss=removed>Explanation.</span></span></span></p>', 0, 'D', 1),
(30, 6, '<p><span xss=removed><span xss=removed><span xss=removed>Description</span></span></span></p>', 0, 'E', 1);
-- --------------------------------------------------------
--
-- Table structure for table `siswa`
--
CREATE TABLE `siswa` (
`id` int(64) NOT NULL,
`nis` varchar(30) NOT NULL,
`nama` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`image` varchar(255) NOT NULL,
`is_active` int(1) NOT NULL DEFAULT 1,
`date_created` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `siswa`
--
INSERT INTO `siswa` (`id`, `nis`, `nama`, `password`, `image`, `is_active`, `date_created`) VALUES
(1, '1', 'Fadilla', '$2y$10$neIvPc.R5M/eRufzARKctecwXuWPxiK4Ahswa96fC26xsDK/TDQl6', '', 1, '0000-00-00'),
(2, '2', 'Citra', '$2y$10$/0Hoyo4n/mAPgLWeV4asP.SdL2SvQ.IXgMleE3GdATOyyEBMTESL2', '', 1, '0000-00-00'),
(3, '3', 'Nina', '$2y$10$0/SFHdVS5embulP3UOv0supAPDQqxynQAI9RmEQCMmYWEvLqjrDne', '', 1, '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `token`
--
CREATE TABLE `token` (
`id` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`date_created` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `tugas`
--
CREATE TABLE `tugas` (
`id` int(11) NOT NULL,
`mapel_id` int(11) NOT NULL,
`nip` int(70) NOT NULL,
`judul` varchar(255) NOT NULL,
`durasi` int(11) NOT NULL COMMENT 'lama pengerjaan dalam menit',
`info` text DEFAULT NULL,
`aktif` tinyint(1) NOT NULL DEFAULT 0,
`tgl_buat` datetime DEFAULT current_timestamp(),
`tgl_akhir` datetime NOT NULL,
`tampil_siswa` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0=tidak tampil di siswa, 1=tampil siswa'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tugas`
--
INSERT INTO `tugas` (`id`, `mapel_id`, `nip`, `judul`, `durasi`, `info`, `aktif`, `tgl_buat`, `tgl_akhir`, `tampil_siswa`) VALUES
(1, 2, 123456, 'Tugas', 30, 'bbxjshu', 0, '2021-10-27 14:21:31', '2021-12-31 00:00:00', 1),
(2, 2, 123456, 'Tugas 2', 30, 'Tugas 2', 0, '2021-11-11 09:12:48', '2021-11-12 09:10:00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `tugas_kelas`
--
CREATE TABLE `tugas_kelas` (
`id` int(11) NOT NULL,
`tugas_id` int(11) NOT NULL,
`kelas_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tugas_kelas`
--
INSERT INTO `tugas_kelas` (`id`, `tugas_id`, `kelas_id`) VALUES
(1, 1, 1),
(2, 2, 1);
-- --------------------------------------------------------
--
-- Table structure for table `tugas_pertanyaan`
--
CREATE TABLE `tugas_pertanyaan` (
`id` int(11) NOT NULL,
`pertanyaan` text NOT NULL,
`urutan` int(11) NOT NULL,
`tugas_id` int(11) NOT NULL,
`aktif` tinyint(1) NOT NULL DEFAULT 1
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tugas_pertanyaan`
--
INSERT INTO `tugas_pertanyaan` (`id`, `pertanyaan`, `urutan`, `tugas_id`, `aktif`) VALUES
(1, '<p><span xss=removed><span xss=removed><span xss=removed>Text 1<br>\r\nIn Australia there are three levels of governments, the federal government, state governments and local governments. All of these levels of government are necessary. This is so for number of reasons. First, the federal government is necessary for the big things. They keep the economy in order and look after like defensE. Similarly, the state governments look after the middle sized things. For example they look after law and order, preventing things like vandalism in school. Finally, local government look after the small thins. They look after things like collecting rubbish, otherwise everyone would have diseasE. Thus for the reason above, we can conclude that the three levels of the government are necessary.</span></span></span></p>\r\n\r\n<p><span xss=removed><span xss=removed><span xss=removed>What kind of text is this?</span></span></span></p>\r\n\r\n<p> </p>', 1, 1, 1),
(2, '<p><span xss=removed><span xss=removed><span xss=removed>In Australia there are three levels of governments, the federal government, state governments and local governments. All of these levels of government are necessary. This is so for number of reasons. First, the federal government is necessary for the big things. They keep the economy in order and look after like defensE. Similarly, the state governments look after the middle sized things. For example they look after law and order, preventing things like vandalism in school. Finally, local government look after the small thins. They look after things like collecting rubbish, otherwise everyone would have diseasE. Thus for the reason above, we can conclude that the three levels of the government are necessary.</span></span></span></p>\r\n\r\n<p><span xss=removed><span xss=removed><span xss=removed>Who is responsible for defense?</span></span></span></p>', 2, 1, 1),
(3, '<p><span xss=removed><span xss=removed><span xss=removed><span xss=removed><span xss=removed><span xss=removed>In Australia there are three levels of governments, the federal government, state governments and local governments. All of these levels of government are necessary. This is so for number of reasons. First, the federal government is necessary for the big things. They keep the economy in order and look after like defensE. Similarly, the state governments look after the middle sized things. For example they look after law and order, preventing things like vandalism in school. Finally, local government look after the small thins. They look after things like collecting rubbish, otherwise everyone would have diseasE. Thus for the reason above, we can conclude that the three levels of the government are necessary.</span></span></span></span></span></span></p>\r\n\r\n<p><span xss=removed><span xss=removed><span xss=removed>The litter management is the responsibility of ….</span></span></span></p>', 3, 1, 1),
(4, '<p><span xss=removed><span xss=removed><span xss=removed>There is no best way to deal with pests in agriculturE. Pesticides which are commonly used may cause many problems. I think combining different management operations is the most effective way to control pests.<br>\r\nFirstly, the chemicals in the pesticides may build up as residues in the environment and in the soil which absorbs the chemicals. This reduces the quality of farm product.<br>\r\nSecondly, pests can gradually become resistant to pesticides. This means that newer and stronger ones have to be developed.<br>\r\nLastly, some pesticides affect non target plants and animals such as fish and bees. This affects the ecology and environment as well.<br>\r\nSo, understanding of ecology of an area helps a lot in pest control. Pesticides should be chosen and applied carefully so that they don’t affect the ecological balance and environment. Therefore, integrated pest management is a safe and more effective option to fight pest in agriculture and livestock.</span></span></span></p>\r\n\r\n<p><span xss=removed><span xss=removed><span xss=removed>Which of the following is not directly affected by pesticides used?</span></span></span></p>', 4, 1, 1),
(5, '<p><span xss=removed><span xss=removed><span xss=removed>There is no best way to deal with pests in agriculturE. Pesticides which are commonly used may cause many problems. I think combining different management operations is the most effective way to control pests.<br>\r\nFirstly, the chemicals in the pesticides may build up as residues in the environment and in the soil which absorbs the chemicals. This reduces the quality of farm product.<br>\r\nSecondly, pests can gradually become resistant to pesticides. This means that newer and stronger ones have to be developed.<br>\r\nLastly, some pesticides affect non target plants and animals such as fish and bees. This affects the ecology and environment as well.<br>\r\nSo, understanding of ecology of an area helps a lot in pest control. Pesticides should be chosen and applied carefully so that they don’t affect the ecological balance and environment.</span></span></span> <span xss=removed><span xss=removed><span xss=removed>Therefore, integrated pest management is a safe and more effective option to fight pest in agriculture and livestock.</span></span></span></p>\r\n\r\n<p><span xss=removed><span xss=removed><span xss=removed>What can you say about paragraph two and four?</span></span></span></p>', 5, 1, 1),
(6, '<p><span xss=removed><span xss=removed><span xss=removed><span xss=removed><span xss=removed><span xss=removed>As we all know, cars create pollution, and cause a lot of road deaths and other accidents.<br>\r\nFirstly, cars, as we all know contribute the most of pollution in the world. Cars emit a deadly gas causes illnesses such as bronchitis, lung cancer, and trigger of asthmA. Some of these illness are so bad that people can die from them.<br>\r\nSecondly, the city is very busy. Pedestrians wander every where and cars commonly hit pedestrians in the city, which causes them to diE. Cars today are our roads biggest killers.<br>\r\nThirdly, cars are very noisy. If you live in the city, you may find it hard to sleep at night, or concentrate in your homework, and especially talk to someonE.<br>\r\nIn conclusion, cars should be banned from the city for the reasons listed.</span></span></span></span></span></span></p>\r\n\r\n<p><span xss=removed><span xss=removed><span xss=removed>What type of the text above?</span></span></span></p>', 1, 2, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `guru`
--
ALTER TABLE `guru`
ADD PRIMARY KEY (`nip`);
--
-- Indexes for table `jawaban`
--
ALTER TABLE `jawaban`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kelas`
--
ALTER TABLE `kelas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kelas_guru`
--
ALTER TABLE `kelas_guru`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kelas_kategori`
--
ALTER TABLE `kelas_kategori`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kelas_mapel`
--
ALTER TABLE `kelas_mapel`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kelas_siswa`
--
ALTER TABLE `kelas_siswa`
ADD PRIMARY KEY (`id`),
ADD KEY `kelas_id` (`kelas_id`,`siswa_id`),
ADD KEY `kelas_id_2` (`kelas_id`,`siswa_id`);
--
-- Indexes for table `mapel`
--
ALTER TABLE `mapel`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `materi`
--
ALTER TABLE `materi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pilihan`
--
ALTER TABLE `pilihan`
ADD PRIMARY KEY (`id`),
ADD KEY `pertanyaan_id` (`pertanyaan_id`),
ADD KEY `pertanyaan_id_2` (`pertanyaan_id`,`kunci`);
--
-- Indexes for table `siswa`
--
ALTER TABLE `siswa`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `token`
--
ALTER TABLE `token`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tugas`
--
ALTER TABLE `tugas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tugas_kelas`
--
ALTER TABLE `tugas_kelas`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tugas_pertanyaan`
--
ALTER TABLE `tugas_pertanyaan`
ADD PRIMARY KEY (`id`),
ADD KEY `tugas_id` (`tugas_id`),
ADD KEY `tugas_id_2` (`tugas_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `jawaban`
--
ALTER TABLE `jawaban`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `kelas`
--
ALTER TABLE `kelas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `kelas_guru`
--
ALTER TABLE `kelas_guru`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `kelas_kategori`
--
ALTER TABLE `kelas_kategori`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `kelas_mapel`
--
ALTER TABLE `kelas_mapel`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;
--
-- AUTO_INCREMENT for table `kelas_siswa`
--
ALTER TABLE `kelas_siswa`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `mapel`
--
ALTER TABLE `mapel`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `materi`
--
ALTER TABLE `materi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `pilihan`
--
ALTER TABLE `pilihan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `siswa`
--
ALTER TABLE `siswa`
MODIFY `id` int(64) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `token`
--
ALTER TABLE `token`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tugas`
--
ALTER TABLE `tugas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tugas_kelas`
--
ALTER TABLE `tugas_kelas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tugas_pertanyaan`
--
ALTER TABLE `tugas_pertanyaan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>usn-it-gruppe03/trashboys
DROP DATABASE IF EXISTS `bk`;
-- Create the database:
CREATE DATABASE `bk`
CHARACTER SET utf8mb4
COLLATE utf8mb4_danish_ci;
|
<reponame>statisticspoland/VTL-Processing
CREATE PROCEDURE [Flow_to_stock].RestoreData AS
DELETE FROM [Flow_to_stock].DS_1
DELETE FROM [Flow_to_stock].DS_2
DELETE FROM [Flow_to_stock].DS_3
DELETE FROM [Flow_to_stock].DS_4
INSERT INTO [Flow_to_stock].DS_1 VALUES ('A', '2010-01/2010-12', 2)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('A', '2011-01/2011-12', 5)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('A', '2012-01/2012-12', -3)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('A', '2013-01/2013-12', 9)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('B', '2010-01/2010-12', 4)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('B', '2011-01/2011-12', -8)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('B', '2012-01/2012-12', 0)
INSERT INTO [Flow_to_stock].DS_1 VALUES ('B', '2013-01/2013-12', 6)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('A', '2010-12-31', 2)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('A', '2011-12-31', 5)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('A', '2012-12-31', -3)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('A', '2013-12-31', 9)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('B', '2010-12-31', 4)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('B', '2011-12-31', -8)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('B', '2012-12-31', 0)
INSERT INTO [Flow_to_stock].DS_2 VALUES ('B', '2013-12-31', 6)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2010Y', 2)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2011Y', 5)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2012Y', -3)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2013Y', 9)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2010Y', 4)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2011Y', -8)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2012Y', 0)
-- INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2013Y', 6)
-- documentation example input error
INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2010A', 2)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2011A', 5)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2012A', -3)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('A', '2013A', 9)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2010A', 4)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2011A', -8)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2012A', 0)
INSERT INTO [Flow_to_stock].DS_3 VALUES ('B', '2013A', 6)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2010Y', 2)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2011Y', 5)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2012Y', -3)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2013Y', 9)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2010Q1', 4)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2011Q2', -8)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2012Q3', 0)
-- INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2013Q4', 6)
-- documentation example input error
INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2010A', 2)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2011A', 5)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2012A', -3)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('A', '2013A', 9)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('B', '2010Q1', 4)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('B', '2011Q2', -8)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('B', '2012Q3', 0)
INSERT INTO [Flow_to_stock].DS_4 VALUES ('B', '2013Q4', 6)
GO |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 30, 2021 at 09:46 AM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `laravel8blog`
--
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(7, '2021_04_28_073934_add_user_role_users_table', 2);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'admin',
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `role`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'sagar', '<EMAIL>', 'admin', NULL, '$2y$10$rUErPafjDNG3pcFt14pGIOlv/tUMXj1TWKLEYwB2d/mdJ7CC4oPRm', NULL, '2021-04-26 05:14:15', '2021-04-26 05:14:15'),
(2, 'ruchit', '<EMAIL>', 'admin', NULL, '$2y$10$mjDyBVk0tLPxYpDhsfvLou8sxv79VKMVLvNCLveypEW.aJXb5Kc0e', NULL, '2021-04-27 05:45:05', '2021-04-27 05:45:05'),
(3, 'prakash', '<EMAIL>', 'admin', NULL, '$2y$10$ClATAVpJ/9k8xueaPqFemOGpJucqYIyYX058ipSowjXFqBrTWCydW', NULL, '2021-04-28 05:06:18', '2021-04-28 05:06:18'),
(4, 'roman', '<EMAIL>', 'user', NULL, '$2y$10$CVNEt3TgaWu9ydXgn3MAE.S3DOQx.XVQEuKk.szbsAYQTKBJzS93y', NULL, '2021-04-28 05:06:54', '2021-04-28 05:06:54'),
(5, 'rakesh', '<EMAIL>', 'user', NULL, '$2y$10$.Hx0qu0McWwjrYey/OEBjO.eKn5FqOj2Vxu86nF3lNQQuyiq21XpS', NULL, '2021-04-29 06:29:11', '2021-04-29 06:29:11');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- Still in the `db` folder, create a `seeds.sql` file. In this file, write insert queries to populate the `burgers` table with at least three entries.
INSERT INTO burgers (burger_name, devoured) VALUES ('Beyond Burger', FALSE);
INSERT INTO burgers (burger_name, devoured) VALUES ('Impossible Burger', FALSE);
INSERT INTO burgers (burger_name, devoured) VALUES ('Turkey Burger', FALSE); |
-- Максимум/сумма/среднее по пустому множеству - NULL.
SELECT MAX(Population), SUM(Population), AVG(Population) FROM Country WHERE Name = 'Country';
-- Подготовка таблицы
DROP TABLE IF EXISTS NULL_DEMO;
CREATE TABLE NULL_DEMO (a INT, b INT);
INSERT INTO NULL_DEMO
VALUES (1, 2),
(3, NULL),
(NULL, 4),
(NULL, NULL);
-- Все строчки выводятся
SELECT * FROM NULL_DEMO;
-- NULL не подходит под арифметические условия
SELECT * FROM NULL_DEMO WHERE a <= 5 OR a > 5;
-- Но его можно искать отдельно
SELECT * FROM NULL_DEMO WHERE a IS NULL;
-- В сумме и в количестве по конкретному столбцу игнорируется (но не в количестве строк).
SELECT SUM(a), SUM(b), COUNT(a), COUNT(b), COUNT(*) FROM NULL_DEMO;
-- В среднем игнорируется, получаем адекватное соотношение, если не используем
-- COUNT(*)
SELECT AVG(a), AVG(b), SUM(a) / COUNT(a), SUM(b) / COUNT(b) FROM NULL_DEMO;
-- Максимум/среднее/сумма по пустому множеству (после удаления NULL)
-- игнорируются.
SELECT MAX(a), MAX(b), AVG(a), AVG(b),
SUM(a), SUM(b), COUNT(a), COUNT(b) FROM NULL_DEMO WHERE b = 4;
|
select
c.*
from customer
order by name
limit @PageSize
offset @PageNum * @PageSize
|
CREATE TABLE person (
id BIGSERIAL PRIMARY KEY,
firstname VARCHAR(255),
lastname VARCHAR(255),
dob TIMESTAMP,
budget INT4
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.