sql
stringlengths 6
1.05M
|
---|
<reponame>pedwards95/Springboard_Class<gh_stars>0
-- Comments in SQL Start with dash-dash --
--1
INSERT INTO products (name, price, can_be_returned)
VALUES ('chair',44.00,false);
--2
INSERT INTO products (name, price, can_be_returned)
VALUES ('stool',25.99,true);
--3
INSERT INTO products (name, price, can_be_returned)
VALUES ('table',124.00,false);
--4
SELECT * FROM products;
--5
SELECT name FROM products;
--6
SELECT name, price FROM products;
--7
INSERT INTO products (name, price, can_be_returned)
VALUES ('whatever',6.66,false);
--8
SELECT * FROM products WHERE can_be_returned;
--9
SELECT * FROM products WHERE price < 44.00;
--10
SELECT * FROM products WHERE price > 22.50 AND price < 99.99;
--11
UPDATE products SET price = price-20 WHERE price > 20;
--12
DELETE FROM products WHERE price < 25;
--13
UPDATE products SET price = price+20;
--14
UPDATE products SET can_be_returned = true; |
<gh_stars>0
-- Adminer 4.7.1 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
CREATE TABLE `tb_file_upload` (
`id_file_upload` int(11) NOT NULL AUTO_INCREMENT,
`id_user` int(11) NOT NULL,
`nama_file` varchar(255) NOT NULL,
PRIMARY KEY (`id_file_upload`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `tb_gedung` (
`id_gedung` int(11) NOT NULL AUTO_INCREMENT,
`nama_gedung` varchar(255) NOT NULL,
`no_telp` varchar(255) NOT NULL,
`gambar` varchar(255) NOT NULL,
`alamat` text NOT NULL,
PRIMARY KEY (`id_gedung`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `tb_gedung` (`id_gedung`, `nama_gedung`, `no_telp`, `gambar`, `alamat`) VALUES
(1, 'test aja', 'gsgs aja', '201909092156091.png', 'test aja\r\n');
CREATE TABLE `tb_paket` (
`id_paket` int(11) NOT NULL AUTO_INCREMENT,
`nama_paket` varchar(255) NOT NULL,
`harga_paket` varchar(255) NOT NULL,
`tgl_ketersediaan` date NOT NULL,
`status_paket` varchar(255) NOT NULL,
`id_gedung` int(11) NOT NULL,
PRIMARY KEY (`id_paket`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `tb_paket` (`id_paket`, `nama_paket`, `harga_paket`, `tgl_ketersediaan`, `status_paket`, `id_gedung`) VALUES
(1, 'test', '50000', '2019-09-09', 'test', 1),
(2, 'test paket 2', '65000000', '2019-09-27', 'test', 0),
(3, 'paket 3', '658484', '2019-09-20', 'haha', 1);
CREATE TABLE `tb_pesan_gedung` (
`id_pesan` int(11) NOT NULL AUTO_INCREMENT,
`id_paket` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`jam_sewa_awal` datetime NOT NULL,
`jam_sewa_akhir` datetime NOT NULL,
`tanggal_sewa` date NOT NULL,
`id_transkasi` int(11) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`id_pesan`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `tb_transaksi` (
`id_transaksi` int(11) NOT NULL AUTO_INCREMENT,
`id_pesan_gedung` int(11) NOT NULL,
`id_user` int(11) NOT NULL,
`id_file_upload` int(11) NOT NULL,
`type_transaksi` varchar(255) NOT NULL,
`jumlah_bayar` varchar(255) NOT NULL,
`tanggal_bayar` datetime NOT NULL,
`status_bayar` varchar(255) NOT NULL,
PRIMARY KEY (`id_transaksi`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `tb_user` (
`id_user` int(11) NOT NULL AUTO_INCREMENT,
`nama` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`no_hp` varchar(255) NOT NULL,
`alamat` text NOT NULL,
`password` varchar(255) NOT NULL,
`level` varchar(255) NOT NULL,
`jenis_kelamin` varchar(255) NOT NULL,
PRIMARY KEY (`id_user`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `tb_user` (`id_user`, `nama`, `email`, `no_hp`, `alamat`, `password`, `level`, `jenis_kelamin`) VALUES
(5, '<NAME>', '<EMAIL>', '085768551713', 'JL. P. Antasari Sukarame\r\nJL. <NAME>', '$2y$10$V34zHF2koSVFG.48eV9eVOLgaG2cS7r/mR25RXiBOT01q0vXzZ.Ra', 'admin', 'pria'),
(7, '<NAME> 2', '<EMAIL>', '085768551713', 'JL. P. Antasari Sukarame\r\nJL. <NAME>', '$2y$10$wnDg4RgNROBzEYKaOQHnT.r0EbkzFQ8TyvvdyOXrcTzNtWtrDW0Z.', 'admin', 'pria');
-- 2019-09-10 14:37:25
|
<filename>Database/2.GetAnalyzedStatus.StoredProcedure.sql
IF EXISTS (
SELECT * FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC_SCHEMA = N'dbo'
AND SPECIFIC_NAME = N'GetAnalyzedStatus'
)
BEGIN
PRINT N'Dropping Procedure dbo.GetAnalyzedStatus'
DROP PROCEDURE dbo.GetAnalyzedStatus
END
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
-- GetAnalyzedStatus 1
PRINT 'Creating Procedure dbo.GetAnalyzedStatus'
GO
CREATE PROCEDURE GetAnalyzedStatus
(
@CommentID INT
)
AS
SET NOCOUNT ON
--TRUNCATION HACK
SET ANSI_WARNINGS OFF
SELECT Analyzed
FROM Comment (NoLock)
WHERE CommentID = @CommentID
GO
GRANT EXECUTE ON GetAnalyzedStatus to public
GO |
<gh_stars>10-100
-- Create MySQL db & user for running specs
create database IF NOT EXISTS test_db;
grant select on test_db.* to 'read_only' identified by 'readme';
|
/*
*/
CREATE OR REPLACE FUNCTION compare_table_data (
p_TableName varchar2,
p_RightSchema varchar2,
p_LeftSchema varchar2,
p_RightTableName varchar2 default null,
p_CompareCountsOnly number default 1)
return integer
as
has_lobs exception;
pragma exception_init(has_lobs, -932);
has_xmls exception;
pragma exception_init(has_xmls, -22950);
l_left_schema varchar2(30);
l_right_schema varchar2(30);
l_left_table varchar2(30);
l_right_table varchar2(30);
l_cnt1 integer;
l_cnt2 integer;
l_cursor SYS_REFCURSOR;
l_result integer;
begin
l_left_schema := upper(p_LeftSchema);
l_right_schema := upper(p_RightSchema);
if l_left_schema = l_right_schema then
raise_application_error(-20102, 'Schemas must be different');
end if;
l_left_table := upper(p_TableName);
l_right_table := upper(nvl(p_RightTableName, p_TableName));
l_result := compare_table_struct(p_TableName => l_left_table, p_RightSchema => l_right_schema, p_LeftSchema => l_left_schema,
p_RightTableName => l_right_table);
if l_result is not null then
return l_result;
end if;
open l_cursor for 'SELECT count(*) FROM ' || l_left_schema || '.' || l_left_table;
fetch l_cursor into l_cnt1;
close l_cursor;
open l_cursor for 'SELECT count(*) FROM ' || l_right_schema || '.' || l_right_table;
fetch l_cursor into l_cnt2;
close l_cursor;
if l_cnt1 <> l_cnt2 then
l_result := 1;
else
if p_CompareCountsOnly = 1 then
l_result := null;
else
open l_cursor for 'SELECT count(*)
FROM ((SELECT * FROM ' || l_left_schema || '.' || l_left_table || '
MINUS
SELECT * FROM ' || l_right_schema || '.' || l_right_table || ')
UNION ALL
(SELECT * FROM ' || l_right_schema || '.' || l_right_table || '
MINUS
SELECT * FROM ' || l_left_schema || '.' || l_left_table || '))';
fetch l_cursor into l_cnt1;
close l_cursor;
if l_cnt1 = 0 then
l_result := null;
else
l_result := 1;
end if;
end if;
end if;
return l_result;
exception
when has_lobs or has_xmls then
return compare_table_with_lobs(p_TableName => p_TableName, p_RightSchema => l_right_schema, p_LeftSchema => l_left_schema);
when others then
print(l_left_schema || '.' || l_left_table || ' <=> ' || l_right_schema || '.' || l_right_table || ':' || SQLERRM);
end compare_table_data;
/
|
<reponame>SkillsFundingAgency/das-courses-api
CREATE TABLE [dbo].[Route_Import]
(
[Id] INT PRIMARY KEY,
[Name] VARCHAR(500) NOT NULL
)
GO
|
<reponame>LenChang/schemats
-- Openstreetmap schema obtained from https://git.openstreetmap.org/rails.git/blob/HEAD:/db/structure.sql
DROP TYPE IF EXISTS user_status_enum CASCADE;
CREATE TYPE user_status_enum AS ENUM (
'pending',
'active',
'confirmed',
'suspended',
'deleted'
);
DROP TYPE IF EXISTS format_enum CASCADE;
CREATE TYPE format_enum AS ENUM (
'html',
'markdown',
'text'
);
DROP TABLE IF EXISTS users;
CREATE TABLE users (
email character varying(255) NOT NULL,
id bigint NOT NULL,
pass_crypt character varying(255) NOT NULL,
creation_time timestamp without time zone NOT NULL,
display_name character varying(255) DEFAULT ''::character varying NOT NULL,
data_public boolean DEFAULT false NOT NULL,
description text DEFAULT ''::text NOT NULL,
home_lat double precision,
home_lon double precision,
home_zoom smallint DEFAULT 3,
nearby integer DEFAULT 50,
pass_salt character varying(255),
image_file_name text,
email_valid boolean DEFAULT false NOT NULL,
new_email character varying(255),
creation_ip character varying(255),
languages character varying(255),
status user_status_enum DEFAULT 'pending'::user_status_enum NOT NULL,
terms_agreed timestamp without time zone,
consider_pd boolean DEFAULT false NOT NULL,
preferred_editor character varying(255),
terms_seen boolean DEFAULT false NOT NULL,
auth_uid character varying(255),
description_format format_enum DEFAULT 'markdown'::format_enum NOT NULL,
image_fingerprint character varying(255),
changesets_count integer DEFAULT 0 NOT NULL,
traces_count integer DEFAULT 0 NOT NULL,
diary_entries_count integer DEFAULT 0 NOT NULL,
image_use_gravatar boolean DEFAULT false NOT NULL,
image_content_type character varying(255),
auth_provider character varying,
uuid_column uuid,
number integer,
string character varying,
money_col money,
char_col char,
time_col time,
inet_col inet,
jsonb_col jsonb,
numeric_col numeric(5,2),
bytea_col bytea,
bool_array_col boolean[],
varchar_array_col character varying[],
int2_array_col int2[],
int4_array_col int4[],
int8_array_col int8[],
uuid_array_col uuid[],
text_array_col text[],
bytea_array_col bytea[],
real_col real,
double_col double precision,
time_with_tz time with time zone,
oid_col oid,
interval_col interval,
json_col json,
date_col date,
unspported_path_type path,
name_type_col name,
json_array_col json[],
jsonb_array_col jsonb[],
timestamptz_array_col timestamptz[],
custom_table_type text
);
|
<reponame>Lambda-School-Labs/human-rights-first-asylim-be-b<gh_stars>1-10
INSERT INTO public.users (firstName, lastName, password, email, permissions_flag, date_created)
VALUES ($1, $2, $3, $4, $5, $6)
RETURNING id; |
<gh_stars>1-10
CREATE TABLE tb_produk(
id_produk INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT
,nama_produk VARCHAR(104) NOT NULL
,kategori VARCHAR(22) NOT NULL
,harga INTEGER NOT NULL
,status VARCHAR(17) NOT NULL
);
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (6,'ALCOHOL GEL POLISH CLEANSER GP-CLN01','L QUEENLY',12000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (9,'ALUMUNIUM FOIL ALL IN ONE BULAT 23mm IM','L MTH AKSESORIS (IM)',1000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (11,'ALUMUNIUM FOIL ALL IN ONE BULAT 30mm IM','L MTH AKSESORIS (IM)',1000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (12,'ALUMUNIUM FOIL ALL IN ONE SHEET 250mm IM','L MTH AKSESORIS (IM)',12500,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (15,'ALUMUNIUM FOIL HDPE/PE BULAT 23mm IM','L MTH AKSESORIS (IM)',12500,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (17,'ALUMUNIUM FOIL HDPE/PE BULAT 30mm IM','L MTH AKSESORIS (IM)',1000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (18,'ALUMUNIUM FOIL HDPE/PE SHEET 250mm IM','L MTH AKSESORIS (IM)',13000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (19,'ALUMUNIUM FOIL PET SHEET 250mm IM','L MTH AKSESORIS (IM)',1000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (22,'ARM PENDEK MODEL U','L MTH AKSESORIS (IM)',13000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (23,'ARM SUPPORT KECIL','L MTH TABUNG (LK)',13000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (24,'ARM SUPPORT KOTAK PUTIH','L MTH AKSESORIS (IM)',13000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (26,'ARM SUPPORT PENDEK POLOS','L MTH TABUNG (LK)',13000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (27,'ARM SUPPORT S IM','L MTH AKSESORIS (IM)',1000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (28,'ARM SUPPORT T (IMPORT)','L MTH AKSESORIS (IM)',13000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (29,'ARM SUPPORT T - MODEL 1 ( LOKAL )','L MTH TABUNG (LK)',10000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (50,'BLACK LASER TONER FP-T3 (100gr)','L MTH AKSESORIS (IM)',13000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (56,'BODY PRINTER CANON IP2770','SP MTH SPAREPART (LK)',500,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (58,'BODY PRINTER T13X','SP MTH SPAREPART (LK)',15000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (59,'BOTOL 1000ML BLUE KHUSUS UNTUK EPSON R1800/R800 - 4180 IM (T054920)','CI MTH TINTA LAIN (IM)',10000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (60,'BOTOL 1000ML CYAN KHUSUS UNTUK EPSON R1800/R800/R1900/R2000 - 4120 IM (T054220)','CI MTH TINTA LAIN (IM)',10000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (61,'BOTOL 1000ML GLOSS OPTIMIZER KHUSUS UNTUK EPSON R1800/R800/R1900/R2000/IX7000/MG6170 - 4100 IM (T054020)','CI MTH TINTA LAIN (IM)',1500,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (62,'BOTOL 1000ML L.LIGHT BLACK KHUSUS UNTUK EPSON 2400 - 0599 IM','CI MTH TINTA LAIN (IM)',1500,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (63,'BOTOL 1000ML LIGHT BLACK KHUSUS UNTUK EPSON 2400 - 0597 IM','CI MTH TINTA LAIN (IM)',1500,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (64,'BOTOL 1000ML MAGENTA KHUSUS UNTUK EPSON R1800/R800/R1900/R2000 - 4140 IM (T054320)','CI MTH TINTA LAIN (IM)',1000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (65,'BOTOL 1000ML MATTE BLACK KHUSUS UNTUK EPSON R1800/R800/R1900/R2000 - 3503 IM (T054820)','CI MTH TINTA LAIN (IM)',1500,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (66,'BOTOL 1000ML ORANGE KHUSUS UNTUK EPSON R1900/R2000 IM - 4190 (T087920)','CI MTH TINTA LAIN (IM)',1500,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (67,'BOTOL 1000ML RED KHUSUS UNTUK EPSON R1800/R800/R1900/R2000 - 4170 IM (T054720)','CI MTH TINTA LAIN (IM)',1000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (68,'BOTOL 1000ML YELLOW KHUSUS UNTUK EPSON R1800/R800/R1900/R2000 - 4160 IM (T054420)','CI MTH TINTA LAIN (IM)',1500,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (70,'BOTOL KOTAK 100ML LK','L MTH AKSESORIS (LK)',1000,'bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (72,'BOTOL 10ML IM','S MTH STEMPEL (IM)',1000,'tidak bisa dijual');
INSERT INTO tb_produk(id_produk,nama_produk,kategori,harga,status) VALUES (74,'<NAME>','TINTA',30000,'tidak bisa dijual');
|
/*
Navicat Premium Data Transfer
Source Server : 127.0.0.1 PostgreSQL
Source Server Type : PostgreSQL
Source Server Version : 140002
Source Host : 127.0.0.1:5432
Source Catalog : ruoyi-vue-pro
Source Schema : public
Target Server Type : PostgreSQL
Target Server Version : 140002
File Encoding : 65001
Date: 02/05/2022 16:42:43
*/
-- ----------------------------
-- Sequence structure for act_evt_log_log_nr__seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "act_evt_log_log_nr__seq";
CREATE SEQUENCE "act_evt_log_log_nr__seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 2147483647
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for act_hi_tsk_log_id__seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "act_hi_tsk_log_id__seq";
CREATE SEQUENCE "act_hi_tsk_log_id__seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 2147483647
START 1
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_form_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_form_seq";
CREATE SEQUENCE "bpm_form_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_oa_leave_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_oa_leave_seq";
CREATE SEQUENCE "bpm_oa_leave_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_process_definition_ext_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_process_definition_ext_seq";
CREATE SEQUENCE "bpm_process_definition_ext_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_process_instance_ext_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_process_instance_ext_seq";
CREATE SEQUENCE "bpm_process_instance_ext_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_task_assign_rule_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_task_assign_rule_seq";
CREATE SEQUENCE "bpm_task_assign_rule_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_task_ext_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_task_ext_seq";
CREATE SEQUENCE "bpm_task_ext_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for bpm_user_group_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "bpm_user_group_seq";
CREATE SEQUENCE "bpm_user_group_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_api_access_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_api_access_log_seq";
CREATE SEQUENCE "infra_api_access_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_api_error_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_api_error_log_seq";
CREATE SEQUENCE "infra_api_error_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_codegen_column_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_codegen_column_seq";
CREATE SEQUENCE "infra_codegen_column_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_codegen_table_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_codegen_table_seq";
CREATE SEQUENCE "infra_codegen_table_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_config_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_config_seq";
CREATE SEQUENCE "infra_config_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_data_source_config_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_data_source_config_seq";
CREATE SEQUENCE "infra_data_source_config_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_file_config_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_file_config_seq";
CREATE SEQUENCE "infra_file_config_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_file_content_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_file_content_seq";
CREATE SEQUENCE "infra_file_content_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_file_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_file_seq";
CREATE SEQUENCE "infra_file_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_job_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_job_log_seq";
CREATE SEQUENCE "infra_job_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_job_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_job_seq";
CREATE SEQUENCE "infra_job_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for infra_test_demo_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "infra_test_demo_seq";
CREATE SEQUENCE "infra_test_demo_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for member_user_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "member_user_seq";
CREATE SEQUENCE "member_user_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_app_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_app_seq";
CREATE SEQUENCE "pay_app_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_channel_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_channel_seq";
CREATE SEQUENCE "pay_channel_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_merchant_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_merchant_seq";
CREATE SEQUENCE "pay_merchant_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_notify_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_notify_log_seq";
CREATE SEQUENCE "pay_notify_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_notify_task_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_notify_task_seq";
CREATE SEQUENCE "pay_notify_task_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_order_extension_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_order_extension_seq";
CREATE SEQUENCE "pay_order_extension_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_order_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_order_seq";
CREATE SEQUENCE "pay_order_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for pay_refund_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "pay_refund_seq";
CREATE SEQUENCE "pay_refund_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_dept_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_dept_seq";
CREATE SEQUENCE "system_dept_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_dict_data_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_dict_data_seq";
CREATE SEQUENCE "system_dict_data_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_dict_type_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_dict_type_seq";
CREATE SEQUENCE "system_dict_type_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_error_code_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_error_code_seq";
CREATE SEQUENCE "system_error_code_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_login_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_login_log_seq";
CREATE SEQUENCE "system_login_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_menu_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_menu_seq";
CREATE SEQUENCE "system_menu_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_notice_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_notice_seq";
CREATE SEQUENCE "system_notice_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_operate_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_operate_log_seq";
CREATE SEQUENCE "system_operate_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_post_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_post_seq";
CREATE SEQUENCE "system_post_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_role_menu_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_role_menu_seq";
CREATE SEQUENCE "system_role_menu_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_role_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_role_seq";
CREATE SEQUENCE "system_role_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_sensitive_word_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_sensitive_word_seq";
CREATE SEQUENCE "system_sensitive_word_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_sms_channel_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_sms_channel_seq";
CREATE SEQUENCE "system_sms_channel_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_sms_code_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_sms_code_seq";
CREATE SEQUENCE "system_sms_code_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_sms_log_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_sms_log_seq";
CREATE SEQUENCE "system_sms_log_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_sms_template_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_sms_template_seq";
CREATE SEQUENCE "system_sms_template_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_social_user_bind_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_social_user_bind_seq";
CREATE SEQUENCE "system_social_user_bind_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_social_user_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_social_user_seq";
CREATE SEQUENCE "system_social_user_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_tenant_package_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_tenant_package_seq";
CREATE SEQUENCE "system_tenant_package_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_tenant_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_tenant_seq";
CREATE SEQUENCE "system_tenant_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_user_post_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_user_post_seq";
CREATE SEQUENCE "system_user_post_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_user_role_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_user_role_seq";
CREATE SEQUENCE "system_user_role_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_user_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_user_seq";
CREATE SEQUENCE "system_user_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Sequence structure for system_user_session_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "system_user_session_seq";
CREATE SEQUENCE "system_user_session_seq"
INCREMENT 1
MAXVALUE 9223372036854775807
CACHE 1;
-- ----------------------------
-- Table structure for act_evt_log
-- ----------------------------
DROP TABLE IF EXISTS "act_evt_log";
CREATE TABLE "act_evt_log" (
"log_nr_" int4 NOT NULL DEFAULT nextval('act_evt_log_log_nr__seq'::regclass),
"type_" varchar(64) COLLATE "pg_catalog"."default",
"proc_def_id_" varchar(64) COLLATE "pg_catalog"."default",
"proc_inst_id_" varchar(64) COLLATE "pg_catalog"."default",
"execution_id_" varchar(64) COLLATE "pg_catalog"."default",
"task_id_" varchar(64) COLLATE "pg_catalog"."default",
"time_stamp_" timestamp(6) NOT NULL,
"user_id_" varchar(255) COLLATE "pg_catalog"."default",
"data_" bytea,
"lock_owner_" varchar(255) COLLATE "pg_catalog"."default",
"lock_time_" timestamp(6),
"is_processed_" int2 DEFAULT 0
)
;
-- ----------------------------
-- Records of act_evt_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for bpm_form
-- ----------------------------
DROP TABLE IF EXISTS "bpm_form";
CREATE TABLE "bpm_form" (
"id" int8 NOT NULL,
"name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"conf" varchar(1000) COLLATE "pg_catalog"."default" NOT NULL,
"fields" varchar(5000) COLLATE "pg_catalog"."default" NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_form"."id" IS '编号';
COMMENT ON COLUMN "bpm_form"."name" IS '表单名';
COMMENT ON COLUMN "bpm_form"."status" IS '开启状态';
COMMENT ON COLUMN "bpm_form"."conf" IS '表单的配置';
COMMENT ON COLUMN "bpm_form"."fields" IS '表单项的数组';
COMMENT ON COLUMN "bpm_form"."remark" IS '备注';
COMMENT ON COLUMN "bpm_form"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_form"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_form"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_form"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_form"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_form"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_form" IS '工作流的表单定义';
-- ----------------------------
-- Records of bpm_form
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for bpm_oa_leave
-- ----------------------------
DROP TABLE IF EXISTS "bpm_oa_leave";
CREATE TABLE "bpm_oa_leave" (
"id" int8 NOT NULL,
"user_id" int8 NOT NULL,
"type" int2 NOT NULL,
"reason" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"start_time" timestamp(6) NOT NULL,
"end_time" timestamp(6) NOT NULL,
"day" int2 NOT NULL,
"result" int2 NOT NULL,
"process_instance_id" varchar(64) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default" DEFAULT ''::character varying,
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_oa_leave"."id" IS '请假表单主键';
COMMENT ON COLUMN "bpm_oa_leave"."user_id" IS '申请人的用户编号';
COMMENT ON COLUMN "bpm_oa_leave"."type" IS '请假类型';
COMMENT ON COLUMN "bpm_oa_leave"."reason" IS '请假原因';
COMMENT ON COLUMN "bpm_oa_leave"."start_time" IS '开始时间';
COMMENT ON COLUMN "bpm_oa_leave"."end_time" IS '结束时间';
COMMENT ON COLUMN "bpm_oa_leave"."day" IS '请假天数';
COMMENT ON COLUMN "bpm_oa_leave"."result" IS '请假结果';
COMMENT ON COLUMN "bpm_oa_leave"."process_instance_id" IS '流程实例的编号';
COMMENT ON COLUMN "bpm_oa_leave"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_oa_leave"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_oa_leave"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_oa_leave"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_oa_leave"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_oa_leave"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_oa_leave" IS 'OA 请假申请表';
-- ----------------------------
-- Records of bpm_oa_leave
-- ----------------------------
BEGIN;
INSERT INTO "bpm_oa_leave" ("id", "user_id", "type", "reason", "start_time", "end_time", "day", "result", "process_instance_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, 1, 2, '222', '2022-04-04 00:00:00', '2022-04-19 00:00:00', 15, 2, '0d23cbd6-c893-11ec-8a1d-3e2374911326', '1', '2022-04-30 22:37:24.589', '1', '2022-04-30 22:40:30.538', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for bpm_process_definition_ext
-- ----------------------------
DROP TABLE IF EXISTS "bpm_process_definition_ext";
CREATE TABLE "bpm_process_definition_ext" (
"id" int8 NOT NULL,
"process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"model_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"description" varchar(255) COLLATE "pg_catalog"."default",
"form_type" int2 NOT NULL,
"form_id" int8,
"form_conf" varchar(1000) COLLATE "pg_catalog"."default",
"form_fields" varchar(5000) COLLATE "pg_catalog"."default",
"form_custom_create_path" varchar(255) COLLATE "pg_catalog"."default",
"form_custom_view_path" varchar(255) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_process_definition_ext"."id" IS '编号';
COMMENT ON COLUMN "bpm_process_definition_ext"."process_definition_id" IS '流程定义的编号';
COMMENT ON COLUMN "bpm_process_definition_ext"."model_id" IS '流程模型的编号';
COMMENT ON COLUMN "bpm_process_definition_ext"."description" IS '描述';
COMMENT ON COLUMN "bpm_process_definition_ext"."form_type" IS '表单类型';
COMMENT ON COLUMN "bpm_process_definition_ext"."form_id" IS '表单编号';
COMMENT ON COLUMN "bpm_process_definition_ext"."form_conf" IS '表单的配置';
COMMENT ON COLUMN "bpm_process_definition_ext"."form_fields" IS '表单项的数组';
COMMENT ON COLUMN "bpm_process_definition_ext"."form_custom_create_path" IS '自定义表单的提交路径';
COMMENT ON COLUMN "bpm_process_definition_ext"."form_custom_view_path" IS '自定义表单的查看路径';
COMMENT ON COLUMN "bpm_process_definition_ext"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_process_definition_ext"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_process_definition_ext"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_process_definition_ext"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_process_definition_ext"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_process_definition_ext"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_process_definition_ext" IS 'Bpm 流程定义的拓展表
';
-- ----------------------------
-- Records of bpm_process_definition_ext
-- ----------------------------
BEGIN;
INSERT INTO "bpm_process_definition_ext" ("id", "process_definition_id", "model_id", "description", "form_type", "form_id", "form_conf", "form_fields", "form_custom_create_path", "form_custom_view_path", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (0, 'oa_leave:1:934362e3-c892-11ec-a15b-3e2374911326', '2d3151fa-c892-11ec-a15b-3e2374911326', NULL, 20, NULL, NULL, NULL, '/bpm/oa/leave/create', '/bpm/oa/leave/detail', '1', '2022-04-30 22:34:00.342', '1', '2022-04-30 22:34:00.342', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for bpm_process_instance_ext
-- ----------------------------
DROP TABLE IF EXISTS "bpm_process_instance_ext";
CREATE TABLE "bpm_process_instance_ext" (
"id" int8 NOT NULL,
"start_user_id" int8 NOT NULL,
"name" varchar(64) COLLATE "pg_catalog"."default",
"process_instance_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"category" varchar(64) COLLATE "pg_catalog"."default",
"status" int2 NOT NULL,
"result" int2 NOT NULL,
"end_time" timestamp(6),
"form_variables" varchar(5000) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_process_instance_ext"."id" IS '编号';
COMMENT ON COLUMN "bpm_process_instance_ext"."start_user_id" IS '发起流程的用户编号';
COMMENT ON COLUMN "bpm_process_instance_ext"."name" IS '流程实例的名字';
COMMENT ON COLUMN "bpm_process_instance_ext"."process_instance_id" IS '流程实例的编号';
COMMENT ON COLUMN "bpm_process_instance_ext"."process_definition_id" IS '流程定义的编号';
COMMENT ON COLUMN "bpm_process_instance_ext"."category" IS '流程分类';
COMMENT ON COLUMN "bpm_process_instance_ext"."status" IS '流程实例的状态';
COMMENT ON COLUMN "bpm_process_instance_ext"."result" IS '流程实例的结果';
COMMENT ON COLUMN "bpm_process_instance_ext"."end_time" IS '结束时间';
COMMENT ON COLUMN "bpm_process_instance_ext"."form_variables" IS '表单值';
COMMENT ON COLUMN "bpm_process_instance_ext"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_process_instance_ext"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_process_instance_ext"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_process_instance_ext"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_process_instance_ext"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_process_instance_ext"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_process_instance_ext" IS '工作流的流程实例的拓展';
-- ----------------------------
-- Records of bpm_process_instance_ext
-- ----------------------------
BEGIN;
INSERT INTO "bpm_process_instance_ext" ("id", "start_user_id", "name", "process_instance_id", "process_definition_id", "category", "status", "result", "end_time", "form_variables", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (0, 1, 'OA 请假', '0d23cbd6-c893-11ec-8a1d-3e2374911326', 'oa_leave:1:934362e3-c892-11ec-a15b-3e2374911326', '2', 2, 2, '2022-04-30 22:40:30.428', '{"day":15}', '1', '2022-04-30 22:37:24.802', '1', '2022-04-30 22:40:30.432', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for bpm_task_assign_rule
-- ----------------------------
DROP TABLE IF EXISTS "bpm_task_assign_rule";
CREATE TABLE "bpm_task_assign_rule" (
"id" int8 NOT NULL,
"model_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"task_definition_key" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"type" int2 NOT NULL,
"options" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_task_assign_rule"."id" IS '编号';
COMMENT ON COLUMN "bpm_task_assign_rule"."model_id" IS '流程模型的编号';
COMMENT ON COLUMN "bpm_task_assign_rule"."process_definition_id" IS '流程定义的编号';
COMMENT ON COLUMN "bpm_task_assign_rule"."task_definition_key" IS '流程任务定义的 key';
COMMENT ON COLUMN "bpm_task_assign_rule"."type" IS '规则类型';
COMMENT ON COLUMN "bpm_task_assign_rule"."options" IS '规则值,JSON 数组';
COMMENT ON COLUMN "bpm_task_assign_rule"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_task_assign_rule"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_task_assign_rule"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_task_assign_rule"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_task_assign_rule"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_task_assign_rule"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_task_assign_rule" IS 'Bpm 任务规则表';
-- ----------------------------
-- Records of bpm_task_assign_rule
-- ----------------------------
BEGIN;
INSERT INTO "bpm_task_assign_rule" ("id", "model_id", "process_definition_id", "task_definition_key", "type", "options", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (0, '2d3151fa-c892-11ec-a15b-3e2374911326', '', 'task01', 30, '[1]', '1', '2022-04-30 22:32:55.005', '1', '2022-04-30 22:32:55.005', 0, 1);
INSERT INTO "bpm_task_assign_rule" ("id", "model_id", "process_definition_id", "task_definition_key", "type", "options", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, '2d3151fa-c892-11ec-a15b-3e2374911326', 'oa_leave:1:934362e3-c892-11ec-a15b-3e2374911326', 'task01', 30, '[1]', '1', '2022-04-30 22:34:00.401', '1', '2022-04-30 22:34:00.401', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for bpm_task_ext
-- ----------------------------
DROP TABLE IF EXISTS "bpm_task_ext";
CREATE TABLE "bpm_task_ext" (
"id" int8 NOT NULL,
"assignee_user_id" int8,
"name" varchar(64) COLLATE "pg_catalog"."default",
"task_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"result" int2 NOT NULL,
"reason" varchar(255) COLLATE "pg_catalog"."default",
"end_time" timestamp(6),
"process_instance_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"process_definition_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_task_ext"."id" IS '编号';
COMMENT ON COLUMN "bpm_task_ext"."assignee_user_id" IS '任务的审批人';
COMMENT ON COLUMN "bpm_task_ext"."name" IS '任务的名字';
COMMENT ON COLUMN "bpm_task_ext"."task_id" IS '任务的编号';
COMMENT ON COLUMN "bpm_task_ext"."result" IS '任务的结果';
COMMENT ON COLUMN "bpm_task_ext"."reason" IS '审批建议';
COMMENT ON COLUMN "bpm_task_ext"."end_time" IS '任务的结束时间';
COMMENT ON COLUMN "bpm_task_ext"."process_instance_id" IS '流程实例的编号';
COMMENT ON COLUMN "bpm_task_ext"."process_definition_id" IS '流程定义的编号';
COMMENT ON COLUMN "bpm_task_ext"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_task_ext"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_task_ext"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_task_ext"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_task_ext"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_task_ext"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_task_ext" IS '工作流的流程任务的拓展表';
-- ----------------------------
-- Records of bpm_task_ext
-- ----------------------------
BEGIN;
INSERT INTO "bpm_task_ext" ("id", "assignee_user_id", "name", "task_id", "result", "reason", "end_time", "process_instance_id", "process_definition_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (0, 1, 'task01', '0d2f167e-c893-11ec-8a1d-3e2374911326', 2, 'A', '2022-04-30 22:40:30.328', '0d23cbd6-c893-11ec-8a1d-3e2374911326', 'oa_leave:1:934362e3-c892-11ec-a15b-3e2374911326', '1', '2022-04-30 22:37:24.822', '1', '2022-04-30 22:40:30.687', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for bpm_user_group
-- ----------------------------
DROP TABLE IF EXISTS "bpm_user_group";
CREATE TABLE "bpm_user_group" (
"id" int8 NOT NULL,
"name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"description" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"member_user_ids" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "bpm_user_group"."id" IS '编号';
COMMENT ON COLUMN "bpm_user_group"."name" IS '组名';
COMMENT ON COLUMN "bpm_user_group"."description" IS '描述';
COMMENT ON COLUMN "bpm_user_group"."member_user_ids" IS '成员编号数组';
COMMENT ON COLUMN "bpm_user_group"."status" IS '状态(0正常 1停用)';
COMMENT ON COLUMN "bpm_user_group"."creator" IS '创建者';
COMMENT ON COLUMN "bpm_user_group"."create_time" IS '创建时间';
COMMENT ON COLUMN "bpm_user_group"."updater" IS '更新者';
COMMENT ON COLUMN "bpm_user_group"."update_time" IS '更新时间';
COMMENT ON COLUMN "bpm_user_group"."deleted" IS '是否删除';
COMMENT ON COLUMN "bpm_user_group"."tenant_id" IS '租户编号';
COMMENT ON TABLE "bpm_user_group" IS '用户组';
-- ----------------------------
-- Records of bpm_user_group
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for dual
-- ----------------------------
DROP TABLE IF EXISTS "dual";
CREATE TABLE "dual" (
)
;
-- ----------------------------
-- Records of dual
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_api_access_log
-- ----------------------------
DROP TABLE IF EXISTS "infra_api_access_log";
CREATE TABLE "infra_api_access_log" (
"id" int8 NOT NULL,
"trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"user_id" int8 NOT NULL DEFAULT 0,
"user_type" int2 NOT NULL DEFAULT 0,
"application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"request_method" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
"request_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"request_params" varchar(8000) COLLATE "pg_catalog"."default" NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"begin_time" timestamp(6) NOT NULL,
"end_time" timestamp(6) NOT NULL,
"duration" int4 NOT NULL,
"result_code" int4 NOT NULL,
"result_msg" varchar(512) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_api_access_log"."id" IS '日志主键';
COMMENT ON COLUMN "infra_api_access_log"."trace_id" IS '链路追踪编号';
COMMENT ON COLUMN "infra_api_access_log"."user_id" IS '用户编号';
COMMENT ON COLUMN "infra_api_access_log"."user_type" IS '用户类型';
COMMENT ON COLUMN "infra_api_access_log"."application_name" IS '应用名';
COMMENT ON COLUMN "infra_api_access_log"."request_method" IS '请求方法名';
COMMENT ON COLUMN "infra_api_access_log"."request_url" IS '请求地址';
COMMENT ON COLUMN "infra_api_access_log"."request_params" IS '请求参数';
COMMENT ON COLUMN "infra_api_access_log"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "infra_api_access_log"."user_agent" IS '浏览器 UA';
COMMENT ON COLUMN "infra_api_access_log"."begin_time" IS '开始请求时间';
COMMENT ON COLUMN "infra_api_access_log"."end_time" IS '结束请求时间';
COMMENT ON COLUMN "infra_api_access_log"."duration" IS '执行时长';
COMMENT ON COLUMN "infra_api_access_log"."result_code" IS '结果码';
COMMENT ON COLUMN "infra_api_access_log"."result_msg" IS '结果提示';
COMMENT ON COLUMN "infra_api_access_log"."creator" IS '创建者';
COMMENT ON COLUMN "infra_api_access_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_api_access_log"."updater" IS '更新者';
COMMENT ON COLUMN "infra_api_access_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_api_access_log"."deleted" IS '是否删除';
COMMENT ON COLUMN "infra_api_access_log"."tenant_id" IS '租户编号';
COMMENT ON TABLE "infra_api_access_log" IS 'API 访问日志表';
-- ----------------------------
-- Records of infra_api_access_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_api_error_log
-- ----------------------------
DROP TABLE IF EXISTS "infra_api_error_log";
CREATE TABLE "infra_api_error_log" (
"id" int4 NOT NULL,
"trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"user_id" int4 NOT NULL DEFAULT 0,
"user_type" int2 NOT NULL DEFAULT 0,
"application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"request_method" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
"request_url" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"request_params" varchar(8000) COLLATE "pg_catalog"."default" NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"exception_time" timestamp(6) NOT NULL,
"exception_name" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
"exception_message" text COLLATE "pg_catalog"."default" NOT NULL,
"exception_root_cause_message" text COLLATE "pg_catalog"."default" NOT NULL,
"exception_stack_trace" text COLLATE "pg_catalog"."default" NOT NULL,
"exception_class_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"exception_file_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"exception_method_name" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"exception_line_number" int4 NOT NULL,
"process_status" int2 NOT NULL,
"process_time" timestamp(6),
"process_user_id" int4,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_api_error_log"."id" IS '编号';
COMMENT ON COLUMN "infra_api_error_log"."trace_id" IS '链路追踪编号
*
* 一般来说,通过链路追踪编号,可以将访问日志,错误日志,链路追踪日志,logger 打印日志等,结合在一起,从而进行排错。';
COMMENT ON COLUMN "infra_api_error_log"."user_id" IS '用户编号';
COMMENT ON COLUMN "infra_api_error_log"."user_type" IS '用户类型';
COMMENT ON COLUMN "infra_api_error_log"."application_name" IS '应用名
*
* 目前读取 spring.application.name';
COMMENT ON COLUMN "infra_api_error_log"."request_method" IS '请求方法名';
COMMENT ON COLUMN "infra_api_error_log"."request_url" IS '请求地址';
COMMENT ON COLUMN "infra_api_error_log"."request_params" IS '请求参数';
COMMENT ON COLUMN "infra_api_error_log"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "infra_api_error_log"."user_agent" IS '浏览器 UA';
COMMENT ON COLUMN "infra_api_error_log"."exception_time" IS '异常发生时间';
COMMENT ON COLUMN "infra_api_error_log"."exception_name" IS '异常名
*
* {@link Throwable#getClass()} 的类全名';
COMMENT ON COLUMN "infra_api_error_log"."exception_message" IS '异常导致的消息
*
* {@link cn.iocoder.common.framework.util.ExceptionUtil#getMessage(Throwable)}';
COMMENT ON COLUMN "infra_api_error_log"."exception_root_cause_message" IS '异常导致的根消息
*
* {@link cn.iocoder.common.framework.util.ExceptionUtil#getRootCauseMessage(Throwable)}';
COMMENT ON COLUMN "infra_api_error_log"."exception_stack_trace" IS '异常的栈轨迹
*
* {@link cn.iocoder.common.framework.util.ExceptionUtil#getServiceException(Exception)}';
COMMENT ON COLUMN "infra_api_error_log"."exception_class_name" IS '异常发生的类全名
*
* {@link StackTraceElement#getClassName()}';
COMMENT ON COLUMN "infra_api_error_log"."exception_file_name" IS '异常发生的类文件
*
* {@link StackTraceElement#getFileName()}';
COMMENT ON COLUMN "infra_api_error_log"."exception_method_name" IS '异常发生的方法名
*
* {@link StackTraceElement#getMethodName()}';
COMMENT ON COLUMN "infra_api_error_log"."exception_line_number" IS '异常发生的方法所在行
*
* {@link StackTraceElement#getLineNumber()}';
COMMENT ON COLUMN "infra_api_error_log"."process_status" IS '处理状态';
COMMENT ON COLUMN "infra_api_error_log"."process_time" IS '处理时间';
COMMENT ON COLUMN "infra_api_error_log"."process_user_id" IS '处理用户编号';
COMMENT ON COLUMN "infra_api_error_log"."creator" IS '创建者';
COMMENT ON COLUMN "infra_api_error_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_api_error_log"."updater" IS '更新者';
COMMENT ON COLUMN "infra_api_error_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_api_error_log"."deleted" IS '是否删除';
COMMENT ON COLUMN "infra_api_error_log"."tenant_id" IS '租户编号';
COMMENT ON TABLE "infra_api_error_log" IS '系统异常日志';
-- ----------------------------
-- Records of infra_api_error_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_codegen_column
-- ----------------------------
DROP TABLE IF EXISTS "infra_codegen_column";
CREATE TABLE "infra_codegen_column" (
"id" int8 NOT NULL,
"table_id" int8 NOT NULL,
"column_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"data_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"column_comment" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"nullable" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"primary_key" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"auto_increment" char(1) COLLATE "pg_catalog"."default" NOT NULL,
"ordinal_position" int4 NOT NULL,
"java_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"java_field" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"dict_type" varchar(200) COLLATE "pg_catalog"."default",
"example" varchar(64) COLLATE "pg_catalog"."default",
"create_operation" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"update_operation" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"list_operation" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"list_operation_condition" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"list_operation_result" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"html_type" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_codegen_column"."id" IS '编号';
COMMENT ON COLUMN "infra_codegen_column"."table_id" IS '表编号';
COMMENT ON COLUMN "infra_codegen_column"."column_name" IS '字段名';
COMMENT ON COLUMN "infra_codegen_column"."data_type" IS '字段类型';
COMMENT ON COLUMN "infra_codegen_column"."column_comment" IS '字段描述';
COMMENT ON COLUMN "infra_codegen_column"."nullable" IS '是否允许为空';
COMMENT ON COLUMN "infra_codegen_column"."primary_key" IS '是否主键';
COMMENT ON COLUMN "infra_codegen_column"."auto_increment" IS '是否自增';
COMMENT ON COLUMN "infra_codegen_column"."ordinal_position" IS '排序';
COMMENT ON COLUMN "infra_codegen_column"."java_type" IS 'Java 属性类型';
COMMENT ON COLUMN "infra_codegen_column"."java_field" IS 'Java 属性名';
COMMENT ON COLUMN "infra_codegen_column"."dict_type" IS '字典类型';
COMMENT ON COLUMN "infra_codegen_column"."example" IS '数据示例';
COMMENT ON COLUMN "infra_codegen_column"."create_operation" IS '是否为 Create 创建操作的字段';
COMMENT ON COLUMN "infra_codegen_column"."update_operation" IS '是否为 Update 更新操作的字段';
COMMENT ON COLUMN "infra_codegen_column"."list_operation" IS '是否为 List 查询操作的字段';
COMMENT ON COLUMN "infra_codegen_column"."list_operation_condition" IS 'List 查询操作的条件类型';
COMMENT ON COLUMN "infra_codegen_column"."list_operation_result" IS '是否为 List 查询操作的返回字段';
COMMENT ON COLUMN "infra_codegen_column"."html_type" IS '显示类型';
COMMENT ON COLUMN "infra_codegen_column"."creator" IS '创建者';
COMMENT ON COLUMN "infra_codegen_column"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_codegen_column"."updater" IS '更新者';
COMMENT ON COLUMN "infra_codegen_column"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_codegen_column"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_codegen_column" IS '代码生成表字段定义';
-- ----------------------------
-- Records of infra_codegen_column
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_codegen_table
-- ----------------------------
DROP TABLE IF EXISTS "infra_codegen_table";
CREATE TABLE "infra_codegen_table" (
"id" int8 NOT NULL,
"data_source_config_id" int8 NOT NULL,
"scene" int2 NOT NULL,
"table_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"table_comment" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"remark" varchar(500) COLLATE "pg_catalog"."default",
"module_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"business_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"class_name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"class_comment" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"author" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"template_type" int2 NOT NULL,
"parent_menu_id" int8,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_codegen_table"."id" IS '编号';
COMMENT ON COLUMN "infra_codegen_table"."data_source_config_id" IS '数据源配置的编号';
COMMENT ON COLUMN "infra_codegen_table"."scene" IS '生成场景';
COMMENT ON COLUMN "infra_codegen_table"."table_name" IS '表名称';
COMMENT ON COLUMN "infra_codegen_table"."table_comment" IS '表描述';
COMMENT ON COLUMN "infra_codegen_table"."remark" IS '备注';
COMMENT ON COLUMN "infra_codegen_table"."module_name" IS '模块名';
COMMENT ON COLUMN "infra_codegen_table"."business_name" IS '业务名';
COMMENT ON COLUMN "infra_codegen_table"."class_name" IS '类名称';
COMMENT ON COLUMN "infra_codegen_table"."class_comment" IS '类描述';
COMMENT ON COLUMN "infra_codegen_table"."author" IS '作者';
COMMENT ON COLUMN "infra_codegen_table"."template_type" IS '模板类型';
COMMENT ON COLUMN "infra_codegen_table"."parent_menu_id" IS '父菜单编号';
COMMENT ON COLUMN "infra_codegen_table"."creator" IS '创建者';
COMMENT ON COLUMN "infra_codegen_table"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_codegen_table"."updater" IS '更新者';
COMMENT ON COLUMN "infra_codegen_table"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_codegen_table"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_codegen_table" IS '代码生成表定义';
-- ----------------------------
-- Records of infra_codegen_table
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_config
-- ----------------------------
DROP TABLE IF EXISTS "infra_config";
CREATE TABLE "infra_config" (
"id" int4 NOT NULL,
"category" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"type" int2 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"config_key" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"value" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"visible" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"remark" varchar(500) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_config"."id" IS '参数主键';
COMMENT ON COLUMN "infra_config"."category" IS '参数分组';
COMMENT ON COLUMN "infra_config"."type" IS '参数类型';
COMMENT ON COLUMN "infra_config"."name" IS '参数名称';
COMMENT ON COLUMN "infra_config"."config_key" IS '参数键名';
COMMENT ON COLUMN "infra_config"."value" IS '参数键值';
COMMENT ON COLUMN "infra_config"."visible" IS '是否可见';
COMMENT ON COLUMN "infra_config"."remark" IS '备注';
COMMENT ON COLUMN "infra_config"."creator" IS '创建者';
COMMENT ON COLUMN "infra_config"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_config"."updater" IS '更新者';
COMMENT ON COLUMN "infra_config"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_config"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_config" IS '参数配置表';
-- ----------------------------
-- Records of infra_config
-- ----------------------------
BEGIN;
INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, 'ui', 1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', '0', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 'admin', '2021-01-05 17:03:48', '1', '2022-03-26 23:10:31', 0);
INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 'biz', 1, '用户管理-账号初始密码', '<PASSWORD>', '<PASSWORD>', '0', '初始化密码 <PASSWORD>', 'admin', '2021-01-05 17:03:48', '1', '2022-03-20 02:25:51', 0);
INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (3, 'ui', 1, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', '0', '深色主题theme-dark,浅色主题theme-light', 'admin', '2021-01-05 17:03:48', '', '2021-01-19 03:05:21', 0);
INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '1', 2, 'xxx', 'demo.test', '10', '0', '5', '', '2021-01-19 03:10:26', '', '2021-01-20 09:25:55', 0);
INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, 'xxx', 2, 'xxx', 'xxx', 'xxx', '1', 'xxx', '', '2021-02-09 20:06:47', '', '2021-02-09 20:06:47', 0);
INSERT INTO "infra_config" ("id", "category", "type", "name", "config_key", "value", "visible", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, 'biz', 2, '登陆验证码的开关', 'yudao.captcha.enable', 'true', '1', NULL, '1', '2022-02-17 00:03:11', '1', '2022-04-04 12:51:40', 0);
COMMIT;
-- ----------------------------
-- Table structure for infra_data_source_config
-- ----------------------------
DROP TABLE IF EXISTS "infra_data_source_config";
CREATE TABLE "infra_data_source_config" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"username" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"password" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_data_source_config"."id" IS '主键编号';
COMMENT ON COLUMN "infra_data_source_config"."name" IS '参数名称';
COMMENT ON COLUMN "infra_data_source_config"."url" IS '数据源连接';
COMMENT ON COLUMN "infra_data_source_config"."username" IS '用户名';
COMMENT ON COLUMN "infra_data_source_config"."password" IS '密码';
COMMENT ON COLUMN "infra_data_source_config"."creator" IS '创建者';
COMMENT ON COLUMN "infra_data_source_config"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_data_source_config"."updater" IS '更新者';
COMMENT ON COLUMN "infra_data_source_config"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_data_source_config"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_data_source_config" IS '数据源配置表';
-- ----------------------------
-- Records of infra_data_source_config
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_file
-- ----------------------------
DROP TABLE IF EXISTS "infra_file";
CREATE TABLE "infra_file" (
"id" int8 NOT NULL DEFAULT 0,
"config_id" int8,
"path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"type" varchar(63) COLLATE "pg_catalog"."default",
"size" int4 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_file"."id" IS '文件编号';
COMMENT ON COLUMN "infra_file"."config_id" IS '配置编号';
COMMENT ON COLUMN "infra_file"."path" IS '文件路径';
COMMENT ON COLUMN "infra_file"."url" IS '文件 URL';
COMMENT ON COLUMN "infra_file"."type" IS '文件类型';
COMMENT ON COLUMN "infra_file"."size" IS '文件大小';
COMMENT ON COLUMN "infra_file"."creator" IS '创建者';
COMMENT ON COLUMN "infra_file"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_file"."updater" IS '更新者';
COMMENT ON COLUMN "infra_file"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_file"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_file" IS '文件表';
-- ----------------------------
-- Records of infra_file
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_file_config
-- ----------------------------
DROP TABLE IF EXISTS "infra_file_config";
CREATE TABLE "infra_file_config" (
"id" int8 NOT NULL,
"name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"storage" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"master" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"config" varchar(4096) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_file_config"."id" IS '编号';
COMMENT ON COLUMN "infra_file_config"."name" IS '配置名';
COMMENT ON COLUMN "infra_file_config"."storage" IS '存储器';
COMMENT ON COLUMN "infra_file_config"."remark" IS '备注';
COMMENT ON COLUMN "infra_file_config"."master" IS '是否为主配置';
COMMENT ON COLUMN "infra_file_config"."config" IS '存储配置';
COMMENT ON COLUMN "infra_file_config"."creator" IS '创建者';
COMMENT ON COLUMN "infra_file_config"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_file_config"."updater" IS '更新者';
COMMENT ON COLUMN "infra_file_config"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_file_config"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_file_config" IS '文件配置表';
-- ----------------------------
-- Records of infra_file_config
-- ----------------------------
BEGIN;
INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '数据库', 1, '我是数据库', '0', '{"@class":"cn.iocoder.yudao.framework.file.core.client.db.DBFileClientConfig","domain":"http://127.0.0.1:48080"}', '1', '2022-03-15 23:56:24', '1', '2022-03-26 21:39:26', 0);
INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, '本地磁盘', 10, '测试下本地存储', '0', '{"@class":"cn.iocoder.yudao.framework.file.core.client.local.LocalFileClientConfig","basePath":"/Users/yunai/file_test","domain":"http://127.0.0.1:48080"}', '1', '2022-03-15 23:57:00', '1', '2022-03-26 21:39:26', 0);
INSERT INTO "infra_file_config" ("id", "name", "storage", "remark", "master", "config", "creator", "create_time", "updater", "update_time", "deleted") VALUES (11, 'S3 - 七牛云', 20, NULL, '1', '{"@class":"cn.iocoder.yudao.framework.file.core.client.s3.S3FileClientConfig","endpoint":"s3-cn-south-1.qiniucs.com","domain":"http://test.yudao.iocoder.cn","bucket":"ruoyi-vue-pro","accessKey":"<KEY>","accessSecret":"<KEY>"}', '1', '2022-03-19 18:00:03', '1', '2022-03-26 21:39:26', 0);
COMMIT;
-- ----------------------------
-- Table structure for infra_file_content
-- ----------------------------
DROP TABLE IF EXISTS "infra_file_content";
CREATE TABLE "infra_file_content" (
"id" int8 NOT NULL,
"config_id" int8 NOT NULL,
"path" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"content" bytea NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_file_content"."id" IS '编号';
COMMENT ON COLUMN "infra_file_content"."config_id" IS '配置编号';
COMMENT ON COLUMN "infra_file_content"."path" IS '文件路径';
COMMENT ON COLUMN "infra_file_content"."content" IS '文件内容';
COMMENT ON COLUMN "infra_file_content"."creator" IS '创建者';
COMMENT ON COLUMN "infra_file_content"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_file_content"."updater" IS '更新者';
COMMENT ON COLUMN "infra_file_content"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_file_content"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_file_content" IS '文件表';
-- ----------------------------
-- Records of infra_file_content
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_job
-- ----------------------------
DROP TABLE IF EXISTS "infra_job";
CREATE TABLE "infra_job" (
"id" int8 NOT NULL,
"name" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"handler_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"handler_param" varchar(255) COLLATE "pg_catalog"."default",
"cron_expression" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"retry_count" int4 NOT NULL,
"retry_interval" int4 NOT NULL,
"monitor_timeout" int4 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_job"."id" IS '任务编号';
COMMENT ON COLUMN "infra_job"."name" IS '任务名称';
COMMENT ON COLUMN "infra_job"."status" IS '任务状态';
COMMENT ON COLUMN "infra_job"."handler_name" IS '处理器的名字';
COMMENT ON COLUMN "infra_job"."handler_param" IS '处理器的参数';
COMMENT ON COLUMN "infra_job"."cron_expression" IS 'CRON 表达式';
COMMENT ON COLUMN "infra_job"."retry_count" IS '重试次数';
COMMENT ON COLUMN "infra_job"."retry_interval" IS '重试间隔';
COMMENT ON COLUMN "infra_job"."monitor_timeout" IS '监控超时时间';
COMMENT ON COLUMN "infra_job"."creator" IS '创建者';
COMMENT ON COLUMN "infra_job"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_job"."updater" IS '更新者';
COMMENT ON COLUMN "infra_job"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_job"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_job" IS '定时任务表';
-- ----------------------------
-- Records of infra_job
-- ----------------------------
BEGIN;
INSERT INTO "infra_job" ("id", "name", "status", "handler_name", "handler_param", "cron_expression", "retry_count", "retry_interval", "monitor_timeout", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, '用户 Session 超时 Job', 1, 'userSessionTimeoutJob', NULL, '0 * * * * ? *', 3, 2000, 0, '1', '2022-04-30 21:51:00.454', '1', '2022-04-30 22:22:06.037', 0);
COMMIT;
-- ----------------------------
-- Table structure for infra_job_log
-- ----------------------------
DROP TABLE IF EXISTS "infra_job_log";
CREATE TABLE "infra_job_log" (
"id" int8 NOT NULL,
"job_id" int8 NOT NULL,
"handler_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"handler_param" varchar(255) COLLATE "pg_catalog"."default",
"execute_index" int2 NOT NULL,
"begin_time" timestamp(6) NOT NULL,
"end_time" timestamp(6),
"duration" int4,
"status" int2 NOT NULL,
"result" varchar(4000) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_job_log"."id" IS '日志编号';
COMMENT ON COLUMN "infra_job_log"."job_id" IS '任务编号';
COMMENT ON COLUMN "infra_job_log"."handler_name" IS '处理器的名字';
COMMENT ON COLUMN "infra_job_log"."handler_param" IS '处理器的参数';
COMMENT ON COLUMN "infra_job_log"."execute_index" IS '第几次执行';
COMMENT ON COLUMN "infra_job_log"."begin_time" IS '开始执行时间';
COMMENT ON COLUMN "infra_job_log"."end_time" IS '结束执行时间';
COMMENT ON COLUMN "infra_job_log"."duration" IS '执行时长';
COMMENT ON COLUMN "infra_job_log"."status" IS '任务状态';
COMMENT ON COLUMN "infra_job_log"."result" IS '结果数据';
COMMENT ON COLUMN "infra_job_log"."creator" IS '创建者';
COMMENT ON COLUMN "infra_job_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_job_log"."updater" IS '更新者';
COMMENT ON COLUMN "infra_job_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_job_log"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_job_log" IS '定时任务日志表';
-- ----------------------------
-- Records of infra_job_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for infra_test_demo
-- ----------------------------
DROP TABLE IF EXISTS "infra_test_demo";
CREATE TABLE "infra_test_demo" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"type" int2 NOT NULL,
"category" int2 NOT NULL,
"remark" varchar(500) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "infra_test_demo"."id" IS '编号';
COMMENT ON COLUMN "infra_test_demo"."name" IS '名字';
COMMENT ON COLUMN "infra_test_demo"."status" IS '状态';
COMMENT ON COLUMN "infra_test_demo"."type" IS '类型';
COMMENT ON COLUMN "infra_test_demo"."category" IS '分类';
COMMENT ON COLUMN "infra_test_demo"."remark" IS '备注';
COMMENT ON COLUMN "infra_test_demo"."creator" IS '创建者';
COMMENT ON COLUMN "infra_test_demo"."create_time" IS '创建时间';
COMMENT ON COLUMN "infra_test_demo"."updater" IS '更新者';
COMMENT ON COLUMN "infra_test_demo"."update_time" IS '更新时间';
COMMENT ON COLUMN "infra_test_demo"."deleted" IS '是否删除';
COMMENT ON TABLE "infra_test_demo" IS '字典类型表';
-- ----------------------------
-- Records of infra_test_demo
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for member_user
-- ----------------------------
DROP TABLE IF EXISTS "member_user";
CREATE TABLE "member_user" (
"id" int8 NOT NULL,
"nickname" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"avatar" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
"password" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"register_ip" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"login_ip" varchar(50) COLLATE "pg_catalog"."default",
"login_date" timestamp(6),
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "member_user"."id" IS '编号';
COMMENT ON COLUMN "member_user"."nickname" IS '用户昵称';
COMMENT ON COLUMN "member_user"."avatar" IS '头像';
COMMENT ON COLUMN "member_user"."status" IS '状态';
COMMENT ON COLUMN "member_user"."mobile" IS '手机号';
COMMENT ON COLUMN "member_user"."password" IS '密码';
COMMENT ON COLUMN "member_user"."register_ip" IS '注册 IP';
COMMENT ON COLUMN "member_user"."login_ip" IS '最后登录IP';
COMMENT ON COLUMN "member_user"."login_date" IS '最后登录时间';
COMMENT ON COLUMN "member_user"."creator" IS '创建者';
COMMENT ON COLUMN "member_user"."create_time" IS '创建时间';
COMMENT ON COLUMN "member_user"."updater" IS '更新者';
COMMENT ON COLUMN "member_user"."update_time" IS '更新时间';
COMMENT ON COLUMN "member_user"."deleted" IS '是否删除';
COMMENT ON COLUMN "member_user"."tenant_id" IS '租户编号';
COMMENT ON TABLE "member_user" IS '用户';
-- ----------------------------
-- Records of member_user
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_app
-- ----------------------------
DROP TABLE IF EXISTS "pay_app";
CREATE TABLE "pay_app" (
"id" int8 NOT NULL,
"name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"pay_notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"refund_notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"merchant_id" int8 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_app"."id" IS '应用编号';
COMMENT ON COLUMN "pay_app"."name" IS '应用名';
COMMENT ON COLUMN "pay_app"."status" IS '开启状态';
COMMENT ON COLUMN "pay_app"."remark" IS '备注';
COMMENT ON COLUMN "pay_app"."pay_notify_url" IS '支付结果的回调地址';
COMMENT ON COLUMN "pay_app"."refund_notify_url" IS '退款结果的回调地址';
COMMENT ON COLUMN "pay_app"."merchant_id" IS '商户编号';
COMMENT ON COLUMN "pay_app"."creator" IS '创建者';
COMMENT ON COLUMN "pay_app"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_app"."updater" IS '更新者';
COMMENT ON COLUMN "pay_app"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_app"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_app"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_app" IS '支付应用信息';
-- ----------------------------
-- Records of pay_app
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_channel
-- ----------------------------
DROP TABLE IF EXISTS "pay_channel";
CREATE TABLE "pay_channel" (
"id" int8 NOT NULL,
"code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"fee_rate" float8 NOT NULL,
"merchant_id" int8 NOT NULL,
"app_id" int8 NOT NULL,
"config" varchar(4096) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_channel"."id" IS '商户编号';
COMMENT ON COLUMN "pay_channel"."code" IS '渠道编码';
COMMENT ON COLUMN "pay_channel"."status" IS '开启状态';
COMMENT ON COLUMN "pay_channel"."remark" IS '备注';
COMMENT ON COLUMN "pay_channel"."fee_rate" IS '渠道费率,单位:百分比';
COMMENT ON COLUMN "pay_channel"."merchant_id" IS '商户编号';
COMMENT ON COLUMN "pay_channel"."app_id" IS '应用编号';
COMMENT ON COLUMN "pay_channel"."config" IS '支付渠道配置';
COMMENT ON COLUMN "pay_channel"."creator" IS '创建者';
COMMENT ON COLUMN "pay_channel"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_channel"."updater" IS '更新者';
COMMENT ON COLUMN "pay_channel"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_channel"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_channel"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_channel" IS '支付渠道
';
-- ----------------------------
-- Records of pay_channel
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_merchant
-- ----------------------------
DROP TABLE IF EXISTS "pay_merchant";
CREATE TABLE "pay_merchant" (
"id" int8 NOT NULL,
"no" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"short_name" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_merchant"."id" IS '商户编号';
COMMENT ON COLUMN "pay_merchant"."no" IS '商户号';
COMMENT ON COLUMN "pay_merchant"."name" IS '商户全称';
COMMENT ON COLUMN "pay_merchant"."short_name" IS '商户简称';
COMMENT ON COLUMN "pay_merchant"."status" IS '开启状态';
COMMENT ON COLUMN "pay_merchant"."remark" IS '备注';
COMMENT ON COLUMN "pay_merchant"."creator" IS '创建者';
COMMENT ON COLUMN "pay_merchant"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_merchant"."updater" IS '更新者';
COMMENT ON COLUMN "pay_merchant"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_merchant"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_merchant"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_merchant" IS '支付商户信息';
-- ----------------------------
-- Records of pay_merchant
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_notify_log
-- ----------------------------
DROP TABLE IF EXISTS "pay_notify_log";
CREATE TABLE "pay_notify_log" (
"id" int8 NOT NULL,
"task_id" int8 NOT NULL,
"notify_times" int2 NOT NULL,
"response" varchar(2048) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_notify_log"."id" IS '日志编号';
COMMENT ON COLUMN "pay_notify_log"."task_id" IS '通知任务编号';
COMMENT ON COLUMN "pay_notify_log"."notify_times" IS '第几次被通知';
COMMENT ON COLUMN "pay_notify_log"."response" IS '请求参数';
COMMENT ON COLUMN "pay_notify_log"."status" IS '通知状态';
COMMENT ON COLUMN "pay_notify_log"."creator" IS '创建者';
COMMENT ON COLUMN "pay_notify_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_notify_log"."updater" IS '更新者';
COMMENT ON COLUMN "pay_notify_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_notify_log"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_notify_log"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_notify_log" IS '支付通知 App 的日志';
-- ----------------------------
-- Records of pay_notify_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_notify_task
-- ----------------------------
DROP TABLE IF EXISTS "pay_notify_task";
CREATE TABLE "pay_notify_task" (
"id" int8 NOT NULL,
"merchant_id" int8 NOT NULL,
"app_id" int8 NOT NULL,
"type" int2 NOT NULL,
"data_id" int8 NOT NULL,
"status" int2 NOT NULL,
"merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"next_notify_time" timestamp(6) NOT NULL,
"last_execute_time" timestamp(6) NOT NULL,
"notify_times" int2 NOT NULL,
"max_notify_times" int2 NOT NULL,
"notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_notify_task"."id" IS '任务编号';
COMMENT ON COLUMN "pay_notify_task"."merchant_id" IS '商户编号';
COMMENT ON COLUMN "pay_notify_task"."app_id" IS '应用编号';
COMMENT ON COLUMN "pay_notify_task"."type" IS '通知类型';
COMMENT ON COLUMN "pay_notify_task"."data_id" IS '数据编号';
COMMENT ON COLUMN "pay_notify_task"."status" IS '通知状态';
COMMENT ON COLUMN "pay_notify_task"."merchant_order_id" IS '商户订单编号';
COMMENT ON COLUMN "pay_notify_task"."next_notify_time" IS '下一次通知时间';
COMMENT ON COLUMN "pay_notify_task"."last_execute_time" IS '最后一次执行时间';
COMMENT ON COLUMN "pay_notify_task"."notify_times" IS '当前通知次数';
COMMENT ON COLUMN "pay_notify_task"."max_notify_times" IS '最大可通知次数';
COMMENT ON COLUMN "pay_notify_task"."notify_url" IS '异步通知地址';
COMMENT ON COLUMN "pay_notify_task"."creator" IS '创建者';
COMMENT ON COLUMN "pay_notify_task"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_notify_task"."updater" IS '更新者';
COMMENT ON COLUMN "pay_notify_task"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_notify_task"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_notify_task"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_notify_task" IS '商户支付、退款等的通知
';
-- ----------------------------
-- Records of pay_notify_task
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_order
-- ----------------------------
DROP TABLE IF EXISTS "pay_order";
CREATE TABLE "pay_order" (
"id" int8 NOT NULL,
"merchant_id" int8 NOT NULL,
"app_id" int8 NOT NULL,
"channel_id" int8,
"channel_code" varchar(32) COLLATE "pg_catalog"."default",
"merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"subject" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"body" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
"notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"notify_status" int2 NOT NULL,
"amount" int8 NOT NULL,
"channel_fee_rate" float8,
"channel_fee_amount" int8,
"status" int2 NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"expire_time" timestamp(6) NOT NULL,
"success_time" timestamp(6),
"notify_time" timestamp(6),
"success_extension_id" int8,
"refund_status" int2 NOT NULL,
"refund_times" int2 NOT NULL,
"refund_amount" int8 NOT NULL,
"channel_user_id" varchar(255) COLLATE "pg_catalog"."default",
"channel_order_no" varchar(64) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_order"."id" IS '支付订单编号';
COMMENT ON COLUMN "pay_order"."merchant_id" IS '商户编号';
COMMENT ON COLUMN "pay_order"."app_id" IS '应用编号';
COMMENT ON COLUMN "pay_order"."channel_id" IS '渠道编号';
COMMENT ON COLUMN "pay_order"."channel_code" IS '渠道编码';
COMMENT ON COLUMN "pay_order"."merchant_order_id" IS '商户订单编号';
COMMENT ON COLUMN "pay_order"."subject" IS '商品标题';
COMMENT ON COLUMN "pay_order"."body" IS '商品描述';
COMMENT ON COLUMN "pay_order"."notify_url" IS '异步通知地址';
COMMENT ON COLUMN "pay_order"."notify_status" IS '通知商户支付结果的回调状态';
COMMENT ON COLUMN "pay_order"."amount" IS '支付金额,单位:分';
COMMENT ON COLUMN "pay_order"."channel_fee_rate" IS '渠道手续费,单位:百分比';
COMMENT ON COLUMN "pay_order"."channel_fee_amount" IS '渠道手续金额,单位:分';
COMMENT ON COLUMN "pay_order"."status" IS '支付状态';
COMMENT ON COLUMN "pay_order"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "pay_order"."expire_time" IS '订单失效时间';
COMMENT ON COLUMN "pay_order"."success_time" IS '订单支付成功时间';
COMMENT ON COLUMN "pay_order"."notify_time" IS '订单支付通知时间';
COMMENT ON COLUMN "pay_order"."success_extension_id" IS '支付成功的订单拓展单编号';
COMMENT ON COLUMN "pay_order"."refund_status" IS '退款状态';
COMMENT ON COLUMN "pay_order"."refund_times" IS '退款次数';
COMMENT ON COLUMN "pay_order"."refund_amount" IS '退款总金额,单位:分';
COMMENT ON COLUMN "pay_order"."channel_user_id" IS '渠道用户编号';
COMMENT ON COLUMN "pay_order"."channel_order_no" IS '渠道订单号';
COMMENT ON COLUMN "pay_order"."creator" IS '创建者';
COMMENT ON COLUMN "pay_order"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_order"."updater" IS '更新者';
COMMENT ON COLUMN "pay_order"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_order"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_order"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_order" IS '支付订单
';
-- ----------------------------
-- Records of pay_order
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_order_extension
-- ----------------------------
DROP TABLE IF EXISTS "pay_order_extension";
CREATE TABLE "pay_order_extension" (
"id" int8 NOT NULL,
"no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"order_id" int8 NOT NULL,
"channel_id" int8 NOT NULL,
"channel_code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"channel_extras" varchar(256) COLLATE "pg_catalog"."default",
"channel_notify_data" varchar(1024) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_order_extension"."id" IS '支付订单编号';
COMMENT ON COLUMN "pay_order_extension"."no" IS '支付订单号';
COMMENT ON COLUMN "pay_order_extension"."order_id" IS '支付订单编号';
COMMENT ON COLUMN "pay_order_extension"."channel_id" IS '渠道编号';
COMMENT ON COLUMN "pay_order_extension"."channel_code" IS '渠道编码';
COMMENT ON COLUMN "pay_order_extension"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "pay_order_extension"."status" IS '支付状态';
COMMENT ON COLUMN "pay_order_extension"."channel_extras" IS '支付渠道的额外参数';
COMMENT ON COLUMN "pay_order_extension"."channel_notify_data" IS '支付渠道异步通知的内容';
COMMENT ON COLUMN "pay_order_extension"."creator" IS '创建者';
COMMENT ON COLUMN "pay_order_extension"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_order_extension"."updater" IS '更新者';
COMMENT ON COLUMN "pay_order_extension"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_order_extension"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_order_extension"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_order_extension" IS '支付订单
';
-- ----------------------------
-- Records of pay_order_extension
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for pay_refund
-- ----------------------------
DROP TABLE IF EXISTS "pay_refund";
CREATE TABLE "pay_refund" (
"id" int8 NOT NULL,
"merchant_id" int8 NOT NULL,
"app_id" int8 NOT NULL,
"channel_id" int8 NOT NULL,
"channel_code" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"order_id" int8 NOT NULL,
"trade_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"merchant_order_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"merchant_refund_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"notify_url" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"notify_status" int2 NOT NULL,
"status" int2 NOT NULL,
"type" int2 NOT NULL,
"pay_amount" int8 NOT NULL,
"refund_amount" int8 NOT NULL,
"reason" varchar(256) COLLATE "pg_catalog"."default" NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default",
"channel_order_no" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"channel_refund_no" varchar(64) COLLATE "pg_catalog"."default",
"channel_error_code" varchar(128) COLLATE "pg_catalog"."default",
"channel_error_msg" varchar(256) COLLATE "pg_catalog"."default",
"channel_extras" varchar(1024) COLLATE "pg_catalog"."default",
"expire_time" timestamp(6),
"success_time" timestamp(6),
"notify_time" timestamp(6),
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "pay_refund"."id" IS '支付退款编号';
COMMENT ON COLUMN "pay_refund"."merchant_id" IS '商户编号';
COMMENT ON COLUMN "pay_refund"."app_id" IS '应用编号';
COMMENT ON COLUMN "pay_refund"."channel_id" IS '渠道编号';
COMMENT ON COLUMN "pay_refund"."channel_code" IS '渠道编码';
COMMENT ON COLUMN "pay_refund"."order_id" IS '支付订单编号 pay_order 表id';
COMMENT ON COLUMN "pay_refund"."trade_no" IS '交易订单号 pay_extension 表no 字段';
COMMENT ON COLUMN "pay_refund"."merchant_order_id" IS '商户订单编号(商户系统生成)';
COMMENT ON COLUMN "pay_refund"."merchant_refund_no" IS '商户退款订单号(商户系统生成)';
COMMENT ON COLUMN "pay_refund"."notify_url" IS '异步通知商户地址';
COMMENT ON COLUMN "pay_refund"."notify_status" IS '通知商户退款结果的回调状态';
COMMENT ON COLUMN "pay_refund"."status" IS '退款状态';
COMMENT ON COLUMN "pay_refund"."type" IS '退款类型(部分退款,全部退款)';
COMMENT ON COLUMN "pay_refund"."pay_amount" IS '支付金额,单位分';
COMMENT ON COLUMN "pay_refund"."refund_amount" IS '退款金额,单位分';
COMMENT ON COLUMN "pay_refund"."reason" IS '退款原因';
COMMENT ON COLUMN "pay_refund"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "pay_refund"."channel_order_no" IS '渠道订单号,pay_order 中的channel_order_no 对应';
COMMENT ON COLUMN "pay_refund"."channel_refund_no" IS '渠道退款单号,渠道返回';
COMMENT ON COLUMN "pay_refund"."channel_error_code" IS '渠道调用报错时,错误码';
COMMENT ON COLUMN "pay_refund"."channel_error_msg" IS '渠道调用报错时,错误信息';
COMMENT ON COLUMN "pay_refund"."channel_extras" IS '支付渠道的额外参数';
COMMENT ON COLUMN "pay_refund"."expire_time" IS '退款失效时间';
COMMENT ON COLUMN "pay_refund"."success_time" IS '退款成功时间';
COMMENT ON COLUMN "pay_refund"."notify_time" IS '退款通知时间';
COMMENT ON COLUMN "pay_refund"."creator" IS '创建者';
COMMENT ON COLUMN "pay_refund"."create_time" IS '创建时间';
COMMENT ON COLUMN "pay_refund"."updater" IS '更新者';
COMMENT ON COLUMN "pay_refund"."update_time" IS '更新时间';
COMMENT ON COLUMN "pay_refund"."deleted" IS '是否删除';
COMMENT ON COLUMN "pay_refund"."tenant_id" IS '租户编号';
COMMENT ON TABLE "pay_refund" IS '退款订单';
-- ----------------------------
-- Records of pay_refund
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_blob_triggers
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_blob_triggers";
CREATE TABLE "qrtz_blob_triggers" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"blob_data" bytea
)
;
-- ----------------------------
-- Records of qrtz_blob_triggers
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_calendars
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_calendars";
CREATE TABLE "qrtz_calendars" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"calendar_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"calendar" bytea NOT NULL
)
;
-- ----------------------------
-- Records of qrtz_calendars
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_cron_triggers
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_cron_triggers";
CREATE TABLE "qrtz_cron_triggers" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"cron_expression" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"time_zone_id" varchar(80) COLLATE "pg_catalog"."default"
)
;
-- ----------------------------
-- Records of qrtz_cron_triggers
-- ----------------------------
BEGIN;
INSERT INTO "qrtz_cron_triggers" ("sched_name", "trigger_name", "trigger_group", "cron_expression", "time_zone_id") VALUES ('schedulerName', 'userSessionTimeoutJob', 'DEFAULT', '0 * * * * ? *', 'Asia/Shanghai');
COMMIT;
-- ----------------------------
-- Table structure for qrtz_fired_triggers
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_fired_triggers";
CREATE TABLE "qrtz_fired_triggers" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"entry_id" varchar(95) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"fired_time" int8 NOT NULL,
"sched_time" int8 NOT NULL,
"priority" int4 NOT NULL,
"state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
"job_name" varchar(200) COLLATE "pg_catalog"."default",
"job_group" varchar(200) COLLATE "pg_catalog"."default",
"is_nonconcurrent" bool,
"requests_recovery" bool
)
;
-- ----------------------------
-- Records of qrtz_fired_triggers
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_job_details
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_job_details";
CREATE TABLE "qrtz_job_details" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"description" varchar(250) COLLATE "pg_catalog"."default",
"job_class_name" varchar(250) COLLATE "pg_catalog"."default" NOT NULL,
"is_durable" bool NOT NULL,
"is_nonconcurrent" bool NOT NULL,
"is_update_data" bool NOT NULL,
"requests_recovery" bool NOT NULL,
"job_data" bytea
)
;
-- ----------------------------
-- Records of qrtz_job_details
-- ----------------------------
BEGIN;
INSERT INTO "qrtz_job_details" ("sched_name", "job_name", "job_group", "description", "job_class_name", "is_durable", "is_nonconcurrent", "is_update_data", "requests_recovery", "job_data") VALUES ('schedulerName', 'userSessionTimeoutJob', 'DEFAULT', NULL, 'cn.iocoder.yudao.framework.quartz.core.handler.JobHandlerInvoker', 'f', 't', 't', 'f', E'\\254\\355\\000\\005sr\\000\\025org.quartz.JobDataMap\\237\\260\\203\\350\\277\\251\\260\\313\\002\\000\\000xr\\000&org.quartz.utils.StringKeyDirtyFlagMap\\202\\010\\350\\303\\373\\305](\\002\\000\\001Z\\000\\023allowsTransientDataxr\\000\\035org.quartz.utils.DirtyFlagMap\\023\\346.\\255(v\\012\\316\\002\\000\\002Z\\000\\005dirtyL\\000\\003mapt\\000\\017Ljava/util/Map;xp\\001sr\\000\\021java.util.HashMap\\005\\007\\332\\301\\303\\026`\\321\\003\\000\\002F\\000\\012loadFactorI\\000\\011thresholdxp?@\\000\\000\\000\\000\\000\\014w\\010\\000\\000\\000\\020\\000\\000\\000\\002t\\000\\006JOB_IDsr\\000\\016java.lang.Long;\\213\\344\\220\\314\\217#\\337\\002\\000\\001J\\000\\005valuexr\\000\\020java.lang.Number\\206\\254\\225\\035\\013\\224\\340\\213\\002\\000\\000xp\\000\\000\\000\\000\\000\\000\\000\\002t\\000\\020JOB_HANDLER_NAMEt\\000\\025userSessionTimeoutJobx\\000');
COMMIT;
-- ----------------------------
-- Table structure for qrtz_locks
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_locks";
CREATE TABLE "qrtz_locks" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"lock_name" varchar(40) COLLATE "pg_catalog"."default" NOT NULL
)
;
-- ----------------------------
-- Records of qrtz_locks
-- ----------------------------
BEGIN;
INSERT INTO "qrtz_locks" ("sched_name", "lock_name") VALUES ('schedulerName', 'TRIGGER_ACCESS');
INSERT INTO "qrtz_locks" ("sched_name", "lock_name") VALUES ('schedulerName', 'STATE_ACCESS');
COMMIT;
-- ----------------------------
-- Table structure for qrtz_paused_trigger_grps
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_paused_trigger_grps";
CREATE TABLE "qrtz_paused_trigger_grps" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL
)
;
-- ----------------------------
-- Records of qrtz_paused_trigger_grps
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_scheduler_state
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_scheduler_state";
CREATE TABLE "qrtz_scheduler_state" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"instance_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"last_checkin_time" int8 NOT NULL,
"checkin_interval" int8 NOT NULL
)
;
-- ----------------------------
-- Records of qrtz_scheduler_state
-- ----------------------------
BEGIN;
INSERT INTO "qrtz_scheduler_state" ("sched_name", "instance_name", "last_checkin_time", "checkin_interval") VALUES ('schedulerName', 'Yunai.local1651328569660', 1651328650075, 15000);
COMMIT;
-- ----------------------------
-- Table structure for qrtz_simple_triggers
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_simple_triggers";
CREATE TABLE "qrtz_simple_triggers" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"repeat_count" int8 NOT NULL,
"repeat_interval" int8 NOT NULL,
"times_triggered" int8 NOT NULL
)
;
-- ----------------------------
-- Records of qrtz_simple_triggers
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_simprop_triggers
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_simprop_triggers";
CREATE TABLE "qrtz_simprop_triggers" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"str_prop_1" varchar(512) COLLATE "pg_catalog"."default",
"str_prop_2" varchar(512) COLLATE "pg_catalog"."default",
"str_prop_3" varchar(512) COLLATE "pg_catalog"."default",
"int_prop_1" int4,
"int_prop_2" int4,
"long_prop_1" int8,
"long_prop_2" int8,
"dec_prop_1" numeric(13,4),
"dec_prop_2" numeric(13,4),
"bool_prop_1" bool,
"bool_prop_2" bool
)
;
-- ----------------------------
-- Records of qrtz_simprop_triggers
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for qrtz_triggers
-- ----------------------------
DROP TABLE IF EXISTS "qrtz_triggers";
CREATE TABLE "qrtz_triggers" (
"sched_name" varchar(120) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"job_name" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"job_group" varchar(200) COLLATE "pg_catalog"."default" NOT NULL,
"description" varchar(250) COLLATE "pg_catalog"."default",
"next_fire_time" int8,
"prev_fire_time" int8,
"priority" int4,
"trigger_state" varchar(16) COLLATE "pg_catalog"."default" NOT NULL,
"trigger_type" varchar(8) COLLATE "pg_catalog"."default" NOT NULL,
"start_time" int8 NOT NULL,
"end_time" int8,
"calendar_name" varchar(200) COLLATE "pg_catalog"."default",
"misfire_instr" int2,
"job_data" bytea
)
;
-- ----------------------------
-- Records of qrtz_triggers
-- ----------------------------
BEGIN;
INSERT INTO "qrtz_triggers" ("sched_name", "trigger_name", "trigger_group", "job_name", "job_group", "description", "next_fire_time", "prev_fire_time", "priority", "trigger_state", "trigger_type", "start_time", "end_time", "calendar_name", "misfire_instr", "job_data") VALUES ('schedulerName', 'userSessionTimeoutJob', 'DEFAULT', 'userSessionTimeoutJob', 'DEFAULT', NULL, 1651328700000, 1651328640000, 5, 'WAITING', 'CRON', 1651328526000, 0, NULL, 0, E'\\254\\355\\000\\005sr\\000\\025org.quartz.JobDataMap\\237\\260\\203\\350\\277\\251\\260\\313\\002\\000\\000xr\\000&org.quartz.utils.StringKeyDirtyFlagMap\\202\\010\\350\\303\\373\\305](\\002\\000\\001Z\\000\\023allowsTransientDataxr\\000\\035org.quartz.utils.DirtyFlagMap\\023\\346.\\255(v\\012\\316\\002\\000\\002Z\\000\\005dirtyL\\000\\003mapt\\000\\017Ljava/util/Map;xp\\001sr\\000\\021java.util.HashMap\\005\\007\\332\\301\\303\\026`\\321\\003\\000\\002F\\000\\012loadFactorI\\000\\011thresholdxp?@\\000\\000\\000\\000\\000\\014w\\010\\000\\000\\000\\020\\000\\000\\000\\003t\\000\\021JOB_HANDLER_PARAMpt\\000\\022JOB_RETRY_INTERVALsr\\000\\021java.lang.Integer\\022\\342\\240\\244\\367\\201\\2078\\002\\000\\001I\\000\\005valuexr\\000\\020java.lang.Number\\206\\254\\225\\035\\013\\224\\340\\213\\002\\000\\000xp\\000\\000\\007\\320t\\000\\017JOB_RETRY_COUNTsq\\000~\\000\\011\\000\\000\\000\\003x\\000');
COMMIT;
-- ----------------------------
-- Table structure for system_dept
-- ----------------------------
DROP TABLE IF EXISTS "system_dept";
CREATE TABLE "system_dept" (
"id" int8 NOT NULL,
"name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"parent_id" int8 NOT NULL,
"sort" int4 NOT NULL,
"leader_user_id" int8,
"phone" varchar(11) COLLATE "pg_catalog"."default",
"email" varchar(50) COLLATE "pg_catalog"."default",
"status" int2 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_dept"."id" IS '部门id';
COMMENT ON COLUMN "system_dept"."name" IS '部门名称';
COMMENT ON COLUMN "system_dept"."parent_id" IS '父部门id';
COMMENT ON COLUMN "system_dept"."sort" IS '显示顺序';
COMMENT ON COLUMN "system_dept"."leader_user_id" IS '负责人';
COMMENT ON COLUMN "system_dept"."phone" IS '联系电话';
COMMENT ON COLUMN "system_dept"."email" IS '邮箱';
COMMENT ON COLUMN "system_dept"."status" IS '部门状态(0正常 1停用)';
COMMENT ON COLUMN "system_dept"."creator" IS '创建者';
COMMENT ON COLUMN "system_dept"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_dept"."updater" IS '更新者';
COMMENT ON COLUMN "system_dept"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_dept"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_dept"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_dept" IS '部门表';
-- ----------------------------
-- Records of system_dept
-- ----------------------------
BEGIN;
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (100, '芋道源码', 0, 0, 1, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '103', '2022-01-14 01:04:05', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (101, '深圳总公司', 100, 1, 104, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '1', '2022-02-22 19:47:48', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (102, '长沙分公司', 100, 2, NULL, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:40', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (103, '研发部门', 101, 1, 104, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '103', '2022-01-14 01:04:14', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (104, '市场部门', 101, 2, NULL, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:38', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (105, '测试部门', 101, 3, NULL, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:37', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (106, '财务部门', 101, 4, 103, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '103', '2022-01-15 21:32:22', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (107, '运维部门', 101, 5, NULL, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:33', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (108, '市场部门', 102, 1, NULL, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '1', '2022-02-16 08:35:45', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (109, '财务部门', 102, 2, NULL, '15888888888', '<EMAIL>', 0, 'admin', '2021-01-05 17:03:47', '', '2021-12-15 05:01:29', 0, 1);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (110, '新部门', 0, 1, NULL, NULL, NULL, 0, '110', '2022-02-23 20:46:30', '110', '2022-02-23 20:46:30', 0, 121);
INSERT INTO "system_dept" ("id", "name", "parent_id", "sort", "leader_user_id", "phone", "email", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (111, '顶级部门', 0, 1, NULL, NULL, NULL, 0, '113', '2022-03-07 21:44:50', '113', '2022-03-07 21:44:50', 0, 122);
COMMIT;
-- ----------------------------
-- Table structure for system_dict_data
-- ----------------------------
DROP TABLE IF EXISTS "system_dict_data";
CREATE TABLE "system_dict_data" (
"id" int8 NOT NULL,
"sort" int4 NOT NULL,
"label" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"value" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"dict_type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"color_type" varchar(100) COLLATE "pg_catalog"."default",
"css_class" varchar(100) COLLATE "pg_catalog"."default",
"remark" varchar(500) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_dict_data"."id" IS '字典编码';
COMMENT ON COLUMN "system_dict_data"."sort" IS '字典排序';
COMMENT ON COLUMN "system_dict_data"."label" IS '字典标签';
COMMENT ON COLUMN "system_dict_data"."value" IS '字典键值';
COMMENT ON COLUMN "system_dict_data"."dict_type" IS '字典类型';
COMMENT ON COLUMN "system_dict_data"."status" IS '状态(0正常 1停用)';
COMMENT ON COLUMN "system_dict_data"."color_type" IS '颜色类型';
COMMENT ON COLUMN "system_dict_data"."css_class" IS 'css 样式';
COMMENT ON COLUMN "system_dict_data"."remark" IS '备注';
COMMENT ON COLUMN "system_dict_data"."creator" IS '创建者';
COMMENT ON COLUMN "system_dict_data"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_dict_data"."updater" IS '更新者';
COMMENT ON COLUMN "system_dict_data"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_dict_data"."deleted" IS '是否删除';
COMMENT ON TABLE "system_dict_data" IS '字典数据表';
-- ----------------------------
-- Records of system_dict_data
-- ----------------------------
BEGIN;
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, 1, '男', '1', 'system_user_sex', 0, 'default', 'A', '性别男', 'admin', '2021-01-05 17:03:48', '1', '2022-03-29 00:14:39', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 2, '女', '2', 'system_user_sex', 1, 'success', '', '性别女', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 01:30:51', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (8, 1, '正常', '1', 'infra_job_status', 0, 'success', '', '正常状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:33:38', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (9, 2, '暂停', '2', 'infra_job_status', 0, 'danger', '', '停用状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:33:45', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (12, 1, '系统内置', '1', 'infra_config_type', 0, 'danger', '', '参数类型 - 系统内置', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:06:02', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (13, 2, '自定义', '2', 'infra_config_type', 0, 'primary', '', '参数类型 - 自定义', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 19:06:07', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (14, 1, '通知', '1', 'system_notice_type', 0, 'success', '', '通知', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:05:57', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (15, 2, '公告', '2', 'system_notice_type', 0, 'info', '', '公告', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:06:01', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (16, 0, '其它', '0', 'system_operate_type', 0, 'default', '', '其它操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:32:46', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (17, 1, '查询', '1', 'system_operate_type', 0, 'info', '', '查询操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:16', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (18, 2, '新增', '2', 'system_operate_type', 0, 'primary', '', '新增操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:13', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (19, 3, '修改', '3', 'system_operate_type', 0, 'warning', '', '修改操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:22', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (20, 4, '删除', '4', 'system_operate_type', 0, 'danger', '', '删除操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:27', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (22, 5, '导出', '5', 'system_operate_type', 0, 'default', '', '导出操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:32', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (23, 6, '导入', '6', 'system_operate_type', 0, 'default', '', '导入操作', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:33:35', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (27, 1, '开启', '0', 'common_status', 0, 'primary', '', '开启状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 08:00:39', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (28, 2, '关闭', '1', 'common_status', 0, 'info', '', '关闭状态', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 08:00:44', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (29, 1, '目录', '1', 'system_menu_type', 0, '', '', '目录', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:43:45', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (30, 2, '菜单', '2', 'system_menu_type', 0, '', '', '菜单', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:43:41', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (31, 3, '按钮', '3', 'system_menu_type', 0, '', '', '按钮', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:43:39', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (32, 1, '内置', '1', 'system_role_type', 0, 'danger', '', '内置角色', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:02:08', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (33, 2, '自定义', '2', 'system_role_type', 0, 'primary', '', '自定义角色', 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 13:02:12', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (34, 1, '全部数据权限', '1', 'system_data_scope', 0, '', '', '全部数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:17', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (35, 2, '指定部门数据权限', '2', 'system_data_scope', 0, '', '', '指定部门数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:18', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (36, 3, '本部门数据权限', '3', 'system_data_scope', 0, '', '', '本部门数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:16', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (37, 4, '本部门及以下数据权限', '4', 'system_data_scope', 0, '', '', '本部门及以下数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:21', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (38, 5, '仅本人数据权限', '5', 'system_data_scope', 0, '', '', '仅本人数据权限', 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:47:23', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (39, 0, '成功', '0', 'system_login_result', 0, 'success', '', '登陆结果 - 成功', '', '2021-01-18 06:17:36', '1', '2022-02-16 13:23:49', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (40, 10, '账号或密码不正确', '10', 'system_login_result', 0, 'primary', '', '登陆结果 - 账号或密码不正确', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:27', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (41, 20, '用户被禁用', '20', 'system_login_result', 0, 'warning', '', '登陆结果 - 用户被禁用', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:23:57', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (42, 30, '验证码不存在', '30', 'system_login_result', 0, 'info', '', '登陆结果 - 验证码不存在', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:07', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (43, 31, '验证码不正确', '31', 'system_login_result', 0, 'info', '', '登陆结果 - 验证码不正确', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:11', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (44, 100, '未知异常', '100', 'system_login_result', 0, 'danger', '', '登陆结果 - 未知异常', '', '2021-01-18 06:17:54', '1', '2022-02-16 13:24:23', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (45, 1, '是', 'true', 'infra_boolean_string', 0, 'danger', '', 'Boolean 是否类型 - 是', '', '2021-01-19 03:20:55', '1', '2022-03-15 23:01:45', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (46, 1, '否', 'false', 'infra_boolean_string', 0, 'info', '', 'Boolean 是否类型 - 否', '', '2021-01-19 03:20:55', '1', '2022-03-15 23:09:45', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (47, 1, '永不超时', '1', 'infra_redis_timeout_type', 0, 'primary', '', 'Redis 未设置超时的情况', '', '2021-01-26 00:53:17', '1', '2022-02-16 19:03:35', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (48, 1, '动态超时', '2', 'infra_redis_timeout_type', 0, 'info', '', '程序里动态传入超时时间,无法固定', '', '2021-01-26 00:55:00', '1', '2022-02-16 19:03:41', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (49, 3, '固定超时', '3', 'infra_redis_timeout_type', 0, 'success', '', 'Redis 设置了过期时间', '', '2021-01-26 00:55:26', '1', '2022-02-16 19:03:45', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (50, 1, '单表(增删改查)', '1', 'infra_codegen_template_type', 0, '', '', NULL, '', '2021-02-05 07:09:06', '', '2022-03-10 16:33:15', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (51, 2, '树表(增删改查)', '2', 'infra_codegen_template_type', 0, '', '', NULL, '', '2021-02-05 07:14:46', '', '2022-03-10 16:33:19', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (53, 0, '初始化中', '0', 'infra_job_status', 0, 'primary', '', NULL, '', '2021-02-07 07:46:49', '1', '2022-02-16 19:33:29', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (57, 0, '运行中', '0', 'infra_job_log_status', 0, 'primary', '', 'RUNNING', '', '2021-02-08 10:04:24', '1', '2022-02-16 19:07:48', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (58, 1, '成功', '1', 'infra_job_log_status', 0, 'success', '', NULL, '', '2021-02-08 10:06:57', '1', '2022-02-16 19:07:52', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (59, 2, '失败', '2', 'infra_job_log_status', 0, 'warning', '', '失败', '', '2021-02-08 10:07:38', '1', '2022-02-16 19:07:56', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (60, 1, '会员', '1', 'user_type', 0, 'primary', '', NULL, '', '2021-02-26 00:16:27', '1', '2022-02-16 10:22:19', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (61, 2, '管理员', '2', 'user_type', 0, 'success', '', NULL, '', '2021-02-26 00:16:34', '1', '2022-02-16 10:22:22', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (62, 0, '未处理', '0', 'infra_api_error_log_process_status', 0, 'primary', '', NULL, '', '2021-02-26 07:07:19', '1', '2022-02-16 20:14:17', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (63, 1, '已处理', '1', 'infra_api_error_log_process_status', 0, 'success', '', NULL, '', '2021-02-26 07:07:26', '1', '2022-02-16 20:14:08', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (64, 2, '已忽略', '2', 'infra_api_error_log_process_status', 0, 'danger', '', NULL, '', '2021-02-26 07:07:34', '1', '2022-02-16 20:14:14', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (65, 1, '云片', 'YUN_PIAN', 'system_sms_channel_code', 0, 'success', '', NULL, '1', '2021-04-05 01:05:14', '1', '2022-02-16 10:09:55', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (66, 2, '阿里云', 'ALIYUN', 'system_sms_channel_code', 0, 'primary', '', NULL, '1', '2021-04-05 01:05:26', '1', '2022-02-16 10:09:52', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (67, 1, '验证码', '1', 'system_sms_template_type', 0, 'warning', '', NULL, '1', '2021-04-05 21:50:57', '1', '2022-02-16 12:48:30', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (68, 2, '通知', '2', 'system_sms_template_type', 0, 'primary', '', NULL, '1', '2021-04-05 21:51:08', '1', '2022-02-16 12:48:27', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (69, 0, '营销', '3', 'system_sms_template_type', 0, 'danger', '', NULL, '1', '2021-04-05 21:51:15', '1', '2022-02-16 12:48:22', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (70, 0, '初始化', '0', 'system_sms_send_status', 0, 'primary', '', NULL, '1', '2021-04-11 20:18:33', '1', '2022-02-16 10:26:07', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (71, 1, '发送成功', '10', 'system_sms_send_status', 0, 'success', '', NULL, '1', '2021-04-11 20:18:43', '1', '2022-02-16 10:25:56', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (72, 2, '发送失败', '20', 'system_sms_send_status', 0, 'danger', '', NULL, '1', '2021-04-11 20:18:49', '1', '2022-02-16 10:26:03', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (73, 3, '不发送', '30', 'system_sms_send_status', 0, 'info', '', NULL, '1', '2021-04-11 20:19:44', '1', '2022-02-16 10:26:10', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (74, 0, '等待结果', '0', 'system_sms_receive_status', 0, 'primary', '', NULL, '1', '2021-04-11 20:27:43', '1', '2022-02-16 10:28:24', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (75, 1, '接收成功', '10', 'system_sms_receive_status', 0, 'success', '', NULL, '1', '2021-04-11 20:29:25', '1', '2022-02-16 10:28:28', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (76, 2, '接收失败', '20', 'system_sms_receive_status', 0, 'danger', '', NULL, '1', '2021-04-11 20:29:31', '1', '2022-02-16 10:28:32', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (77, 0, '调试(钉钉)', 'DEBUG_DING_TALK', 'system_sms_channel_code', 0, 'info', '', NULL, '1', '2021-04-13 00:20:37', '1', '2022-02-16 10:10:00', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (78, 1, '自动生成', '1', 'system_error_code_type', 0, 'warning', '', NULL, '1', '2021-04-21 00:06:48', '1', '2022-02-16 13:57:20', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (79, 2, '手动编辑', '2', 'system_error_code_type', 0, 'primary', '', NULL, '1', '2021-04-21 00:07:14', '1', '2022-02-16 13:57:24', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (80, 100, '账号登录', '100', 'system_login_type', 0, 'primary', '', '账号登录', '1', '2021-10-06 00:52:02', '1', '2022-02-16 13:11:34', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (81, 101, '社交登录', '101', 'system_login_type', 0, 'info', '', '社交登录', '1', '2021-10-06 00:52:17', '1', '2022-02-16 13:11:40', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (82, 102, 'Mock 登录', '102', 'system_login_type', 0, 'danger', '', 'Mock 登录', '1', '2021-10-06 00:52:32', '1', '2022-02-16 13:11:44', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (83, 200, '主动登出', '200', 'system_login_type', 0, 'primary', '', '主动登出', '1', '2021-10-06 00:52:58', '1', '2022-02-16 13:11:49', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (84, 201, '超时登出', '201', 'system_login_type', 0, 'info', '', '超时登出', '1', '2021-10-06 00:53:17', '1', '2022-02-16 13:11:53', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (85, 202, '强制登出', '202', 'system_login_type', 0, 'danger', '', '强制退出', '1', '2021-10-06 00:53:41', '1', '2022-02-16 13:11:57', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (86, 0, '病假', '1', 'bpm_oa_leave_type', 0, 'primary', '', NULL, '1', '2021-09-21 22:35:28', '1', '2022-02-16 10:00:41', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (87, 1, '事假', '2', 'bpm_oa_leave_type', 0, 'info', '', NULL, '1', '2021-09-21 22:36:11', '1', '2022-02-16 10:00:49', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (88, 2, '婚假', '3', 'bpm_oa_leave_type', 0, 'warning', '', NULL, '1', '2021-09-21 22:36:38', '1', '2022-02-16 10:00:53', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (98, 1, 'v2', 'v2', 'pay_channel_wechat_version', 0, '', '', 'v2版本', '1', '2021-11-08 17:00:58', '1', '2021-11-08 17:00:58', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (99, 2, 'v3', 'v3', 'pay_channel_wechat_version', 0, '', '', 'v3版本', '1', '2021-11-08 17:01:07', '1', '2021-11-08 17:01:07', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (108, 1, 'RSA2', 'RSA2', 'pay_channel_alipay_sign_type', 0, '', '', 'RSA2', '1', '2021-11-18 15:39:29', '1', '2021-11-18 15:39:29', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (109, 1, '公钥模式', '1', 'pay_channel_alipay_mode', 0, '', '', '公钥模式:privateKey + alipayPublicKey', '1', '2021-11-18 15:45:23', '1', '2021-11-18 15:45:23', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (110, 2, '证书模式', '2', 'pay_channel_alipay_mode', 0, '', '', '证书模式:appCertContent + alipayPublicCertContent + rootCertContent', '1', '2021-11-18 15:45:40', '1', '2021-11-18 15:45:40', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, 1, '线上', 'https://openapi.alipay.com/gateway.do', 'pay_channel_alipay_server_type', 0, '', '', '网关地址 - 线上', '1', '2021-11-18 16:59:32', '1', '2021-11-21 17:37:29', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (112, 2, '沙箱', 'https://openapi.alipaydev.com/gateway.do', 'pay_channel_alipay_server_type', 0, '', '', '网关地址 - 沙箱', '1', '2021-11-18 16:59:48', '1', '2021-11-21 17:37:39', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (113, 1, '微信 JSAPI 支付', 'wx_pub', 'pay_channel_code_type', 0, '', '', '微信 JSAPI(公众号) 支付', '1', '2021-12-03 10:40:24', '1', '2021-12-04 16:41:00', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (114, 2, '微信小程序支付', 'wx_lite', 'pay_channel_code_type', 0, '', '', '微信小程序支付', '1', '2021-12-03 10:41:06', '1', '2021-12-03 10:41:06', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (115, 3, '微信 App 支付', 'wx_app', 'pay_channel_code_type', 0, '', '', '微信 App 支付', '1', '2021-12-03 10:41:20', '1', '2021-12-03 10:41:20', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (116, 4, '支付宝 PC 网站支付', 'alipay_pc', 'pay_channel_code_type', 0, '', '', '支付宝 PC 网站支付', '1', '2021-12-03 10:42:09', '1', '2021-12-03 10:42:09', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (117, 5, '支付宝 Wap 网站支付', 'alipay_wap', 'pay_channel_code_type', 0, '', '', '支付宝 Wap 网站支付', '1', '2021-12-03 10:42:26', '1', '2021-12-03 10:42:26', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (118, 6, '支付宝App 支付', 'alipay_app', 'pay_channel_code_type', 0, '', '', '支付宝App 支付', '1', '2021-12-03 10:42:55', '1', '2021-12-03 10:42:55', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (119, 7, '支付宝扫码支付', 'alipay_qr', 'pay_channel_code_type', 0, '', '', '支付宝扫码支付', '1', '2021-12-03 10:43:10', '1', '2021-12-03 10:43:10', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (120, 1, '通知成功', '10', 'pay_order_notify_status', 0, 'success', '', '通知成功', '1', '2021-12-03 11:02:41', '1', '2022-02-16 13:59:13', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (121, 2, '通知失败', '20', 'pay_order_notify_status', 0, 'danger', '', '通知失败', '1', '2021-12-03 11:02:59', '1', '2022-02-16 13:59:17', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (122, 3, '未通知', '0', 'pay_order_notify_status', 0, 'info', '', '未通知', '1', '2021-12-03 11:03:10', '1', '2022-02-16 13:59:23', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (123, 1, '支付成功', '10', 'pay_order_status', 0, 'success', '', '支付成功', '1', '2021-12-03 11:18:29', '1', '2022-02-16 15:24:25', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (124, 2, '支付关闭', '20', 'pay_order_status', 0, 'danger', '', '支付关闭', '1', '2021-12-03 11:18:42', '1', '2022-02-16 15:24:31', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (125, 3, '未支付', '0', 'pay_order_status', 0, 'info', '', '未支付', '1', '2021-12-03 11:18:18', '1', '2022-02-16 15:24:35', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (126, 1, '未退款', '0', 'pay_order_refund_status', 0, '', '', '未退款', '1', '2021-12-03 11:30:35', '1', '2021-12-03 11:34:05', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (127, 2, '部分退款', '10', 'pay_order_refund_status', 0, '', '', '部分退款', '1', '2021-12-03 11:30:44', '1', '2021-12-03 11:34:10', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (128, 3, '全部退款', '20', 'pay_order_refund_status', 0, '', '', '全部退款', '1', '2021-12-03 11:30:52', '1', '2021-12-03 11:34:14', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1117, 1, '退款订单生成', '0', 'pay_refund_order_status', 0, 'primary', '', '退款订单生成', '1', '2021-12-10 16:44:44', '1', '2022-02-16 14:05:24', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1118, 2, '退款成功', '1', 'pay_refund_order_status', 0, 'success', '', '退款成功', '1', '2021-12-10 16:44:59', '1', '2022-02-16 14:05:28', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1119, 3, '退款失败', '2', 'pay_refund_order_status', 0, 'danger', '', '退款失败', '1', '2021-12-10 16:45:10', '1', '2022-02-16 14:05:34', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1124, 8, '退款关闭', '99', 'pay_refund_order_status', 0, 'info', '', '退款关闭', '1', '2021-12-10 16:46:26', '1', '2022-02-16 14:05:40', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1125, 0, '默认', '1', 'bpm_model_category', 0, 'primary', '', '流程分类 - 默认', '1', '2022-01-02 08:41:11', '1', '2022-02-16 20:01:42', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1126, 0, 'OA', '2', 'bpm_model_category', 0, 'success', '', '流程分类 - OA', '1', '2022-01-02 08:41:22', '1', '2022-02-16 20:01:50', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1127, 0, '进行中', '1', 'bpm_process_instance_status', 0, 'primary', '', '流程实例的状态 - 进行中', '1', '2022-01-07 23:47:22', '1', '2022-02-16 20:07:49', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1128, 2, '已完成', '2', 'bpm_process_instance_status', 0, 'success', '', '流程实例的状态 - 已完成', '1', '2022-01-07 23:47:49', '1', '2022-02-16 20:07:54', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1129, 1, '处理中', '1', 'bpm_process_instance_result', 0, 'primary', '', '流程实例的结果 - 处理中', '1', '2022-01-07 23:48:32', '1', '2022-02-16 09:53:26', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1130, 2, '通过', '2', 'bpm_process_instance_result', 0, 'success', '', '流程实例的结果 - 通过', '1', '2022-01-07 23:48:45', '1', '2022-02-16 09:53:31', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1131, 3, '不通过', '3', 'bpm_process_instance_result', 0, 'danger', '', '流程实例的结果 - 不通过', '1', '2022-01-07 23:48:55', '1', '2022-02-16 09:53:38', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1132, 4, '已取消', '4', 'bpm_process_instance_result', 0, 'info', '', '流程实例的结果 - 撤销', '1', '2022-01-07 23:49:06', '1', '2022-02-16 09:53:42', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1133, 10, '流程表单', '10', 'bpm_model_form_type', 0, '', '', '流程的表单类型 - 流程表单', '103', '2022-01-11 23:51:30', '103', '2022-01-11 23:51:30', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1134, 20, '业务表单', '20', 'bpm_model_form_type', 0, '', '', '流程的表单类型 - 业务表单', '103', '2022-01-11 23:51:47', '103', '2022-01-11 23:51:47', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1135, 10, '角色', '10', 'bpm_task_assign_rule_type', 0, 'info', '', '任务分配规则的类型 - 角色', '103', '2022-01-12 23:21:22', '1', '2022-02-16 20:06:14', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1136, 20, '部门的成员', '20', 'bpm_task_assign_rule_type', 0, 'primary', '', '任务分配规则的类型 - 部门的成员', '103', '2022-01-12 23:21:47', '1', '2022-02-16 20:05:28', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1137, 21, '部门的负责人', '21', 'bpm_task_assign_rule_type', 0, 'primary', '', '任务分配规则的类型 - 部门的负责人', '103', '2022-01-12 23:33:36', '1', '2022-02-16 20:05:31', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1138, 30, '用户', '30', 'bpm_task_assign_rule_type', 0, 'info', '', '任务分配规则的类型 - 用户', '103', '2022-01-12 23:34:02', '1', '2022-02-16 20:05:50', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1139, 40, '用户组', '40', 'bpm_task_assign_rule_type', 0, 'warning', '', '任务分配规则的类型 - 用户组', '103', '2022-01-12 23:34:21', '1', '2022-02-16 20:05:57', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1140, 50, '自定义脚本', '50', 'bpm_task_assign_rule_type', 0, 'danger', '', '任务分配规则的类型 - 自定义脚本', '103', '2022-01-12 23:34:43', '1', '2022-02-16 20:06:01', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1141, 22, '岗位', '22', 'bpm_task_assign_rule_type', 0, 'success', '', '任务分配规则的类型 - 岗位', '103', '2022-01-14 18:41:55', '1', '2022-02-16 20:05:39', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1142, 10, '流程发起人', '10', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人', '103', '2022-01-15 00:10:57', '103', '2022-01-15 21:24:10', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1143, 20, '流程发起人的一级领导', '20', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人的一级领导', '103', '2022-01-15 21:24:31', '103', '2022-01-15 21:24:31', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1144, 21, '流程发起人的二级领导', '21', 'bpm_task_assign_script', 0, '', '', '任务分配自定义脚本 - 流程发起人的二级领导', '103', '2022-01-15 21:24:46', '103', '2022-01-15 21:24:57', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1145, 1, '管理后台', '1', 'infra_codegen_scene', 0, '', '', '代码生成的场景枚举 - 管理后台', '1', '2022-02-02 13:15:06', '1', '2022-03-10 16:32:59', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1146, 2, '用户 APP', '2', 'infra_codegen_scene', 0, '', '', '代码生成的场景枚举 - 用户 APP', '1', '2022-02-02 13:15:19', '1', '2022-03-10 16:33:03', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1147, 0, '未退款', '0', 'pay_refund_order_type', 0, 'info', '', '退款类型 - 未退款', '1', '2022-02-16 14:09:01', '1', '2022-02-16 14:09:01', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1148, 10, '部分退款', '10', 'pay_refund_order_type', 0, 'success', '', '退款类型 - 部分退款', '1', '2022-02-16 14:09:25', '1', '2022-02-16 14:11:38', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1149, 20, '全部退款', '20', 'pay_refund_order_type', 0, 'warning', '', '退款类型 - 全部退款', '1', '2022-02-16 14:11:33', '1', '2022-02-16 14:11:33', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1150, 1, '数据库', '1', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:25:28', '1', '2022-03-15 00:25:28', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1151, 10, '本地磁盘', '10', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:25:41', '1', '2022-03-15 00:25:56', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1152, 11, 'FTP 服务器', '11', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:26:06', '1', '2022-03-15 00:26:10', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1153, 12, 'SFTP 服务器', '12', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:26:22', '1', '2022-03-15 00:26:22', 0);
INSERT INTO "system_dict_data" ("id", "sort", "label", "value", "dict_type", "status", "color_type", "css_class", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1154, 20, 'S3 对象存储', '20', 'infra_file_storage', 0, 'default', '', NULL, '1', '2022-03-15 00:26:31', '1', '2022-03-15 00:26:45', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_dict_type
-- ----------------------------
DROP TABLE IF EXISTS "system_dict_type";
CREATE TABLE "system_dict_type" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"type" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(500) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_dict_type"."id" IS '字典主键';
COMMENT ON COLUMN "system_dict_type"."name" IS '字典名称';
COMMENT ON COLUMN "system_dict_type"."type" IS '字典类型';
COMMENT ON COLUMN "system_dict_type"."status" IS '状态(0正常 1停用)';
COMMENT ON COLUMN "system_dict_type"."remark" IS '备注';
COMMENT ON COLUMN "system_dict_type"."creator" IS '创建者';
COMMENT ON COLUMN "system_dict_type"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_dict_type"."updater" IS '更新者';
COMMENT ON COLUMN "system_dict_type"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_dict_type"."deleted" IS '是否删除';
COMMENT ON TABLE "system_dict_type" IS '字典类型表';
-- ----------------------------
-- Records of system_dict_type
-- ----------------------------
BEGIN;
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '用户性别', 'system_user_sex', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:30:31', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, '参数类型', 'infra_config_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:36:54', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (7, '通知类型', 'system_notice_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:35:26', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (9, '操作类型', 'system_operate_type', 0, NULL, 'admin', '2021-01-05 17:03:48', '1', '2022-02-16 09:32:21', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (10, '系统状态', 'common_status', 0, NULL, 'admin', '2021-01-05 17:03:48', '', '2022-02-01 16:21:28', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (11, 'Boolean 是否类型', 'infra_boolean_string', 0, 'boolean 转是否', '', '2021-01-19 03:20:08', '', '2022-02-01 16:37:10', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (104, '登陆结果', 'system_login_result', 0, '登陆结果', '', '2021-01-18 06:17:11', '', '2022-02-01 16:36:00', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (105, 'Redis 超时类型', 'infra_redis_timeout_type', 0, 'RedisKeyDefine.TimeoutTypeEnum', '', '2021-01-26 00:52:50', '', '2022-02-01 16:50:29', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (106, '代码生成模板类型', 'infra_codegen_template_type', 0, NULL, '', '2021-02-05 07:08:06', '', '2022-03-10 16:33:42', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (107, '定时任务状态', 'infra_job_status', 0, NULL, '', '2021-02-07 07:44:16', '', '2022-02-01 16:51:11', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (108, '定时任务日志状态', 'infra_job_log_status', 0, NULL, '', '2021-02-08 10:03:51', '', '2022-02-01 16:50:43', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (109, '用户类型', 'user_type', 0, NULL, '', '2021-02-26 00:15:51', '', '2021-02-26 00:15:51', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (110, 'API 异常数据的处理状态', 'infra_api_error_log_process_status', 0, NULL, '', '2021-02-26 07:07:01', '', '2022-02-01 16:50:53', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, '短信渠道编码', 'system_sms_channel_code', 0, NULL, '1', '2021-04-05 01:04:50', '1', '2022-02-16 02:09:08', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (112, '短信模板的类型', 'system_sms_template_type', 0, NULL, '1', '2021-04-05 21:50:43', '1', '2022-02-01 16:35:06', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (113, '短信发送状态', 'system_sms_send_status', 0, NULL, '1', '2021-04-11 20:18:03', '1', '2022-02-01 16:35:09', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (114, '短信接收状态', 'system_sms_receive_status', 0, NULL, '1', '2021-04-11 20:27:14', '1', '2022-02-01 16:35:14', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (115, '错误码的类型', 'system_error_code_type', 0, NULL, '1', '2021-04-21 00:06:30', '1', '2022-02-01 16:36:49', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (116, '登陆日志的类型', 'system_login_type', 0, '登陆日志的类型', '1', '2021-10-06 00:50:46', '1', '2022-02-01 16:35:56', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (117, 'OA 请假类型', 'bpm_oa_leave_type', 0, NULL, '1', '2021-09-21 22:34:33', '1', '2022-01-22 10:41:37', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (122, '支付渠道微信版本', 'pay_channel_wechat_version', 0, '支付渠道微信版本', '1', '2021-11-08 17:00:26', '1', '2021-11-08 17:00:26', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (127, '支付渠道支付宝算法类型', 'pay_channel_alipay_sign_type', 0, '支付渠道支付宝算法类型', '1', '2021-11-18 15:39:09', '1', '2021-11-18 15:39:09', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (128, '支付渠道支付宝公钥类型', 'pay_channel_alipay_mode', 0, '支付渠道支付宝公钥类型', '1', '2021-11-18 15:44:28', '1', '2021-11-18 15:44:28', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (129, '支付宝网关地址', 'pay_channel_alipay_server_type', 0, '支付宝网关地址', '1', '2021-11-18 16:58:55', '1', '2021-11-18 17:01:34', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (130, '支付渠道编码类型', 'pay_channel_code_type', 0, '支付渠道的编码', '1', '2021-12-03 10:35:08', '1', '2021-12-03 10:35:08', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (131, '支付订单回调状态', 'pay_order_notify_status', 0, '支付订单回调状态', '1', '2021-12-03 10:53:29', '1', '2021-12-03 10:53:29', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (132, '支付订单状态', 'pay_order_status', 0, '支付订单状态', '1', '2021-12-03 11:17:50', '1', '2021-12-03 11:17:50', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (133, '支付订单退款状态', 'pay_order_refund_status', 0, '支付订单退款状态', '1', '2021-12-03 11:27:31', '1', '2021-12-03 11:27:31', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (134, '退款订单状态', 'pay_refund_order_status', 0, '退款订单状态', '1', '2021-12-10 16:42:50', '1', '2021-12-10 16:42:50', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (135, '退款订单类别', 'pay_refund_order_type', 0, '退款订单类别', '1', '2021-12-10 17:14:53', '1', '2021-12-10 17:14:53', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (138, '流程分类', 'bpm_model_category', 0, '流程分类', '1', '2022-01-02 08:40:45', '1', '2022-01-02 08:40:45', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (139, '流程实例的状态', 'bpm_process_instance_status', 0, '流程实例的状态', '1', '2022-01-07 23:46:42', '1', '2022-01-07 23:46:42', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (140, '流程实例的结果', 'bpm_process_instance_result', 0, '流程实例的结果', '1', '2022-01-07 23:48:10', '1', '2022-01-07 23:48:10', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (141, '流程的表单类型', 'bpm_model_form_type', 0, '流程的表单类型', '103', '2022-01-11 23:50:45', '103', '2022-01-11 23:50:45', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (142, '任务分配规则的类型', 'bpm_task_assign_rule_type', 0, '任务分配规则的类型', '103', '2022-01-12 23:21:04', '103', '2022-01-12 15:46:10', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (143, '任务分配自定义脚本', 'bpm_task_assign_script', 0, '任务分配自定义脚本', '103', '2022-01-15 00:10:35', '103', '2022-01-15 00:10:35', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (144, '代码生成的场景枚举', 'infra_codegen_scene', 0, '代码生成的场景枚举', '1', '2022-02-02 13:14:45', '1', '2022-03-10 16:33:46', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (145, '角色类型', 'system_role_type', 0, '角色类型', '1', '2022-02-16 13:01:46', '1', '2022-02-16 13:01:46', 0);
INSERT INTO "system_dict_type" ("id", "name", "type", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted") VALUES (146, '文件存储器', 'infra_file_storage', 0, '文件存储器', '1', '2022-03-15 00:24:38', '1', '2022-03-15 00:24:38', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_error_code
-- ----------------------------
DROP TABLE IF EXISTS "system_error_code";
CREATE TABLE "system_error_code" (
"id" int8 NOT NULL,
"type" int2 NOT NULL,
"application_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"code" int4 NOT NULL,
"message" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"memo" varchar(512) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_error_code"."id" IS '错误码编号';
COMMENT ON COLUMN "system_error_code"."type" IS '错误码类型';
COMMENT ON COLUMN "system_error_code"."application_name" IS '应用名';
COMMENT ON COLUMN "system_error_code"."code" IS '错误码编码';
COMMENT ON COLUMN "system_error_code"."message" IS '错误码错误提示';
COMMENT ON COLUMN "system_error_code"."memo" IS '备注';
COMMENT ON COLUMN "system_error_code"."creator" IS '创建者';
COMMENT ON COLUMN "system_error_code"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_error_code"."updater" IS '更新者';
COMMENT ON COLUMN "system_error_code"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_error_code"."deleted" IS '是否删除';
COMMENT ON TABLE "system_error_code" IS '错误码表';
-- ----------------------------
-- Records of system_error_code
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_login_log
-- ----------------------------
DROP TABLE IF EXISTS "system_login_log";
CREATE TABLE "system_login_log" (
"id" int8 NOT NULL,
"log_type" int8 NOT NULL,
"trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"user_id" int8 NOT NULL,
"user_type" int2 NOT NULL,
"username" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"result" int2 NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_login_log"."id" IS '访问ID';
COMMENT ON COLUMN "system_login_log"."log_type" IS '日志类型';
COMMENT ON COLUMN "system_login_log"."trace_id" IS '链路追踪编号';
COMMENT ON COLUMN "system_login_log"."user_id" IS '用户编号';
COMMENT ON COLUMN "system_login_log"."user_type" IS '用户类型';
COMMENT ON COLUMN "system_login_log"."username" IS '用户账号';
COMMENT ON COLUMN "system_login_log"."result" IS '登陆结果';
COMMENT ON COLUMN "system_login_log"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "system_login_log"."user_agent" IS '浏览器 UA';
COMMENT ON COLUMN "system_login_log"."creator" IS '创建者';
COMMENT ON COLUMN "system_login_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_login_log"."updater" IS '更新者';
COMMENT ON COLUMN "system_login_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_login_log"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_login_log"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_login_log" IS '系统访问记录';
-- ----------------------------
-- Records of system_login_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_menu
-- ----------------------------
DROP TABLE IF EXISTS "system_menu";
CREATE TABLE "system_menu" (
"id" int8 NOT NULL,
"name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"permission" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"type" int2 NOT NULL,
"sort" int4 NOT NULL,
"parent_id" int8 NOT NULL,
"path" varchar(200) COLLATE "pg_catalog"."default",
"icon" varchar(100) COLLATE "pg_catalog"."default",
"component" varchar(255) COLLATE "pg_catalog"."default",
"status" int2 NOT NULL,
"visible" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"keep_alive" varchar(1) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_menu"."id" IS '菜单ID';
COMMENT ON COLUMN "system_menu"."name" IS '菜单名称';
COMMENT ON COLUMN "system_menu"."permission" IS '权限标识';
COMMENT ON COLUMN "system_menu"."type" IS '菜单类型';
COMMENT ON COLUMN "system_menu"."sort" IS '显示顺序';
COMMENT ON COLUMN "system_menu"."parent_id" IS '父菜单ID';
COMMENT ON COLUMN "system_menu"."path" IS '路由地址';
COMMENT ON COLUMN "system_menu"."icon" IS '菜单图标';
COMMENT ON COLUMN "system_menu"."component" IS '组件路径';
COMMENT ON COLUMN "system_menu"."status" IS '菜单状态';
COMMENT ON COLUMN "system_menu"."visible" IS '是否可见';
COMMENT ON COLUMN "system_menu"."keep_alive" IS '是否缓存';
COMMENT ON COLUMN "system_menu"."creator" IS '创建者';
COMMENT ON COLUMN "system_menu"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_menu"."updater" IS '更新者';
COMMENT ON COLUMN "system_menu"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_menu"."deleted" IS '是否删除';
COMMENT ON TABLE "system_menu" IS '菜单权限表';
-- ----------------------------
-- Records of system_menu
-- ----------------------------
BEGIN;
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '系统管理', '', 1, 10, 0, '/system', 'system', NULL, 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, '基础设施', '', 1, 20, 0, '/infra', 'monitor', NULL, 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (5, 'OA 示例', '', 1, 40, 1185, 'oa', 'people', NULL, 0, '1', '1', 'admin', '2021-09-20 16:26:19', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (100, '用户管理', 'system:user:list', 2, 1, 1, 'user', 'user', 'system/user/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (101, '角色管理', '', 2, 2, 1, 'role', 'peoples', 'system/role/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (102, '菜单管理', '', 2, 3, 1, 'menu', 'tree-table', 'system/menu/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (103, '部门管理', '', 2, 4, 1, 'dept', 'tree', 'system/dept/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (104, '岗位管理', '', 2, 5, 1, 'post', 'post', 'system/post/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (105, '字典管理', '', 2, 6, 1, 'dict', 'dict', 'system/dict/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (106, '配置管理', '', 2, 6, 2, 'config', 'edit', 'infra/config/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (107, '通知公告', '', 2, 8, 1, 'notice', 'message', 'system/notice/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (108, '审计日志', '', 1, 9, 1, 'log', 'log', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (109, '在线用户', 'system:user-session:list', 2, 10, 1, 'user-session', 'online', 'system/session/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (110, '定时任务', '', 2, 12, 2, 'job', 'job', 'infra/job/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, 'MySQL 监控', '', 2, 9, 2, 'druid', 'druid', 'infra/druid/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (112, 'Java 监控', '', 2, 11, 2, 'admin-server', 'server', 'infra/server/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (113, 'Redis 监控', '', 2, 10, 2, 'redis', 'redis', 'infra/redis/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (114, '表单构建', 'infra:build:list', 2, 2, 2, 'build', 'build', 'infra/build/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (115, '代码生成', 'infra:codegen:query', 2, 1, 2, 'codegen', 'code', 'infra/codegen/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (116, '系统接口', 'infra:swagger:list', 2, 3, 2, 'swagger', 'swagger', 'infra/swagger/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (500, '操作日志', '', 2, 1, 108, 'operate-log', 'form', 'system/operatelog/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (501, '登录日志', '', 2, 2, 108, 'login-log', 'logininfor', 'system/loginlog/index', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1001, '用户查询', 'system:user:query', 3, 1, 100, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1002, '用户新增', 'system:user:create', 3, 2, 100, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1003, '用户修改', 'system:user:update', 3, 3, 100, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1004, '用户删除', 'system:user:delete', 3, 4, 100, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1005, '用户导出', 'system:user:export', 3, 5, 100, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1006, '用户导入', 'system:user:import', 3, 6, 100, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1007, '重置密码', 'system:user:update-password', 3, 7, 100, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1008, '角色查询', 'system:role:query', 3, 1, 101, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1009, '角色新增', 'system:role:create', 3, 2, 101, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1010, '角色修改', 'system:role:update', 3, 3, 101, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1011, '角色删除', 'system:role:delete', 3, 4, 101, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1012, '角色导出', 'system:role:export', 3, 5, 101, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1013, '菜单查询', 'system:menu:query', 3, 1, 102, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1014, '菜单新增', 'system:menu:create', 3, 2, 102, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1015, '菜单修改', 'system:menu:update', 3, 3, 102, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1016, '菜单删除', 'system:menu:delete', 3, 4, 102, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1017, '部门查询', 'system:dept:query', 3, 1, 103, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1018, '部门新增', 'system:dept:create', 3, 2, 103, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1019, '部门修改', 'system:dept:update', 3, 3, 103, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1020, '部门删除', 'system:dept:delete', 3, 4, 103, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1021, '岗位查询', 'system:post:query', 3, 1, 104, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1022, '岗位新增', 'system:post:create', 3, 2, 104, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1023, '岗位修改', 'system:post:update', 3, 3, 104, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1024, '岗位删除', 'system:post:delete', 3, 4, 104, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1025, '岗位导出', 'system:post:export', 3, 5, 104, '', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1026, '字典查询', 'system:dict:query', 3, 1, 105, '#', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1027, '字典新增', 'system:dict:create', 3, 2, 105, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1028, '字典修改', 'system:dict:update', 3, 3, 105, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1029, '字典删除', 'system:dict:delete', 3, 4, 105, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1030, '字典导出', 'system:dict:export', 3, 5, 105, '#', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1031, '配置查询', 'infra:config:query', 3, 1, 106, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1032, '配置新增', 'infra:config:create', 3, 2, 106, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1033, '配置修改', 'infra:config:update', 3, 3, 106, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1034, '配置删除', 'infra:config:delete', 3, 4, 106, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1035, '配置导出', 'infra:config:export', 3, 5, 106, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1036, '公告查询', 'system:notice:query', 3, 1, 107, '#', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1037, '公告新增', 'system:notice:create', 3, 2, 107, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1038, '公告修改', 'system:notice:update', 3, 3, 107, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1039, '公告删除', 'system:notice:delete', 3, 4, 107, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1040, '操作查询', 'system:operate-log:query', 3, 1, 500, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1042, '日志导出', 'system:operate-log:export', 3, 2, 500, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1043, '登录查询', 'system:login-log:query', 3, 1, 501, '#', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1045, '日志导出', 'system:login-log:export', 3, 3, 501, '#', '#', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1046, '在线查询', 'system:user-session:list', 3, 1, 109, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1048, '单条强退', 'system:user-session:delete', 3, 3, 109, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1050, '任务新增', 'infra:job:create', 3, 2, 110, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1051, '任务修改', 'infra:job:update', 3, 3, 110, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1052, '任务删除', 'infra:job:delete', 3, 4, 110, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1053, '状态修改', 'infra:job:update', 3, 5, 110, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1054, '任务导出', 'infra:job:export', 3, 7, 110, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1056, '生成修改', 'infra:codegen:update', 3, 2, 115, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1057, '生成删除', 'infra:codegen:delete', 3, 3, 115, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1058, '导入代码', 'infra:codegen:create', 3, 2, 115, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1059, '预览代码', 'infra:codegen:preview', 3, 4, 115, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1060, '生成代码', 'infra:codegen:download', 3, 5, 115, '', '', '', 0, '1', '1', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1063, '设置角色菜单权限', 'system:permission:assign-role-menu', 3, 6, 101, '', '', '', 0, '1', '1', '', '2021-01-06 17:53:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1064, '设置角色数据权限', 'system:permission:assign-role-data-scope', 3, 7, 101, '', '', '', 0, '1', '1', '', '2021-01-06 17:56:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1065, '设置用户角色', 'system:permission:assign-user-role', 3, 8, 101, '', '', '', 0, '1', '1', '', '2021-01-07 10:23:28', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1066, '获得 Redis 监控信息', 'infra:redis:get-monitor-info', 3, 1, 113, '', '', '', 0, '1', '1', '', '2021-01-26 01:02:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1067, '获得 Redis Key 列表', 'infra:redis:get-key-list', 3, 2, 113, '', '', '', 0, '1', '1', '', '2021-01-26 01:02:52', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1070, '代码生成示例', 'infra:test-demo:query', 2, 1, 2, 'test-demo', 'validCode', 'infra/testDemo/index', 0, '1', '1', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1071, '测试示例表创建', 'infra:test-demo:create', 3, 1, 1070, '', '', '', 0, '1', '1', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1072, '测试示例表更新', 'infra:test-demo:update', 3, 2, 1070, '', '', '', 0, '1', '1', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1073, '测试示例表删除', 'infra:test-demo:delete', 3, 3, 1070, '', '', '', 0, '1', '1', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1074, '测试示例表导出', 'infra:test-demo:export', 3, 4, 1070, '', '', '', 0, '1', '1', '', '2021-02-06 12:42:49', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1075, '任务触发', 'infra:job:trigger', 3, 8, 110, '', '', '', 0, '1', '1', '', '2021-02-07 13:03:10', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1076, '数据库文档', '', 2, 4, 2, 'db-doc', 'table', 'infra/dbDoc/index', 0, '1', '1', '', '2021-02-08 01:41:47', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1077, '监控平台', '', 2, 13, 2, 'skywalking', 'eye-open', 'infra/skywalking/index', 0, '1', '1', '', '2021-02-08 20:41:31', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1078, '访问日志', '', 2, 1, 1083, 'api-access-log', 'log', 'infra/apiAccessLog/index', 0, '1', '1', '', '2021-02-26 01:32:59', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1082, '日志导出', 'infra:api-access-log:export', 3, 2, 1078, '', '', '', 0, '1', '1', '', '2021-02-26 01:32:59', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1083, 'API 日志', '', 2, 8, 2, 'log', 'log', NULL, 0, '1', '1', '', '2021-02-26 02:18:24', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1084, '错误日志', 'infra:api-error-log:query', 2, 2, 1083, 'api-error-log', 'log', 'infra/apiErrorLog/index', 0, '1', '1', '', '2021-02-26 07:53:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1085, '日志处理', 'infra:api-error-log:update-status', 3, 2, 1084, '', '', '', 0, '1', '1', '', '2021-02-26 07:53:20', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1086, '日志导出', 'infra:api-error-log:export', 3, 3, 1084, '', '', '', 0, '1', '1', '', '2021-02-26 07:53:20', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1087, '任务查询', 'infra:job:query', 3, 1, 110, '', '', '', 0, '1', '1', '1', '2021-03-10 01:26:19', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1088, '日志查询', 'infra:api-access-log:query', 3, 1, 1078, '', '', '', 0, '1', '1', '1', '2021-03-10 01:28:04', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1089, '日志查询', 'infra:api-error-log:query', 3, 1, 1084, '', '', '', 0, '1', '1', '1', '2021-03-10 01:29:09', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1090, '文件列表', '', 2, 5, 1243, 'file', 'upload', 'infra/file/index', 0, '1', '1', '', '2021-03-12 20:16:20', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1091, '文件查询', 'infra:file:query', 3, 1, 1090, '', '', '', 0, '1', '1', '', '2021-03-12 20:16:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1092, '文件删除', 'infra:file:delete', 3, 4, 1090, '', '', '', 0, '1', '1', '', '2021-03-12 20:16:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1093, '短信管理', '', 1, 11, 1, 'sms', 'validCode', NULL, 0, '1', '1', '1', '2021-04-05 01:10:16', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1094, '短信渠道', '', 2, 0, 1093, 'sms-channel', 'phone', 'system/sms/smsChannel', 0, '1', '1', '', '2021-04-01 11:07:15', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1095, '短信渠道查询', 'system:sms-channel:query', 3, 1, 1094, '', '', '', 0, '1', '1', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1096, '短信渠道创建', 'system:sms-channel:create', 3, 2, 1094, '', '', '', 0, '1', '1', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1097, '短信渠道更新', 'system:sms-channel:update', 3, 3, 1094, '', '', '', 0, '1', '1', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1098, '短信渠道删除', 'system:sms-channel:delete', 3, 4, 1094, '', '', '', 0, '1', '1', '', '2021-04-01 11:07:15', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1100, '短信模板', '', 2, 1, 1093, 'sms-template', 'phone', 'system/sms/smsTemplate', 0, '1', '1', '', '2021-04-01 17:35:17', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1101, '短信模板查询', 'system:sms-template:query', 3, 1, 1100, '', '', '', 0, '1', '1', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1102, '短信模板创建', 'system:sms-template:create', 3, 2, 1100, '', '', '', 0, '1', '1', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1103, '短信模板更新', 'system:sms-template:update', 3, 3, 1100, '', '', '', 0, '1', '1', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1104, '短信模板删除', 'system:sms-template:delete', 3, 4, 1100, '', '', '', 0, '1', '1', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1105, '短信模板导出', 'system:sms-template:export', 3, 5, 1100, '', '', '', 0, '1', '1', '', '2021-04-01 17:35:17', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1106, '发送测试短信', 'system:sms-template:send-sms', 3, 6, 1100, '', '', '', 0, '1', '1', '1', '2021-04-11 00:26:40', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1107, '短信日志', '', 2, 2, 1093, 'sms-log', 'phone', 'system/sms/smsLog', 0, '1', '1', '', '2021-04-11 08:37:05', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1108, '短信日志查询', 'system:sms-log:query', 3, 1, 1107, '', '', '', 0, '1', '1', '', '2021-04-11 08:37:05', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1109, '短信日志导出', 'system:sms-log:export', 3, 5, 1107, '', '', '', 0, '1', '1', '', '2021-04-11 08:37:05', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1110, '错误码管理', '', 2, 12, 1, 'error-code', 'code', 'system/errorCode/index', 0, '1', '1', '', '2021-04-13 21:46:42', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1111, '错误码查询', 'system:error-code:query', 3, 1, 1110, '', '', '', 0, '1', '1', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1112, '错误码创建', 'system:error-code:create', 3, 2, 1110, '', '', '', 0, '1', '1', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1113, '错误码更新', 'system:error-code:update', 3, 3, 1110, '', '', '', 0, '1', '1', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1114, '错误码删除', 'system:error-code:delete', 3, 4, 1110, '', '', '', 0, '1', '1', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1115, '错误码导出', 'system:error-code:export', 3, 5, 1110, '', '', '', 0, '1', '1', '', '2021-04-13 21:46:42', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1117, '支付管理', '', 1, 11, 0, '/pay', 'money', NULL, 0, '1', '1', '1', '2021-12-25 16:43:41', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1118, '请假查询', '', 2, 0, 5, 'leave', 'user', 'bpm/oa/leave/index', 0, '1', '1', '', '2021-09-20 08:51:03', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1119, '请假申请查询', 'bpm:oa-leave:query', 3, 1, 1118, '', '', '', 0, '1', '1', '', '2021-09-20 08:51:03', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1120, '请假申请创建', 'bpm:oa-leave:create', 3, 2, 1118, '', '', '', 0, '1', '1', '', '2021-09-20 08:51:03', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1126, '应用信息', '', 2, 1, 1117, 'app', 'table', 'pay/app/index', 0, '1', '1', '', '2021-11-10 01:13:30', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1127, '支付应用信息查询', 'pay:app:query', 3, 1, 1126, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1128, '支付应用信息创建', 'pay:app:create', 3, 2, 1126, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1129, '支付应用信息更新', 'pay:app:update', 3, 3, 1126, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1130, '支付应用信息删除', 'pay:app:delete', 3, 4, 1126, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1131, '支付应用信息导出', 'pay:app:export', 3, 5, 1126, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:31', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1132, '秘钥解析', 'pay:channel:parsing', 3, 6, 1129, '', '', '', 0, '1', '1', '1', '2021-11-08 15:15:47', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1133, '支付商户信息查询', 'pay:merchant:query', 3, 1, 1132, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1134, '支付商户信息创建', 'pay:merchant:create', 3, 2, 1132, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1135, '支付商户信息更新', 'pay:merchant:update', 3, 3, 1132, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1136, '支付商户信息删除', 'pay:merchant:delete', 3, 4, 1132, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1137, '支付商户信息导出', 'pay:merchant:export', 3, 5, 1132, '', '', '', 0, '1', '1', '', '2021-11-10 01:13:41', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1138, '租户列表', '', 2, 0, 1224, 'list', 'peoples', 'system/tenant/index', 0, '1', '1', '', '2021-12-14 12:31:43', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1139, '租户查询', 'system:tenant:query', 3, 1, 1138, '', '', '', 0, '1', '1', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1140, '租户创建', 'system:tenant:create', 3, 2, 1138, '', '', '', 0, '1', '1', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1141, '租户更新', 'system:tenant:update', 3, 3, 1138, '', '', '', 0, '1', '1', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1142, '租户删除', 'system:tenant:delete', 3, 4, 1138, '', '', '', 0, '1', '1', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1143, '租户导出', 'system:tenant:export', 3, 5, 1138, '', '', '', 0, '1', '1', '', '2021-12-14 12:31:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1150, '秘钥解析', '', 3, 6, 1129, '', '', '', 0, '1', '1', '1', '2021-11-08 15:15:47', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1161, '退款订单', '', 2, 3, 1117, 'refund', 'order', 'pay/refund/index', 0, '1', '1', '', '2021-12-25 08:29:07', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1162, '退款订单查询', 'pay:refund:query', 3, 1, 1161, '', '', '', 0, '1', '1', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1163, '退款订单创建', 'pay:refund:create', 3, 2, 1161, '', '', '', 0, '1', '1', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1164, '退款订单更新', 'pay:refund:update', 3, 3, 1161, '', '', '', 0, '1', '1', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1165, '退款订单删除', 'pay:refund:delete', 3, 4, 1161, '', '', '', 0, '1', '1', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1166, '退款订单导出', 'pay:refund:export', 3, 5, 1161, '', '', '', 0, '1', '1', '', '2021-12-25 08:29:07', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1173, '支付订单', '', 2, 2, 1117, 'order', 'pay', 'pay/order/index', 0, '1', '1', '', '2021-12-25 08:49:43', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1174, '支付订单查询', 'pay:order:query', 3, 1, 1173, '', '', '', 0, '1', '1', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1175, '支付订单创建', 'pay:order:create', 3, 2, 1173, '', '', '', 0, '1', '1', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1176, '支付订单更新', 'pay:order:update', 3, 3, 1173, '', '', '', 0, '1', '1', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1177, '支付订单删除', 'pay:order:delete', 3, 4, 1173, '', '', '', 0, '1', '1', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1178, '支付订单导出', 'pay:order:export', 3, 5, 1173, '', '', '', 0, '1', '1', '', '2021-12-25 08:49:43', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1179, '商户信息', '', 2, 0, 1117, 'merchant', 'merchant', 'pay/merchant/index', 0, '1', '1', '', '2021-12-25 09:01:44', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1180, '支付商户信息查询', 'pay:merchant:query', 3, 1, 1179, '', '', '', 0, '1', '1', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1181, '支付商户信息创建', 'pay:merchant:create', 3, 2, 1179, '', '', '', 0, '1', '1', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1182, '支付商户信息更新', 'pay:merchant:update', 3, 3, 1179, '', '', '', 0, '1', '1', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1183, '支付商户信息删除', '', 3, 4, 1179, '', '', '', 0, '1', '1', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1184, '支付商户信息导出', 'pay:merchant:export', 3, 5, 1179, '', '', '', 0, '1', '1', '', '2021-12-25 09:01:44', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1185, '工作流程', '', 1, 50, 0, '/bpm', 'tool', NULL, 0, '1', '1', '1', '2021-12-30 20:26:36', '103', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1186, '流程管理', '', 1, 10, 1185, 'manager', 'nested', NULL, 0, '1', '1', '1', '2021-12-30 20:28:30', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1187, '流程表单', '', 2, 0, 1186, 'form', 'form', 'bpm/form/index', 0, '1', '1', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1188, '表单查询', 'bpm:form:query', 3, 1, 1187, '', '', '', 0, '1', '1', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1189, '表单创建', 'bpm:form:create', 3, 2, 1187, '', '', '', 0, '1', '1', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1190, '表单更新', 'bpm:form:update', 3, 3, 1187, '', '', '', 0, '1', '1', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1191, '表单删除', 'bpm:form:delete', 3, 4, 1187, '', '', '', 0, '1', '1', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1192, '表单导出', 'bpm:form:export', 3, 5, 1187, '', '', '', 0, '1', '1', '', '2021-12-30 12:38:22', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1193, '流程模型', '', 2, 5, 1186, 'model', 'guide', 'bpm/model/index', 0, '1', '1', '1', '2021-12-31 23:24:58', '103', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1194, '模型查询', 'bpm:model:query', 3, 1, 1193, '', '', '', 0, '1', '1', '1', '2022-01-03 19:01:10', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1195, '模型创建', 'bpm:model:create', 3, 2, 1193, '', '', '', 0, '1', '1', '1', '2022-01-03 19:01:24', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1196, '模型导入', 'bpm:model:import', 3, 3, 1193, '', '', '', 0, '1', '1', '1', '2022-01-03 19:01:35', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1197, '模型更新', 'bpm:model:update', 3, 4, 1193, '', '', '', 0, '1', '1', '1', '2022-01-03 19:02:28', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1198, '模型删除', 'bpm:model:delete', 3, 5, 1193, '', '', '', 0, '1', '1', '1', '2022-01-03 19:02:43', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1199, '模型发布', 'bpm:model:deploy', 3, 6, 1193, '', '', '', 0, '1', '1', '1', '2022-01-03 19:03:24', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1200, '任务管理', '', 1, 20, 1185, 'task', 'cascader', NULL, 0, '1', '1', '1', '2022-01-07 23:51:48', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1201, '我的流程', '', 2, 0, 1200, 'my', 'people', 'bpm/processInstance/index', 0, '1', '1', '', '2022-01-07 15:53:44', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1202, '流程实例的查询', 'bpm:process-instance:query', 3, 1, 1201, '', '', '', 0, '1', '1', '', '2022-01-07 15:53:44', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1207, '待办任务', '', 2, 10, 1200, 'todo', 'eye-open', 'bpm/task/todo', 0, '1', '1', '1', '2022-01-08 10:33:37', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1208, '已办任务', '', 2, 20, 1200, 'done', 'eye', 'bpm/task/done', 0, '1', '1', '1', '2022-01-08 10:34:13', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1209, '用户分组', '', 2, 2, 1186, 'user-group', 'people', 'bpm/group/index', 0, '1', '1', '', '2022-01-14 02:14:20', '103', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1210, '用户组查询', 'bpm:user-group:query', 3, 1, 1209, '', '', '', 0, '1', '1', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1211, '用户组创建', 'bpm:user-group:create', 3, 2, 1209, '', '', '', 0, '1', '1', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1212, '用户组更新', 'bpm:user-group:update', 3, 3, 1209, '', '', '', 0, '1', '1', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1213, '用户组删除', 'bpm:user-group:delete', 3, 4, 1209, '', '', '', 0, '1', '1', '', '2022-01-14 02:14:20', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1215, '流程定义查询', 'bpm:process-definition:query', 3, 10, 1193, '', '', '', 0, '1', '1', '1', '2022-01-23 00:21:43', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1216, '流程任务分配规则查询', 'bpm:task-assign-rule:query', 3, 20, 1193, '', '', '', 0, '1', '1', '1', '2022-01-23 00:26:53', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1217, '流程任务分配规则创建', 'bpm:task-assign-rule:create', 3, 21, 1193, '', '', '', 0, '1', '1', '1', '2022-01-23 00:28:15', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1218, '流程任务分配规则更新', 'bpm:task-assign-rule:update', 3, 22, 1193, '', '', '', 0, '1', '1', '1', '2022-01-23 00:28:41', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1219, '流程实例的创建', 'bpm:process-instance:create', 3, 2, 1201, '', '', '', 0, '1', '1', '1', '2022-01-23 00:36:15', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1220, '流程实例的取消', 'bpm:process-instance:cancel', 3, 3, 1201, '', '', '', 0, '1', '1', '1', '2022-01-23 00:36:33', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1221, '流程任务的查询', 'bpm:task:query', 3, 1, 1207, '', '', '', 0, '1', '1', '1', '2022-01-23 00:38:52', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1222, '流程任务的更新', 'bpm:task:update', 3, 2, 1207, '', '', '', 0, '1', '1', '1', '2022-01-23 00:39:24', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1224, '租户管理', '', 2, 0, 1, 'tenant', 'peoples', NULL, 0, '1', '1', '1', '2022-02-20 01:41:13', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1225, '租户套餐', '', 2, 0, 1224, 'package', 'eye', 'system/tenantPackage/index', 0, '1', '1', '', '2022-02-19 17:44:06', '1', '2022-04-21 01:21:25', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1226, '租户套餐查询', 'system:tenant-package:query', 3, 1, 1225, '', '', '', 0, '1', '1', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1227, '租户套餐创建', 'system:tenant-package:create', 3, 2, 1225, '', '', '', 0, '1', '1', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1228, '租户套餐更新', 'system:tenant-package:update', 3, 3, 1225, '', '', '', 0, '1', '1', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1229, '租户套餐删除', 'system:tenant-package:delete', 3, 4, 1225, '', '', '', 0, '1', '1', '', '2022-02-19 17:44:06', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1237, '文件配置', '', 2, 0, 1243, 'file-config', 'config', 'infra/fileConfig/index', 0, '1', '1', '', '2022-03-15 14:35:28', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1238, '文件配置查询', 'infra:file-config:query', 3, 1, 1237, '', '', '', 0, '1', '1', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1239, '文件配置创建', 'infra:file-config:create', 3, 2, 1237, '', '', '', 0, '1', '1', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1240, '文件配置更新', 'infra:file-config:update', 3, 3, 1237, '', '', '', 0, '1', '1', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1241, '文件配置删除', 'infra:file-config:delete', 3, 4, 1237, '', '', '', 0, '1', '1', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1242, '文件配置导出', 'infra:file-config:export', 3, 5, 1237, '', '', '', 0, '1', '1', '', '2022-03-15 14:35:28', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1243, '文件管理', '', 2, 5, 2, 'file', 'download', NULL, 0, '1', '1', '1', '2022-03-16 23:47:40', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1247, '敏感词管理', '', 2, 13, 1, 'sensitive-word', 'education', 'system/sensitiveWord/index', 0, '1', '1', '', '2022-04-07 16:55:03', '1', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1248, '敏感词查询', 'system:sensitive-word:query', 3, 1, 1247, '', '', '', 0, '1', '1', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1249, '敏感词创建', 'system:sensitive-word:create', 3, 2, 1247, '', '', '', 0, '1', '1', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1250, '敏感词更新', 'system:sensitive-word:update', 3, 3, 1247, '', '', '', 0, '1', '1', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1251, '敏感词删除', 'system:sensitive-word:delete', 3, 4, 1247, '', '', '', 0, '1', '1', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1252, '敏感词导出', 'system:sensitive-word:export', 3, 5, 1247, '', '', '', 0, '1', '1', '', '2022-04-07 16:55:03', '', '2022-04-20 17:03:10', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1254, '作者动态', '', 1, 0, 0, 'https://www.iocoder.cn', 'people', NULL, 0, '1', '1', '1', '2022-04-23 01:03:15', '1', '2022-04-23 01:03:15', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1255, '数据源配置', '', 2, 1, 2, 'data-source-config', 'rate', 'infra/dataSourceConfig/index', 0, '1', '1', '', '2022-04-27 14:37:32', '1', '2022-04-27 22:42:06', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1256, '数据源配置查询', 'infra:data-source-config:query', 3, 1, 1255, '', '', '', 0, '1', '1', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1257, '数据源配置创建', 'infra:data-source-config:create', 3, 2, 1255, '', '', '', 0, '1', '1', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1258, '数据源配置更新', 'infra:data-source-config:update', 3, 3, 1255, '', '', '', 0, '1', '1', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1259, '数据源配置删除', 'infra:data-source-config:delete', 3, 4, 1255, '', '', '', 0, '1', '1', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0);
INSERT INTO "system_menu" ("id", "name", "permission", "type", "sort", "parent_id", "path", "icon", "component", "status", "visible", "keep_alive", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1260, '数据源配置导出', 'infra:data-source-config:export', 3, 5, 1255, '', '', '', 0, '1', '1', '', '2022-04-27 14:37:32', '', '2022-04-27 14:37:32', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_notice
-- ----------------------------
DROP TABLE IF EXISTS "system_notice";
CREATE TABLE "system_notice" (
"id" int8 NOT NULL,
"title" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"content" text COLLATE "pg_catalog"."default" NOT NULL,
"type" int2 NOT NULL,
"status" int2 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_notice"."id" IS '公告ID';
COMMENT ON COLUMN "system_notice"."title" IS '公告标题';
COMMENT ON COLUMN "system_notice"."content" IS '公告内容';
COMMENT ON COLUMN "system_notice"."type" IS '公告类型(1通知 2公告)';
COMMENT ON COLUMN "system_notice"."status" IS '公告状态(0正常 1关闭)';
COMMENT ON COLUMN "system_notice"."creator" IS '创建者';
COMMENT ON COLUMN "system_notice"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_notice"."updater" IS '更新者';
COMMENT ON COLUMN "system_notice"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_notice"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_notice"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_notice" IS '通知公告表';
-- ----------------------------
-- Records of system_notice
-- ----------------------------
BEGIN;
INSERT INTO "system_notice" ("id", "title", "content", "type", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, '温馨提醒:2018-07-01 若依新版本发布啦', '<p>新版本内容133</p>', 2, 0, 'admin', '2021-01-05 17:03:48', '1', '2022-02-15 19:47:20', 0, 1);
INSERT INTO "system_notice" ("id", "title", "content", "type", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, '维护通知:2018-07-01 若依系统凌晨维护', '维护内容', 1, 0, 'admin', '2021-01-05 17:03:48', '', '2021-12-15 05:02:22', 0, 1);
INSERT INTO "system_notice" ("id", "title", "content", "type", "status", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (4, '我是测试标题', '<p>哈哈哈哈123</p>', 1, 0, '110', '2022-02-22 01:01:25', '110', '2022-02-22 01:01:46', 0, 121);
COMMIT;
-- ----------------------------
-- Table structure for system_operate_log
-- ----------------------------
DROP TABLE IF EXISTS "system_operate_log";
CREATE TABLE "system_operate_log" (
"id" int8 NOT NULL,
"trace_id" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"user_id" int8 NOT NULL,
"user_type" int2 NOT NULL,
"module" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"type" int8 NOT NULL,
"content" varchar(2000) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"exts" varchar(512) COLLATE "pg_catalog"."default" NOT NULL DEFAULT ''::character varying,
"request_method" varchar(16) COLLATE "pg_catalog"."default",
"request_url" varchar(255) COLLATE "pg_catalog"."default",
"user_ip" varchar(50) COLLATE "pg_catalog"."default",
"user_agent" varchar(200) COLLATE "pg_catalog"."default",
"java_method" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"java_method_args" varchar(8000) COLLATE "pg_catalog"."default",
"start_time" timestamp(6) NOT NULL,
"duration" int4 NOT NULL,
"result_code" int4 NOT NULL,
"result_msg" varchar(512) COLLATE "pg_catalog"."default",
"result_data" varchar(4000) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_operate_log"."id" IS '日志主键';
COMMENT ON COLUMN "system_operate_log"."trace_id" IS '链路追踪编号';
COMMENT ON COLUMN "system_operate_log"."user_id" IS '用户编号';
COMMENT ON COLUMN "system_operate_log"."user_type" IS '用户类型';
COMMENT ON COLUMN "system_operate_log"."module" IS '模块标题';
COMMENT ON COLUMN "system_operate_log"."name" IS '操作名';
COMMENT ON COLUMN "system_operate_log"."type" IS '操作分类';
COMMENT ON COLUMN "system_operate_log"."content" IS '操作内容';
COMMENT ON COLUMN "system_operate_log"."exts" IS '拓展字段';
COMMENT ON COLUMN "system_operate_log"."request_method" IS '请求方法名';
COMMENT ON COLUMN "system_operate_log"."request_url" IS '请求地址';
COMMENT ON COLUMN "system_operate_log"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "system_operate_log"."user_agent" IS '浏览器 UA';
COMMENT ON COLUMN "system_operate_log"."java_method" IS 'Java 方法名';
COMMENT ON COLUMN "system_operate_log"."java_method_args" IS 'Java 方法的参数';
COMMENT ON COLUMN "system_operate_log"."start_time" IS '操作时间';
COMMENT ON COLUMN "system_operate_log"."duration" IS '执行时长';
COMMENT ON COLUMN "system_operate_log"."result_code" IS '结果码';
COMMENT ON COLUMN "system_operate_log"."result_msg" IS '结果提示';
COMMENT ON COLUMN "system_operate_log"."result_data" IS '结果数据';
COMMENT ON COLUMN "system_operate_log"."creator" IS '创建者';
COMMENT ON COLUMN "system_operate_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_operate_log"."updater" IS '更新者';
COMMENT ON COLUMN "system_operate_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_operate_log"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_operate_log"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_operate_log" IS '操作日志记录';
-- ----------------------------
-- Records of system_operate_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_post
-- ----------------------------
DROP TABLE IF EXISTS "system_post";
CREATE TABLE "system_post" (
"id" int8 NOT NULL DEFAULT 0,
"code" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"sort" int4 NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(500) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_post"."id" IS '岗位ID';
COMMENT ON COLUMN "system_post"."code" IS '岗位编码';
COMMENT ON COLUMN "system_post"."name" IS '岗位名称';
COMMENT ON COLUMN "system_post"."sort" IS '显示顺序';
COMMENT ON COLUMN "system_post"."status" IS '状态(0正常 1停用)';
COMMENT ON COLUMN "system_post"."remark" IS '备注';
COMMENT ON COLUMN "system_post"."creator" IS '创建者';
COMMENT ON COLUMN "system_post"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_post"."updater" IS '更新者';
COMMENT ON COLUMN "system_post"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_post"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_post"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_post" IS '岗位信息表';
-- ----------------------------
-- Records of system_post
-- ----------------------------
BEGIN;
INSERT INTO "system_post" ("id", "code", "name", "sort", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, 'ceo', '董事长', 1, 0, '', 'admin', '2021-01-06 17:03:48', '1', '2022-04-19 16:53:39', 0, 1);
INSERT INTO "system_post" ("id", "code", "name", "sort", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, 'se', '项目经理', 2, 0, '', 'admin', '2021-01-05 17:03:48', '1', '2021-12-12 10:47:47', 0, 1);
INSERT INTO "system_post" ("id", "code", "name", "sort", "status", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (4, 'user', '普通员工', 4, 0, '111', 'admin', '2021-01-05 17:03:48', '1', '2022-04-20 00:59:35', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for system_role
-- ----------------------------
DROP TABLE IF EXISTS "system_role";
CREATE TABLE "system_role" (
"id" int8 NOT NULL,
"name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"code" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"sort" int4 NOT NULL,
"data_scope" int2 NOT NULL,
"data_scope_dept_ids" varchar(500) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"type" int2 NOT NULL,
"remark" varchar(500) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_role"."id" IS '角色ID';
COMMENT ON COLUMN "system_role"."name" IS '角色名称';
COMMENT ON COLUMN "system_role"."code" IS '角色权限字符串';
COMMENT ON COLUMN "system_role"."sort" IS '显示顺序';
COMMENT ON COLUMN "system_role"."data_scope" IS '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)';
COMMENT ON COLUMN "system_role"."data_scope_dept_ids" IS '数据范围(指定部门数组)';
COMMENT ON COLUMN "system_role"."status" IS '角色状态(0正常 1停用)';
COMMENT ON COLUMN "system_role"."type" IS '角色类型';
COMMENT ON COLUMN "system_role"."remark" IS '备注';
COMMENT ON COLUMN "system_role"."creator" IS '创建者';
COMMENT ON COLUMN "system_role"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_role"."updater" IS '更新者';
COMMENT ON COLUMN "system_role"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_role"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_role"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_role" IS '角色信息表';
-- ----------------------------
-- Records of system_role
-- ----------------------------
BEGIN;
INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, '超级管理员', 'super_admin', 1, 1, '', 0, 1, '超级管理员', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:21', 0, 1);
INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, '普通角色', 'common', 2, 2, '', 0, 1, '普通角色', 'admin', '2021-01-05 17:03:48', '', '2022-02-22 05:08:20', 0, 1);
INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (101, '测试账号', 'test', 0, 1, '[]', 0, 2, '132', '', '2021-01-06 13:49:35', '1', '2022-04-01 21:37:13', 0, 1);
INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (109, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', 0, 121);
INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (110, '测试角色', 'test', 0, 1, '[]', 0, 2, '嘿嘿', '110', '2022-02-23 00:14:34', '110', '2022-02-23 13:14:58', 0, 121);
INSERT INTO "system_role" ("id", "name", "code", "sort", "data_scope", "data_scope_dept_ids", "status", "type", "remark", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (111, '租户管理员', 'tenant_admin', 0, 1, '', 0, 1, '系统自动生成', '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
COMMIT;
-- ----------------------------
-- Table structure for system_role_menu
-- ----------------------------
DROP TABLE IF EXISTS "system_role_menu";
CREATE TABLE "system_role_menu" (
"id" int8 NOT NULL,
"role_id" int8 NOT NULL,
"menu_id" int8 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_role_menu"."id" IS '自增编号';
COMMENT ON COLUMN "system_role_menu"."role_id" IS '角色ID';
COMMENT ON COLUMN "system_role_menu"."menu_id" IS '菜单ID';
COMMENT ON COLUMN "system_role_menu"."creator" IS '创建者';
COMMENT ON COLUMN "system_role_menu"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_role_menu"."updater" IS '更新者';
COMMENT ON COLUMN "system_role_menu"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_role_menu"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_role_menu"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_role_menu" IS '角色和菜单关联表';
-- ----------------------------
-- Records of system_role_menu
-- ----------------------------
BEGIN;
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (263, 109, 1, '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (434, 2, 1, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (454, 2, 1093, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (455, 2, 1094, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (460, 2, 1100, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (467, 2, 1107, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (470, 2, 1110, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (476, 2, 1117, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (477, 2, 100, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (478, 2, 101, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (479, 2, 102, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (480, 2, 1126, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (481, 2, 103, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (483, 2, 104, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (485, 2, 105, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (488, 2, 107, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (490, 2, 108, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (492, 2, 109, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (498, 2, 1138, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (523, 2, 1224, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (524, 2, 1225, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (541, 2, 500, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (543, 2, 501, '1', '2022-02-22 13:09:12', '1', '2022-02-22 13:09:12', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (675, 2, 2, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (689, 2, 1077, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (690, 2, 1078, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (692, 2, 1083, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (693, 2, 1084, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (699, 2, 1090, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (703, 2, 106, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (704, 2, 110, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (705, 2, 111, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (706, 2, 112, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (707, 2, 113, '1', '2022-02-22 13:16:57', '1', '2022-02-22 13:16:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1296, 110, 1, '110', '2022-02-23 00:23:55', '110', '2022-02-23 00:23:55', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1486, 109, 103, '1', '2022-02-23 19:32:14', '1', '2022-02-23 19:32:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1487, 109, 104, '1', '2022-02-23 19:32:14', '1', '2022-02-23 19:32:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1489, 1, 1, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1490, 1, 2, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1494, 1, 1077, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1495, 1, 1078, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1496, 1, 1083, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1497, 1, 1084, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1498, 1, 1090, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1499, 1, 1093, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1500, 1, 1094, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1501, 1, 1100, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1502, 1, 1107, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1503, 1, 1110, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1505, 1, 1117, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1506, 1, 100, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1507, 1, 101, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1508, 1, 102, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1509, 1, 1126, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1510, 1, 103, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1511, 1, 104, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1512, 1, 105, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1513, 1, 106, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1514, 1, 107, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1515, 1, 108, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1516, 1, 109, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1517, 1, 110, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1518, 1, 111, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1519, 1, 112, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1520, 1, 113, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1522, 1, 1138, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1525, 1, 1224, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1526, 1, 1225, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1527, 1, 500, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1528, 1, 501, '1', '2022-02-23 20:03:57', '1', '2022-02-23 20:03:57', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1529, 109, 1024, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1530, 109, 1025, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1536, 109, 1017, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1537, 109, 1018, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1538, 109, 1019, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1539, 109, 1020, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1540, 109, 1021, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1541, 109, 1022, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1542, 109, 1023, '1', '2022-02-23 20:30:14', '1', '2022-02-23 20:30:14', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1576, 111, 1024, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1577, 111, 1025, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1578, 111, 1, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1584, 111, 103, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1585, 111, 104, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1587, 111, 1017, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1588, 111, 1018, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1589, 111, 1019, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1590, 111, 1020, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1591, 111, 1021, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1592, 111, 1022, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1593, 111, 1023, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1594, 109, 102, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1595, 109, 1013, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1596, 109, 1014, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1597, 109, 1015, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1598, 109, 1016, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 121);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1599, 111, 102, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1600, 111, 1013, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1601, 111, 1014, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1602, 111, 1015, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1603, 111, 1016, '1', '2022-03-19 18:39:13', '1', '2022-03-19 18:39:13', 0, 122);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1604, 101, 1216, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1605, 101, 1217, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1606, 101, 1218, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1607, 101, 1219, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1608, 101, 1220, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1609, 101, 1221, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1610, 101, 5, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1611, 101, 1222, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1612, 101, 1118, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1613, 101, 1119, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1614, 101, 1120, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1615, 101, 1185, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1616, 101, 1186, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1617, 101, 1187, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1618, 101, 1188, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1619, 101, 1189, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1620, 101, 1190, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1621, 101, 1191, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1622, 101, 1192, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1623, 101, 1193, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1624, 101, 1194, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1625, 101, 1195, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1626, 101, 1196, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1627, 101, 1197, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1628, 101, 1198, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1629, 101, 1199, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1630, 101, 1200, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1631, 101, 1201, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1632, 101, 1202, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1633, 101, 1207, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1634, 101, 1208, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1635, 101, 1209, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1636, 101, 1210, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1637, 101, 1211, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1638, 101, 1212, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1639, 101, 1213, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1640, 101, 1215, '1', '2022-03-19 21:45:52', '1', '2022-03-19 21:45:52', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1641, 101, 2, '1', '2022-04-01 22:21:24', '1', '2022-04-01 22:21:24', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1642, 101, 1031, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1643, 101, 1032, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1644, 101, 1033, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1645, 101, 1034, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1646, 101, 1035, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1647, 101, 1050, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1648, 101, 1051, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1649, 101, 1052, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1650, 101, 1053, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1651, 101, 1054, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1652, 101, 1056, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1653, 101, 1057, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1654, 101, 1058, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1655, 101, 1059, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1656, 101, 1060, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1657, 101, 1066, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1658, 101, 1067, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1659, 101, 1070, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1660, 101, 1071, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1661, 101, 1072, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1662, 101, 1073, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1663, 101, 1074, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1664, 101, 1075, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1665, 101, 1076, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1666, 101, 1077, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1667, 101, 1078, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1668, 101, 1082, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1669, 101, 1083, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1670, 101, 1084, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1671, 101, 1085, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1672, 101, 1086, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1673, 101, 1087, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1674, 101, 1088, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1675, 101, 1089, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1676, 101, 1090, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1677, 101, 1091, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1678, 101, 1092, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1679, 101, 1237, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1680, 101, 1238, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1681, 101, 1239, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1682, 101, 1240, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1683, 101, 1241, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1684, 101, 1242, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1685, 101, 1243, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1687, 101, 106, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1688, 101, 110, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1689, 101, 111, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1690, 101, 112, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1691, 101, 113, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1692, 101, 114, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1693, 101, 115, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
INSERT INTO "system_role_menu" ("id", "role_id", "menu_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1694, 101, 116, '1', '2022-04-01 22:21:37', '1', '2022-04-01 22:21:37', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for system_sensitive_word
-- ----------------------------
DROP TABLE IF EXISTS "system_sensitive_word";
CREATE TABLE "system_sensitive_word" (
"id" int8 NOT NULL,
"name" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"description" varchar(512) COLLATE "pg_catalog"."default",
"tags" varchar(255) COLLATE "pg_catalog"."default",
"status" int2 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_sensitive_word"."id" IS '编号';
COMMENT ON COLUMN "system_sensitive_word"."name" IS '敏感词';
COMMENT ON COLUMN "system_sensitive_word"."description" IS '描述';
COMMENT ON COLUMN "system_sensitive_word"."tags" IS '标签数组';
COMMENT ON COLUMN "system_sensitive_word"."status" IS '状态';
COMMENT ON COLUMN "system_sensitive_word"."creator" IS '创建者';
COMMENT ON COLUMN "system_sensitive_word"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_sensitive_word"."updater" IS '更新者';
COMMENT ON COLUMN "system_sensitive_word"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_sensitive_word"."deleted" IS '是否删除';
COMMENT ON TABLE "system_sensitive_word" IS '敏感词';
-- ----------------------------
-- Records of system_sensitive_word
-- ----------------------------
BEGIN;
INSERT INTO "system_sensitive_word" ("id", "name", "description", "tags", "status", "creator", "create_time", "updater", "update_time", "deleted") VALUES (3, '土豆', '好呀', '蔬菜,短信', 0, '1', '2022-04-08 21:07:12', '1', '2022-04-09 10:28:14', 0);
INSERT INTO "system_sensitive_word" ("id", "name", "description", "tags", "status", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, 'XXX', NULL, '短信', 0, '1', '2022-04-08 21:27:49', '1', '2022-04-08 21:27:49', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_sms_channel
-- ----------------------------
DROP TABLE IF EXISTS "system_sms_channel";
CREATE TABLE "system_sms_channel" (
"id" int8 NOT NULL,
"signature" varchar(10) COLLATE "pg_catalog"."default" NOT NULL,
"code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"api_key" varchar(128) COLLATE "pg_catalog"."default" NOT NULL,
"api_secret" varchar(128) COLLATE "pg_catalog"."default",
"callback_url" varchar(255) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_sms_channel"."id" IS '编号';
COMMENT ON COLUMN "system_sms_channel"."signature" IS '短信签名';
COMMENT ON COLUMN "system_sms_channel"."code" IS '渠道编码';
COMMENT ON COLUMN "system_sms_channel"."status" IS '开启状态';
COMMENT ON COLUMN "system_sms_channel"."remark" IS '备注';
COMMENT ON COLUMN "system_sms_channel"."api_key" IS '短信 API 的账号';
COMMENT ON COLUMN "system_sms_channel"."api_secret" IS '短信 API 的秘钥';
COMMENT ON COLUMN "system_sms_channel"."callback_url" IS '短信发送回调 URL';
COMMENT ON COLUMN "system_sms_channel"."creator" IS '创建者';
COMMENT ON COLUMN "system_sms_channel"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_sms_channel"."updater" IS '更新者';
COMMENT ON COLUMN "system_sms_channel"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_sms_channel"."deleted" IS '是否删除';
COMMENT ON TABLE "system_sms_channel" IS '短信渠道';
-- ----------------------------
-- Records of system_sms_channel
-- ----------------------------
BEGIN;
INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '芋道', 'YUN_PIAN', 0, '呵呵呵哒', '1555a14277cb8a608cf45a9e6a80d510', NULL, 'http://vdwapu.natappfree.cc/admin-api/system/sms/callback/yunpian', '', '2021-03-31 06:12:20', '1', '2022-02-23 16:48:44', 0);
INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 'Ballcat', 'ALIYUN', 0, '啦啦啦', 'LTAI5tCnKso2uG3kJ5gRav88', 'fGJ5SNXL7P1NHNRmJ7DJaMJGPyE55C', NULL, '', '2021-03-31 11:53:10', '1', '2021-04-14 00:08:37', 0);
INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (4, '测试渠道', 'DEBUG_DING_TALK', 0, '123', '696b5d8ead48071237e4aa5861ff08dbadb2b4ded1c688a7b7c9afc615579859', 'SEC5c4e5ff888bc8a9923ae47f59e7ccd30af1f14d93c55b4e2c9cb094e35aeed67', NULL, '1', '2021-04-13 00:23:14', '1', '2022-03-27 20:29:49', 0);
INSERT INTO "system_sms_channel" ("id", "signature", "code", "status", "remark", "api_key", "api_secret", "callback_url", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, '测试演示', 'DEBUG_DING_TALK', 0, NULL, '696b5d8ead48071237e4aa5861ff08dbadb2b4ded1c688a7b7c9afc615579859', 'SEC5c4e5ff888bc8a9923ae47f59e7ccd30af1f14d93c55b4e2c9cb094e35aeed67', NULL, '1', '2022-04-10 23:07:59', '1', '2022-04-10 23:07:59', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_sms_code
-- ----------------------------
DROP TABLE IF EXISTS "system_sms_code";
CREATE TABLE "system_sms_code" (
"id" int8 NOT NULL,
"mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
"code" varchar(6) COLLATE "pg_catalog"."default" NOT NULL,
"create_ip" varchar(15) COLLATE "pg_catalog"."default" NOT NULL,
"scene" int2 NOT NULL,
"today_index" int2 NOT NULL,
"used" int2 NOT NULL,
"used_time" timestamp(6),
"used_ip" varchar(255) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_sms_code"."id" IS '编号';
COMMENT ON COLUMN "system_sms_code"."mobile" IS '手机号';
COMMENT ON COLUMN "system_sms_code"."code" IS '验证码';
COMMENT ON COLUMN "system_sms_code"."create_ip" IS '创建 IP';
COMMENT ON COLUMN "system_sms_code"."scene" IS '发送场景';
COMMENT ON COLUMN "system_sms_code"."today_index" IS '今日发送的第几条';
COMMENT ON COLUMN "system_sms_code"."used" IS '是否使用';
COMMENT ON COLUMN "system_sms_code"."used_time" IS '使用时间';
COMMENT ON COLUMN "system_sms_code"."used_ip" IS '使用 IP';
COMMENT ON COLUMN "system_sms_code"."creator" IS '创建者';
COMMENT ON COLUMN "system_sms_code"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_sms_code"."updater" IS '更新者';
COMMENT ON COLUMN "system_sms_code"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_sms_code"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_sms_code"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_sms_code" IS '手机验证码';
-- ----------------------------
-- Records of system_sms_code
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_sms_log
-- ----------------------------
DROP TABLE IF EXISTS "system_sms_log";
CREATE TABLE "system_sms_log" (
"id" int8 NOT NULL,
"channel_id" int8 NOT NULL,
"channel_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"template_id" int8 NOT NULL,
"template_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"template_type" int2 NOT NULL,
"template_content" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"template_params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"api_template_id" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"mobile" varchar(11) COLLATE "pg_catalog"."default" NOT NULL,
"user_id" int8,
"user_type" int2,
"send_status" int2 NOT NULL,
"send_time" timestamp(6),
"send_code" int4,
"send_msg" varchar(255) COLLATE "pg_catalog"."default",
"api_send_code" varchar(63) COLLATE "pg_catalog"."default",
"api_send_msg" varchar(255) COLLATE "pg_catalog"."default",
"api_request_id" varchar(255) COLLATE "pg_catalog"."default",
"api_serial_no" varchar(255) COLLATE "pg_catalog"."default",
"receive_status" int2 NOT NULL,
"receive_time" timestamp(6),
"api_receive_code" varchar(63) COLLATE "pg_catalog"."default",
"api_receive_msg" varchar(255) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_sms_log"."id" IS '编号';
COMMENT ON COLUMN "system_sms_log"."channel_id" IS '短信渠道编号';
COMMENT ON COLUMN "system_sms_log"."channel_code" IS '短信渠道编码';
COMMENT ON COLUMN "system_sms_log"."template_id" IS '模板编号';
COMMENT ON COLUMN "system_sms_log"."template_code" IS '模板编码';
COMMENT ON COLUMN "system_sms_log"."template_type" IS '短信类型';
COMMENT ON COLUMN "system_sms_log"."template_content" IS '短信内容';
COMMENT ON COLUMN "system_sms_log"."template_params" IS '短信参数';
COMMENT ON COLUMN "system_sms_log"."api_template_id" IS '短信 API 的模板编号';
COMMENT ON COLUMN "system_sms_log"."mobile" IS '手机号';
COMMENT ON COLUMN "system_sms_log"."user_id" IS '用户编号';
COMMENT ON COLUMN "system_sms_log"."user_type" IS '用户类型';
COMMENT ON COLUMN "system_sms_log"."send_status" IS '发送状态';
COMMENT ON COLUMN "system_sms_log"."send_time" IS '发送时间';
COMMENT ON COLUMN "system_sms_log"."send_code" IS '发送结果的编码';
COMMENT ON COLUMN "system_sms_log"."send_msg" IS '发送结果的提示';
COMMENT ON COLUMN "system_sms_log"."api_send_code" IS '短信 API 发送结果的编码';
COMMENT ON COLUMN "system_sms_log"."api_send_msg" IS '短信 API 发送失败的提示';
COMMENT ON COLUMN "system_sms_log"."api_request_id" IS '短信 API 发送返回的唯一请求 ID';
COMMENT ON COLUMN "system_sms_log"."api_serial_no" IS '短信 API 发送返回的序号';
COMMENT ON COLUMN "system_sms_log"."receive_status" IS '接收状态';
COMMENT ON COLUMN "system_sms_log"."receive_time" IS '接收时间';
COMMENT ON COLUMN "system_sms_log"."api_receive_code" IS 'API 接收结果的编码';
COMMENT ON COLUMN "system_sms_log"."api_receive_msg" IS 'API 接收结果的说明';
COMMENT ON COLUMN "system_sms_log"."creator" IS '创建者';
COMMENT ON COLUMN "system_sms_log"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_sms_log"."updater" IS '更新者';
COMMENT ON COLUMN "system_sms_log"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_sms_log"."deleted" IS '是否删除';
COMMENT ON TABLE "system_sms_log" IS '短信日志';
-- ----------------------------
-- Records of system_sms_log
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_sms_template
-- ----------------------------
DROP TABLE IF EXISTS "system_sms_template";
CREATE TABLE "system_sms_template" (
"id" int8 NOT NULL,
"type" int2 NOT NULL,
"status" int2 NOT NULL,
"code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"name" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"content" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"params" varchar(255) COLLATE "pg_catalog"."default" NOT NULL,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"api_template_id" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"channel_id" int8 NOT NULL,
"channel_code" varchar(63) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_sms_template"."id" IS '编号';
COMMENT ON COLUMN "system_sms_template"."type" IS '短信签名';
COMMENT ON COLUMN "system_sms_template"."status" IS '开启状态';
COMMENT ON COLUMN "system_sms_template"."code" IS '模板编码';
COMMENT ON COLUMN "system_sms_template"."name" IS '模板名称';
COMMENT ON COLUMN "system_sms_template"."content" IS '模板内容';
COMMENT ON COLUMN "system_sms_template"."params" IS '参数数组';
COMMENT ON COLUMN "system_sms_template"."remark" IS '备注';
COMMENT ON COLUMN "system_sms_template"."api_template_id" IS '短信 API 的模板编号';
COMMENT ON COLUMN "system_sms_template"."channel_id" IS '短信渠道编号';
COMMENT ON COLUMN "system_sms_template"."channel_code" IS '短信渠道编码';
COMMENT ON COLUMN "system_sms_template"."creator" IS '创建者';
COMMENT ON COLUMN "system_sms_template"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_sms_template"."updater" IS '更新者';
COMMENT ON COLUMN "system_sms_template"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_sms_template"."deleted" IS '是否删除';
COMMENT ON TABLE "system_sms_template" IS '短信模板';
-- ----------------------------
-- Records of system_sms_template
-- ----------------------------
BEGIN;
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (2, 1, 0, 'test_01', '测试验证码短信', '正在进行登录操作{operation},您的验证码是{code}', '["operation","code"]', NULL, '4383920', 1, 'YUN_PIAN', '', '2021-03-31 10:49:38', '1', '2021-04-10 01:22:00', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (3, 1, 0, 'test_02', '公告通知', '您的验证码{code},该验证码5分钟内有效,请勿泄漏于他人!', '["code"]', NULL, 'SMS_207945135', 2, 'ALIYUN', '', '2021-03-31 11:56:30', '1', '2021-04-10 01:22:02', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (6, 3, 0, 'test-01', '测试模板', '哈哈哈 {name}', '["name"]', 'f哈哈哈', '4383920', 1, 'YUN_PIAN', '1', '2021-04-10 01:07:21', '1', '2021-04-10 01:22:05', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (7, 3, 0, 'test-04', '测试下', '老鸡{name},牛逼{code}', '["name","code"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2021-04-13 00:29:53', '1', '2021-04-14 00:30:38', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (8, 1, 0, 'user-sms-login', '前台用户短信登录', '您的验证码是{code}', '["code"]', NULL, '4372216', 1, 'YUN_PIAN', '1', '2021-10-11 08:10:00', '1', '2021-10-11 08:10:00', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (9, 2, 0, 'bpm_task_assigned', '【工作流】任务被分配', '您收到了一条新的待办任务:{processInstanceName}-{taskName},申请人:{startUserNickname},处理链接:{detailUrl}', '["processInstanceName","taskName","startUserNickname","detailUrl"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2022-01-21 22:31:19', '1', '2022-01-22 00:03:36', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (11, 2, 0, 'bpm_process_instance_approve', '【工作流】流程被通过', '您的流程被审批通过:{processInstanceName},查看链接:{detailUrl}', '["processInstanceName","detailUrl"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2022-01-22 00:04:31', '1', '2022-03-27 20:32:21', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (12, 2, 0, 'demo', '演示模板', '我就是测试一下下', '[]', NULL, 'biubiubiu', 6, 'DEBUG_DING_TALK', '1', '2022-04-10 23:22:49', '1', '2022-04-10 23:22:49', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (10, 2, 0, 'bpm_process_instance_reject', '【工作流】流程被不通过', '您的流程被审批不通过:{processInstanceName},原因:{reason},查看链接:{detailUrl}', '["processInstanceName","reason","detailUrl"]', NULL, 'suibian', 4, 'DEBUG_DING_TALK', '1', '2022-01-22 00:03:31', '1', '2022-01-22 00:24:31', 0);
INSERT INTO "system_sms_template" ("id", "type", "status", "code", "name", "content", "params", "remark", "api_template_id", "channel_id", "channel_code", "creator", "create_time", "updater", "update_time", "deleted") VALUES (13, 1, 0, 'admin-sms-login', '后台用户短信登录', '您的验证码是{code}', '["code"]', '', '4372216', 1, 'YUN_PIAN', '1', '2021-10-11 08:10:00', '1', '2021-10-11 08:10:00', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_social_user
-- ----------------------------
DROP TABLE IF EXISTS "system_social_user";
CREATE TABLE "system_social_user" (
"id" numeric(20,0) NOT NULL,
"type" int2 NOT NULL,
"openid" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"token" varchar(256) COLLATE "pg_catalog"."default",
"raw_token_info" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"nickname" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"avatar" varchar(255) COLLATE "pg_catalog"."default",
"raw_user_info" varchar(1024) COLLATE "pg_catalog"."default" NOT NULL,
"code" varchar(256) COLLATE "pg_catalog"."default" NOT NULL,
"state" varchar(256) COLLATE "pg_catalog"."default",
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_social_user"."id" IS '主键(自增策略)';
COMMENT ON COLUMN "system_social_user"."type" IS '社交平台的类型';
COMMENT ON COLUMN "system_social_user"."openid" IS '社交 openid';
COMMENT ON COLUMN "system_social_user"."token" IS '社交 token';
COMMENT ON COLUMN "system_social_user"."raw_token_info" IS '原始 Token 数据,一般是 JSON 格式';
COMMENT ON COLUMN "system_social_user"."nickname" IS '用户昵称';
COMMENT ON COLUMN "system_social_user"."avatar" IS '用户头像';
COMMENT ON COLUMN "system_social_user"."raw_user_info" IS '原始用户数据,一般是 JSON 格式';
COMMENT ON COLUMN "system_social_user"."code" IS '最后一次的认证 code';
COMMENT ON COLUMN "system_social_user"."state" IS '最后一次的认证 state';
COMMENT ON COLUMN "system_social_user"."creator" IS '创建者';
COMMENT ON COLUMN "system_social_user"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_social_user"."updater" IS '更新者';
COMMENT ON COLUMN "system_social_user"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_social_user"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_social_user"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_social_user" IS '社交用户表';
-- ----------------------------
-- Records of system_social_user
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_social_user_bind
-- ----------------------------
DROP TABLE IF EXISTS "system_social_user_bind";
CREATE TABLE "system_social_user_bind" (
"id" numeric(20,0) NOT NULL,
"user_id" int8 NOT NULL,
"user_type" int2 NOT NULL,
"social_type" int2 NOT NULL,
"social_user_id" int8 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_social_user_bind"."id" IS '主键(自增策略)';
COMMENT ON COLUMN "system_social_user_bind"."user_id" IS '用户编号';
COMMENT ON COLUMN "system_social_user_bind"."user_type" IS '用户类型';
COMMENT ON COLUMN "system_social_user_bind"."social_type" IS '社交平台的类型';
COMMENT ON COLUMN "system_social_user_bind"."social_user_id" IS '社交用户的编号';
COMMENT ON COLUMN "system_social_user_bind"."creator" IS '创建者';
COMMENT ON COLUMN "system_social_user_bind"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_social_user_bind"."updater" IS '更新者';
COMMENT ON COLUMN "system_social_user_bind"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_social_user_bind"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_social_user_bind"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_social_user_bind" IS '社交绑定表';
-- ----------------------------
-- Records of system_social_user_bind
-- ----------------------------
BEGIN;
COMMIT;
-- ----------------------------
-- Table structure for system_tenant
-- ----------------------------
DROP TABLE IF EXISTS "system_tenant";
CREATE TABLE "system_tenant" (
"id" int8 NOT NULL,
"name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"contact_user_id" int8,
"contact_name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"contact_mobile" varchar(500) COLLATE "pg_catalog"."default",
"status" int2 NOT NULL,
"domain" varchar(256) COLLATE "pg_catalog"."default",
"package_id" int8 NOT NULL,
"expire_time" timestamp(6) NOT NULL,
"account_count" int4 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_tenant"."id" IS '租户编号';
COMMENT ON COLUMN "system_tenant"."name" IS '租户名';
COMMENT ON COLUMN "system_tenant"."contact_user_id" IS '联系人的用户编号';
COMMENT ON COLUMN "system_tenant"."contact_name" IS '联系人';
COMMENT ON COLUMN "system_tenant"."contact_mobile" IS '联系手机';
COMMENT ON COLUMN "system_tenant"."status" IS '租户状态(0正常 1停用)';
COMMENT ON COLUMN "system_tenant"."domain" IS '绑定域名';
COMMENT ON COLUMN "system_tenant"."package_id" IS '租户套餐编号';
COMMENT ON COLUMN "system_tenant"."expire_time" IS '过期时间';
COMMENT ON COLUMN "system_tenant"."account_count" IS '账号数量';
COMMENT ON COLUMN "system_tenant"."creator" IS '创建者';
COMMENT ON COLUMN "system_tenant"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_tenant"."updater" IS '更新者';
COMMENT ON COLUMN "system_tenant"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_tenant"."deleted" IS '是否删除';
COMMENT ON TABLE "system_tenant" IS '租户表';
-- ----------------------------
-- Records of system_tenant
-- ----------------------------
BEGIN;
INSERT INTO "system_tenant" ("id", "name", "contact_user_id", "contact_name", "contact_mobile", "status", "domain", "package_id", "expire_time", "account_count", "creator", "create_time", "updater", "update_time", "deleted") VALUES (1, '芋道源码', NULL, '芋艿', '17321315478', 0, 'https://www.iocoder.cn', 0, '2099-02-19 17:14:16', 9999, '1', '2021-01-05 17:03:47', '1', '2022-02-23 12:15:11', 0);
INSERT INTO "system_tenant" ("id", "name", "contact_user_id", "contact_name", "contact_mobile", "status", "domain", "package_id", "expire_time", "account_count", "creator", "create_time", "updater", "update_time", "deleted") VALUES (121, '小租户', 110, '小王2', '15601691300', 0, 'http://www.iocoder.cn', 111, '2024-03-11 00:00:00', 20, '1', '2022-02-22 00:56:14', '1', '2022-03-19 18:37:20', 0);
INSERT INTO "system_tenant" ("id", "name", "contact_user_id", "contact_name", "contact_mobile", "status", "domain", "package_id", "expire_time", "account_count", "creator", "create_time", "updater", "update_time", "deleted") VALUES (122, '测试租户', 113, '芋道', '15601691300', 0, 'https://www.iocoder.cn', 111, '2022-04-30 00:00:00', 50, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_tenant_package
-- ----------------------------
DROP TABLE IF EXISTS "system_tenant_package";
CREATE TABLE "system_tenant_package" (
"id" int8 NOT NULL,
"name" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"status" int2 NOT NULL,
"remark" varchar(256) COLLATE "pg_catalog"."default",
"menu_ids" varchar(2048) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default" NOT NULL,
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_tenant_package"."id" IS '套餐编号';
COMMENT ON COLUMN "system_tenant_package"."name" IS '套餐名';
COMMENT ON COLUMN "system_tenant_package"."status" IS '租户状态(0正常 1停用)';
COMMENT ON COLUMN "system_tenant_package"."remark" IS '备注';
COMMENT ON COLUMN "system_tenant_package"."menu_ids" IS '关联的菜单编号';
COMMENT ON COLUMN "system_tenant_package"."creator" IS '创建者';
COMMENT ON COLUMN "system_tenant_package"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_tenant_package"."updater" IS '更新者';
COMMENT ON COLUMN "system_tenant_package"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_tenant_package"."deleted" IS '是否删除';
COMMENT ON TABLE "system_tenant_package" IS '租户套餐表';
-- ----------------------------
-- Records of system_tenant_package
-- ----------------------------
BEGIN;
INSERT INTO "system_tenant_package" ("id", "name", "status", "remark", "menu_ids", "creator", "create_time", "updater", "update_time", "deleted") VALUES (111, '普通套餐', 0, '小功能', '[1024,1025,1,102,103,104,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023]', '1', '2022-02-22 00:54:00', '1', '2022-03-19 18:39:13', 0);
COMMIT;
-- ----------------------------
-- Table structure for system_user_post
-- ----------------------------
DROP TABLE IF EXISTS "system_user_post";
CREATE TABLE "system_user_post" (
"id" int8 NOT NULL,
"user_id" int8 NOT NULL,
"post_id" int8 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"tenant_id" int8 NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_user_post"."id" IS 'id';
COMMENT ON COLUMN "system_user_post"."user_id" IS '用户ID';
COMMENT ON COLUMN "system_user_post"."post_id" IS '岗位ID';
COMMENT ON COLUMN "system_user_post"."creator" IS '创建者';
COMMENT ON COLUMN "system_user_post"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_user_post"."updater" IS '更新者';
COMMENT ON COLUMN "system_user_post"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_user_post"."tenant_id" IS '租户编号';
COMMENT ON COLUMN "system_user_post"."deleted" IS '是否删除';
COMMENT ON TABLE "system_user_post" IS '用户岗位表';
-- ----------------------------
-- Records of system_user_post
-- ----------------------------
BEGIN;
INSERT INTO "system_user_post" ("id", "user_id", "post_id", "creator", "create_time", "updater", "update_time", "tenant_id", "deleted") VALUES (112, 1, 1, 'admin', '2022-05-02 07:25:24', 'admin', '2022-05-02 07:25:24', 1, 0);
INSERT INTO "system_user_post" ("id", "user_id", "post_id", "creator", "create_time", "updater", "update_time", "tenant_id", "deleted") VALUES (113, 100, 1, 'admin', '2022-05-02 07:25:24', 'admin', '2022-05-02 07:25:24', 1, 0);
INSERT INTO "system_user_post" ("id", "user_id", "post_id", "creator", "create_time", "updater", "update_time", "tenant_id", "deleted") VALUES (114, 114, 3, 'admin', '2022-05-02 07:25:24', 'admin', '2022-05-02 07:25:24', 1, 0);
COMMIT;
-- ----------------------------
-- Table structure for system_user_role
-- ----------------------------
DROP TABLE IF EXISTS "system_user_role";
CREATE TABLE "system_user_role" (
"id" int8 NOT NULL,
"user_id" int8 NOT NULL,
"role_id" int8 NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6),
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6),
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_user_role"."id" IS '自增编号';
COMMENT ON COLUMN "system_user_role"."user_id" IS '用户ID';
COMMENT ON COLUMN "system_user_role"."role_id" IS '角色ID';
COMMENT ON COLUMN "system_user_role"."creator" IS '创建者';
COMMENT ON COLUMN "system_user_role"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_user_role"."updater" IS '更新者';
COMMENT ON COLUMN "system_user_role"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_user_role"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_user_role"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_user_role" IS '用户和角色关联表';
-- ----------------------------
-- Records of system_user_role
-- ----------------------------
BEGIN;
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (1, 1, 1, '', NULL, '', NULL, 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (2, 2, 2, '', NULL, '', NULL, 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (4, 100, 101, '', NULL, '', NULL, 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (5, 100, 1, '', NULL, '', NULL, 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (6, 100, 2, '', NULL, '', NULL, 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (7, 104, 101, '', NULL, '', NULL, 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (10, 103, 1, '1', '2022-01-11 13:19:45', '1', '2022-01-11 13:19:45', 0, 1);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (11, 107, 106, '1', '2022-02-20 22:59:33', '1', '2022-02-20 22:59:33', 0, 118);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (12, 108, 107, '1', '2022-02-20 23:00:50', '1', '2022-02-20 23:00:50', 0, 119);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (13, 109, 108, '1', '2022-02-20 23:11:50', '1', '2022-02-20 23:11:50', 0, 120);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (14, 110, 109, '1', '2022-02-22 00:56:14', '1', '2022-02-22 00:56:14', 0, 121);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (15, 111, 110, '110', '2022-02-23 13:14:38', '110', '2022-02-23 13:14:38', 0, 121);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (16, 113, 111, '1', '2022-03-07 21:37:58', '1', '2022-03-07 21:37:58', 0, 122);
INSERT INTO "system_user_role" ("id", "user_id", "role_id", "creator", "create_time", "updater", "update_time", "deleted", "tenant_id") VALUES (17, 114, 101, '1', '2022-03-19 21:51:13', '1', '2022-03-19 21:51:13', 0, 1);
COMMIT;
-- ----------------------------
-- Table structure for system_user_session
-- ----------------------------
DROP TABLE IF EXISTS "system_user_session";
CREATE TABLE "system_user_session" (
"id" int8 NOT NULL,
"token" varchar(32) COLLATE "pg_catalog"."default" NOT NULL,
"user_id" int8 NOT NULL,
"user_type" int2 NOT NULL,
"session_timeout" timestamp(6) NOT NULL,
"username" varchar(30) COLLATE "pg_catalog"."default" NOT NULL,
"user_ip" varchar(50) COLLATE "pg_catalog"."default" NOT NULL,
"user_agent" varchar(512) COLLATE "pg_catalog"."default" NOT NULL,
"creator" varchar(64) COLLATE "pg_catalog"."default",
"create_time" timestamp(6) NOT NULL,
"updater" varchar(64) COLLATE "pg_catalog"."default",
"update_time" timestamp(6) NOT NULL,
"deleted" int2 NOT NULL DEFAULT 0,
"tenant_id" int8 NOT NULL DEFAULT 0
)
;
COMMENT ON COLUMN "system_user_session"."id" IS '会话编号';
COMMENT ON COLUMN "system_user_session"."token" IS 'Token 令牌';
COMMENT ON COLUMN "system_user_session"."user_id" IS '用户编号';
COMMENT ON COLUMN "system_user_session"."user_type" IS '用户类型';
COMMENT ON COLUMN "system_user_session"."session_timeout" IS '会话超时时间';
COMMENT ON COLUMN "system_user_session"."username" IS '用户账号';
COMMENT ON COLUMN "system_user_session"."user_ip" IS '用户 IP';
COMMENT ON COLUMN "system_user_session"."user_agent" IS '浏览器 UA';
COMMENT ON COLUMN "system_user_session"."creator" IS '创建者';
COMMENT ON COLUMN "system_user_session"."create_time" IS '创建时间';
COMMENT ON COLUMN "system_user_session"."updater" IS '更新者';
COMMENT ON COLUMN "system_user_session"."update_time" IS '更新时间';
COMMENT ON COLUMN "system_user_session"."deleted" IS '是否删除';
COMMENT ON COLUMN "system_user_session"."tenant_id" IS '租户编号';
COMMENT ON TABLE "system_user_session" IS '用户在线 Session';
|
/*
* setup.sql -- MySQL commands for creating the RADIUS user.
*
* WARNING: You should change 'localhost' and 'radpass'
* to something else. Also update raddb/mods-available/sql
* with the new RADIUS password.
*
* WARNING: This example file is untested. Use at your own risk.
* Please send any bug fixes to the mailing list.
*
* $Id: 3d007a29d9c297f653a4cdcc11afe2ae92353ff5 $
*/
/*
* Create default administrator for RADIUS
*/
CREATE USER 'radius'@'localhost' IDENTIFIED BY 'radpass';
GRANT SELECT ON radius.dhcpreply TO 'radius'@'localhost';
GRANT SELECT ON radius.dhcpgroupreply TO 'radius'@'localhost';
GRANT SELECT ON radius.dhcpgroup TO 'radius'@'localhost';
|
DELIMITER /
update KREW_DOC_TYP_T set AUTHORIZER = 'org.kuali.kra.irb.auth.ProtocolWorkflowDocumentAuthorizer' where DOC_TYP_NM = 'ProtocolDocument' and CUR_IND = 1
/
DELIMITER ;
|
begin;
SELECT account_heading_save(NULL, '2000', 'CURRENT LIABILITIES', NULL);
SELECT account_heading_save(NULL, '2600', 'LONG TERM LIABILITIES', NULL);
SELECT account_heading_save(NULL, '4000', 'SALES REVENUE', NULL);
SELECT account_heading_save(NULL, '5000', 'COST OF GOODS SOLD', NULL);
SELECT account_heading_save(NULL, '5400', 'PAYROLL EXPENSES', NULL);
SELECT account_heading_save(NULL, '5600', 'GENERAL & ADMINISTRATIVE EXPENSES', NULL);
SELECT account_heading_save(NULL, '6000', 'CAR EXPENSES', NULL);
SELECT account_heading_save(NULL, '4300', 'OTHER REVENUE', NULL);
SELECT account__save(NULL,'5470','Staff Amenities','E','', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account_heading_save(NULL, '1500', 'STOCK ON HAND', NULL);
SELECT account_heading_save(NULL, '3300', 'EQUITY', NULL);
SELECT account__save(NULL,'1520','SOH / Leather','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account_heading_save(NULL, '1000', 'CURRENT ASSETS', NULL);
SELECT account__save(NULL,'1820','Plant & Equipment - at Cost','A','1800', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL, '1825', 'Less: Accumulated Depreciation', 'A', '1800', null, true, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'1840','Motor Vehicles - at Cost','A','1800', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'1845', 'Less: Accumulated Depreciation', 'A', '1800', NULL, true, false, string_to_array('', ':'), false, false);
SELECT account_heading_save(NULL, '1800', 'CAPITAL ASSETS', NULL);
SELECT account__save(NULL,'1060','Cheque Account','A','1000', NULL, false, false, string_to_array('AR_paid:AP_paid', ':'), false, false);
SELECT cr_coa_to_account_save(accno, accno || '--' || description)
FROM account WHERE accno = '1060';
SELECT account__save(NULL,'1205','Less: Provision Doubtful Debts','A','1000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'1210','Trade Debtors / Australia - with GST','A','1000', NULL, false, false, string_to_array('AR', ':'), false, false);
SELECT account__save(NULL,'1220','Trade Debtors / Exports - GST free','A','1000', NULL, false, false, string_to_array('AR', ':'), false, false);
SELECT account__save(NULL,'1230','GST / Refund','A','1000', NULL, false, false, string_to_array('AR_tax:AP_tax:IC_taxpart:IC_taxservice', ':'), false, false);
SELECT account__save(NULL,'1530','SOH / PVC','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account__save(NULL,'1540','SOH / Fabrics','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account__save(NULL,'1550','SOH / Metal Hardware / Fasteners / Accessories','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account__save(NULL,'1560','SOH / Paint / Glue / Dye','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account__save(NULL,'1570','SOH / Threads / Tapes / Cords / Laces','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account__save(NULL,'1580','SOH / Other Goods','A','1500', NULL, false, false, string_to_array('IC', ':'), false, false);
SELECT account__save(NULL,'2100','Trade Creditors','L','2000', NULL, false, false, string_to_array('AP', ':'), false, false);
SELECT account__save(NULL,'2160','Taxation - Payable','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'2210','Workers Compensation - Payable','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'2250','Superannuation - Payable','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'2260','Insurance - Payable','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'2290','GST / Payable','L','2000', NULL, false, false, string_to_array('AR_tax:AP_tax:IC_taxpart:IC_taxservice', ':'), false, false);
SELECT account__save(NULL,'2300','GST Payments / Refunds','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'2310','GST Adjustments','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'3350','Issued & Paid up Capital','Q','3300', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'3370','Opening Account Balance','Q','3300', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'3380','Credit Payments / Holding Account','Q','', NULL, false, false, string_to_array('AR_paid', ':'), false, false);
SELECT account__save(NULL,'4020','Sales / Manufactured Products','I','4000', NULL, false, false, string_to_array('AR_amount:IC_sale', ':'), false, false);
SELECT account__save(NULL,'4030','Sales / General','I','4000', NULL, false, false, string_to_array('AR_amount:IC_sale:IC_income', ':'), false, false);
SELECT account__save(NULL,'4410','Shop Labour','I','4000', NULL, false, false, string_to_array('IC_income', ':'), false, false);
SELECT account__save(NULL,'4420','Design / Patternmaking','I','4000', NULL, false, false, string_to_array('IC_income', ':'), false, false);
SELECT account__save(NULL,'4430','Shipping & Handling','I','4000', NULL, false, false, string_to_array('IC_income', ':'), false, false);
SELECT account__save(NULL,'4440','Interest Received','I','4000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'4450','Foreign Exchange Profit','I','4000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'4460','Mark-Up / Price Adjustment','I','4000', NULL, false, false, string_to_array('IC_income', ':'), false, false);
SELECT account__save(NULL,'4470','Computer Consultancy / Training','I','4000', NULL, false, false, string_to_array('IC_income', ':'), false, false);
SELECT account__save(NULL,'2620','Bank Loans','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'2640','Hire Purchase','L','2000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'2650','Other Loans','L','2000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5020','COGS / Leather','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5030','COGS / PVC','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5040','COGS / Fabrics','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5050','COGS / Metal Hardware / Fasteners / Accessories','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5060','COGS / Paint / Glue / Dye','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5070','COGS / Threads / Tapes / Cords / Laces','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5080','COGS / Other Goods','E','5000', NULL, false, false, string_to_array('IC_cogs', ':'), false, false);
SELECT account__save(NULL,'5410','Wages','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5430','Superannuation','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5440','Workers Compensation','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5605','External labour costs','E','5000', NULL, false, false, string_to_array('AP_amount:IC_expense', ':'), false, false);
SELECT account__save(NULL,'5610','Accountancy','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5611','Legal Fees','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5613','Postage / Printing / Stationery','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5614','Freight and Cartage','E','5000', NULL, false, false, string_to_array('AP_amount:IC_expense', ':'), false, false);
SELECT account__save(NULL,'5615','Advertising & Promotions','E','5000', NULL, false, false, string_to_array('AP_amount:IC_expense', ':'), false, false);
SELECT account__save(NULL,'5620','Bad Debts','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5650','Capital Cost Allowance Expense','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5660','Interest Expenses','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5670','Depreciation Expenses','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5680','Taxation','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5685','Insurance','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5686','Security','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5690','Bank Fees And Charges','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5695','Other Fees And Charges','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5700','Office Supplies','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5760','Rent on Land & Buildings','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5765','Repairs & Maintenance','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5766','Fixtures & Fittings','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5770','Replacements (tools, etc)','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5780','Telephone','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5782','Computer Expenses','E','5000', NULL, false, false, string_to_array('AP_amount:IC_expense', ':'), false, false);
SELECT account__save(NULL,'5783','Research & Development','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5785','Travel, Accommodation & Conference','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5790','Hire / Rent of Plant & Equipment ','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5795','Registration & Insurance','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5800','Licenses','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5810','Foreign Exchange Loss','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5811','Electricity','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5812','Gas','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'5813','Sundry Expenses','E','5000', NULL, false, false, string_to_array('AP_amount:IC_expense', ':'), false, false);
SELECT account__save(NULL,'5820','Goods & Services for own Use','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'6010','M/V Commercial - Fuels / Oils / Parts','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'6020','M/V Commercial - Repairs','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'6040','M/V Commercial - Reg / Insurance','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'6080','M/V Private Use - Interest Expenses','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'6090','M/V Private Use - Other Expenses','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'6070','M/V Private Use - Depreciation Expenses','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'6050','M/V Commercial - Depreciation Expenses','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'6060','M/V Commercial - Interest Expenses','E','5000', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'1065','Cash / Paid From Private Accounts','Q','1000', NULL, false, false, string_to_array('AR_paid:AP_paid', ':'), false, false);
SELECT account__save(NULL,'3360','Payments for G & S for own Use','Q','3300', NULL, false, false, string_to_array('AP_paid', ':'), false, false);
SELECT account__save(NULL,'5830','Discounts / Refunds / Rounding','E','5000', NULL, false, false, string_to_array('AP_amount', ':'), false, false);
SELECT account__save(NULL,'3390','Retained Profits','Q','3300', NULL, false, false, string_to_array('', ':'), false, false);
SELECT account__save(NULL,'5840','Fines - NON DEDUCTIBLE EXPENSES','E','', NULL, false, false, string_to_array('', ':'), false, false);
--
INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM account WHERE accno = '1230'), 0.1, '');
INSERT INTO tax (chart_id, rate, taxnumber) VALUES ((SELECT id FROM account WHERE accno = '2290'), 0.1, '');
--
INSERT INTO defaults (setting_key, value) VALUES ('inventory_accno_id', (SELECT id FROM account WHERE accno = '1520'));
INSERT INTO defaults (setting_key, value) VALUES ('income_accno_id', (SELECT id FROM account WHERE accno = '4020'));
INSERT INTO defaults (setting_key, value) VALUES ('expense_accno_id', (SELECT id FROM account WHERE accno = '5020'));
INSERT INTO defaults (setting_key, value) VALUES ('fxgain_accno_id', (SELECT id FROM account WHERE accno = '4450'));
INSERT INTO defaults (setting_key, value) VALUES ('fxloss_accno_id', (SELECT id FROM account WHERE accno = '5810'));
INSERT INTO defaults (setting_key, value) VALUES ('curr', 'AUD');
INSERT INTO defaults (setting_key, value) VALUES ('weightunit', 'kg');
--
commit;
UPDATE account
SET tax = true
WHERE id
IN (SELECT account_id
FROM account_link
WHERE description LIKE '%_tax');
|
<reponame>kennedysimiyu/T-SQL_R_Prediction_Analysis<filename>database/User_Permissions_Roles_Scripts_SQLQuery.sql
USE [master]
GO
CREATE LOGIN [OAF_SIMIYU\SIMIYU01] FROM WINDOWS WITH DEFAULT_DATABASE=[simiyu_r_db]
GO
USE [master]
GO
-- Create Windows login for user and set default database to simiyu_r_db
--CREATE LOGIN [OAF_SIMIYU\SIMIYU01] FROM WINDOWS WITH DEFAULT_DATABASE=[simiyu_r_db]
GO
USE [simiyu_r_db];
GO
-- Add user login to database
CREATE USER [OAF_SIMIYU\SIMIYU01] FOR LOGIN [OAF_SIMIYU\SIMIYU01];
GO
-- Configure default schema for user
ALTER USER [OAF_SIMIYU\SIMIYU01] WITH DEFAULT_SCHEMA=dbo;
GO
-- Add user to database roles to grant read, write, and execute DDL permissions
-- Add read permissions to database
ALTER ROLE [db_datareader] ADD MEMBER [OAF_SIMIYU\SIMIYU01];
GO
-- Add write permissions to databse
ALTER ROLE [db_datawriter] ADD MEMBER [OAF_SIMIYU\SIMIYU01];
GO
-- Add ddl permissions to database
ALTER ROLE [db_ddladmin] ADD MEMBER [OAF_SIMIYU\SIMIYU01];
GO
-- Grant permission to execute r script to user
GRANT EXECUTE ANY EXTERNAL SCRIPT TO [OAF_SIMIYU\SIMIYU01];
GO |
/*
Navicat Premium Data Transfer
Source Server : root
Source Server Type : MySQL
Source Server Version : 80022
Source Host : localhost:3306
Source Schema : nueva
Target Server Type : MySQL
Target Server Version : 80022
File Encoding : 65001
Date: 15/03/2021 18:31:01
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for categories
-- ----------------------------
DROP TABLE IF EXISTS `categories`;
CREATE TABLE `categories` (
`id` int(0) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for posts
-- ----------------------------
DROP TABLE IF EXISTS `posts`;
CREATE TABLE `posts` (
`id` int(0) NOT NULL AUTO_INCREMENT,
`id_user` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`post` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`id_category` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 73 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for usuarios
-- ----------------------------
DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE `usuarios` (
`id` int(0) NOT NULL AUTO_INCREMENT,
`nombre` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`apellido` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`mail` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL,
`estado` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
`id_fotoperfil` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL,
PRIMARY KEY (`id`, `username`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;
|
<reponame>smanousopoulos/daiad-web<filename>src/main/resources/db/migration/daiad/V1_0_75__Add_savings_potential_schema.sql<gh_stars>1-10
-- Drop all objects
DROP TABLE IF EXISTS public.savings_potential_account;
DROP SEQUENCE IF EXISTS public.savings_potential_account_id_seq;
DROP TABLE IF EXISTS public.savings_potential_water_iq;
DROP SEQUENCE IF EXISTS public.savings_potential_water_iq_id_seq;
DROP TABLE IF EXISTS public.savings_potential_result;
DROP SEQUENCE IF EXISTS public.savings_potential_result_id_seq;
DROP TABLE IF EXISTS public.savings_potential_scenario;
DROP SEQUENCE IF EXISTS public.savings_potential_scenario_id_seq;
-- Savings potential scenarios
CREATE SEQUENCE public.savings_potential_scenario_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
CREATE TABLE public.savings_potential_scenario
(
id bigint not null default nextval('savings_potential_scenario_id_seq'::regclass),
row_version bigint not null default 1,
key uuid not null,
job_id bigint,
utility_id int not null,
account_id int not null,
created_on timestamp without time zone not null,
name character varying not null,
"parameters" character varying not null,
savings_volume double precision,
savings_percent double precision,
consumption_volume double precision,
processing_start timestamp without time zone,
processing_end timestamp without time zone,
status character varying(50) not null,
CONSTRAINT pk_savings_potential_scenario PRIMARY KEY (id),
CONSTRAINT fk_utility FOREIGN KEY (utility_id)
REFERENCES public.utility (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT fk_account FOREIGN KEY (account_id)
REFERENCES public.account (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
-- Savings potential algorithm results
CREATE SEQUENCE public.savings_potential_result_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
CREATE TABLE public.savings_potential_result
(
id bigint not null default nextval('savings_potential_result_id_seq'::regclass),
scenario_id bigint not null,
created_on timestamp without time zone not null,
"cluster" character varying(50) not null,
"month" int not null,
serial character varying(50) not null,
savings_percent double precision not null,
savings_volume double precision not null,
cluster_size int not null,
iq character varying(2) not null,
deviation double precision null,
CONSTRAINT pk_savings_potential_result PRIMARY KEY (id),
CONSTRAINT fk_scenario FOREIGN KEY (scenario_id)
REFERENCES public.savings_potential_scenario (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
-- Savings potential algorithm savings per account
CREATE SEQUENCE public.savings_potential_account_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
CREATE TABLE public.savings_potential_account
(
id bigint not null default nextval('savings_potential_account_id_seq'::regclass),
scenario_id bigint not null,
account_id int not null,
created_on timestamp without time zone not null,
savings_percent double precision not null,
savings_volume double precision not null,
consumption double precision,
CONSTRAINT pk_savings_potential_account PRIMARY KEY (id),
CONSTRAINT fk_scenario FOREIGN KEY (scenario_id)
REFERENCES public.savings_potential_scenario (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE,
CONSTRAINT fk_account FOREIGN KEY (account_id)
REFERENCES public.account (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
-- Savings potential algorithm results for Water IQ
CREATE SEQUENCE public.savings_potential_water_iq_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
CREATE TABLE public.savings_potential_water_iq
(
id bigint not null default nextval('savings_potential_water_iq_id_seq'::regclass),
job_id bigint not null,
utility_id int not null,
created_on timestamp without time zone not null,
"month" int not null,
serial character varying(50) not null,
iq character varying(2) not null,
CONSTRAINT pk_savings_potential_water_iq PRIMARY KEY (id),
CONSTRAINT fk_utility FOREIGN KEY (utility_id)
REFERENCES public.utility (id) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE CASCADE
)
WITH (
OIDS=FALSE
);
|
<gh_stars>1-10
drop table if exists book;
create table book
(
id int primary key,
name varchar(100),
create_time datetime
);
insert into book set id=1, name='First Book', create_time=current_timestamp();
insert into book set id=2, name='Second Book', create_time=current_timestamp();
insert into book set id=3, name='Third Book', create_time=current_timestamp();
|
-----------------------------------------------------------------------------------
--
-- Copyright "2015" "Wuppertal Institut"
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-----------------------------------------------------------------------------------
-- EXTENSIONS SKRIPT
SET SCHEMA 'public';
CREATE EXTENSION IF NOT EXISTS hstore;
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE extension IF NOT EXISTS pgrouting;
-- Database creation script for the snapshot PostgreSQL schema.
-- Drop all tables if they exist.
DROP TABLE IF EXISTS actions;
DROP TABLE IF EXISTS users;
DROP TABLE IF EXISTS nodes;
DROP TABLE IF EXISTS ways;
DROP TABLE IF EXISTS way_nodes;
DROP TABLE IF EXISTS relations;
DROP TABLE IF EXISTS relation_members;
DROP TABLE IF EXISTS schema_info;
-- Drop all stored procedures if they exist.
DROP FUNCTION IF EXISTS osmosisUpdate();
-- Create a table which will contain a single row defining the current schema version.
CREATE TABLE schema_info (
version integer NOT NULL
);
-- Create a table for users.
CREATE TABLE users (
id int NOT NULL,
name text NOT NULL
);
-- Create a table for nodes.
CREATE TABLE nodes (
id bigint NOT NULL,
version int NOT NULL,
user_id int NOT NULL,
tstamp timestamp without time zone NOT NULL,
changeset_id bigint NOT NULL,
tags hstore
);
-- Add a postgis point column holding the location of the node.
SELECT AddGeometryColumn('nodes', 'geom', 4326, 'POINT', 2);
-- Create a table for ways.
CREATE TABLE ways (
id bigint NOT NULL,
version int NOT NULL,
user_id int NOT NULL,
tstamp timestamp without time zone NOT NULL,
changeset_id bigint NOT NULL,
tags hstore,
nodes bigint[]
);
-- Create a table for representing way to node relationships.
CREATE TABLE way_nodes (
way_id bigint NOT NULL,
node_id bigint NOT NULL,
sequence_id int NOT NULL
);
-- Create a table for relations.
CREATE TABLE relations (
id bigint NOT NULL,
version int NOT NULL,
user_id int NOT NULL,
tstamp timestamp without time zone NOT NULL,
changeset_id bigint NOT NULL,
tags hstore
);
-- Create a table for representing relation member relationships.
CREATE TABLE relation_members (
relation_id bigint NOT NULL,
member_id bigint NOT NULL,
member_type character(1) NOT NULL,
member_role text NOT NULL,
sequence_id int NOT NULL
);
-- Configure the schema version.
INSERT INTO schema_info (version) VALUES (6);
-- Add primary keys to tables.
ALTER TABLE ONLY schema_info ADD CONSTRAINT pk_schema_info PRIMARY KEY (version);
ALTER TABLE ONLY users ADD CONSTRAINT pk_users PRIMARY KEY (id);
ALTER TABLE ONLY nodes ADD CONSTRAINT pk_nodes PRIMARY KEY (id);
ALTER TABLE ONLY ways ADD CONSTRAINT pk_ways PRIMARY KEY (id);
ALTER TABLE ONLY way_nodes ADD CONSTRAINT pk_way_nodes PRIMARY KEY (way_id, sequence_id);
ALTER TABLE ONLY relations ADD CONSTRAINT pk_relations PRIMARY KEY (id);
ALTER TABLE ONLY relation_members ADD CONSTRAINT pk_relation_members PRIMARY KEY (relation_id, sequence_id);
-- Add indexes to tables.
CREATE INDEX idx_nodes_geom ON nodes USING gist (geom);
CREATE INDEX idx_way_nodes_node_id ON way_nodes USING btree (node_id);
CREATE INDEX idx_relation_members_member_id_and_type ON relation_members USING btree (member_id, member_type);
-- Cluster tables by geographical location.
CLUSTER nodes USING idx_nodes_geom;
-- Create the function that provides "unnest" functionality while remaining compatible with 8.3.
CREATE OR REPLACE FUNCTION unnest_bbox_way_nodes() RETURNS void AS $$
DECLARE
previousId ways.id%TYPE;
currentId ways.id%TYPE;
result bigint[];
wayNodeRow way_nodes%ROWTYPE;
wayNodes ways.nodes%TYPE;
BEGIN
FOR wayNodes IN SELECT bw.nodes FROM bbox_ways bw LOOP
FOR i IN 1 .. array_upper(wayNodes, 1) LOOP
INSERT INTO bbox_way_nodes (id) VALUES (wayNodes[i]);
END LOOP;
END LOOP;
END;
$$ LANGUAGE plpgsql;
-- Create customisable hook function that is called within the replication update transaction.
CREATE FUNCTION osmosisUpdate() RETURNS void AS $$
DECLARE
BEGIN
END;
$$ LANGUAGE plpgsql;
|
<filename>sql/_14_mysql_compatibility_2/_04_table_related/_02_alter_change_column/_34_type_datetime/cases/datetime_to_other_types.sql
---- ALTER TABLE ... CHANGE COLUMN , type change
-- constraints : no constraints
-- ordering : no order defined
-- name : same name
-- type : DATETIME
-------------- DATETIME 1 : change to BIGINT
create table t1 (d datetime);
insert into t1 values (datetime'03/04/1999 11:12:13');
insert into t1 values (datetime'11/12/2001 04:05:06');
select * from t1 order by 1;
show columns in t1;
-- should fail
alter table t1 change d b bigint;
-- should be ok:
insert into t1 values (timestamp'12/11/1996 10:11:12');
insert into t1 values (123456789012);
select * from t1 order by 1;
show columns in t1;
drop table t1;
|
<gh_stars>0
-- @testpoint:opengauss关键字only(非保留),作为外部数据源名
--关键字不带引号-成功
drop data source if exists only;
create data source only;
drop data source only;
--关键字带双引号-成功
drop data source if exists "only";
create data source "only";
drop data source "only";
--关键字带单引号-合理报错
drop data source if exists 'only';
create data source 'only';
--关键字带反引号-合理报错
drop data source if exists `only`;
create data source `only`;
|
-- @testpoint: to_date函数,将文本类型的值转换为指定格式的时间戳,有效输入的函数测试
select to_date('2018-01-15');
select to_date('2018-09','yyyy-mm');
select to_date('2018-01-15','yyyy-mm-dd');
select to_date('2018-09-18 06:25:46','yyyy-mm-dd HH:MI:SS:FF');
select to_date('2018-09-18 16:25:46:45354','yyyy-mm-dd hh24:mi:ss:ff'); |
<filename>07-Intro-to-SQL/homework/SQLQuery14.sql
-- find the top 5 best paid employees
USE TelerikAcademy
SELECT TOP 5 FirstName, LastName, Salary FROM Employees
ORDER BY Salary DESC |
--------------------------------------------------------
--------------------------------------------------------
--- CONSULTAS DEL PROYECTO SICV ---
--------------------------------------------------------
--------------------------------------------------------
-----------------------------------------------
---//consultas de la tabla personas//----
-----------------------------------------------
-----------------------------------------------
-- 1 - Seleccionar los campos de nombre, genero y barrio de la tabla
-- personas
-----------------------------------------------
SELECT nombres, genero, barrio FROM personas;
-----------------------------------------------
-- 2 - Seleccionar los campo nombre, genero
-- y barrio de la tabla personas donde la seccion sea igual 'FEMENINO'
-----------------------------------------------
SELECT nombres, genero, barrio FROM personas WHERE genero = 'FEMENINO'
-----------------------------------------------
-- 3 - Seleccionar los campos nombres, genero, y barrio
-- de la tabla personas donde barrio sea igual a
-- 'MADRID' 'Y' (realmente es O) 'BARCELONA'
-----------------------------------------------
SELECT nombres, genero, barrio FROM personas WHERE barrio = 'MADRID' OR barrio = 'BARCELONA'
-----------------------------------------------
-- 4 - Seleccionar todos los campos de la tabla personas donde
-- EL genero sea igual a 'FEMENINO' y su barrio sea 'GIJÓN'
-----------------------------------------------
SELECT * FROM personas WHERE genero = 'FEMENINO' AND barrio = 'GIJÓN';
-----------------------------------------------
-- 5 - Seleccionar todos los campo barrio de la tabla personas donde barrio sea igual
-- 'MADRID' 'Y' 'BARCELONA' y que lo ordene por la forma (Ascendente)
-----------------------------------------------
SELECT * FROM personas WHERE barrio = 'MADRID'
OR barrio = 'BARCELONA' ORDER BY barrio ASC
-----------------------------------------------
-- 6 - Seleccionar todos los campo barrio de la tabla personas donde barrio sea igual
-- 'MADRID' 'Y' 'BARCELONA' y que lo ordene por la forma (Descendente)
-----------------------------------------------
SELECT * FROM personas WHERE barrio = 'MADRID'
OR barrio = 'BARCELONA' ORDER BY barrio DESC
-----------------------------------------------
-- 7 - Seleccionar todos los campo barrio de la tabla personas donde barrio sea igual
-- 'MADRID' 'Y' 'BARCELONA' y que lo ordene por los apellidos (Ascendente o Descendente)
-----------------------------------------------
SELECT * FROM personas WHERE barrio = 'MADRID'
OR barrio = 'BARCELONA' ORDER BY nombres ASC
-----------------------------------------------
-- 8 - Seleccionar todos los campo barrio de la tabla personas donde barrio sea igual
-- 'MADRID' 'Y' 'BARCELONA' y que lo ordene por barrio y luego por
-- los apellidos
-----------------------------------------------
SELECT * FROM personas WHERE barrio = 'MADRID'
OR barrio = 'BARCELONA' ORDER BY barrio, apellidos;
-----------------------------------------------
-- 8 - Seleccionar todos los campo barrio de la tabla personas donde barrio sea igual
-- 'MADRID' 'Y' 'BARCELONA' y que lo ordene por barrio, nombres y luego por
-- los apellidos
-----------------------------------------------
SELECT * FROM personas WHERE barrio = 'MADRID' OR barrio = 'BARCELONA'
ORDER BY barrio, nombres, apellidos;
-----------------------------------------------
-- 10 - Seleccionar el campo barrio de la tabla personas para agrupar el campo barrio
-----------------------------------------------
SELECT barrio FROM personas GROUP BY barrio;
-----------consultas INNER JOIN. OUTER JOINS (RIGT JOIN, LEFT JOIN {composiciones externas}
-----------------------------------------------
-- 11 - INNER JOIN: solo la informacion comun entre las tablas: personas y clientes
------- personas de madrid
-----------------------------------------------
SELECT * FROM personas INNER JOIN clientes
ON personas.idpersonas = clientes.idclientes
WHERE barrio = 'BARCELONA' ORDER BY clientes.idclientes
-----------------------------------
--- INSERTAR SOLOMENTE UN DATO ----
-----------------------------------
INSERT INTO personas VALUES (null,'GERARDO','<NAME>','MASCULINO','LA VILLA', 17)
----
INSERT INTO personas VALUES (null, 'RICARDO', '<NAME>', 'MASCULINO', 'CASETAS' 5)
----
INSERT INTO `sesion_usuario`(`usuario`, `password`, `id_usuario`) VALUES ('<EMAIL>
','<PASSWORD>',1) |
-- phpMyAdmin SQL Dump
-- version 4.6.5.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Jan 24, 2017 at 09:31 PM
-- Server version: 5.5.52-cll-lve
-- PHP Version: 5.6.14
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 utf8mb4 */;
--
-- Database: `nelliwinne_easywebsearch1`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`un` varchar(300) NOT NULL,
`pw` varchar(300) NOT NULL,
`demo` enum('Y','N') NOT NULL DEFAULT 'Y'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `un`, `pw`, `demo`) VALUES
(1, 'administrator', '21232f297a57a5a743894a0e4a801fc3', 'N');
-- --------------------------------------------------------
--
-- Table structure for table `crawl`
--
CREATE TABLE `crawl` (
`id` int(11) NOT NULL,
`base_url` varchar(1000) NOT NULL,
`actual_url` varchar(2000) NOT NULL,
`title` varchar(2500) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`keywords` varbinary(200) DEFAULT NULL,
`content` varchar(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`current_url` varchar(2000) NOT NULL,
`last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted` enum('Y','N') DEFAULT 'N',
`block_update` enum('Y','N') DEFAULT 'N',
`visits` int(11) DEFAULT '0',
`manual` enum('Y','N') DEFAULT 'N',
`crawlRun` varchar(255) DEFAULT NULL,
`crawlRunImages` varchar(255) DEFAULT NULL,
`pdf` enum('Y','N') DEFAULT 'N',
`ContentType` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `crawl_images`
--
CREATE TABLE `crawl_images` (
`id` int(11) NOT NULL,
`base_url` varchar(1000) NOT NULL,
`actual_url` varchar(2000) NOT NULL,
`image_url` varchar(255) NOT NULL,
`keywords` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`current_url` varchar(2000) NOT NULL,
`last_update` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`deleted` enum('Y','N') DEFAULT 'N',
`block_update` enum('Y','N') DEFAULT 'N',
`visits` int(11) DEFAULT '0',
`manual` enum('Y','N') DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `crawl_settings`
--
CREATE TABLE `crawl_settings` (
`id` int(11) NOT NULL,
`batch` int(11) NOT NULL DEFAULT '25',
`image_width` int(11) NOT NULL DEFAULT '200',
`image_height` int(11) NOT NULL DEFAULT '200',
`body_lengh` int(11) NOT NULL DEFAULT '2000',
`max_links_per_site` int(11) DEFAULT '20'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `crawl_settings`
--
INSERT INTO `crawl_settings` (`id`, `batch`, `image_width`, `image_height`, `body_lengh`, `max_links_per_site`) VALUES
(1, 25, 200, 200, 500, 20);
-- --------------------------------------------------------
--
-- Table structure for table `log`
--
CREATE TABLE `log` (
`id` int(11) NOT NULL,
`keyword` varchar(255) NOT NULL,
`date` date NOT NULL,
`time` time NOT NULL,
`results` int(11) NOT NULL,
`ip` varchar(50) DEFAULT NULL,
`count` int(11) DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE `settings` (
`id` int(11) NOT NULL,
`base_url` varchar(1000) NOT NULL,
`actual_url` varchar(2000) NOT NULL,
`spidered_url` varchar(2000) DEFAULT 'N/A',
`visits` int(11) DEFAULT '0',
`demo` enum('Y','N') DEFAULT 'N',
`crawlRun` varchar(255) DEFAULT NULL,
`user` varchar(255) DEFAULT 'administrator',
`time` int(11) DEFAULT '1477728575',
`spider_mode` enum('Y','N') DEFAULT 'N'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `crawl`
--
ALTER TABLE `crawl`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `crawl_images`
--
ALTER TABLE `crawl_images`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `crawl_settings`
--
ALTER TABLE `crawl_settings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `log`
--
ALTER TABLE `log`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `crawl`
--
ALTER TABLE `crawl`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `crawl_images`
--
ALTER TABLE `crawl_images`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `crawl_settings`
--
ALTER TABLE `crawl_settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `log`
--
ALTER TABLE `log`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;
|
<gh_stars>0
INSERT INTO "CAR" (ID, MODEL, MANUFACTURER) VALUES(1, 'J5','JELLY');
INSERT INTO "CAR" (ID, MODEL, MANUFACTURER) VALUES(2, 'W7','WISDOM');
INSERT INTO "CAR" (ID, MODEL, MANUFACTURER) VALUES(3, 'T9','TEAL'); |
-- CreateTable
CREATE TABLE "errors" (
"id" TEXT NOT NULL,
"exception_was_thrown_in" TEXT NOT NULL,
"user_id" TEXT,
"resource_url" TEXT NOT NULL,
"http_method" TEXT NOT NULL,
"stack" TEXT NOT NULL,
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "errors_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "errors" ADD CONSTRAINT "errors_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
CREATE TABLE Albums (
SingerId INT64 NOT NULL,
AlbumId INT64 NOT NULL,
AlbumTitle STRING(MAX)
) PRIMARY KEY (SingerId, AlbumId),
INTERLEAVE IN PARENT Singers ON DELETE CASCADE |
<gh_stars>0
SELECT COUNT(*)
FROM site AS s,
so_user AS u1,
tag AS t1,
tag_question AS tq1,
question AS q1,
badge AS b1,
account AS acc
WHERE s.site_id = u1.site_id
AND s.site_id = b1.site_id
AND s.site_id = t1.site_id
AND s.site_id = tq1.site_id
AND s.site_id = q1.site_id
AND t1.id = tq1.tag_id
AND q1.id = tq1.question_id
AND q1.owner_user_id = u1.id
AND acc.id = u1.account_id
AND b1.user_id = u1.id
AND (q1.view_count >= 0)
AND (q1.view_count <= 100)
AND s.site_name = 'stackoverflow'
AND (t1.name in ('cors',
'database',
'e2e-testing',
'garbage-collection',
'generator',
'iis',
'image-uploading',
'linq',
'machine-learning',
'numeric',
'relationship',
'resize',
'sockets',
'spring-data-jpa'))
AND (LOWER(acc.website_url) LIKE ('%')) |
<filename>Subqueries/Subqueries con NOT IN, IN en PostgreSQL.sql
Select *
from libro
where
id IN (
Select prestamo_detalle.libro_id as id
from prestamo
left join prestamo_detalle on prestamo_detalle.prestamo_id = prestamo.id
where fecha_salida > '2020-03-01'
)
order by id; |
<reponame>Schneidershades/SIT-Consulting-Bionic-HMO-Application<gh_stars>0
CREATE TABLE hmos(
id VARCHAR(100),
hmo_code VARCHAR(100),
hmo_name VARCHAR(100),
hmo_address VARCHAR(100),
hmo_contact VARCHAR(100),
hmo_region VARCHAR(100)
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'1', '1', 'HYGEIA HMO LIMITED', 'Bank of Industry Building (BOI)',
'8120910005', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'2', '2', 'TOTAL HEALTH TRUST LIMITED',
'2 Marconi Road', '014482105',
' 014607560 07080687600'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'3', '3', 'CLEARLINE INTERNATIONAL LIMITED',
'16 Oyefeso Avenue', '8052408604',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'4', '4', 'HEALTHCARE INTERNATIONAL LIMITED',
'Lagos Office: 308A Murtala Mohammed Way',
' Yaba', ' Lagos'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'5', '5', 'Medi Plan Health Care Limited',
'Plot 32b', ' Admiralty Way', ' Lekki Phase I'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'6', '6', 'MULTI SHIELD NIGERIA LIMITED',
'322', ' Ikorodu Road', '8053223090'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'7', '7', 'UNITED HEALTHCARE INTERNATIONAL LTD',
'7', ' Jaba Close. off Dunukofia street',
' Opp. FCDA Minister?s Gate Area 11'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'8', '8', 'PREMIUM HEALTH LTD', '31B',
' Itafaji Road', ' Dolphin Estate'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'9', '10', 'Ronsberger Nigeria Limited',
'No. 30 Ubiaja Street', ' Garki',
' Abuja.'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'10', '11', 'INTERNATIONAL HEALTH MANAGEMENT SERVICES LIMITED',
'2', ' Joseph Street', ' Off Broad Street'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'11', '12', 'CAPEX EXPATCARE LIMITED',
'Emmanuel Plaza', ' 23B Fatai Atere Way',
'08055890010'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'12', '13', 'SONGHAI HEALTH TRUST LTD.',
'Ground Floor', ' Nigeria Re-Insurance Building Beside Unity Bank',
' Plot 784A Herbert Macaulay Way'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'13', '14', 'INTEGRATED HEALTHCARE LTD.',
'12 Jos Street', ' Area 3', ' Garki'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'14', '15', 'PREMIER MEDICAid LTD.',
'UBN Building', 'Steve Auta', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'15', '16', 'MANAGED HEALTHCARE SERVICES LTD.',
'Lagos Office: 16 Obokun Street',
' Off Coker Road', ' Oshodi Lagos.'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'16', '17', 'PRINCETON HEALTH GROUP',
'25', ' Mogaji-Are Road Opposite D-Rovans Hotel',
'8034306380'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'17', '18', 'MAAYOIT HEALTHCARE LTD.',
'1 Iloffa Road', ' G.R.A.', '8058026841'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'18', '19', 'Wise Health Services Limited',
'27 Addis Ababa Crescent', ' Wuse Zone 4',
' Abuja.'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'19', '20', 'WETLANDS HEALTH SERVICES LTD.',
'Plot 280B Danjuma Drive', '8055026610',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'20', '21', 'VENUS�MEDICARE LTD.',
'11Lagtang Close', ' Area 3',
'08087339159'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'21', '22', 'DEFENCE HEALTH MAINTENANCE LTD.',
'Plot 1323', ' Adesoji Aderemi Street',
'08075801389'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'22', '23', 'UNITED COMPREHENSIVE HEALTH MANAGERS LTD.',
'Plot C1', ' Rumuogba', '8033419470'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'23', '24', 'HEALTHCARE SECURITY LTD.',
'3rd Floor', ' Unity Kapital Plc Building',
'8033148050'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'24', '26', 'ROYAL HEALTH MAINTENANCE SERVICES',
'12 Cause way/24 Wetheral road',
' Owerri.', '8037956689'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'25', '28', 'ZUMA HEALTH TRUST', 'Block 6 Flat 7',
' Abak Close', '7063650092'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'26', '29', 'MARKFEMA NIGERIA LIMITED',
'4A Gurara (Lumsar) Street', ' Ibrahim Abacha Estate',
' Zone 4'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'27', '30', 'PREPAid MEDICARE SERVICES LTD.',
'1 Bangui Street', '7027861384',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'28', '33', 'KBL HEALTHCARE LIMITED',
'371', ' Borno Way', '01-7450657'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'29', '34', 'STERLING HEALTH MANAGED CARE SERVICES LIMITED',
'Valley View Plaza', '7069728007',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'30', '35', 'HEALTH PARTNERS LIMITED',
'23 Ribadu Road', '8066248822',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'31', '36', 'PRECIOUS HEALTHCARE LIMITED',
'No. 8 Lungi Street Off Cairo',
'8085556471', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'32', '39', 'OCEANIC HEALTH MANAGEMENT LIMITED',
'Oceanic Bank NAFCON House Branch',
' 264', ' Murtala Muhammed Way'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'33', '41', 'WELLNESS HEALTH MANAGEMENT SERVICES LTD',
'Head quarters/Lagos hmo_regional Office',
'70093556377', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'34', '43', 'GREENBAY HEALTHCARE SERVICES LTD',
'Suite A1', ' Kuriftu Plaza',
'7042328818'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'35', '44', 'MEDEXIA Ltd', '221 Ikorodu Road',
'8057970069', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'36', '46', 'ROYAL EXCHANGE HEALTHCARE LTD',
'13 Oke Olowogbowo Street', '8053775743',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'37', '48', 'MARINA MEDICAL SERV. HMO LTD',
'24 Montgomery Road', '7023028780',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'38', '51', 'NONSUCH MEDICARE LTD',
'Wema Bank Plaza', '8034080055',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'39', '54', 'SALUS TRUST GTE LTD',
'Catholic Secretariat of Nigeria',
'01-2636670', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'40', '57', 'PROHEALTH HMO LTD', '62 Lobito Crescent',
'8062691967', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'41', '59', 'MANSARD HEALTH PLAN NIGERIA LTD',
'18A Dapo Solanke Close', '8025144905',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'42', '60', 'GNI HEALTHCARE NIGERIA LTD',
'Plot 32 Western Avenue', '8033524202',
'Zonal- SW'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'43', '61', 'ULTIMATE HEALTH MANAGEMENT SERVICES LTD',
'Wema Bank Building 4th Floor',
'8060665572', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'44', '63', 'AVON HEALTHCARE LIMITED',
'29 Rumens Road', '01-2779800',
'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'45', '64', 'REGENIX HEALTH SERVICES LIMITED',
'Kieni Plaza', '80374762540', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'46', '65', 'REDCARE HEALTH SERVICE LIMITED',
'22 Coker Road', '7098767034', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'47', '66', 'HARRY HEALTH INTEGRATED SERVICES LIMITED',
'10 Dutse Street', ' War College',
'8039113311'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'48', '67', 'WELL HEALTH NETWORK LIMITED',
'15 Ibusa Avenue', ' Independent Layout',
' Enugu'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'49', '68', 'BUPAR HEALTHCARE LIMITED',
'Plot 102', ' Isheri Road', ' KOTCO House'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'50', '69', 'IVES MEDICARE', '4 Mojidi Street',
' Off Toyin Street', '08056374823'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'51', '70', 'LIFECARE PARTNERS LIMITED',
'123A Bisi Obadina Street', 'Omole Phase1',
' Ikeja.'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'52', '71', 'DOMA HEALTHCARE LTD',
'Suite 9-12', ' 2nd Floor', '8035053690'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'53', '72', 'Allied HMO Ltd', '1',
' Alhaji Animashaun Street Ajeigbe Bus Stop',
'8081761429'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'54', '73', 'POLICE HEALTH MAINTENANCE LIMITED',
'21', ' Kainji Crescent', '7026305673'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'55', '74', 'NOVO HEALTH AFRICA LTD',
'1', ' Adekola Balogun Street',
'8174602236'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'56', '75', 'MH HEALTHCARE LTD', '6A Alegbe Close',
'8060426239', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'57', '76', 'ANCHOR HMO INTERNATIONAL COMPANY LTD',
'Goldcrest Mall Building', '07080601192',
' 08031230306'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'58', '77', 'METROHEALTH HMO LIMITED',
'14th Floor', ' St. Nicholas House',
' 26 Catholic Mission Street'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'59', '78', 'GREENFIELD HEALTH MANAGEMENT LTD.',
'Headquarters (Enugu)', '', 'NATIONAL'
);
INSERT INTO hmos(
id, hmo_code, hmo_name, hmo_address,
hmo_contact, hmo_region
)
VALUES
(
'60', '79', 'LIFE WORTH MEDICARE LTD.',
'', '', 'State-Lagos'
);
|
/* clean up script
drop External Table Fact_flight_ExtADLS
drop External Data Source alDataSource
drop Database Scoped Credential aldata
*/
-- Create Database Master Key: This object is used to encrypt the Database Scoped Credential's Secret and store it in the Data Warehouse
Create Master Key
-- When connecting to Azure Data Lake Store Gen2 , you need to supply the Azure Data Lake Storage Access key SQL DW so that it can access the data.
-- This is done via the database scoped credential Secret. The identity is a required field, but it is not used for authentication.
Create Database Scoped Credential aldata
with Identity = 'mas',
Secret = '<KEY>
-- Location of the Azure Data Lake Store
Create External Data Source alDataSource
WITH
(
TYPE = HADOOP,
LOCATION = 'abfss://markshdi-2019-01-29t07-38-34-786z@adlsgen2uscentral.dfs.core.windows.net/',
CREDENTIAL = aldata
)
-- External File Formats describe how the data is stored on abfss In this case, we have a pipe delimited text file.
CREATE EXTERNAL FILE FORMAT pipe
WITH (FORMAT_TYPE = DELIMITEDTEXT,
FORMAT_OPTIONS(
FIELD_TERMINATOR = '|',
STRING_DELIMITER = '',
DATE_FORMAT = '',
USE_TYPE_DEFAULT = False)
)
-- Create external table
Create External Table Fact_flight_ExtADLS
(
[DateId] int NULL,
[DepartureTimeId] smallint NULL,
[ScheduledDepartureTimeId] smallint NULL,
[ArrivalTimeId] smallint NULL,
[ScheduledArrivalTimeId] smallint NULL,
[CarrierID] int NULL,
[ElapsedTime] float NULL,
[OriginAirportId] int NULL,
[DestinationAirportId] int NULL,
[Distance] int NOT NULL,
[ArrivalDelay] float NULL,
[DepartureDelay] float NULL,
[AirTime] float NULL,
[LateAircraftDelay] float NULL,
[SecurityDelay] float NULL,
[WeatherDelay] float NULL,
[CarrierDelay] float NULL,
[NASDelay] float NULL,
[AircraftId] float NULL
)
With (Location = 'demodata/Tables/FactFlights/2016',
Data_Source = alDataSource,
File_Format = pipe)
select * from Fact_flight_ExtADLS;
|
<filename>database/scripts/init.sql
CREATE TABLE People (
User_name varchar(32) NOT NULL,
Pass varchar(255) NOT NULL,
Note varchar(4095),
PRIMARY KEY (User_name)
);
CREATE TABLE Story (
ID int NOT NULL AUTO_INCREMENT,
Author varchar(32),
PostDate TIMESTAMP,
Content varchar(4095) NOT NULL,
PRIMARY KEY (ID)
);
INSERT INTO People (User_name, Pass, Note)
VALUES ('<NAME>', 'tanIg3', 'I can eat a whole pizza in one sitting.');
INSERT INTO People (User_name, Pass)
VALUES ('<NAME>', 'vocOt3');
INSERT INTO People (User_name, Pass)
VALUES ('<NAME>', 'Du<PASSWORD>');
INSERT INTO Story (Author, Content, PostDate)
VALUES
('<NAME>', 'Jennings stop this', '2018-01-16 15:40:12'),
('<NAME>', 'Yayy!', '2018-01-17 11:11:31'),
('<NAME>', 'Visual Studio Code is the best IDE.', '2018-01-17 15:49:43');
|
create procedure h3giDeleteMobileSalesAssociatedName
@mobileSalesAssociatesNameId int
as
begin
/*
h3giDeleteMobileSalesAssociatedName
deletes a row
*/
update
h3giMobileSalesAssociatedNames
set
[isDeleted] = 1
where
[mobileSalesAssociatesNameId] = @mobileSalesAssociatesNameId
end
GRANT EXECUTE ON h3giDeleteMobileSalesAssociatedName TO b4nuser
GO
GRANT EXECUTE ON h3giDeleteMobileSalesAssociatedName TO ofsuser
GO
GRANT EXECUTE ON h3giDeleteMobileSalesAssociatedName TO reportuser
GO
|
-- =========================================================
-- Author: <NAME>
-- Create date: 21/05/2013
-- Description: Gets the username for the supplied userId
-- =========================================================
CREATE PROCEDURE [dbo].[h3giGetUserName]
@userId INT
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
SELECT nameOfUser
FROM smApplicationUsers
WHERE userId = @userId
END
GRANT EXECUTE ON h3giGetUserName TO b4nuser
GO
|
BULK INSERT Landing.Products2
FROM 'C:\SQLDS\CSVs\products.csv'
WITH
(
FIELDTERMINATOR =';',
ROWTERMINATOR = '\n',
FIRSTROW = 2
) |
alter table "public"."cases" alter column "style" set not null;
|
CREATE SCHEMA IF NOT EXISTS `poo1_2021_shop` DEFAULT CHARACTER SET utf8 ;
USE `poo1_2021_shop` ;
-- -----------------------------------------------------
-- Table `poo1_2021_shop`.`categories`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `poo1_2021_shop`.`categories` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NOT NULL,
`description` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `name_UNIQUE` (`name` ASC) VISIBLE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb3;
-- -----------------------------------------------------
-- Table `poo1_2021_shop`.`clients`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `poo1_2021_shop`.`clients` (
`id` INT NOT NULL AUTO_INCREMENT,
`firstname` VARCHAR(45) NOT NULL,
`lastname` VARCHAR(45) NOT NULL,
PRIMARY KEY (`id`))
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb3;
-- -----------------------------------------------------
-- Table `poo1_2021_shop`.`products`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `poo1_2021_shop`.`products` (
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(45) NOT NULL,
`price` VARCHAR(45) NOT NULL,
`description` VARCHAR(45) NULL DEFAULT NULL,
`category_id` INT NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `name_UNIQUE` (`name` ASC) VISIBLE,
INDEX `fk_products_categories_idx` (`category_id` ASC) VISIBLE,
CONSTRAINT `fk_products_categories`
FOREIGN KEY (`category_id`)
REFERENCES `poo1_2021_shop`.`categories` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb3;
-- -----------------------------------------------------
-- Table `poo1_2021_shop`.`orders`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `poo1_2021_shop`.`orders` (
`id` INT NOT NULL,
`created_at` DATETIME NULL DEFAULT NULL,
`shipped_at` DATETIME NULL DEFAULT NULL,
`status` VARCHAR(45) NULL DEFAULT NULL,
`client_id` INT NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_orders_clients1_idx` (`client_id` ASC) VISIBLE,
CONSTRAINT `fk_orders_clients1`
FOREIGN KEY (`client_id`)
REFERENCES `poo1_2021_shop`.`clients` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb3;
-- -----------------------------------------------------
-- Table `poo1_2021_shop`.`order_items`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `poo1_2021_shop`.`order_items` (
`id` INT NOT NULL,
`quantity` INT NOT NULL,
`item_price` DECIMAL(7,2) NOT NULL,
`product_id` INT NOT NULL,
`orders_id` INT NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_order_items_products1_idx` (`product_id` ASC) VISIBLE,
INDEX `fk_order_items_orders1_idx` (`orders_id` ASC) VISIBLE,
CONSTRAINT `fk_order_items_products1`
FOREIGN KEY (`product_id`)
REFERENCES `poo1_2021_shop`.`products` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_order_items_orders1`
FOREIGN KEY (`orders_id`)
REFERENCES `poo1_2021_shop`.`orders` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb3;
|
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/select/a84e0f9d.sql
-- file:privileges.sql ln:428 expect:true
SELECT fy FROM atestp2
|
create database Comex;
use Comex;
create table exportacoes(
ano year not null,
mes tinyint not null,
codsh4 int not null,
pais int not null,
estado char(2) not null,
codMunicipio int not null,
peso bigint not null,
CONSTRAINT FK_exportacoes_sh4 foreign key (codsh4) references sh4(codSH4),
CONSTRAINT FK_exportacoes_codpais foreign key (pais) references codPais(codPais),
CONSTRAINT FK_exportacoes_codmunicipio foreign key (codMunicipio) references codmunicipio(codMunicipio)
);
create table ncm(
codNCM tinyint primary key not null,
descricaoSH4 text
);
create table sh4(
codSH4 tinyint primary key not null,
descricaoSH4 text,
codNCM tinyint not null,
CONSTRAINT FK_sh4_ncm foreign key (codNCM) references ncm(codNCM)
);
create table codPais(
codPais int primary key not null,
descricaoPais text
);
create table codMunicipio(
codMunicipio int primary key not null,
descricaoMunicipio text
);
|
<reponame>IGandarillas/cuba<filename>webapps/app-core/WEB-INF/db/10-cuba/update/postgres/01/01-440-addDropdownToCategoryAttribute.sql
-- $Id$
alter table SYS_CATEGORY_ATTR add column LOOKUP boolean;
|
<gh_stars>1-10
/****** Object: StoredProcedure [dbo].[usp_CPUProcessAlert] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC dbo.usp_CPUProcessAlert
AS
/**************************************************************************************************************
** Purpose:
**
** Revision History
**
** Date Author Version Revision
** ---------- -------------------- ------------- -------------
** 02/29/2012 <NAME> 1.0 New Proc to alert on CPU usage
** 08/31/2012 <NAME> 1.1 Changed VARCHAR to NVARCHAR
** 05/03/2013 <NAME> 1.2 Changed how variables are gathered in AlertSettings and AlertContacts
** Volker.Bachmann Added "[dba]" to the start of all email subject lines
** from SSC
** 06/13/2013 <NAME> 1.3 Added AlertSettings Enabled column to determine if the alert is enabled.
***************************************************************************************************************/
BEGIN
SET NOCOUNT ON
DECLARE @QueryValue INT, @QueryValue2 INT, @EmailList NVARCHAR(255), @CellList NVARCHAR(255), @HTML NVARCHAR(MAX), @ServerName NVARCHAR(50), @EmailSubject NVARCHAR(100), @LastDateStamp DATETIME
SELECT @LastDateStamp = MAX(DateStamp) FROM [dba].dbo.CPUStatsHistory
SELECT @ServerName = CONVERT(NVARCHAR(50), SERVERPROPERTY('servername'))
SELECT @QueryValue = CAST(Value AS INT) FROM [dba].dbo.AlertSettings WHERE VariableName = 'QueryValue' AND AlertName = 'CPUAlert' AND [Enabled] = 1
SELECT @QueryValue2 = CAST(Value AS INT) FROM [dba].dbo.AlertSettings WHERE VariableName = 'QueryValue2' AND AlertName = 'CPUAlert' AND [Enabled] = 1
SELECT @EmailList = EmailList,
@CellList = CellList
FROM [dba].dbo.AlertContacts WHERE AlertName = 'CPUAlert'
CREATE TABLE #TEMP (
[SQLProcessPercent] INT,
[SystemIdleProcessPercent] INT,
[OtherProcessPerecnt] INT,
DateStamp DATETIME
)
INSERT INTO #TEMP
EXEC [dba].dbo.usp_CPUStats
IF EXISTS (SELECT * FROM #TEMP WHERE SQLProcessPercent > @QueryValue AND DateStamp > COALESCE(@LastDateStamp, GETDATE() -1))
BEGIN
SET @HTML =
'<html><head><style type="text/css">
table { border: 0px; border-spacing: 0px; border-collapse: collapse;}
th {color:#FFFFFF; font-size:12px; font-family:arial; background-color:#7394B0; font-weight:bold;border: 0;}
th.header {color:#FFFFFF; font-size:13px; font-family:arial; background-color:#41627E; font-weight:bold;border: 0;}
td {font-size:11px; font-family:arial;border-right: 0;border-bottom: 1px solid #C1DAD7;padding: 5px 5px 5px 8px;}
</style></head><body>
<table width="700"> <tr><th class="header" width="700">High CPU Alert</th></tr></table>
<table width="700">
<tr>
<th width="150">SQL Percent</th>
<th width="150">System Idle Percent</th>
<th width="150">Other Process Percent</th>
<th width="200">Date Stamp</th>
</tr>'
SELECT @HTML = @HTML +
'<tr>
<td bgcolor="#E0E0E0" width="150">' + CAST(SQLProcessPercent AS NVARCHAR) +'</td>
<td bgcolor="#F0F0F0" width="150">' + CAST(SystemIdleProcessPercent AS NVARCHAR) +'</td>
<td bgcolor="#E0E0E0" width="150">' + CAST(OtherProcessPerecnt AS NVARCHAR) +'</td>
<td bgcolor="#F0F0F0" width="200">' + CAST(DateStamp AS NVARCHAR) +'</td>
</tr>'
FROM #TEMP WHERE SQLProcessPercent > @QueryValue AND DateStamp > COALESCE(@LastDateStamp, GETDATE() -1)
SELECT @HTML = @HTML + '</table></body></html>'
SELECT @EmailSubject = '[dba]High CPU Alert on ' + @ServerName + '!'
EXEC msdb..sp_send_dbmail
@recipients= @EmailList,
@subject = @EmailSubject,
@body = @HTML,
@body_format = 'HTML'
IF COALESCE(@CellList, '') <> ''
BEGIN
/*TEXT MESSAGE*/
IF EXISTS (SELECT * FROM #TEMP WHERE SQLProcessPercent > COALESCE(@QueryValue2, @QueryValue))
BEGIN
SET @HTML =
'<html><head></head><body><table><tr><td>CPU,</td><td>Idle,</td><td>Other,</td><td>Date</td></tr>'
SELECT @HTML = @HTML +
'<tr><td>' + CAST(SQLProcessPercent AS NVARCHAR) +',</td><td>' + CAST(SystemIdleProcessPercent AS NVARCHAR) +',</td><td>' + CAST(OtherProcessPerecnt AS NVARCHAR) +',</td><td>' + CAST(DateStamp AS NVARCHAR) + '</td></tr>'
FROM #TEMP WHERE SQLProcessPercent > COALESCE(@QueryValue2, @QueryValue)
SELECT @HTML = @HTML + '</table></body></html>'
SELECT @EmailSubject = '[dba]HighCPUAlert-' + @ServerName
EXEC msdb..sp_send_dbmail
@recipients= @CellList,
@subject = @EmailSubject,
@body = @HTML,
@body_format = 'HTML'
END
END
END
INSERT INTO [dba].dbo.CPUStatsHistory ([SQLProcessPercent],[SystemIdleProcessPercent],[OtherProcessPerecnt],DateStamp)
SELECT [SQLProcessPercent],[SystemIdleProcessPercent],[OtherProcessPerecnt],DateStamp
FROM #TEMP
WHERE CONVERT(DATETIME, DateStamp, 120) > CONVERT(DATETIME,COALESCE(@LastDateStamp, GETDATE() -1), 120)
ORDER BY DATESTAMP ASC
DROP TABLE #TEMP
END
GO
|
CREATE PROCEDURE set_message(IN name STRING, OUT result STRING)
BEGIN
SET result = 'Hello, ' || name || '!';
END;
DECLARE str STRING;
CALL set_message('world', str);
PRINT str;
|
<gh_stars>1000+
CREATE TABLE public.author (
id integer NOT NULL,
name text NOT NULL
);
CREATE SEQUENCE public.author_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.author_id_seq OWNED BY public.author.id;
ALTER TABLE ONLY public.author ALTER COLUMN id SET DEFAULT nextval('public.author_id_seq'::regclass);
ALTER TABLE ONLY public.author
ADD CONSTRAINT author_pkey PRIMARY KEY (id);
|
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/storage/pg_twophase/commit_create_tests/trigger_sql/sql/co_reindex_gist_index_trigger.sql
BEGIN;
REINDEX INDEX cr_co_reindex_gist_idx1;
COMMIT;
|
ALTER TABLE `client` CHANGE `web_php_options` `web_php_options` VARCHAR( 255 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'no,fast-cgi,cgi,mod,suphp,php-fpm'; |
-- @testpoint:opengauss关键字breadth(非保留),作为数据库名
--关键字不带引号-成功
drop database if exists breadth;
create database breadth;
--清理环境
drop database breadth;
--关键字带双引号-成功
drop database if exists "breadth";
create database "breadth";
--清理环境
drop database "breadth";
--关键字带单引号-合理报错
drop database if exists 'breadth';
create database 'breadth';
--关键字带反引号-合理报错
drop database if exists `breadth`;
create database `breadth`;
|
ALTER TABLE oskari_maplayer DROP COLUMN tile_matrix_set_data; |
<filename>src/Infrastructure/Data/SQL/01-initial-state.sql
START TRANSACTION;
CREATE EXTENSION pgcrypto;
CREATE TABLE profiles
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
date_created timestamp without time zone NOT NULL,
date_updated timestamp without time zone NOT NULL,
username character varying(20) NOT NULL,
display_name character varying(30) NOT NULL,
description text,
profile_image_id integer,
user_state integer NOT NULL DEFAULT 0,
CONSTRAINT pk_profiles_id PRIMARY KEY (id)
);
CREATE TABLE posts
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
date_created timestamp without time zone NOT NULL,
date_updated timestamp without time zone NOT NULL,
public_id integer NOT NULL UNIQUE GENERATED BY DEFAULT AS IDENTITY,
content text NOT NULL,
owner_id integer NOT NULL,
date_post_edited timestamp without time zone NOT NULL,
CONSTRAINT pk_posts_id PRIMARY KEY (id),
CONSTRAINT fk_posts_id FOREIGN KEY (owner_id) REFERENCES profiles (id) ON DELETE CASCADE
);
CREATE TABLE comments
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
date_created timestamp without time zone NOT NULL,
date_updated timestamp without time zone NOT NULL,
content text NOT NULL,
parent_post_id integer NOT NULL,
owner_id integer NOT NULL,
CONSTRAINT pk_comments_id PRIMARY KEY (id),
CONSTRAINT fk_comments_parent_post_id FOREIGN KEY (parent_post_id) REFERENCES posts (id) ON DELETE CASCADE,
CONSTRAINT fk_comments_owner_id FOREIGN KEY (owner_id) REFERENCES profiles (id) ON DELETE CASCADE
);
CREATE TABLE mediae
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
data_created timestamp without time zone NOT NULL,
date_updated timestamp without time zone NOT NULL,
post_id integer,
public_id uuid NOT NULL,
media_type integer NOT NULL,
owner_id integer NOT NULL,
CONSTRAINT pk_mediae_id PRIMARY KEY (id),
CONSTRAINT fk_mediae_post_id FOREIGN KEY (post_id) REFERENCES posts (id) ON DELETE SET NULL,
CONSTRAINT fk_mediae_owner_id FOREIGN KEY (owner_id) REFERENCES profiles (id) ON DELETE SET NULL
);
CREATE TABLE accounts
(
id integer NOT NULL GENERATED ALWAYS AS IDENTITY,
data_created timestamp without time zone NOT NULL,
date_updated timestamp without time zone NOT NULL,
email character varying(254) NOT NULL,
password text NOT NULL,
profile_id integer NOT NULL,
CONSTRAINT pk_accounts_id PRIMARY KEY (id),
CONSTRAINT fk_accounts_profile_id FOREIGN KEY (profile_id) REFERENCES profiles (id) ON DELETE CASCADE
);
CREATE TABLE posts_liked_by_profiles
(
liked_posts_id integer NOT NULL,
liking_profile_id integer NOT NULL,
CONSTRAINT pk_posts_liked_by_profiles PRIMARY KEY (liked_posts_id, liking_profile_id),
CONSTRAINT fk_posts_liked_by_profiles_liked_posts_id FOREIGN KEY (liked_posts_id) REFERENCES posts (id) ON DELETE CASCADE,
CONSTRAINT fk_posts_liked_by_profiles_likes_id FOREIGN KEY (liking_profile_id) REFERENCES profiles (id) ON DELETE CASCADE
);
CREATE TABLE profiles_following_profile
(
follower_id integer NOT NULL,
following_id integer NOT NULL,
CONSTRAINT pk_profiles_following_profile PRIMARY KEY (follower_id, following_id),
CONSTRAINT fk_profiles_following_profile_follower_id FOREIGN KEY (follower_id) REFERENCES profiles (id) ON DELETE CASCADE,
CONSTRAINT fk_profiles_following_profile_following_id FOREIGN KEY (following_id) REFERENCES profiles (id) ON DELETE CASCADE
);
ALTER TABLE profiles
ADD CONSTRAINT fk_profile_image_id FOREIGN KEY (profile_image_id) REFERENCES mediae (id);
CREATE UNIQUE INDEX ix_profiles_username ON profiles (username);
-- CREATE INDEX ix_posts_owner_id ON posts (owner_id);
CREATE INDEX ix_posts_public_id ON posts (public_id);
CREATE INDEX ix_comments_parent_post_id ON comments (parent_post_id);
CREATE INDEX ix_mediae_owner_id ON mediae (owner_id);
CREATE INDEX ix_mediae_post_id ON mediae (post_id);
CREATE INDEX ix_accounts_profile_id ON accounts (profile_id);
CREATE INDEX ix_profiles_following_profile_follower_id ON profiles_following_profile (follower_id);
CREATE INDEX ix_profiles_following_profile_following_id ON profiles_following_profile (following_id);
CREATE INDEX ix_post_profiles_likes_id ON posts_liked_by_profiles (liking_profile_id);
CREATE INDEX ix_post_profiles_liked_posts_id ON posts_liked_by_profiles (liked_posts_id);
COMMIT; |
select *
from msuser; |
<filename>date_and_time.sql
### Chapter 11 Date and Time Functions
SELECT NOW(); # output is DATETIME format
INSERT INTO bird_sightings
(bird_id, human_id, time_seen, location_gps)
VALUES
(104, 34, NOW(), '47.318875; 8.580119');
### Synonyms for NOW():
### CURRENT_TIME_STAMP(), LOCALTIME(), LOCALTIMESTAMP()
### SYSDATE() function records the time at which the function
### executed, not the end of the statement
### NOW() records the time at the start of the SQL statement
SELECT NOW(), SLEEP(4) AS 'Zzzz', SYSDATE(), SLEEP(2) AS 'Zzz', SYSDATE();
### Comparison of temporal functions
SELECT NOW(), CURDATE(), CURTIME();
### UNIX_TIMESTAMP() returns number of seconds since Jan 1 1970
SELECT UNIX_TIMESTAMP(), NOW();
SELECT (2016 - 1970) AS Simple,
UNIX_TIMESTAMP() AS 'Seconds since Epoch',
ROUND(UNIX_TIMESTAMP() / 60 / 60 / 24 / 365.25) AS Complicated;
SELECT CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
ROUND((UNIX_TIMESTAMP() - UNIX_TIMESTAMP(time_seen)) / 60 / 60 / 24)
AS 'Days Since Spotted'
FROM bird_sightings JOIN humans USING(human_id)
WHERE bird_id = 309;
SELECT CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
time_seen, DATE(time_seen), TIME(time_seen)
FROM bird_sightings
JOIN humans USING(human_id)
WHERE bird_id = 309;
SELECT CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
time_seen, HOUR(time_seen), MINUTE(time_seen), SECOND(time_seen)
FROM bird_sightings
JOIN humans USING(human_id)
WHERE bird_id = 309 \G
SELECT CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
time_seen, YEAR(time_seen), MONTH(time_seen), DAY(time_seen), MONTHNAME(time_seen), DAYNAME(time_seen)
FROM bird_sightings
JOIN humans USING(human_id)
WHERE bird_id = 309 \G
## Retrieve a list of endangered birds spotted by members
SELECT common_name AS '<NAME>',
CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
CONCAT(DAYNAME(time_seen), ', ', MONTHNAME(time_seen), SPACE(1),
DAY((time_seen)), ', ', YEAR(time_seen)) AS 'Date Spotted',
CONCAT(HOUR(time_seen), ':', MINUTE(time_seen),
IF(HOUR(time_seen) < 12, 'A.M.', 'P.M.')) AS 'Time Spotted'
FROM bird_sightings
JOIN humans USING(human_id)
JOIN rookery.birds USING(bird_id)
JOIN rookery.conservation_status USING(conservation_status_id)
WHERE conservation_category = 'Threatened' LIMIT 3;
SELECT time_seen,
EXTRACT(YEAR_MONTH FROM time_seen) AS 'Year & Month',
EXTRACT(MONTH FROM time_seen) AS 'Month Only',
EXTRACT(HOUR_MINUTE FROM time_seen) AS 'Hour & Minute',
EXTRACT(HOUR FROM time_seen) AS 'Hour Only'
FROM bird_sightings JOIN humans USING(human_id)
LIMIT 3;
SELECT common_name AS '<NAME>',
CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
DATE_FORMAT(time_seen, '%W, %M %e, %Y') AS 'Date Spotted',
TIME_FORMAT(time_seen, '%l:%i %p') AS 'Time Spotted'
FROM bird_sightings
JOIN humans USING(human_id)
JOIN rookery.birds USING(bird_id)
JOIN rookery.conservation_status USING(conservation_status_id)
WHERE conservation_category = 'Threatened' LIMIT 3;
SELECT GET_FORMAT(DATE, 'USA');
SELECT GET_FORMAT(DATE, 'USA'), GET_FORMAT(TIME, 'USA');
SELECT DATE_FORMAT(CURDATE(), GET_FORMAT(DATE, 'EUR'))
AS 'Date in Europe',
DATE_FORMAT(CURDATE(), GET_FORMAT(DATE, 'USA'))
AS 'Date in US',
REPLACE(DATE_FORMAT(CURDATE(), GET_FORMAT(DATE, 'USA')), '.', '-')
AS 'Another Date in US';
SHOW VARIABLES LIKE 'time_zone';
SELECT common_name AS 'Bird',
CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
DATE_FORMAT(time_seen, '%r') AS 'System Time Spotted',
DATE_FORMAT(CONVERT_TZ(time_seen, 'US/Eastern', 'Europe/Rome'), '%r%')
AS 'Birder Time Spotted'
FROM bird_sightings
JOIN humans USING(human_id)
JOIN rookery.birds USING(bird_id)
JOIN rookery.conservation_status USING(conservation_status_id)
LIMIT 3;
UPDATE humans
SET membership_expiration = DATE_ADD(membership_expiration, INTERVAL 3 MONTH)
WHERE country_id = 'uk'
AND membership_expiration > CURDATE();
UPDATE humans
SET membership_expiration = DATE_SUB(membership_expiration, INTERVAL 1 YEAR)
WHERE CONCAT(name_first, SPACE(1), name_last) = '<NAME>';
UPDATE bird_sightings
SET time_seen = DATE_ADD(time_seen, INTERVAL '1 2' DAY_HOUR)
WHERE sighting_id = 16;
SELECT TIME(NOW()),
TIME_TO_SEC(NOW()),
TIME_TO_SEC(NOW()) / 60 / 60 AS 'Hours';
SELECT CURDATE() AS 'Today',
DATE_FORMAT(membership_expiration, '%M %e, %Y')
AS 'Date Membership Expires',
DATEDIFF(membership_expiration, CURDATE())
AS 'Days Until Expiration'
FROM humans
WHERE human_id = 4;
CREATE TABLE birding_events
(event_id INT AUTO_INCREMENT KEY,
event_name VARCHAR(255),
event_description TEXT,
meeting_point VARCHAR(255),
event_date DATE,
start_time TIME);
INSERT INTO birding_events
VALUES
(NULL,
'Sandpipers in San Diego',
'Birdwatching Outing in SD. Light lunch.',
'Hotel del Coronado, deck near entrance to restaurant.',
'2014-06-15',
'09:00:00');
SELECT NOW(), event_date, start_time,
DATEDIFF(event_date, DATE(NOW())) AS 'Days to Event',
TIMEDIFF(start_time, TIME(NOW())) AS 'Time to Start'
FROM birding_events;
SELECT NOW(), event_date, start_time,
CONCAT(DATEDIFF(event_date, DATE(NOW())), ' Days, ',
DATE_FORMAT(TIMEDIFF(start_time, TIME(NOW())), '%k hours, %i minutes'))
AS 'Time to Event'
FROM birding_events;
ALTER TABLE birding_events
ADD COLUMN event_datetime DATETIME;
UPDATE birding_events
SET event_datetime = CONCAT(event_date, SPACE(1), start_time);
SELECT event_date, start_time, event_datetime
FROM birding_events;
SELECT NOW(), event_datetime,
CONCAT(DATEDIFF(event_datetime, NOW()), ' Days, ',
TIME_FORMAT(TIMEDIFF(TIME(event_datetime), CURTIME()),
'%k hours, %i minutes'))
AS 'Time to Event'
FROM birding_events;
ALTER TABLE birding_events
DROP COLUMN event_date,
DROP COLUMN start_time;
### Exercises
### 1
SELECT CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
DATE_FORMAT(join_date, '%a., %b. %e, %Y') AS 'Date Joined',
DATE_FORMAT(membership_expiration, '%a., %b. %e, %Y') AS 'Membership Expiration Date'
FROM humans
WHERE country_id = 'uk';
### 2
SELECT CONCAT(name_first, SPACE(1), name_last) AS 'Birdwatcher',
membership_expiration AS 'Membership Expiration Date'
FROM humans
order by membership_expiration;
UPDATE humans
SET membership_expiration = ADDDATE(membership_expiration, INTERVAL 1 MONTH),
membership_expiration = ADDDATE(membership_expiration, INTERVAL 15 DAY)
WHERE membership_expiration > '2014-06-30';
UPDATE humans
SET membership_expiration = DATE_SUB(membership_expiration, INTERVAL 5 DAY)
WHERE membership_expiration > '2014-06-30';
UPDATE humans
SET membership_expiration = ADDDATE(membership_expiration, INTERVAL -10 DAY)
WHERE membership_expiration > '2014-06-30';
|
-- --------------------------------------------------------
-- Host: localhost
-- Versión del servidor: 5.7.24 - MySQL Community Server (GPL)
-- SO del servidor: Win64
-- HeidiSQL Versión: 10.2.0.5599
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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' */;
-- Volcando estructura para tabla db_care_report.campaigns
CREATE TABLE IF NOT EXISTS `campaigns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(199) NOT NULL,
`meta` double(16,2) NOT NULL,
`id_campaign` varchar(50) NOT NULL,
`fecha_init` date NOT NULL,
`fecha_end` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
-- Volcando datos para la tabla db_care_report.campaigns: ~1 rows (aproximadamente)
/*!40000 ALTER TABLE `campaigns` DISABLE KEYS */;
INSERT INTO `campaigns` (`id`, `name`, `meta`, `id_campaign`, `fecha_init`, `fecha_end`) VALUES
(1, 'NIÑAS CON OPORTUNIDADES', 300.00, 'ABCD', '2022-03-18', '2022-03-18');
/*!40000 ALTER TABLE `campaigns` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.donadores
CREATE TABLE IF NOT EXISTS `donadores` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombres` varchar(50) NOT NULL DEFAULT '0',
`apellidos` varchar(50) NOT NULL DEFAULT '0',
`tipoDocumento` varchar(50) NOT NULL DEFAULT '0',
`documentoIdentidad` varchar(50) NOT NULL DEFAULT '0',
`tipoDonacion` varchar(50) NOT NULL,
`monto` double(7,2) NOT NULL,
`pais` varchar(50) NOT NULL DEFAULT '',
`region` varchar(50) NOT NULL DEFAULT '0',
`telefono` varchar(50) NOT NULL DEFAULT '0',
`email` varchar(50) NOT NULL DEFAULT '0',
`create_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
-- Volcando datos para la tabla db_care_report.donadores: ~2 rows (aproximadamente)
/*!40000 ALTER TABLE `donadores` DISABLE KEYS */;
INSERT INTO `donadores` (`id`, `nombres`, `apellidos`, `tipoDocumento`, `documentoIdentidad`, `tipoDonacion`, `monto`, `pais`, `region`, `telefono`, `email`, `create_at`) VALUES
(1, 'Jorge', 'Acosta', 'DNI', '123', 'Puntual', 50.00, 'Lima', 'Barranco', '12345678', '<EMAIL>', '2022-03-15 18:50:55'),
(2, 'Gabriel', 'Dantez', 'RUC', '1234', 'Mensual', 200.00, 'Lima', 'Chorrillos', '87654321', '<EMAIL>', '2022-03-15 18:50:55');
/*!40000 ALTER TABLE `donadores` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.failed_jobs
CREATE TABLE IF NOT EXISTS `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(191) 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,
PRIMARY KEY (`id`),
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_care_report.failed_jobs: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.migrations
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_care_report.migrations: ~5 rows (aproximadamente)
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
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),
(4, '2019_12_14_000001_create_personal_access_tokens_table', 1),
(5, '2021_08_26_045747_create_sessions_table', 1);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_care_report.password_resets: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.personal_access_tokens
CREATE TABLE IF NOT EXISTS `personal_access_tokens` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_care_report.personal_access_tokens: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.sessions
CREATE TABLE IF NOT EXISTS `sessions` (
`id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) unsigned DEFAULT NULL,
`ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_agent` text COLLATE utf8mb4_unicode_ci,
`payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
`last_activity` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `sessions_user_id_index` (`user_id`),
KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_care_report.sessions: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.transacciones
CREATE TABLE IF NOT EXISTS `transacciones` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`transaccion_id` varchar(190) NOT NULL,
`transaccion_token` varchar(190) NOT NULL,
`user_id` bigint(20) NOT NULL,
`id_campaign` varchar(50) NOT NULL,
`obj_transaccion` json NOT NULL,
`obj_cliente` json NOT NULL,
`monto` double(7,2) NOT NULL,
`tipo_donacion` varchar(50) NOT NULL,
`detalles` varchar(50) NOT NULL,
`status` varchar(50) NOT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
-- Volcando datos para la tabla db_care_report.transacciones: ~6 rows (aproximadamente)
/*!40000 ALTER TABLE `transacciones` DISABLE KEYS */;
INSERT INTO `transacciones` (`id`, `transaccion_id`, `transaccion_token`, `user_id`, `id_campaign`, `obj_transaccion`, `obj_cliente`, `monto`, `tipo_donacion`, `detalles`, `status`, `created_at`) VALUES
(1, '993211570048581', 'B9587CD22A06411A987CD22A06E11A3B', 123, 'ABCD', '{}', '{}', 50.00, 'Puntual', 'Aprobado y completado con exito', 'Authorized', '2022-01-07 18:45:27'),
(2, '983202990266296', '25BBDE35C9A340A1BBDE35C9A350A1AE', 1234, 'ABCD', '{}', '{}', 250.00, 'Mensual', 'Aprobado y completado con exito', 'Authorized', '2022-01-15 18:45:27'),
(3, '983202990266297', '25BBDE35C9A340A1BBDE35C9A350A1AE', 1234, 'ABCD', '{}', '{}', 100.00, 'Puntual', 'Aprobado y completado con exito', 'Authorized', '2022-02-15 18:45:27'),
(4, '983202990266298', '25BBDE35C9A340A1BBDE35C9A350A1AE', 1234, 'ABCDE', '{}', '{}', 180.00, 'Mensual', 'Aprobado y completado con exito', 'Authorized', '2022-02-15 18:45:27'),
(5, '983202990266299', '<PASSWORD>', 1234, 'ABCDR', '{}', '{}', 40.00, 'Puntual', 'Aprobado y completado con exito', 'Authorized', '2022-03-15 18:45:27'),
(6, '983202990266388', '2<PASSWORD>3<PASSWORD>1BB<PASSWORD>5C9A350A1AE', 1234, 'ABCDS', '{}', '{}', 60.00, 'Mensual', 'Aprobado y completado con exito', 'Authorized', '2022-03-15 18:45:27');
/*!40000 ALTER TABLE `transacciones` ENABLE KEYS */;
-- Volcando estructura para tabla db_care_report.users
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`role` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`device_token` longtext COLLATE utf8mb4_unicode_ci,
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_care_report.users: ~3 rows (aproximadamente)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `name`, `email`, `password`, `role`, `device_token`, `status`, `created_at`, `updated_at`) VALUES
(1, 'AdminP', '<EMAIL>', <PASSWORD>', 'admin', '', '3', '2022-03-15 18:01:11', '2022-03-20 00:38:50'),
(2, 'Usuario Reportes', '<EMAIL>', <PASSWORD>', 'usuario', '<KEY>', '1', '2022-03-15 18:01:11', '2022-03-20 00:39:14');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
<reponame>uk-gov-mirror/SkillsFundingAgency.das-employer-incentives
CREATE TABLE [archive].[PendingPaymentValidationResult]
(
[PendingPaymentValidationResultId] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY NONCLUSTERED,
[PendingPaymentId] UNIQUEIDENTIFIER NOT NULL,
[Step] NVARCHAR(20) NOT NULL,
[Result] BIT NOT NULL,
[PeriodNumber] TINYINT NOT NULL,
[PaymentYear] SMALLINT NOT NULL,
[CreatedDateUTC] DATETIME2 NOT NULL,
[ArchiveDateUTC] DATETIME2 NOT NULL,
CONSTRAINT FK_ArchivePendingPaymentValidationResult_PendingPaymentId FOREIGN KEY (PendingPaymentId) REFERENCES [archive].[PendingPayment](PendingPaymentId)
)
GO
CREATE CLUSTERED INDEX [IX_ArchivePendingPaymentsValidationResult_Step] ON [archive].[PendingPaymentValidationResult]
(
[Step]
)
GO
CREATE INDEX IX_ArchivePendingPaymentsValidationResult_PendingPaymentId ON [archive].[PendingPaymentValidationResult] (PendingPaymentId)
GO |
CREATE TABLE assessments (id BIGINT AUTO_INCREMENT, checklist_id BIGINT NOT NULL, reference VARCHAR(255) NOT NULL, day INT, month INT, year INT, day_of_week TEXT, version_at DATETIME NOT NULL, value DOUBLE(18, 2) NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX checklist_id_idx (checklist_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE check_list (id BIGINT AUTO_INCREMENT, name VARCHAR(255) NOT NULL, observations LONGTEXT, reference VARCHAR(255), template_id BIGINT NOT NULL, responsible_id BIGINT NOT NULL, original_threshold BIGINT NOT NULL, assessment FLOAT(18, 2), status TINYINT(1) DEFAULT '1' NOT NULL, version_at DATETIME, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX template_id_idx (template_id), INDEX responsible_id_idx (responsible_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE checked_standard (id BIGINT AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description LONGTEXT, standard_type VARCHAR(255), checklist_id BIGINT NOT NULL, final_weight DOUBLE(18, 2), option_selected VARCHAR(255), assigned_value DOUBLE(18, 2), created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX checklist_id_idx (checklist_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE standard (id BIGINT AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description LONGTEXT, template_id BIGINT NOT NULL, weight DOUBLE(18, 2), created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX template_id_idx (template_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE template (id BIGINT AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description LONGTEXT, prefix VARCHAR(255), threshold BIGINT NOT NULL, checklists_qt BIGINT, status TINYINT(1) DEFAULT '1' NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE sf_guard_forgot_password (id BIGINT AUTO_INCREMENT, user_id BIGINT NOT NULL, unique_key VARCHAR(255), expires_at DATETIME NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE sf_guard_group (id BIGINT AUTO_INCREMENT, name VARCHAR(255) UNIQUE, description TEXT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE sf_guard_group_permission (group_id BIGINT, permission_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(group_id, permission_id)) ENGINE = INNODB;
CREATE TABLE sf_guard_permission (id BIGINT AUTO_INCREMENT, name VARCHAR(255) UNIQUE, description TEXT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE sf_guard_remember_key (id BIGINT AUTO_INCREMENT, user_id BIGINT, remember_key VARCHAR(32), ip_address VARCHAR(50), created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX user_id_idx (user_id), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE sf_guard_user (id BIGINT AUTO_INCREMENT, first_name VARCHAR(255), last_name VARCHAR(255), email_address VARCHAR(255) NOT NULL UNIQUE, username VARCHAR(128) NOT NULL UNIQUE, algorithm VARCHAR(128) DEFAULT 'sha1' NOT NULL, salt VARCHAR(128), password VARCHAR(128), is_active TINYINT(1) DEFAULT '1', is_super_admin TINYINT(1) DEFAULT '0', last_login DATETIME, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX is_active_idx_idx (is_active), PRIMARY KEY(id)) ENGINE = INNODB;
CREATE TABLE sf_guard_user_group (user_id BIGINT, group_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(user_id, group_id)) ENGINE = INNODB;
CREATE TABLE sf_guard_user_permission (user_id BIGINT, permission_id BIGINT, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY(user_id, permission_id)) ENGINE = INNODB;
ALTER TABLE assessments ADD CONSTRAINT assessments_checklist_id_check_list_id FOREIGN KEY (checklist_id) REFERENCES check_list(id) ON DELETE CASCADE;
ALTER TABLE check_list ADD CONSTRAINT check_list_template_id_template_id FOREIGN KEY (template_id) REFERENCES template(id);
ALTER TABLE check_list ADD CONSTRAINT check_list_responsible_id_sf_guard_user_id FOREIGN KEY (responsible_id) REFERENCES sf_guard_user(id);
ALTER TABLE checked_standard ADD CONSTRAINT checked_standard_checklist_id_check_list_id FOREIGN KEY (checklist_id) REFERENCES check_list(id) ON DELETE CASCADE;
ALTER TABLE standard ADD CONSTRAINT standard_template_id_template_id FOREIGN KEY (template_id) REFERENCES template(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_forgot_password ADD CONSTRAINT sf_guard_forgot_password_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_group_permission ADD CONSTRAINT sf_guard_group_permission_permission_id_sf_guard_permission_id FOREIGN KEY (permission_id) REFERENCES sf_guard_permission(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_group_permission ADD CONSTRAINT sf_guard_group_permission_group_id_sf_guard_group_id FOREIGN KEY (group_id) REFERENCES sf_guard_group(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_remember_key ADD CONSTRAINT sf_guard_remember_key_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_user_group ADD CONSTRAINT sf_guard_user_group_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_user_group ADD CONSTRAINT sf_guard_user_group_group_id_sf_guard_group_id FOREIGN KEY (group_id) REFERENCES sf_guard_group(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_user_permission ADD CONSTRAINT sf_guard_user_permission_user_id_sf_guard_user_id FOREIGN KEY (user_id) REFERENCES sf_guard_user(id) ON DELETE CASCADE;
ALTER TABLE sf_guard_user_permission ADD CONSTRAINT sf_guard_user_permission_permission_id_sf_guard_permission_id FOREIGN KEY (permission_id) REFERENCES sf_guard_permission(id) ON DELETE CASCADE;
|
<reponame>Menkachev/Java
SELECT
s.`id`,
u.`username`,
p.`name`,
CONCAT(s.`passed_tests`, ' / ', p.`tests`) AS 'result'
FROM
`users` AS u
INNER JOIN
(SELECT
u.`id`, u.`username`, COUNT(uc.`contest_id`) AS 'contests'
FROM
`users` AS u
INNER JOIN `users_contests` AS uc ON u.`id` = uc.`user_id`
GROUP BY u.`id`
ORDER BY `contests` DESC
LIMIT 1) AS temp ON u.`id` = temp.`id`
INNER JOIN
`submissions` AS s ON s.`user_id` = u.`id`
INNER JOIN
`problems` AS p ON p.`id` = s.`problem_id`
ORDER BY s.`id` DESC; |
<reponame>diomedesmoreno/bibliotechProject
/*
Navicat Premium Data Transfer
Source Server : local
Source Server Type : MySQL
Source Server Version : 100413
Source Host : localhost:3306
Source Schema : biblioteca2
Target Server Type : MySQL
Target Server Version : 100413
File Encoding : 65001
Date: 09/12/2021 22:16:43
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for ad_users
-- ----------------------------
DROP TABLE IF EXISTS `ad_users`;
CREATE TABLE `ad_users` (
`userId` int(11) NOT NULL AUTO_INCREMENT,
`typeId` tinyint(1) NULL DEFAULT 0,
`username` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`first_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`last_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`last_login` datetime(0) NULL DEFAULT NULL,
`hash` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`statusId` tinyint(1) NULL DEFAULT 0,
`phone` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`cellphone` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`userId`) USING BTREE,
INDEX `userId_index`(`userId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 14 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ad_users
-- ----------------------------
INSERT INTO `ad_users` VALUES (1, 1, '<EMAIL>', 'e10adc3949ba59abbe56e057f20f883e', '<NAME>', 'De La Cruz', '<EMAIL>', '', NULL, '2020-03-10 18:03:17', '', 1, '', '', 0);
INSERT INTO `ad_users` VALUES (8, 1, 'sdfsdfsdf', 'e10adc3949ba59abbe56e057f20f883e', 'sadasd', 'asdasdsa', '<EMAIL>', '', '2020-04-04 02:01:11', NULL, NULL, 1, '(888) 888-8888', '(989) 898-9898', 1);
INSERT INTO `ad_users` VALUES (9, 1, 'soporte_v4', 'e10adc3949ba59abbe56e057f20f883e', 'adasdasdasd', 'asdadadas', '<EMAIL>', '', '2020-04-04 02:07:49', NULL, NULL, 1, '(123) 145-6456', '(564) 651-2312', 0);
INSERT INTO `ad_users` VALUES (11, 1, 'edelacruz9713', 'e10adc3949ba59abbe56e057f20f883e', 'Enmanuel', 'De La Cruz', '<EMAIL>', '', '2020-04-04 17:27:52', NULL, NULL, 1, '(809) 906-0295', '(809) 906-0295', 0);
INSERT INTO `ad_users` VALUES (12, 1, 'ffdsfsdf', '4297f44b13955235245b2497399d7a93', 'asdasdasdert654654', 'asdasdasd', '<EMAIL>', '', '2020-04-04 17:31:50', NULL, NULL, 1, '(324) 324-3243', '(234) 234-2343', 0);
INSERT INTO `ad_users` VALUES (13, 2, 'esdfsdfdf', 'e10adc3949ba59abbe56e057f20f883e', 'mnbvcx', 'poiuytre33qwqw', '<EMAIL>', '', '2020-04-04 17:34:33', NULL, NULL, 3, '(123) 456-7898', '(123) 456-7887', 0);
-- ----------------------------
-- Table structure for ad_users_status
-- ----------------------------
DROP TABLE IF EXISTS `ad_users_status`;
CREATE TABLE `ad_users_status` (
`statusId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`class` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`statusId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ad_users_status
-- ----------------------------
INSERT INTO `ad_users_status` VALUES (1, 'Activo', 'primary', 0);
INSERT INTO `ad_users_status` VALUES (2, 'Inactivo', 'default', 1);
INSERT INTO `ad_users_status` VALUES (3, 'Bloqueado', 'warning', 0);
-- ----------------------------
-- Table structure for ai_blood_groups
-- ----------------------------
DROP TABLE IF EXISTS `ai_blood_groups`;
CREATE TABLE `ai_blood_groups` (
`groupId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`groupId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_blood_groups
-- ----------------------------
INSERT INTO `ai_blood_groups` VALUES (1, 'A+', 0);
INSERT INTO `ai_blood_groups` VALUES (2, 'A-', 0);
INSERT INTO `ai_blood_groups` VALUES (3, 'B+', 0);
INSERT INTO `ai_blood_groups` VALUES (4, 'B-', 0);
INSERT INTO `ai_blood_groups` VALUES (5, 'O+', 0);
INSERT INTO `ai_blood_groups` VALUES (6, 'O-', 0);
INSERT INTO `ai_blood_groups` VALUES (7, 'AB+', 0);
INSERT INTO `ai_blood_groups` VALUES (8, 'AB-', 0);
-- ----------------------------
-- Table structure for ai_calendar_events
-- ----------------------------
DROP TABLE IF EXISTS `ai_calendar_events`;
CREATE TABLE `ai_calendar_events` (
`eventId` int(11) NOT NULL AUTO_INCREMENT,
`typeId` int(11) NULL DEFAULT 0,
`schoolId` int(11) NULL DEFAULT 0,
`userId` int(11) NULL DEFAULT 0,
`title` longtext CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`description` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`date_start` date NULL DEFAULT NULL,
`date_end` date NULL DEFAULT NULL,
`repeat_type` tinyint(1) NULL DEFAULT 0,
`rrule` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`creation_date` date NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`send_reminder` tinyint(1) NULL DEFAULT 0,
`recipients` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
PRIMARY KEY (`eventId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 668 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_calendar_events
-- ----------------------------
INSERT INTO `ai_calendar_events` VALUES (8, 1, 1, 248, 'FACTURAR CLIENTES', NULL, '0000-00-00', '0000-00-00', 0, 'RRULE:dtstart=20190412;freq=MONTHLY;interval=1', '2019-03-14', 0, 0, NULL);
INSERT INTO `ai_calendar_events` VALUES (38, 3, 1, 1578, 'DECLARACIONES ISR-ITBIS URGENTES', NULL, '2019-04-20', '0000-00-00', 1, 'RRULE:dtstart=20190420;freq=DAILY;interval=2;until=2020-05-15', '2019-04-20', 0, 0, NULL);
INSERT INTO `ai_calendar_events` VALUES (48, 3, 1, 2073, 'PAGO I12 DGII', NULL, '2019-05-15', '0000-00-00', 0, 'RRULE:dtstart=20190515;freq=MONTHLY;interval=15', '2019-05-04', 0, 0, NULL);
INSERT INTO `ai_calendar_events` VALUES (53, 2, 1, 2073, 'PAGO IT1 DGII', NULL, '2019-05-20', '0000-00-00', 0, 'RRULE:dtstart=20190520;freq=MONTHLY;interval=1', '2019-05-04', 0, 0, NULL);
INSERT INTO `ai_calendar_events` VALUES (58, 4, 1, 2073, 'PAGO IR17 DGII', NULL, '2019-05-10', '0000-00-00', 0, 'RRULE:dtstart=20190510;freq=MONTHLY;interval=1', '2019-05-04', 0, 0, NULL);
INSERT INTO `ai_calendar_events` VALUES (661, 10, 3, 3, 'Evento #1', '', NULL, '2021-12-05', 2, 'RRULE:dtstart=20211205;until=20211205;freq=MONTHLY;interval=1', '2021-12-04', 0, 0, '');
INSERT INTO `ai_calendar_events` VALUES (663, 10, 3, 3, 'Evento # 2', '', NULL, '2021-12-05', 2, 'RRULE:dtstart=20211205;until=20211205;freq=WEEKLY;interval=1', '2021-12-04', 0, 0, '');
INSERT INTO `ai_calendar_events` VALUES (664, 10, 3, 3, 'Prueba', '', NULL, '2021-12-07', 2, 'RRULE:dtstart=20211207;until=20211207;freq=WEEKLY;interval=1', '2021-12-04', 1, 0, '');
INSERT INTO `ai_calendar_events` VALUES (665, 10, 3, 3, 'Prueba', '', NULL, '2021-12-07', 2, 'RRULE:dtstart=20211207;until=20211207;freq=WEEKLY;interval=1', '2021-12-04', 1, 0, '');
INSERT INTO `ai_calendar_events` VALUES (666, 10, 3, 3, 'Prueba', '', NULL, '2021-12-07', 2, 'RRULE:dtstart=20211207;until=20211207;freq=WEEKLY;interval=1', '2021-12-04', 0, 0, '');
INSERT INTO `ai_calendar_events` VALUES (667, 10, 3, 3, 'prueba #2', '', NULL, '2021-12-08', 2, 'RRULE:dtstart=20211208;until=20211208;freq=WEEKLY;interval=1', '2021-12-04', 0, 0, '');
-- ----------------------------
-- Table structure for ai_calendar_frequency
-- ----------------------------
DROP TABLE IF EXISTS `ai_calendar_frequency`;
CREATE TABLE `ai_calendar_frequency` (
`frequencyId` int(11) NOT NULL AUTO_INCREMENT,
`value` int(3) NULL DEFAULT 0,
`name` varchar(250) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`text` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`rrule` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
PRIMARY KEY (`frequencyId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_calendar_frequency
-- ----------------------------
INSERT INTO `ai_calendar_frequency` VALUES (1, 0, 'Solo esta vez', '', '0');
INSERT INTO `ai_calendar_frequency` VALUES (2, 1, 'Diario', 'días', 'DAY');
INSERT INTO `ai_calendar_frequency` VALUES (3, 7, 'Semanal', 'semanas', 'WEEK');
INSERT INTO `ai_calendar_frequency` VALUES (4, 30, 'Mensual', 'meses', 'MONTH');
INSERT INTO `ai_calendar_frequency` VALUES (5, 365, 'Anual', 'años', 'YEAR');
-- ----------------------------
-- Table structure for ai_calendars_type
-- ----------------------------
DROP TABLE IF EXISTS `ai_calendars_type`;
CREATE TABLE `ai_calendars_type` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`name` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`color` varchar(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 46 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_calendars_type
-- ----------------------------
INSERT INTO `ai_calendars_type` VALUES (1, 1, 'Reunión', '000FC7', 0);
INSERT INTO `ai_calendars_type` VALUES (2, 1, 'Presentación', '868EEF', 0);
INSERT INTO `ai_calendars_type` VALUES (3, 1, 'Excursión', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (4, 1, 'Cumpleaños', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (5, 1, 'Gastos', 'B4F704', 0);
INSERT INTO `ai_calendars_type` VALUES (6, 1, 'Feria', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (7, 1, 'Torneos', '04F7C7', 0);
INSERT INTO `ai_calendars_type` VALUES (8, 1, 'Pagos', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (9, 1, 'Cobro', 'ff6600', 0);
INSERT INTO `ai_calendars_type` VALUES (10, 3, 'Reunión', '000FC7', 0);
INSERT INTO `ai_calendars_type` VALUES (11, 3, 'Presentación', '868EEF', 0);
INSERT INTO `ai_calendars_type` VALUES (12, 3, 'Excursión', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (13, 3, 'Cumpleaños', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (14, 3, 'Gastos', 'B4F704', 0);
INSERT INTO `ai_calendars_type` VALUES (15, 3, 'Feria', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (16, 3, 'Torneos', '04F7C7', 0);
INSERT INTO `ai_calendars_type` VALUES (17, 3, 'Pagos', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (18, 3, 'Cobro', 'ff6600', 0);
INSERT INTO `ai_calendars_type` VALUES (19, 4, 'Reunión', '000FC7', 0);
INSERT INTO `ai_calendars_type` VALUES (20, 4, 'Presentación', '868EEF', 0);
INSERT INTO `ai_calendars_type` VALUES (21, 4, 'Excursión', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (22, 4, 'Cumpleaños', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (23, 4, 'Gastos', 'B4F704', 0);
INSERT INTO `ai_calendars_type` VALUES (24, 4, 'Feria', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (25, 4, 'Torneos', '04F7C7', 0);
INSERT INTO `ai_calendars_type` VALUES (26, 4, 'Pagos', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (27, 4, 'Cobro', 'ff6600', 0);
INSERT INTO `ai_calendars_type` VALUES (28, 5, 'Reunión', '000FC7', 0);
INSERT INTO `ai_calendars_type` VALUES (29, 5, 'Presentación', '868EEF', 0);
INSERT INTO `ai_calendars_type` VALUES (30, 5, 'Excursión', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (31, 5, 'Cumpleaños', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (32, 5, 'Gastos', 'B4F704', 0);
INSERT INTO `ai_calendars_type` VALUES (33, 5, 'Feria', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (34, 5, 'Torneos', '04F7C7', 0);
INSERT INTO `ai_calendars_type` VALUES (35, 5, 'Pagos', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (36, 5, 'Cobro', 'ff6600', 0);
INSERT INTO `ai_calendars_type` VALUES (37, 6, 'Reunión', '000FC7', 0);
INSERT INTO `ai_calendars_type` VALUES (38, 6, 'Presentación', '868EEF', 0);
INSERT INTO `ai_calendars_type` VALUES (39, 6, 'Excursión', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (40, 6, 'Cumpleaños', 'F13919', 0);
INSERT INTO `ai_calendars_type` VALUES (41, 6, 'Gastos', 'B4F704', 0);
INSERT INTO `ai_calendars_type` VALUES (42, 6, 'Feria', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (43, 6, 'Torneos', '04F7C7', 0);
INSERT INTO `ai_calendars_type` VALUES (44, 6, 'Pagos', 'F71E04', 0);
INSERT INTO `ai_calendars_type` VALUES (45, 6, 'Cobro', 'ff6600', 0);
-- ----------------------------
-- Table structure for ai_countries
-- ----------------------------
DROP TABLE IF EXISTS `ai_countries`;
CREATE TABLE `ai_countries` (
`countryId` int(11) NOT NULL AUTO_INCREMENT,
`code` char(3) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`language` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`currencyId` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`countryId`) USING BTREE,
INDEX `countryId`(`countryId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 241 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_countries
-- ----------------------------
INSERT INTO `ai_countries` VALUES (1, 'DO', 'República Dominicana', 'es', 1, 0);
INSERT INTO `ai_countries` VALUES (2, 'US', 'Estados Unidos', 'en', 2, 0);
INSERT INTO `ai_countries` VALUES (3, 'AF', 'Afghanistan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (4, 'AL', 'Albania', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (5, 'DZ', 'Algeria', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (6, 'DS', 'American Samoa', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (7, 'AD', 'Andorra', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (8, 'AO', 'Angola', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (9, 'AI', 'Anguilla', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (10, 'AQ', 'Antarctica', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (11, 'AG', 'Antigua and/or Barbuda', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (12, 'AR', 'Argentina', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (13, 'AM', 'Armenia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (14, 'AW', 'Aruba', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (15, 'AU', 'Australia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (16, 'AT', 'Austria', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (17, 'AZ', 'Azerbaijan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (18, 'BS', 'Bahamas', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (19, 'BH', 'Bahrain', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (20, 'BD', 'Bangladesh', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (21, 'BB', 'Barbados', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (22, 'BY', 'Belarus', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (23, 'BE', 'Belgium', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (24, 'BZ', 'Belize', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (25, 'BJ', 'Benin', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (26, 'BM', 'Bermuda', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (27, 'BT', 'Bhutan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (28, 'BO', 'Bolivia', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (29, 'BA', 'Bosnia and Herzegovina', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (30, 'BW', 'Botswana', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (31, 'BV', 'Bouvet Island', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (32, 'BR', 'Brazil', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (33, 'IO', 'British lndian Ocean Territory', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (34, 'BN', 'Brunei Darussalam', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (35, 'BG', 'Bulgaria', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (36, 'BF', 'Burkina Faso', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (37, 'BI', 'Burundi', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (38, 'KH', 'Cambodia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (39, 'CM', 'Cameroon', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (40, 'CV', 'Cape Verde', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (41, 'KY', 'Cayman Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (42, 'CF', 'Central African Republic', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (43, 'TD', 'Chad', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (44, 'CL', 'Chile', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (45, 'CN', 'China', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (46, 'CX', 'Christmas Island', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (47, 'CC', 'Cocos (Keeling) Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (48, 'CO', 'Colombia', 'es-CO', 0, 1);
INSERT INTO `ai_countries` VALUES (49, 'KM', 'Comoros', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (50, 'CG', 'Congo', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (51, 'CK', 'Cook Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (52, 'CR', 'Costa Rica', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (53, 'HR', 'Croatia (Hrvatska)', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (54, 'CU', 'Cuba', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (55, 'CY', 'Cyprus', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (56, 'CZ', 'Czech Republic', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (57, 'DK', 'Denmark', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (58, 'DJ', 'Djibouti', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (59, 'DM', 'Dominica', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (60, 'CA', 'Canada', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (61, 'TP', 'East Timor', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (62, 'EC', 'Ecuador', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (63, 'EG', 'Egypt', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (64, 'SV', 'El Salvador', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (65, 'GQ', 'Equatorial Guinea', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (66, 'ER', 'Eritrea', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (67, 'EE', 'Estonia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (68, 'ET', 'Ethiopia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (69, 'FK', 'Falkland Islands (Malvinas)', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (70, 'FO', 'Faroe Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (71, 'FJ', 'Fiji', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (72, 'FI', 'Finland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (73, 'FR', 'France', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (74, 'FX', 'France, Metropolitan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (75, 'GF', 'French Guiana', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (76, 'PF', 'French Polynesia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (77, 'TF', 'French Southern Territories', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (78, 'GA', 'Gabon', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (79, 'GM', 'Gambia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (80, 'GE', 'Georgia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (81, 'DE', 'Germany', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (82, 'GH', 'Ghana', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (83, 'GI', 'Gibraltar', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (84, 'GR', 'Greece', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (85, 'GL', 'Greenland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (86, 'GD', 'Grenada', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (87, 'GP', 'Guadeloupe', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (88, 'GU', 'Guam', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (89, 'GT', 'Guatemala', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (90, 'GN', 'Guinea', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (91, 'GW', 'Guinea-Bissau', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (92, 'GY', 'Guyana', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (93, 'HT', 'Haiti', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (94, 'HM', 'Heard and Mc Donald Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (95, 'HN', 'Honduras', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (96, 'HK', 'Hong Kong', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (97, 'HU', 'Hungary', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (98, 'IS', 'Iceland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (99, 'IN', 'India', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (100, 'ID', 'Indonesia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (101, 'IR', 'Iran (Islamic Republic of)', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (102, 'IQ', 'Iraq', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (103, 'IE', 'Ireland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (104, 'IL', 'Israel', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (105, 'IT', 'Italy', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (106, 'CI', 'Ivory Coast', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (107, 'JM', 'Jamaica', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (108, 'JP', 'Japan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (109, 'JO', 'Jordan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (110, 'KZ', 'Kazakhstan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (111, 'KE', 'Kenya', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (112, 'KI', 'Kiribati', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (113, 'KP', 'Korea, Democratic Peoples Republic of', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (114, 'KR', 'Korea, Republic of', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (115, 'KW', 'Kuwait', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (116, 'KG', 'Kyrgyzstan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (117, 'LA', 'Lao People Democratic Republic', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (118, 'LV', 'Latvia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (119, 'LB', 'Lebanon', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (120, 'LS', 'Lesotho', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (121, 'LR', 'Liberia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (122, 'LY', 'Libyan Arab Jamahiriya', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (123, 'LI', 'Liechtenstein', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (124, 'LT', 'Lithuania', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (125, 'LU', 'Luxembourg', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (126, 'MO', 'Macau', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (127, 'MK', 'Macedonia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (128, 'MG', 'Madagascar', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (129, 'MW', 'Malawi', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (130, 'MY', 'Malaysia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (131, 'MV', 'Maldives', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (132, 'ML', 'Mali', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (133, 'MT', 'Malta', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (134, 'MH', 'Marshall Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (135, 'MQ', 'Martinique', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (136, 'MR', 'Mauritania', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (137, 'MU', 'Mauritius', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (138, 'TY', 'Mayotte', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (139, 'MX', 'México', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (140, 'FM', 'Micronesia, Federated States of', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (141, 'MD', 'Moldova, Republic of', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (142, 'MC', 'Monaco', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (143, 'MN', 'Mongolia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (144, 'MS', 'Montserrat', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (145, 'MA', 'Morocco', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (146, 'MZ', 'Mozambique', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (147, 'MM', 'Myanmar', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (148, 'NA', 'Namibia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (149, 'NR', 'Nauru', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (150, 'NP', 'Nepal', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (151, 'NL', 'Netherlands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (152, 'AN', 'Netherlands Antilles', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (153, 'NC', 'New Caledonia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (154, 'NZ', 'New Zealand', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (155, 'NI', 'Nicaragua', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (156, 'NE', 'Niger', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (157, 'NG', 'Nigeria', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (158, 'NU', 'Niue', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (159, 'NF', 'Norfork Island', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (160, 'MP', 'Northern Mariana Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (161, 'NO', 'Norway', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (162, 'OM', 'Oman', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (163, 'PK', 'Pakistan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (164, 'PW', 'Palau', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (165, 'PA', 'Panamá', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (166, 'PG', 'Papua New Guinea', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (167, 'PY', 'Paraguay', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (168, 'PE', 'Perú', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (169, 'PH', 'Philippines', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (170, 'PN', 'Pitcairn', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (171, 'PL', 'Poland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (172, 'PT', 'Portugal', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (173, 'PR', 'Puerto Rico', 'en', 2, 0);
INSERT INTO `ai_countries` VALUES (174, 'QA', 'Qatar', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (175, 'RE', 'Reunion', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (176, 'RO', 'Romania', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (177, 'RU', 'Russian Federation', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (178, 'RW', 'Rwanda', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (179, 'KN', 'Saint Kitts and Nevis', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (180, 'LC', 'Saint Lucia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (181, 'VC', 'Saint Vincent and the Grenadines', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (182, 'WS', 'Samoa', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (183, 'SM', 'San Marino', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (184, 'ST', 'Sao Tome and Principe', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (185, 'SA', 'Saudi Arabia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (186, 'SN', 'Senegal', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (187, 'SC', 'Seychelles', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (188, 'SL', 'Sierra Leone', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (189, 'SG', 'Singapore', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (190, 'SK', 'Slovakia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (191, 'SI', 'Slovenia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (192, 'SB', 'Solomon Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (193, 'SO', 'Somalia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (194, 'ZA', 'South Africa', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (195, 'GS', 'South Georgia South Sandwich Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (196, 'ES', 'España', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (197, 'LK', 'Sri Lanka', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (198, 'SH', 'St. Helena', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (199, 'PM', 'St. Pierre and Miquelon', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (200, 'SD', 'Sudan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (201, 'SR', 'Suriname', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (202, 'SJ', 'Svalbarn and Jan Mayen Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (203, 'SZ', 'Swaziland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (204, 'SE', 'Sweden', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (205, 'CH', 'Switzerland', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (206, 'SY', 'Syrian Arab Republic', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (207, 'TW', 'Taiwan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (208, 'TJ', 'Tajikistan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (209, 'TZ', 'Tanzania, United Republic of', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (210, 'TH', 'Thailand', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (211, 'TG', 'Togo', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (212, 'TK', 'Tokelau', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (213, 'TO', 'Tonga', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (214, 'TT', 'Trinidad and Tobago', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (215, 'TN', 'Tunisia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (216, 'TR', 'Turkey', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (217, 'TM', 'Turkmenistan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (218, 'TC', 'Turks and Caicos Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (219, 'TV', 'Tuvalu', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (220, 'UG', 'Uganda', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (221, 'UA', 'Ukraine', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (222, 'AE', 'United Arab Emirates', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (223, 'GB', 'United Kingdom', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (224, 'UM', 'United States minor outlying islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (225, 'UY', 'Uruguay', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (226, 'UZ', 'Uzbekistan', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (227, 'VU', 'Vanuatu', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (228, 'VA', 'Vatican City State', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (229, 'VE', 'Venezuela', 'es', 0, 1);
INSERT INTO `ai_countries` VALUES (230, 'VN', 'Vietnam', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (231, 'VG', 'Virigan Islands (British)', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (232, 'VI', 'Virgin Islands (U.S.)', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (233, 'WF', 'Wallis and Futuna Islands', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (234, 'EH', 'Western Sahara', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (235, 'YE', 'Yemen', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (236, 'YU', 'Yugoslavia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (237, 'ZR', 'Zaire', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (238, 'ZM', 'Zambia', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (239, 'ZW', 'Zimbabwe', 'en', 0, 1);
INSERT INTO `ai_countries` VALUES (240, 'ES', 'España', 'es', 0, 1);
-- ----------------------------
-- Table structure for ai_currency
-- ----------------------------
DROP TABLE IF EXISTS `ai_currency`;
CREATE TABLE `ai_currency` (
`currencyId` int(11) NOT NULL AUTO_INCREMENT,
`currencyCode` varchar(3) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL,
`name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`full_name` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`status` int(1) NOT NULL DEFAULT 0,
PRIMARY KEY (`currencyId`) USING BTREE,
UNIQUE INDEX `currencyCode_index`(`currencyCode`) USING BTREE,
INDEX `currencyId_index`(`currencyId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 169 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_currency
-- ----------------------------
INSERT INTO `ai_currency` VALUES (1, 'DOP', 'DOP', 'Dominican Peso', 1);
INSERT INTO `ai_currency` VALUES (2, 'USD', 'USD', 'United States Dollar', 1);
INSERT INTO `ai_currency` VALUES (3, 'AED', 'AED', 'United Arab Emirates Dirham', 0);
INSERT INTO `ai_currency` VALUES (4, 'AFN', 'AFN', 'Afghan Afghani', 0);
INSERT INTO `ai_currency` VALUES (5, 'ALL', 'ALL', 'Albanian Lek', 0);
INSERT INTO `ai_currency` VALUES (6, 'AMD', 'AMD', 'Armenian Dram', 0);
INSERT INTO `ai_currency` VALUES (7, 'ANG', 'ANG', 'Netherlands Antillean Guilder', 0);
INSERT INTO `ai_currency` VALUES (8, 'AOA', 'AOA', 'Angolan Kwanza', 0);
INSERT INTO `ai_currency` VALUES (9, 'ARS', 'ARS', 'Argentine Peso', 0);
INSERT INTO `ai_currency` VALUES (10, 'AUD', 'AUD', 'Australian Dollar', 0);
INSERT INTO `ai_currency` VALUES (11, 'AWG', 'AWG', 'Aruban Florin', 0);
INSERT INTO `ai_currency` VALUES (12, 'AZN', 'AZN', 'Azerbaijani Manat', 0);
INSERT INTO `ai_currency` VALUES (13, 'BAM', 'BAM', 'Bosnia-Herzegovina Convertible Mark', 0);
INSERT INTO `ai_currency` VALUES (14, 'BBD', 'BBD', 'Barbadian Dollar', 0);
INSERT INTO `ai_currency` VALUES (15, 'BDT', 'BDT', 'Bangladeshi Taka', 0);
INSERT INTO `ai_currency` VALUES (16, 'BGN', 'BGN', 'Bulgarian Lev', 0);
INSERT INTO `ai_currency` VALUES (17, 'BHD', 'BHD', 'Bahraini Dinar', 0);
INSERT INTO `ai_currency` VALUES (18, 'BIF', 'BIF', 'Burundian Franc', 0);
INSERT INTO `ai_currency` VALUES (19, 'BMD', 'BMD', 'Bermudan Dollar', 0);
INSERT INTO `ai_currency` VALUES (20, 'BND', 'BND', 'Brunei Dollar', 0);
INSERT INTO `ai_currency` VALUES (21, 'BOB', 'BOB', 'Bolivian Boliviano', 0);
INSERT INTO `ai_currency` VALUES (22, 'BRL', 'BRL', 'Brazilian Real', 0);
INSERT INTO `ai_currency` VALUES (23, 'BSD', 'BSD', 'Bahamian Dollar', 0);
INSERT INTO `ai_currency` VALUES (24, 'BTC', 'BTC', 'Bitcoin', 0);
INSERT INTO `ai_currency` VALUES (25, 'BTN', 'BTN', 'Bhutanese Ngultrum', 0);
INSERT INTO `ai_currency` VALUES (26, 'BWP', 'BWP', 'Botswanan Pula', 0);
INSERT INTO `ai_currency` VALUES (27, 'BYR', 'BYR', 'Belarusian Ruble', 0);
INSERT INTO `ai_currency` VALUES (28, 'BZD', 'BZD', 'Belize Dollar', 0);
INSERT INTO `ai_currency` VALUES (29, 'CAD', 'CAD', 'Canadian Dollar', 0);
INSERT INTO `ai_currency` VALUES (30, 'CDF', 'CDF', 'Congolese Franc', 0);
INSERT INTO `ai_currency` VALUES (31, 'CHF', 'CHF', 'Swiss Franc', 0);
INSERT INTO `ai_currency` VALUES (32, 'CLF', 'CLF', 'Chilean Unit of Account (UF)', 0);
INSERT INTO `ai_currency` VALUES (33, 'CLP', 'CLP', 'Chilean Peso', 0);
INSERT INTO `ai_currency` VALUES (34, 'CNY', 'CNY', 'Chinese Yuan', 0);
INSERT INTO `ai_currency` VALUES (35, 'COP', 'COP', 'Colombian Peso', 0);
INSERT INTO `ai_currency` VALUES (36, 'CRC', 'CRC', 'Costa Rican Colón', 0);
INSERT INTO `ai_currency` VALUES (37, 'CUP', 'CUP', 'Cuban Peso', 0);
INSERT INTO `ai_currency` VALUES (38, 'CVE', 'CVE', 'Cape Verdean Escudo', 0);
INSERT INTO `ai_currency` VALUES (39, 'CZK', 'CZK', 'Czech Republic Koruna', 0);
INSERT INTO `ai_currency` VALUES (40, 'DJF', 'DJF', 'Djiboutian Franc', 0);
INSERT INTO `ai_currency` VALUES (41, 'DKK', 'DKK', 'Danish Krone', 0);
INSERT INTO `ai_currency` VALUES (42, 'DZD', 'DZD', 'Algerian Dinar', 0);
INSERT INTO `ai_currency` VALUES (43, 'EEK', 'EEK', 'Estonian Kroon', 0);
INSERT INTO `ai_currency` VALUES (44, 'EGP', 'EGP', 'Egyptian Pound', 0);
INSERT INTO `ai_currency` VALUES (45, 'ERN', 'ERN', 'Eritrean Nakfa', 0);
INSERT INTO `ai_currency` VALUES (46, 'ETB', 'ETB', 'Ethiopian Birr', 0);
INSERT INTO `ai_currency` VALUES (47, 'EUR', 'EUR', 'Euro', 0);
INSERT INTO `ai_currency` VALUES (48, 'FJD', 'FJD', 'Fijian Dollar', 0);
INSERT INTO `ai_currency` VALUES (49, 'FKP', 'FKP', 'Falkland Islands Pound', 0);
INSERT INTO `ai_currency` VALUES (50, 'GBP', 'GBP', 'British Pound Sterling', 0);
INSERT INTO `ai_currency` VALUES (51, 'GEL', 'GEL', 'Georgian Lari', 0);
INSERT INTO `ai_currency` VALUES (52, 'GGP', 'GGP', 'Guernsey Pound', 0);
INSERT INTO `ai_currency` VALUES (53, 'GHS', 'GHS', 'Ghanaian Cedi', 0);
INSERT INTO `ai_currency` VALUES (54, 'GIP', 'GIP', 'Gibraltar Pound', 0);
INSERT INTO `ai_currency` VALUES (55, 'GMD', 'GMD', 'Gambian Dalasi', 0);
INSERT INTO `ai_currency` VALUES (56, 'GNF', 'GNF', 'Guinean Franc', 0);
INSERT INTO `ai_currency` VALUES (57, 'GTQ', 'GTQ', 'Guatemalan Quetzal', 0);
INSERT INTO `ai_currency` VALUES (58, 'GYD', 'GYD', 'Guyanaese Dollar', 0);
INSERT INTO `ai_currency` VALUES (59, 'HKD', 'HKD', 'Hong Kong Dollar', 0);
INSERT INTO `ai_currency` VALUES (60, 'HNL', 'HNL', 'Honduran Lempira', 0);
INSERT INTO `ai_currency` VALUES (61, 'HRK', 'HRK', 'Croatian Kuna', 0);
INSERT INTO `ai_currency` VALUES (62, 'HTG', 'HTG', 'Haitian Gourde', 0);
INSERT INTO `ai_currency` VALUES (63, 'HUF', 'HUF', 'Hungarian Forint', 0);
INSERT INTO `ai_currency` VALUES (64, 'IDR', 'IDR', 'Indonesian Rupiah', 0);
INSERT INTO `ai_currency` VALUES (65, 'ILS', 'ILS', 'Israeli New Sheqel', 0);
INSERT INTO `ai_currency` VALUES (66, 'IMP', 'IMP', 'Manx pound', 0);
INSERT INTO `ai_currency` VALUES (67, 'INR', 'INR', 'Indian Rupee', 0);
INSERT INTO `ai_currency` VALUES (68, 'IQD', 'IQD', 'Iraqi Dinar', 0);
INSERT INTO `ai_currency` VALUES (69, 'IRR', 'IRR', 'Iranian Rial', 0);
INSERT INTO `ai_currency` VALUES (70, 'ISK', 'ISK', 'Icelandic Króna', 0);
INSERT INTO `ai_currency` VALUES (71, 'JEP', 'JEP', 'Jersey Pound', 0);
INSERT INTO `ai_currency` VALUES (72, 'JMD', 'JMD', 'Jamaican Dollar', 0);
INSERT INTO `ai_currency` VALUES (73, 'JOD', 'JOD', 'Jordanian Dinar', 0);
INSERT INTO `ai_currency` VALUES (74, 'JPY', 'JPY', 'Japanese Yen', 0);
INSERT INTO `ai_currency` VALUES (75, 'KES', 'KES', 'Kenyan Shilling', 0);
INSERT INTO `ai_currency` VALUES (76, 'KGS', 'KGS', 'Kyrgystani Som', 0);
INSERT INTO `ai_currency` VALUES (77, 'KHR', 'KHR', 'Cambodian Riel', 0);
INSERT INTO `ai_currency` VALUES (78, 'KMF', 'KMF', 'Comorian Franc', 0);
INSERT INTO `ai_currency` VALUES (79, 'KPW', 'KPW', 'North Korean Won', 0);
INSERT INTO `ai_currency` VALUES (80, 'KRW', 'KRW', 'South Korean Won', 0);
INSERT INTO `ai_currency` VALUES (81, 'KWD', 'KWD', 'Kuwaiti Dinar', 0);
INSERT INTO `ai_currency` VALUES (82, 'KYD', 'KYD', 'Cayman Islands Dollar', 0);
INSERT INTO `ai_currency` VALUES (83, 'KZT', 'KZT', 'Kazakhstani Tenge', 0);
INSERT INTO `ai_currency` VALUES (84, 'LAK', 'LAK', 'Laotian Kip', 0);
INSERT INTO `ai_currency` VALUES (85, 'LBP', 'LBP', 'Lebanese Pound', 0);
INSERT INTO `ai_currency` VALUES (86, 'LKR', 'LKR', 'Sri Lankan Rupee', 0);
INSERT INTO `ai_currency` VALUES (87, 'LRD', 'LRD', 'Liberian Dollar', 0);
INSERT INTO `ai_currency` VALUES (88, 'LSL', 'LSL', 'Lesotho Loti', 0);
INSERT INTO `ai_currency` VALUES (89, 'LTL', 'LTL', 'Lithuanian Litas', 0);
INSERT INTO `ai_currency` VALUES (90, 'LVL', 'LVL', 'Latvian Lats', 0);
INSERT INTO `ai_currency` VALUES (91, 'LYD', 'LYD', 'Libyan Dinar', 0);
INSERT INTO `ai_currency` VALUES (92, 'MAD', 'MAD', 'Moroccan Dirham', 0);
INSERT INTO `ai_currency` VALUES (93, 'MDL', 'MDL', 'Moldovan Leu', 0);
INSERT INTO `ai_currency` VALUES (94, 'MGA', 'MGA', 'Malagasy Ariary', 0);
INSERT INTO `ai_currency` VALUES (95, 'MKD', 'MKD', 'Macedonian Denar', 0);
INSERT INTO `ai_currency` VALUES (96, 'MMK', 'MMK', 'Myanma Kyat', 0);
INSERT INTO `ai_currency` VALUES (97, 'MNT', 'MNT', 'Mongolian Tugrik', 0);
INSERT INTO `ai_currency` VALUES (98, 'MOP', 'MOP', 'Macanese Pataca', 0);
INSERT INTO `ai_currency` VALUES (99, 'MRO', 'MRO', 'Mauritanian Ouguiya', 0);
INSERT INTO `ai_currency` VALUES (100, 'MTL', 'MTL', 'Maltese Lira', 0);
INSERT INTO `ai_currency` VALUES (101, 'MUR', 'MUR', 'Mauritian Rupee', 0);
INSERT INTO `ai_currency` VALUES (102, 'MVR', 'MVR', 'Maldivian Rufiyaa', 0);
INSERT INTO `ai_currency` VALUES (103, 'MWK', 'MWK', 'Malawian Kwacha', 0);
INSERT INTO `ai_currency` VALUES (104, 'MXN', 'MXN', 'Mexican Peso', 0);
INSERT INTO `ai_currency` VALUES (105, 'MYR', 'MYR', 'Malaysian Ringgit', 0);
INSERT INTO `ai_currency` VALUES (106, 'MZN', 'MZN', 'Mozambican Metical', 0);
INSERT INTO `ai_currency` VALUES (107, 'NAD', 'NAD', 'Namibian Dollar', 0);
INSERT INTO `ai_currency` VALUES (108, 'NGN', 'NGN', 'Nigerian Naira', 0);
INSERT INTO `ai_currency` VALUES (109, 'NIO', 'NIO', 'Nicaraguan Córdoba', 0);
INSERT INTO `ai_currency` VALUES (110, 'NOK', 'NOK', 'Norwegian Krone', 0);
INSERT INTO `ai_currency` VALUES (111, 'NPR', 'NPR', 'Nepalese Rupee', 0);
INSERT INTO `ai_currency` VALUES (112, 'NZD', 'NZD', 'New Zealand Dollar', 0);
INSERT INTO `ai_currency` VALUES (113, 'OMR', 'OMR', 'Omani Rial', 0);
INSERT INTO `ai_currency` VALUES (114, 'PAB', 'PAB', 'Panamanian Balboa', 0);
INSERT INTO `ai_currency` VALUES (115, 'PEN', 'PEN', 'Peruvian Nuevo Sol', 0);
INSERT INTO `ai_currency` VALUES (116, 'PGK', 'PGK', 'Papua New Guinean Kina', 0);
INSERT INTO `ai_currency` VALUES (117, 'PHP', 'PHP', 'Philippine Peso', 0);
INSERT INTO `ai_currency` VALUES (118, 'PKR', 'PKR', 'Pakistani Rupee', 0);
INSERT INTO `ai_currency` VALUES (119, 'PLN', 'PLN', 'Polish Zloty', 0);
INSERT INTO `ai_currency` VALUES (120, 'PYG', 'PYG', 'Paraguayan Guarani', 0);
INSERT INTO `ai_currency` VALUES (121, 'QAR', 'QAR', 'Qatari Rial', 0);
INSERT INTO `ai_currency` VALUES (122, 'RON', 'RON', 'Romanian Leu', 0);
INSERT INTO `ai_currency` VALUES (123, 'RSD', 'RSD', 'Serbian Dinar', 0);
INSERT INTO `ai_currency` VALUES (124, 'RUB', 'RUB', 'Russian Ruble', 0);
INSERT INTO `ai_currency` VALUES (125, 'RWF', 'RWF', 'Rwandan Franc', 0);
INSERT INTO `ai_currency` VALUES (126, 'SAR', 'SAR', 'Saudi Riyal', 0);
INSERT INTO `ai_currency` VALUES (127, 'SBD', 'SBD', 'Solomon Islands Dollar', 0);
INSERT INTO `ai_currency` VALUES (128, 'SCR', 'SCR', 'Seychellois Rupee', 0);
INSERT INTO `ai_currency` VALUES (129, 'SDG', 'SDG', 'Sudanese Pound', 0);
INSERT INTO `ai_currency` VALUES (130, 'SEK', 'SEK', 'Swedish Krona', 0);
INSERT INTO `ai_currency` VALUES (131, 'SGD', 'SGD', 'Singapore Dollar', 0);
INSERT INTO `ai_currency` VALUES (132, 'SHP', 'SHP', 'Saint Helena Pound', 0);
INSERT INTO `ai_currency` VALUES (133, 'SLL', 'SLL', 'Sierra Leonean Leone', 0);
INSERT INTO `ai_currency` VALUES (134, 'SOS', 'SOS', 'Somali Shilling', 0);
INSERT INTO `ai_currency` VALUES (135, 'SRD', 'SRD', 'Surinamese Dollar', 0);
INSERT INTO `ai_currency` VALUES (136, 'STD', 'STD', 'São Tomé and Príncipe Dobra', 0);
INSERT INTO `ai_currency` VALUES (137, 'SVC', 'SVC', 'Salvadoran Colón', 0);
INSERT INTO `ai_currency` VALUES (138, 'SYP', 'SYP', 'Syrian Pound', 0);
INSERT INTO `ai_currency` VALUES (139, 'SZL', 'SZL', 'Swazi Lilangeni', 0);
INSERT INTO `ai_currency` VALUES (140, 'THB', 'THB', 'Thai Baht', 0);
INSERT INTO `ai_currency` VALUES (141, 'TJS', 'TJS', 'Tajikistani Somoni', 0);
INSERT INTO `ai_currency` VALUES (142, 'TMT', 'TMT', 'Turkmenistani Manat', 0);
INSERT INTO `ai_currency` VALUES (143, 'TND', 'TND', 'Tunisian Dinar', 0);
INSERT INTO `ai_currency` VALUES (144, 'TOP', 'TOP', 'Tongan Pa?anga', 0);
INSERT INTO `ai_currency` VALUES (145, 'TRY', 'TRY', 'Turkish Lira', 0);
INSERT INTO `ai_currency` VALUES (146, 'TTD', 'TTD', 'Trinidad and Tobago Dollar', 0);
INSERT INTO `ai_currency` VALUES (147, 'TWD', 'TWD', 'New Taiwan Dollar', 0);
INSERT INTO `ai_currency` VALUES (148, 'TZS', 'TZS', 'Tanzanian Shilling', 0);
INSERT INTO `ai_currency` VALUES (149, 'UAH', 'UAH', 'Ukrainian Hryvnia', 0);
INSERT INTO `ai_currency` VALUES (150, 'UGX', 'UGX', 'Ugandan Shilling', 0);
INSERT INTO `ai_currency` VALUES (151, 'UYU', 'UYU', 'Uruguayan Peso', 0);
INSERT INTO `ai_currency` VALUES (152, 'UZS', 'UZS', 'Uzbekistan Som', 0);
INSERT INTO `ai_currency` VALUES (153, 'VEF', 'VEF', 'Venezuelan Bolívar Fuerte', 0);
INSERT INTO `ai_currency` VALUES (154, 'VND', 'VND', 'Vietnamese Dong', 0);
INSERT INTO `ai_currency` VALUES (155, 'VUV', 'VUV', 'Vanuatu Vatu', 0);
INSERT INTO `ai_currency` VALUES (156, 'WST', 'WST', 'Samoan Tala', 0);
INSERT INTO `ai_currency` VALUES (157, 'XAF', 'XAF', 'CFA Franc BEAC', 0);
INSERT INTO `ai_currency` VALUES (158, 'XAG', 'XAG', 'Silver (troy ounce)', 0);
INSERT INTO `ai_currency` VALUES (159, 'XAU', 'XAU', 'Gold (troy ounce)', 0);
INSERT INTO `ai_currency` VALUES (160, 'XCD', 'XCD', 'East Caribbean Dollar', 0);
INSERT INTO `ai_currency` VALUES (161, 'XDR', 'XDR', 'Special Drawing Rights', 0);
INSERT INTO `ai_currency` VALUES (162, 'XOF', 'XOF', 'CFA Franc BCEAO', 0);
INSERT INTO `ai_currency` VALUES (163, 'XPF', 'XPF', 'CFP Franc', 0);
INSERT INTO `ai_currency` VALUES (164, 'YER', 'YER', 'Yemeni Rial', 0);
INSERT INTO `ai_currency` VALUES (165, 'ZAR', 'ZAR', 'South African Rand', 0);
INSERT INTO `ai_currency` VALUES (166, 'ZMK', 'ZMK', 'Zambian Kwacha (pre-2013)', 0);
INSERT INTO `ai_currency` VALUES (167, 'ZMW', 'ZMW', 'Zambian Kwacha', 0);
INSERT INTO `ai_currency` VALUES (168, 'ZWL', 'ZWL', 'Zimbabwean Dollar', 0);
-- ----------------------------
-- Table structure for ai_diseases
-- ----------------------------
DROP TABLE IF EXISTS `ai_diseases`;
CREATE TABLE `ai_diseases` (
`diseaseId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`typeId` int(11) NULL DEFAULT 0,
`title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`need_value` int(1) NULL DEFAULT 0,
PRIMARY KEY (`diseaseId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 163 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_diseases
-- ----------------------------
INSERT INTO `ai_diseases` VALUES (1, 1, 'Alimentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (2, 1, 'Medicamentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (3, 1, 'Picaduras de insectos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (4, 1, 'Otros', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (5, 1, 'Medicamento de control diario (prevención).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (6, 1, 'Medicamento según necesidad (rescate).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (7, 1, 'Debido a malestar gastrointestinal (digestivo).', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (8, 1, 'Por preferencias religiosas o de otra índole.', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (9, 1, 'Anteojos', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (10, 1, 'Lentes de contacto', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (11, 1, 'Irreversibles', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (12, 1, 'Otros', 4, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (13, 1, 'Audífonos', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (14, 1, 'Irreversibles', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (15, 1, 'Otros', 5, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (16, 1, 'TDAH', 6, 'Trastorno por Déficit de Atención con Hiperactividad', 0, 0);
INSERT INTO `ai_diseases` VALUES (17, 1, 'Autismo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (18, 1, 'Parálisis cerebral', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (19, 1, 'Retraso en el desarrollo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (20, 1, 'Hemofilia', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (21, 1, 'Cardiopatía congénita', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (22, 1, 'Fibrosis quística', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (23, 1, 'Trastornos nutricionales', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (24, 1, 'Discapacidad física', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (25, 1, 'Cáncer', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (26, 1, 'Infección crónica', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (27, 1, 'Depresión', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (28, 1, 'Alimentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (29, 1, 'Medicamentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (30, 1, 'Picaduras de insectos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (31, 1, 'Otros', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (32, 1, 'Medicamento de control diario (prevención).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (33, 1, 'Medicamento según necesidad (rescate).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (34, 1, 'Debido a malestar gastrointestinal (digestivo).', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (35, 1, 'Por preferencias religiosas o de otra índole.', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (36, 1, 'Anteojos', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (37, 1, 'Lentes de contacto', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (38, 1, 'Irreversibles', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (39, 1, 'Otros', 4, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (40, 1, 'Audífonos', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (41, 1, 'Irreversibles', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (42, 1, 'Otros', 5, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (43, 1, 'TDAH', 6, 'Trastorno por Déficit de Atención con Hiperactividad', 0, 0);
INSERT INTO `ai_diseases` VALUES (44, 1, 'Autismo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (45, 1, 'Parálisis cerebral', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (46, 1, 'Retraso en el desarrollo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (47, 1, 'Hemofilia', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (48, 1, 'Cardiopatía congénita', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (49, 1, 'Fibrosis quística', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (50, 1, 'Trastornos nutricionales', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (51, 1, 'Discapacidad física', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (52, 1, 'Cáncer', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (53, 1, 'Infección crónica', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (54, 1, 'Depresión', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (55, 3, 'Alimentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (56, 3, 'Medicamentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (57, 3, 'Picaduras de insectos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (58, 3, 'Otros', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (59, 3, 'Medicamento de control diario (prevención).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (60, 3, 'Medicamento según necesidad (rescate).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (61, 3, 'Debido a malestar gastrointestinal (digestivo).', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (62, 3, 'Por preferencias religiosas o de otra índole.', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (63, 3, 'Anteojos', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (64, 3, 'Lentes de contacto', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (65, 3, 'Irreversibles', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (66, 3, 'Otros', 4, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (67, 3, 'Audífonos', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (68, 3, 'Irreversibles', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (69, 3, 'Otros', 5, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (70, 3, 'TDAH', 6, 'Trastorno por Déficit de Atención con Hiperactividad', 0, 0);
INSERT INTO `ai_diseases` VALUES (71, 3, 'Autismo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (72, 3, 'Parálisis cerebral', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (73, 3, 'Retraso en el desarrollo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (74, 3, 'Hemofilia', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (75, 3, 'Cardiopatía congénita', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (76, 3, 'Fibrosis quística', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (77, 3, 'Trastornos nutricionales', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (78, 3, 'Discapacidad física', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (79, 3, 'Cáncer', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (80, 3, 'Infección crónica', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (81, 3, 'Depresión', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (82, 4, 'Alimentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (83, 4, 'Medicamentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (84, 4, 'Picaduras de insectos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (85, 4, 'Otros', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (86, 4, 'Medicamento de control diario (prevención).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (87, 4, 'Medicamento según necesidad (rescate).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (88, 4, 'Debido a malestar gastrointestinal (digestivo).', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (89, 4, 'Por preferencias religiosas o de otra índole.', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (90, 4, 'Anteojos', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (91, 4, 'Lentes de contacto', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (92, 4, 'Irreversibles', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (93, 4, 'Otros', 4, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (94, 4, 'Audífonos', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (95, 4, 'Irreversibles', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (96, 4, 'Otros', 5, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (97, 4, 'TDAH', 6, 'Trastorno por Déficit de Atención con Hiperactividad', 0, 0);
INSERT INTO `ai_diseases` VALUES (98, 4, 'Autismo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (99, 4, 'Parálisis cerebral', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (100, 4, 'Retraso en el desarrollo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (101, 4, 'Hemofilia', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (102, 4, 'Cardiopatía congénita', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (103, 4, 'Fibrosis quística', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (104, 4, 'Trastornos nutricionales', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (105, 4, 'Discapacidad física', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (106, 4, 'Cáncer', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (107, 4, 'Infección crónica', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (108, 4, 'Depresión', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (109, 5, 'Alimentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (110, 5, 'Medicamentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (111, 5, 'Picaduras de insectos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (112, 5, 'Otros', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (113, 5, 'Medicamento de control diario (prevención).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (114, 5, 'Medicamento según necesidad (rescate).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (115, 5, 'Debido a malestar gastrointestinal (digestivo).', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (116, 5, 'Por preferencias religiosas o de otra índole.', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (117, 5, 'Anteojos', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (118, 5, 'Lentes de contacto', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (119, 5, 'Irreversibles', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (120, 5, 'Otros', 4, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (121, 5, 'Audífonos', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (122, 5, 'Irreversibles', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (123, 5, 'Otros', 5, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (124, 5, 'TDAH', 6, 'Trastorno por Déficit de Atención con Hiperactividad', 0, 0);
INSERT INTO `ai_diseases` VALUES (125, 5, 'Autismo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (126, 5, 'Parálisis cerebral', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (127, 5, 'Retraso en el desarrollo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (128, 5, 'Hemofilia', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (129, 5, 'Cardiopatía congénita', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (130, 5, 'Fibrosis quística', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (131, 5, 'Trastornos nutricionales', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (132, 5, 'Discapacidad física', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (133, 5, 'Cáncer', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (134, 5, 'Infección crónica', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (135, 5, 'Depresión', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (136, 6, 'Alimentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (137, 6, 'Medicamentos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (138, 6, 'Picaduras de insectos', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (139, 6, 'Otros', 1, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (140, 6, 'Medicamento de control diario (prevención).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (141, 6, 'Medicamento según necesidad (rescate).', 2, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (142, 6, 'Debido a malestar gastrointestinal (digestivo).', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (143, 6, 'Por preferencias religiosas o de otra índole.', 3, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (144, 6, 'Anteojos', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (145, 6, 'Lentes de contacto', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (146, 6, 'Irreversibles', 4, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (147, 6, 'Otros', 4, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (148, 6, 'Audífonos', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (149, 6, 'Irreversibles', 5, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (150, 6, 'Otros', 5, '', 0, 1);
INSERT INTO `ai_diseases` VALUES (151, 6, 'TDAH', 6, 'Trastorno por Déficit de Atención con Hiperactividad', 0, 0);
INSERT INTO `ai_diseases` VALUES (152, 6, 'Autismo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (153, 6, 'Parálisis cerebral', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (154, 6, 'Retraso en el desarrollo', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (155, 6, 'Hemofilia', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (156, 6, 'Cardiopatía congénita', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (157, 6, 'Fibrosis quística', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (158, 6, 'Trastornos nutricionales', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (159, 6, 'Discapacidad física', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (160, 6, 'Cáncer', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (161, 6, 'Infección crónica', 6, '', 0, 0);
INSERT INTO `ai_diseases` VALUES (162, 6, 'Depresión', 6, '', 0, 0);
-- ----------------------------
-- Table structure for ai_diseases_types
-- ----------------------------
DROP TABLE IF EXISTS `ai_diseases_types`;
CREATE TABLE `ai_diseases_types` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_diseases_types
-- ----------------------------
INSERT INTO `ai_diseases_types` VALUES (1, 'Alergias', 0);
INSERT INTO `ai_diseases_types` VALUES (2, 'Asma', 0);
INSERT INTO `ai_diseases_types` VALUES (3, 'Restricciones de alimentos', 0);
INSERT INTO `ai_diseases_types` VALUES (4, 'Afecciones de la vista', 0);
INSERT INTO `ai_diseases_types` VALUES (5, 'Afecciones auditivas', 0);
INSERT INTO `ai_diseases_types` VALUES (6, 'Otras afecciones de salud', 0);
-- ----------------------------
-- Table structure for ai_docs
-- ----------------------------
DROP TABLE IF EXISTS `ai_docs`;
CREATE TABLE `ai_docs` (
`docId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NOT NULL DEFAULT 0,
`userId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`file_path` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`file_type` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`file_size` decimal(10, 0) NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`moduleId` int(11) NOT NULL DEFAULT 0,
`documentId` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`docId`) USING BTREE,
UNIQUE INDEX `docId`(`docId`) USING BTREE,
INDEX `companyId_index`(`schoolId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 22100 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for ai_employees
-- ----------------------------
DROP TABLE IF EXISTS `ai_employees`;
CREATE TABLE `ai_employees` (
`employeeId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`doc_typeId` int(11) NULL DEFAULT 0,
`document` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`statusId` int(11) NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`cellphone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` date NULL DEFAULT NULL,
`positionId` int(11) NULL DEFAULT 0,
`position_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`birthday` datetime(0) NULL DEFAULT NULL,
PRIMARY KEY (`employeeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_employees
-- ----------------------------
INSERT INTO `ai_employees` VALUES (1, 3, '<NAME>', 'EL DOS', 1, '200-0000000-2', 1, '<EMAIL>', '(140) 000-0000', '(780) 000-0000', '', '2021-12-04', 0, NULL, 0, NULL);
INSERT INTO `ai_employees` VALUES (2, 3, 'Empleado', 'DOS', 1, '390-0000000-0', 1, '<EMAIL>', '(120) 000-0000', '(130) 000-0000', '', '2021-12-04', 20, '', 0, NULL);
-- ----------------------------
-- Table structure for ai_events_recipients
-- ----------------------------
DROP TABLE IF EXISTS `ai_events_recipients`;
CREATE TABLE `ai_events_recipients` (
`recipientId` int(11) NOT NULL,
`typeId` int(11) NULL DEFAULT NULL,
`eventId` int(11) NULL DEFAULT NULL,
`active` tinyint(255) NULL DEFAULT NULL,
`all` tinyint(255) NULL DEFAULT NULL,
`recipients` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`recipientId`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for ai_expenses
-- ----------------------------
DROP TABLE IF EXISTS `ai_expenses`;
CREATE TABLE `ai_expenses` (
`expenseId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`userId` int(11) NULL DEFAULT 0,
`statusId` int(11) NULL DEFAULT 0,
`date` date NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`studentId` int(11) NULL DEFAULT 0,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`amount` decimal(11, 2) NULL DEFAULT NULL,
`balance` decimal(11, 2) NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`docId` int(11) NULL DEFAULT NULL,
`number` int(11) NULL DEFAULT 0,
PRIMARY KEY (`expenseId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_expenses
-- ----------------------------
INSERT INTO `ai_expenses` VALUES (1, 1, 0, 1, NULL, '2020-04-25 02:55:07', 0, NULL, NULL, NULL, 1, NULL, 0);
INSERT INTO `ai_expenses` VALUES (2, 3, 0, 1, NULL, '2021-12-04 20:45:32', 0, NULL, NULL, NULL, 1, NULL, 0);
INSERT INTO `ai_expenses` VALUES (3, 3, 0, 1, NULL, '2021-12-04 20:47:03', 0, NULL, NULL, NULL, 1, NULL, 0);
-- ----------------------------
-- Table structure for ai_expenses_status
-- ----------------------------
DROP TABLE IF EXISTS `ai_expenses_status`;
CREATE TABLE `ai_expenses_status` (
`statusId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`statusId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_expenses_status
-- ----------------------------
INSERT INTO `ai_expenses_status` VALUES (1, 'Borrador', 'default', 0);
INSERT INTO `ai_expenses_status` VALUES (2, 'No Pagada', 'danger', 0);
INSERT INTO `ai_expenses_status` VALUES (3, 'Parcial', 'warning', 0);
INSERT INTO `ai_expenses_status` VALUES (4, 'Pagada', 'primary', 0);
INSERT INTO `ai_expenses_status` VALUES (5, 'Anulada', 'inverse', 0);
-- ----------------------------
-- Table structure for ai_expenses_types
-- ----------------------------
DROP TABLE IF EXISTS `ai_expenses_types`;
CREATE TABLE `ai_expenses_types` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 97 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_expenses_types
-- ----------------------------
INSERT INTO `ai_expenses_types` VALUES (1, 1, 'Alquiler', 0);
INSERT INTO `ai_expenses_types` VALUES (2, 1, 'Mantenimiento', 0);
INSERT INTO `ai_expenses_types` VALUES (3, 1, 'Seguros', 0);
INSERT INTO `ai_expenses_types` VALUES (4, 1, 'Tarjeta de crédito', 0);
INSERT INTO `ai_expenses_types` VALUES (5, 1, 'Prestamos', 0);
INSERT INTO `ai_expenses_types` VALUES (6, 1, 'Impuestos', 0);
INSERT INTO `ai_expenses_types` VALUES (7, 1, 'Salarios', 0);
INSERT INTO `ai_expenses_types` VALUES (8, 1, 'Cuentas por pagar Proveedores', 0);
INSERT INTO `ai_expenses_types` VALUES (9, 1, 'Transporte', 0);
INSERT INTO `ai_expenses_types` VALUES (10, 1, 'Material Gastable de Oficina', 0);
INSERT INTO `ai_expenses_types` VALUES (11, 1, 'Comunicaciones', 0);
INSERT INTO `ai_expenses_types` VALUES (12, 1, 'Gastos de Viajes', 0);
INSERT INTO `ai_expenses_types` VALUES (13, 1, 'Agua', 0);
INSERT INTO `ai_expenses_types` VALUES (14, 1, 'Energía Eléctrica', 0);
INSERT INTO `ai_expenses_types` VALUES (15, 1, 'Publicidad y Mercadeo', 0);
INSERT INTO `ai_expenses_types` VALUES (16, 1, 'Combustible', 0);
INSERT INTO `ai_expenses_types` VALUES (17, 1, 'Alquiler', 0);
INSERT INTO `ai_expenses_types` VALUES (18, 1, 'Mantenimiento', 0);
INSERT INTO `ai_expenses_types` VALUES (19, 1, 'Seguros', 0);
INSERT INTO `ai_expenses_types` VALUES (20, 1, 'Tarjeta de crédito', 0);
INSERT INTO `ai_expenses_types` VALUES (21, 1, 'Prestamos', 0);
INSERT INTO `ai_expenses_types` VALUES (22, 1, 'Impuestos', 0);
INSERT INTO `ai_expenses_types` VALUES (23, 1, 'Salarios', 0);
INSERT INTO `ai_expenses_types` VALUES (24, 1, 'Cuentas por pagar Proveedores', 0);
INSERT INTO `ai_expenses_types` VALUES (25, 1, 'Transporte', 0);
INSERT INTO `ai_expenses_types` VALUES (26, 1, 'Material Gastable de Oficina', 0);
INSERT INTO `ai_expenses_types` VALUES (27, 1, 'Comunicaciones', 0);
INSERT INTO `ai_expenses_types` VALUES (28, 1, 'Gastos de Viajes', 0);
INSERT INTO `ai_expenses_types` VALUES (29, 1, 'Agua', 0);
INSERT INTO `ai_expenses_types` VALUES (30, 1, 'Energía Eléctrica', 0);
INSERT INTO `ai_expenses_types` VALUES (31, 1, 'Publicidad y Mercadeo', 0);
INSERT INTO `ai_expenses_types` VALUES (32, 1, 'Combustible', 0);
INSERT INTO `ai_expenses_types` VALUES (33, 3, 'Alquiler', 0);
INSERT INTO `ai_expenses_types` VALUES (34, 3, 'Mantenimiento', 0);
INSERT INTO `ai_expenses_types` VALUES (35, 3, 'Seguros', 0);
INSERT INTO `ai_expenses_types` VALUES (36, 3, 'Tarjeta de crédito', 0);
INSERT INTO `ai_expenses_types` VALUES (37, 3, 'Prestamos', 0);
INSERT INTO `ai_expenses_types` VALUES (38, 3, 'Impuestos', 0);
INSERT INTO `ai_expenses_types` VALUES (39, 3, 'Salarios', 0);
INSERT INTO `ai_expenses_types` VALUES (40, 3, 'Cuentas por pagar Proveedores', 0);
INSERT INTO `ai_expenses_types` VALUES (41, 3, 'Transporte', 0);
INSERT INTO `ai_expenses_types` VALUES (42, 3, 'Material Gastable de Oficina', 0);
INSERT INTO `ai_expenses_types` VALUES (43, 3, 'Comunicaciones', 0);
INSERT INTO `ai_expenses_types` VALUES (44, 3, 'Gastos de Viajes', 0);
INSERT INTO `ai_expenses_types` VALUES (45, 3, 'Agua', 0);
INSERT INTO `ai_expenses_types` VALUES (46, 3, 'Energía Eléctrica', 0);
INSERT INTO `ai_expenses_types` VALUES (47, 3, 'Publicidad y Mercadeo', 0);
INSERT INTO `ai_expenses_types` VALUES (48, 3, 'Combustible', 0);
INSERT INTO `ai_expenses_types` VALUES (49, 4, 'Alquiler', 0);
INSERT INTO `ai_expenses_types` VALUES (50, 4, 'Mantenimiento', 0);
INSERT INTO `ai_expenses_types` VALUES (51, 4, 'Seguros', 0);
INSERT INTO `ai_expenses_types` VALUES (52, 4, 'Tarjeta de crédito', 0);
INSERT INTO `ai_expenses_types` VALUES (53, 4, 'Prestamos', 0);
INSERT INTO `ai_expenses_types` VALUES (54, 4, 'Impuestos', 0);
INSERT INTO `ai_expenses_types` VALUES (55, 4, 'Salarios', 0);
INSERT INTO `ai_expenses_types` VALUES (56, 4, 'Cuentas por pagar Proveedores', 0);
INSERT INTO `ai_expenses_types` VALUES (57, 4, 'Transporte', 0);
INSERT INTO `ai_expenses_types` VALUES (58, 4, 'Material Gastable de Oficina', 0);
INSERT INTO `ai_expenses_types` VALUES (59, 4, 'Comunicaciones', 0);
INSERT INTO `ai_expenses_types` VALUES (60, 4, 'Gastos de Viajes', 0);
INSERT INTO `ai_expenses_types` VALUES (61, 4, 'Agua', 0);
INSERT INTO `ai_expenses_types` VALUES (62, 4, 'Energía Eléctrica', 0);
INSERT INTO `ai_expenses_types` VALUES (63, 4, 'Publicidad y Mercadeo', 0);
INSERT INTO `ai_expenses_types` VALUES (64, 4, 'Combustible', 0);
INSERT INTO `ai_expenses_types` VALUES (65, 5, 'Alquiler', 0);
INSERT INTO `ai_expenses_types` VALUES (66, 5, 'Mantenimiento', 0);
INSERT INTO `ai_expenses_types` VALUES (67, 5, 'Seguros', 0);
INSERT INTO `ai_expenses_types` VALUES (68, 5, 'Tarjeta de crédito', 0);
INSERT INTO `ai_expenses_types` VALUES (69, 5, 'Prestamos', 0);
INSERT INTO `ai_expenses_types` VALUES (70, 5, 'Impuestos', 0);
INSERT INTO `ai_expenses_types` VALUES (71, 5, 'Salarios', 0);
INSERT INTO `ai_expenses_types` VALUES (72, 5, 'Cuentas por pagar Proveedores', 0);
INSERT INTO `ai_expenses_types` VALUES (73, 5, 'Transporte', 0);
INSERT INTO `ai_expenses_types` VALUES (74, 5, 'Material Gastable de Oficina', 0);
INSERT INTO `ai_expenses_types` VALUES (75, 5, 'Comunicaciones', 0);
INSERT INTO `ai_expenses_types` VALUES (76, 5, 'Gastos de Viajes', 0);
INSERT INTO `ai_expenses_types` VALUES (77, 5, 'Agua', 0);
INSERT INTO `ai_expenses_types` VALUES (78, 5, 'Energía Eléctrica', 0);
INSERT INTO `ai_expenses_types` VALUES (79, 5, 'Publicidad y Mercadeo', 0);
INSERT INTO `ai_expenses_types` VALUES (80, 5, 'Combustible', 0);
INSERT INTO `ai_expenses_types` VALUES (81, 6, 'Alquiler', 0);
INSERT INTO `ai_expenses_types` VALUES (82, 6, 'Mantenimiento', 0);
INSERT INTO `ai_expenses_types` VALUES (83, 6, 'Seguros', 0);
INSERT INTO `ai_expenses_types` VALUES (84, 6, 'Tarjeta de crédito', 0);
INSERT INTO `ai_expenses_types` VALUES (85, 6, 'Prestamos', 0);
INSERT INTO `ai_expenses_types` VALUES (86, 6, 'Impuestos', 0);
INSERT INTO `ai_expenses_types` VALUES (87, 6, 'Salarios', 0);
INSERT INTO `ai_expenses_types` VALUES (88, 6, 'Cuentas por pagar Proveedores', 0);
INSERT INTO `ai_expenses_types` VALUES (89, 6, 'Transporte', 0);
INSERT INTO `ai_expenses_types` VALUES (90, 6, 'Material Gastable de Oficina', 0);
INSERT INTO `ai_expenses_types` VALUES (91, 6, 'Comunicaciones', 0);
INSERT INTO `ai_expenses_types` VALUES (92, 6, 'Gastos de Viajes', 0);
INSERT INTO `ai_expenses_types` VALUES (93, 6, 'Agua', 0);
INSERT INTO `ai_expenses_types` VALUES (94, 6, 'Energía Eléctrica', 0);
INSERT INTO `ai_expenses_types` VALUES (95, 6, 'Publicidad y Mercadeo', 0);
INSERT INTO `ai_expenses_types` VALUES (96, 6, 'Combustible', 0);
-- ----------------------------
-- Table structure for ai_feedback
-- ----------------------------
DROP TABLE IF EXISTS `ai_feedback`;
CREATE TABLE `ai_feedback` (
`feedbackId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`userId` int(11) NULL DEFAULT 0,
`email` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`message` text CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL,
`posted` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`feedbackId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_feedback
-- ----------------------------
INSERT INTO `ai_feedback` VALUES (32, 1, 1, '<EMAIL>', '<NAME>', 'Necesitan agregar mas opciones', 0, 0);
-- ----------------------------
-- Table structure for ai_incomes_types
-- ----------------------------
DROP TABLE IF EXISTS `ai_incomes_types`;
CREATE TABLE `ai_incomes_types` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_incomes_types
-- ----------------------------
INSERT INTO `ai_incomes_types` VALUES (1, 1, 'Pago del año escolar', 0);
INSERT INTO `ai_incomes_types` VALUES (2, 1, 'Guarderia', 0);
INSERT INTO `ai_incomes_types` VALUES (3, 1, 'Alquiler de equipos', 0);
INSERT INTO `ai_incomes_types` VALUES (4, 1, 'Pago del año escolar', 0);
INSERT INTO `ai_incomes_types` VALUES (5, 1, 'Guarderia', 0);
INSERT INTO `ai_incomes_types` VALUES (6, 1, 'Alquiler de equipos', 0);
INSERT INTO `ai_incomes_types` VALUES (7, 3, 'Pago del año escolar', 0);
INSERT INTO `ai_incomes_types` VALUES (8, 3, 'Guarderia', 0);
INSERT INTO `ai_incomes_types` VALUES (9, 3, 'Alquiler de equipos', 0);
INSERT INTO `ai_incomes_types` VALUES (10, 4, 'Pago del año escolar', 0);
INSERT INTO `ai_incomes_types` VALUES (11, 4, 'Guarderia', 0);
INSERT INTO `ai_incomes_types` VALUES (12, 4, 'Alquiler de equipos', 0);
INSERT INTO `ai_incomes_types` VALUES (13, 5, 'Pago del año escolar', 0);
INSERT INTO `ai_incomes_types` VALUES (14, 5, 'Guarderia', 0);
INSERT INTO `ai_incomes_types` VALUES (15, 5, 'Alquiler de equipos', 0);
INSERT INTO `ai_incomes_types` VALUES (16, 6, 'Pago del año escolar', 0);
INSERT INTO `ai_incomes_types` VALUES (17, 6, 'Guarderia', 0);
INSERT INTO `ai_incomes_types` VALUES (18, 6, 'Alquiler de equipos', 0);
-- ----------------------------
-- Table structure for ai_inventory
-- ----------------------------
DROP TABLE IF EXISTS `ai_inventory`;
CREATE TABLE `ai_inventory` (
`inventoryId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`date` date NULL DEFAULT NULL,
`studentId` int(11) NULL DEFAULT 0,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`price` decimal(10, 2) NULL DEFAULT 0.00,
`belongs_to_student` tinyint(1) NULL DEFAULT 0,
`for_sale` tinyint(1) NULL DEFAULT 0,
`product_in_invoice` tinyint(1) NULL DEFAULT NULL,
`income_typeId` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
`typeId` int(11) NULL DEFAULT 0,
`purchase` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`inventoryId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_inventory
-- ----------------------------
INSERT INTO `ai_inventory` VALUES (1, 1, 'Pago del año escolar', NULL, NULL, 0, NULL, '2020-06-11 10:24:43', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (2, 1, 'Guarderia', NULL, NULL, 0, NULL, '2020-06-11 10:24:43', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (3, 1, 'Alquiler de equipos', NULL, NULL, 0, NULL, '2020-06-11 10:24:43', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (4, 1, 'Pago del año escolar', NULL, NULL, 0, NULL, '2020-06-11 10:24:43', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (5, 1, 'Guarderia', NULL, NULL, 0, NULL, '2020-06-11 10:24:43', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (6, 1, 'Alquiler de equipos', NULL, NULL, 0, NULL, '2020-06-11 10:24:43', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (7, 3, 'Pago del año escolar', NULL, NULL, 0, NULL, '2021-12-04 10:26:19', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (8, 3, 'Guarderia', NULL, NULL, 0, NULL, '2021-12-04 10:26:19', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (9, 3, 'Alquiler de equipos', NULL, NULL, 0, NULL, '2021-12-04 10:26:19', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (10, 3, 'Libros', '', '2021-12-04', 10, '', '2021-12-04 15:50:20', 200.00, 1, 1, NULL, 0, 0, 1, 0);
INSERT INTO `ai_inventory` VALUES (11, 3, 'Cuadernos', 'sdddfsd', '2021-12-04', 0, '', '2021-12-04 17:16:54', 500.00, 0, 1, NULL, 0, 0, 1, 0);
INSERT INTO `ai_inventory` VALUES (12, 4, 'Pago del año escolar', NULL, NULL, 0, NULL, '2021-12-05 11:55:29', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (13, 4, 'Guarderia', NULL, NULL, 0, NULL, '2021-12-05 11:55:29', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (14, 4, 'Alquiler de equipos', NULL, NULL, 0, NULL, '2021-12-05 11:55:29', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (15, 1, 'Lapiz', '', '2021-12-05', 0, '', '2021-12-05 21:57:34', 100.00, 0, 1, NULL, 0, 0, 1, 0);
INSERT INTO `ai_inventory` VALUES (16, 5, 'Pago del año escolar', NULL, NULL, 0, NULL, '2021-12-06 19:51:50', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (17, 5, 'Guarderia', NULL, NULL, 0, NULL, '2021-12-06 19:51:50', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (18, 5, 'Alquiler de equipos', NULL, NULL, 0, NULL, '2021-12-06 19:51:50', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (19, 6, 'Pago del año escolar', NULL, NULL, 0, NULL, '2021-12-06 20:21:01', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (20, 6, 'Guarderia', NULL, NULL, 0, NULL, '2021-12-06 20:21:01', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (21, 6, 'Alquiler de equipos', NULL, NULL, 0, NULL, '2021-12-06 20:21:01', 0.00, 0, 1, 1, 0, 0, 2, 0);
INSERT INTO `ai_inventory` VALUES (22, 1, 'Cien años de soledad', '', '2021-12-06', 0, '', '2021-12-06 20:34:32', 10.00, 0, 0, NULL, 0, 0, 1, 0);
-- ----------------------------
-- Table structure for ai_inventory_entries
-- ----------------------------
DROP TABLE IF EXISTS `ai_inventory_entries`;
CREATE TABLE `ai_inventory_entries` (
`entryId` int(11) NOT NULL AUTO_INCREMENT,
`inventoryId` int(11) NULL DEFAULT 0,
`typeId` int(11) NULL DEFAULT 0,
`quantity` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`entryId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_inventory_entries
-- ----------------------------
INSERT INTO `ai_inventory_entries` VALUES (1, 10, 1, 20, 0);
INSERT INTO `ai_inventory_entries` VALUES (2, 10, 6, 12, 0);
INSERT INTO `ai_inventory_entries` VALUES (3, 11, 1, 30, 0);
INSERT INTO `ai_inventory_entries` VALUES (4, 15, 1, 30, 0);
INSERT INTO `ai_inventory_entries` VALUES (5, 22, 1, 1, 0);
-- ----------------------------
-- Table structure for ai_inventory_type
-- ----------------------------
DROP TABLE IF EXISTS `ai_inventory_type`;
CREATE TABLE `ai_inventory_type` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_inventory_type
-- ----------------------------
INSERT INTO `ai_inventory_type` VALUES (1, 'Inventario Inicial');
INSERT INTO `ai_inventory_type` VALUES (2, 'Venta');
INSERT INTO `ai_inventory_type` VALUES (3, 'Compras');
INSERT INTO `ai_inventory_type` VALUES (4, 'Devolución de Venta');
INSERT INTO `ai_inventory_type` VALUES (5, 'Devolución de Compras');
INSERT INTO `ai_inventory_type` VALUES (6, 'Ajuste de inventario');
INSERT INTO `ai_inventory_type` VALUES (7, 'Nota de crédito');
-- ----------------------------
-- Table structure for ai_invoices
-- ----------------------------
DROP TABLE IF EXISTS `ai_invoices`;
CREATE TABLE `ai_invoices` (
`invoiceId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`userId` int(11) NULL DEFAULT 0,
`statusId` int(11) NULL DEFAULT 0,
`creation_date` datetime(0) NULL DEFAULT NULL,
`date` date NULL DEFAULT NULL,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`number` int(11) NULL DEFAULT 0,
`familyId` int(11) NULL DEFAULT 0,
`amount` decimal(11, 2) NULL DEFAULT NULL,
`discount` decimal(11, 2) NULL DEFAULT NULL,
`tax_amount` decimal(11, 2) NULL DEFAULT NULL,
`sub_amount` decimal(11, 2) NULL DEFAULT NULL,
`parentId` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`invoiceId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_invoices
-- ----------------------------
INSERT INTO `ai_invoices` VALUES (1, 1, 0, 1, '2020-05-04 00:11:42', NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (2, 1, 0, 1, '2020-05-04 21:44:10', '2020-05-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (3, 1, 0, 2, '2020-05-17 09:55:44', '2020-05-17', '', 1007, 0, 50401.30, 750.00, 150.00, 0.00, 2, 0);
INSERT INTO `ai_invoices` VALUES (4, 1, 0, 1, '2020-05-18 12:11:37', '2020-05-18', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (5, 1, 0, 1, '2021-12-04 06:33:54', '2021-12-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (6, 3, 0, 1, '2021-12-04 15:51:29', '2021-12-04', 'asasd', 1023, 0, 400.00, 10.00, 20.00, 0.00, 1, 0);
INSERT INTO `ai_invoices` VALUES (7, 3, 0, 1, '2021-12-04 16:14:01', '2021-12-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (8, 3, 0, 1, '2021-12-04 16:24:48', '2021-12-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (9, 3, 0, 1, '2021-12-04 16:51:18', '2021-12-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (10, 3, 0, 4, '2021-12-04 17:09:32', '2021-12-04', 'rfdffdfdfgddgfdfg', 1004, 0, 200.00, 0.00, 0.00, 0.00, 2, 0);
INSERT INTO `ai_invoices` VALUES (11, 3, 0, 1, '2021-12-04 17:10:51', '2021-12-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (12, 3, 0, 3, '2021-12-04 17:17:07', '2021-12-04', 'dsdsfdsfdsf', 1003, 0, 1500.00, 0.00, 0.00, 0.00, 7, 0);
INSERT INTO `ai_invoices` VALUES (13, 3, 0, 1, '2021-12-04 19:47:43', '2021-12-04', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (14, 3, 0, 1, '2021-12-04 23:05:35', '2021-12-04', 'Pureba', 1024, 0, 1001.00, 1.00, 2.00, 0.00, 7, 0);
INSERT INTO `ai_invoices` VALUES (15, 3, 0, 1, '2021-12-05 22:53:13', '2021-12-05', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (16, 6, 0, 1, '2021-12-06 20:25:22', '2021-12-06', NULL, 0, 0, NULL, NULL, NULL, NULL, 0, 1);
INSERT INTO `ai_invoices` VALUES (17, 1, 0, 1, '2021-12-06 20:27:39', '2021-12-06', '', 1008, 0, 100.00, 0.00, 0.00, 0.00, 2, 0);
-- ----------------------------
-- Table structure for ai_invoices_items
-- ----------------------------
DROP TABLE IF EXISTS `ai_invoices_items`;
CREATE TABLE `ai_invoices_items` (
`itemId` int(11) NOT NULL AUTO_INCREMENT,
`invoiceId` int(11) NULL DEFAULT 0,
`typeId` int(11) NULL DEFAULT 0,
`productId` int(11) NULL DEFAULT 0,
`description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL,
`quantity` int(11) NULL DEFAULT 0,
`price` decimal(11, 2) NULL DEFAULT 0.00,
`discount` decimal(11, 2) NULL DEFAULT 0.00,
`tax_amount` decimal(11, 2) NULL DEFAULT 0.00,
`amount` decimal(11, 2) NULL DEFAULT 0.00,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`itemId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_invoices_items
-- ----------------------------
INSERT INTO `ai_invoices_items` VALUES (5, 3, 1, 1, 'asdasdasdadsad', 2, 25500.65, 750.00, 150.00, 50401.30, 0);
INSERT INTO `ai_invoices_items` VALUES (6, 6, 0, 0, '', 1, 0.00, 0.00, 0.00, 0.00, 1);
INSERT INTO `ai_invoices_items` VALUES (7, 0, 0, 9, 'asdasd', 1, 0.00, 0.00, 0.00, 0.00, 0);
INSERT INTO `ai_invoices_items` VALUES (8, 1, 0, 8, 'df', 1, 0.00, 0.00, 0.00, 0.00, 0);
INSERT INTO `ai_invoices_items` VALUES (9, 1, 1, 11, 'sdddfsd', 3, 500.00, 0.00, 0.00, 1500.00, 0);
INSERT INTO `ai_invoices_items` VALUES (10, 1, 0, 8, 'sassas', 1, 0.00, 0.00, 0.00, 0.00, 0);
INSERT INTO `ai_invoices_items` VALUES (11, 0, 1, 10, 'sasddsdd', 1, 200.00, 0.00, 0.00, 200.00, 0);
INSERT INTO `ai_invoices_items` VALUES (12, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (13, 0, 1, 11, 'sdddfsd', 1, 500.00, 0.00, 0.00, 500.00, 0);
INSERT INTO `ai_invoices_items` VALUES (14, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (15, 0, 1, 11, 'sdddfsd', 1, 500.00, 0.00, 0.00, 500.00, 0);
INSERT INTO `ai_invoices_items` VALUES (16, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (17, 0, 1, 11, 'sdddfsd', 1, 500.00, 0.00, 0.00, 500.00, 0);
INSERT INTO `ai_invoices_items` VALUES (18, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (19, 0, 1, 11, 'sdddfsd', 1, 500.00, 0.00, 0.00, 500.00, 0);
INSERT INTO `ai_invoices_items` VALUES (20, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (21, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (22, 6, 1, 0, '', 1, 200.00, 10.00, 20.00, 200.00, 0);
INSERT INTO `ai_invoices_items` VALUES (23, 6, 1, 0, '', 1, 200.00, 0.00, 0.00, 200.00, 1);
INSERT INTO `ai_invoices_items` VALUES (24, 0, 0, 0, NULL, 0, 0.00, 0.00, 0.00, 0.00, 1);
INSERT INTO `ai_invoices_items` VALUES (25, 6, 1, 10, '', 1, 200.00, 0.00, 0.00, 200.00, 0);
INSERT INTO `ai_invoices_items` VALUES (26, 1, 1, 11, 'sdddfsd', 1, 500.00, 0.00, 0.00, 500.00, 0);
INSERT INTO `ai_invoices_items` VALUES (27, 1, 1, 11, 'sdddfsd', 1, 500.00, 1.00, 2.00, 501.00, 0);
INSERT INTO `ai_invoices_items` VALUES (28, 1, 1, 15, '', 1, 100.00, 0.00, 0.00, 100.00, 0);
-- ----------------------------
-- Table structure for ai_invoices_status
-- ----------------------------
DROP TABLE IF EXISTS `ai_invoices_status`;
CREATE TABLE `ai_invoices_status` (
`statusId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`statusId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_invoices_status
-- ----------------------------
INSERT INTO `ai_invoices_status` VALUES (1, 'Borrador', 'default', 0);
INSERT INTO `ai_invoices_status` VALUES (2, 'No Pagada', 'danger', 0);
INSERT INTO `ai_invoices_status` VALUES (3, 'Parcial', 'warning', 0);
INSERT INTO `ai_invoices_status` VALUES (4, 'Pagada', 'primary', 0);
INSERT INTO `ai_invoices_status` VALUES (5, 'Anulada', 'inverse', 0);
-- ----------------------------
-- Table structure for ai_languages
-- ----------------------------
DROP TABLE IF EXISTS `ai_languages`;
CREATE TABLE `ai_languages` (
`languageId` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` char(49) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
`code` char(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL,
PRIMARY KEY (`languageId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_bin ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_languages
-- ----------------------------
INSERT INTO `ai_languages` VALUES (1, 'Inglés', 'en');
INSERT INTO `ai_languages` VALUES (2, 'Español', 'es');
-- ----------------------------
-- Table structure for ai_modules
-- ----------------------------
DROP TABLE IF EXISTS `ai_modules`;
CREATE TABLE `ai_modules` (
`moduleId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(150) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
PRIMARY KEY (`moduleId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_modules
-- ----------------------------
INSERT INTO `ai_modules` VALUES (1, 'Dashboard-9');
INSERT INTO `ai_modules` VALUES (2, 'Estudiantes');
INSERT INTO `ai_modules` VALUES (3, 'Docentes');
INSERT INTO `ai_modules` VALUES (4, 'Calendario');
INSERT INTO `ai_modules` VALUES (5, 'Facturas');
INSERT INTO `ai_modules` VALUES (6, 'Recibo de Ingresos');
INSERT INTO `ai_modules` VALUES (7, 'Gastos / Compras');
INSERT INTO `ai_modules` VALUES (8, 'Pagos');
INSERT INTO `ai_modules` VALUES (9, 'Usuarios');
INSERT INTO `ai_modules` VALUES (10, 'Empleados');
INSERT INTO `ai_modules` VALUES (11, 'Inventario');
INSERT INTO `ai_modules` VALUES (12, 'Reportes');
INSERT INTO `ai_modules` VALUES (13, 'Configuración');
INSERT INTO `ai_modules` VALUES (14, 'Padres / Tutores');
-- ----------------------------
-- Table structure for ai_parents
-- ----------------------------
DROP TABLE IF EXISTS `ai_parents`;
CREATE TABLE `ai_parents` (
`parentId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`doc_typeId` int(11) NULL DEFAULT NULL,
`document` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`cellphone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`relationshipId` int(11) NULL DEFAULT NULL,
`studentId` int(11) NULL DEFAULT NULL,
PRIMARY KEY (`parentId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_parents
-- ----------------------------
INSERT INTO `ai_parents` VALUES (1, 1, '<NAME>', '<NAME>', 1, '40200365167', 'edelacru<EMAIL>', '(809) 906-0295', '(809) 906-0295', NULL, 'https://res.cloudinary.com/edelacruz9713/image/upload/v1592748745/parents/Aventuritas/jesus-enmanuel2.jpg', 0, NULL, NULL);
INSERT INTO `ai_parents` VALUES (2, 1, '<NAME>', 'Martinez', 1, '402-0036516-8', '<EMAIL>', '(809) 568-7476', '(809) 568-7476', '2020-06-20 15:25:24', '', 0, NULL, NULL);
INSERT INTO `ai_parents` VALUES (3, 1, '<NAME>', 'Martinez', 1, '001-0861224-3', '<EMAIL>', '(809) 906-0295', '(809) 906-0295', '2020-06-21 10:02:24', NULL, 1, NULL, NULL);
INSERT INTO `ai_parents` VALUES (4, 1, '1', '1', 1, '111-1111111-1', '<EMAIL>', '(111) 111-1111', '(111) 111-1111', '2021-12-02 21:15:36', NULL, 0, NULL, NULL);
INSERT INTO `ai_parents` VALUES (5, 3, '<NAME>', 'Moreno', 1, '000-0000000-0', '<EMAIL>', '(000) 000-0000', '(000) 000-0000', '2021-12-04 10:35:05', '', 0, 1, NULL);
INSERT INTO `ai_parents` VALUES (6, 3, '<NAME>', 'Moreno', 1, '000-0000000-0', '<EMAIL>', '(000) 000-0000', '(000) 000-0000', '2021-12-04 10:35:06', '', 0, 1, NULL);
INSERT INTO `ai_parents` VALUES (7, 3, '<NAME>', 'MOntero', 1, '000000001', '<EMAIL>', '(111) 111-1111', '(111) 111-1111', '2021-12-04 10:44:01', '', 0, 1, NULL);
INSERT INTO `ai_parents` VALUES (8, 3, '<NAME>', 'MOntero', 1, '000000001', '<EMAIL>', '(111) 111-1111', '(111) 111-1111', '2021-12-04 10:44:01', '', 0, 1, NULL);
INSERT INTO `ai_parents` VALUES (9, 3, 'DIory', 'Moreno', 1, '100-0000000-0', '<EMAIL>', '(111) 111-1111', '(111) 111-1111', '2021-12-04 10:47:29', '', 0, 0, NULL);
INSERT INTO `ai_parents` VALUES (10, 3, 'Diory', 'Padre', 1, '200-0000000-0', '<EMAIL>', '(111) 111-1141', '(111) 111-1111', '2021-12-04 10:54:26', '', 0, 0, 10);
INSERT INTO `ai_parents` VALUES (11, 3, 'Tutor #1.1', 'NO lo se', 1, '110-0000000-0', '<EMAIL>', '(809) 020-0000', '(809) 111-1111', '2021-12-04 13:09:20', NULL, 0, NULL, NULL);
INSERT INTO `ai_parents` VALUES (12, 5, 'Padre UNo', 'Estudiante uno', 1, '030-0000000-0', '<EMAIL>', '(120) 000-0000', '(130) 000-0000', '2021-12-06 19:56:29', '', 0, 1, 13);
-- ----------------------------
-- Table structure for ai_parents_childrens
-- ----------------------------
DROP TABLE IF EXISTS `ai_parents_childrens`;
CREATE TABLE `ai_parents_childrens` (
`itemId` int(11) NOT NULL AUTO_INCREMENT,
`parentId` int(11) NULL DEFAULT 0,
`studentId` int(11) NULL DEFAULT NULL,
`relationshipId` int(11) NULL DEFAULT 0,
`in_charge` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`itemId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_parents_childrens
-- ----------------------------
INSERT INTO `ai_parents_childrens` VALUES (1, 1, 5, 1, 1, 0);
INSERT INTO `ai_parents_childrens` VALUES (2, 2, 5, 2, 0, 0);
INSERT INTO `ai_parents_childrens` VALUES (3, 5, 7, 0, 1, 0);
INSERT INTO `ai_parents_childrens` VALUES (4, 6, 7, 0, 1, 0);
INSERT INTO `ai_parents_childrens` VALUES (5, 5, 8, 0, 1, 0);
INSERT INTO `ai_parents_childrens` VALUES (6, 7, 8, 0, 0, 0);
INSERT INTO `ai_parents_childrens` VALUES (7, 8, 8, 0, 0, 0);
INSERT INTO `ai_parents_childrens` VALUES (8, 9, 9, 0, 1, 0);
INSERT INTO `ai_parents_childrens` VALUES (9, 10, 10, 0, 1, 0);
INSERT INTO `ai_parents_childrens` VALUES (10, 12, 13, 0, 1, 0);
-- ----------------------------
-- Table structure for ai_payment_types
-- ----------------------------
DROP TABLE IF EXISTS `ai_payment_types`;
CREATE TABLE `ai_payment_types` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE,
INDEX `index_typeId`(`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 18 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_payment_types
-- ----------------------------
INSERT INTO `ai_payment_types` VALUES (1, 'Cheque', 0);
INSERT INTO `ai_payment_types` VALUES (2, 'Efectivo', 0);
INSERT INTO `ai_payment_types` VALUES (3, 'Déposito', 0);
INSERT INTO `ai_payment_types` VALUES (4, 'Transferencia', 0);
INSERT INTO `ai_payment_types` VALUES (5, 'Tarjeta', 0);
INSERT INTO `ai_payment_types` VALUES (6, 'Paypal', 0);
INSERT INTO `ai_payment_types` VALUES (7, 'Débito automático', 0);
-- ----------------------------
-- Table structure for ai_payments
-- ----------------------------
DROP TABLE IF EXISTS `ai_payments`;
CREATE TABLE `ai_payments` (
`paymentId` int(11) NOT NULL AUTO_INCREMENT,
`hidden` tinyint(1) NULL DEFAULT 0,
`statusId` int(11) NULL DEFAULT 0,
`schoolId` int(11) NULL DEFAULT 0,
`number` int(10) NULL DEFAULT 0,
PRIMARY KEY (`paymentId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for ai_plans
-- ----------------------------
DROP TABLE IF EXISTS `ai_plans`;
CREATE TABLE `ai_plans` (
`planId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`price` decimal(10, 2) NULL DEFAULT NULL,
`user_qty` int(11) NULL DEFAULT 0,
`user_price` decimal(10, 2) NULL DEFAULT NULL,
PRIMARY KEY (`planId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_plans
-- ----------------------------
INSERT INTO `ai_plans` VALUES (1, 'Bronze', 'Basic', 24.00, 3, 8.00);
INSERT INTO `ai_plans` VALUES (2, 'Silver', 'Standard', 36.00, 3, 12.00);
INSERT INTO `ai_plans` VALUES (3, 'Gold', 'Premium', 48.00, 3, 16.00);
-- ----------------------------
-- Table structure for ai_positions
-- ----------------------------
DROP TABLE IF EXISTS `ai_positions`;
CREATE TABLE `ai_positions` (
`positionId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`schoolId` int(11) NULL DEFAULT 0,
PRIMARY KEY (`positionId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 43 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_positions
-- ----------------------------
INSERT INTO `ai_positions` VALUES (1, 'Cocinero(a)', 0, 1);
INSERT INTO `ai_positions` VALUES (2, 'Portero(a)', 0, 1);
INSERT INTO `ai_positions` VALUES (3, 'Secretaria(o)', 0, 1);
INSERT INTO `ai_positions` VALUES (4, 'Chofer', 0, 1);
INSERT INTO `ai_positions` VALUES (5, 'Asistente Administrativo', 0, 1);
INSERT INTO `ai_positions` VALUES (6, 'Docente', 0, 1);
INSERT INTO `ai_positions` VALUES (7, 'Otros', 0, 1);
INSERT INTO `ai_positions` VALUES (8, 'Cocinero(a)', 0, 1);
INSERT INTO `ai_positions` VALUES (9, 'Portero(a)', 0, 1);
INSERT INTO `ai_positions` VALUES (10, 'Secretaria(o)', 0, 1);
INSERT INTO `ai_positions` VALUES (11, 'Chofer', 0, 1);
INSERT INTO `ai_positions` VALUES (12, 'Asistente Administrativo', 0, 1);
INSERT INTO `ai_positions` VALUES (13, 'Docente', 0, 1);
INSERT INTO `ai_positions` VALUES (14, 'Otros', 0, 1);
INSERT INTO `ai_positions` VALUES (15, 'Cocinero(a)', 0, 3);
INSERT INTO `ai_positions` VALUES (16, 'Portero(a)', 0, 3);
INSERT INTO `ai_positions` VALUES (17, 'Secretaria(o)', 0, 3);
INSERT INTO `ai_positions` VALUES (18, 'Chofer', 0, 3);
INSERT INTO `ai_positions` VALUES (19, 'Asistente Administrativo', 0, 3);
INSERT INTO `ai_positions` VALUES (20, 'Docente', 0, 3);
INSERT INTO `ai_positions` VALUES (21, 'Otros', 0, 3);
INSERT INTO `ai_positions` VALUES (22, 'Cocinero(a)', 0, 4);
INSERT INTO `ai_positions` VALUES (23, 'Portero(a)', 0, 4);
INSERT INTO `ai_positions` VALUES (24, 'Secretaria(o)', 0, 4);
INSERT INTO `ai_positions` VALUES (25, 'Chofer', 0, 4);
INSERT INTO `ai_positions` VALUES (26, 'Asistente Administrativo', 0, 4);
INSERT INTO `ai_positions` VALUES (27, 'Docente', 0, 4);
INSERT INTO `ai_positions` VALUES (28, 'Otros', 0, 4);
INSERT INTO `ai_positions` VALUES (29, 'Cocinero(a)', 0, 5);
INSERT INTO `ai_positions` VALUES (30, 'Portero(a)', 0, 5);
INSERT INTO `ai_positions` VALUES (31, 'Secretaria(o)', 0, 5);
INSERT INTO `ai_positions` VALUES (32, 'Chofer', 0, 5);
INSERT INTO `ai_positions` VALUES (33, 'Asistente Administrativo', 0, 5);
INSERT INTO `ai_positions` VALUES (34, 'Docente', 0, 5);
INSERT INTO `ai_positions` VALUES (35, 'Otros', 0, 5);
INSERT INTO `ai_positions` VALUES (36, 'Cocinero(a)', 0, 6);
INSERT INTO `ai_positions` VALUES (37, 'Portero(a)', 0, 6);
INSERT INTO `ai_positions` VALUES (38, 'Secretaria(o)', 0, 6);
INSERT INTO `ai_positions` VALUES (39, 'Chofer', 0, 6);
INSERT INTO `ai_positions` VALUES (40, 'Asistente Administrativo', 0, 6);
INSERT INTO `ai_positions` VALUES (41, 'Docente', 0, 6);
INSERT INTO `ai_positions` VALUES (42, 'Otros', 0, 6);
-- ----------------------------
-- Table structure for ai_product_units_types
-- ----------------------------
DROP TABLE IF EXISTS `ai_product_units_types`;
CREATE TABLE `ai_product_units_types` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`code` varchar(11) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_product_units_types
-- ----------------------------
INSERT INTO `ai_product_units_types` VALUES (1, 'Peso', '01');
INSERT INTO `ai_product_units_types` VALUES (2, 'Longitud', '02');
INSERT INTO `ai_product_units_types` VALUES (3, 'Volumen', '03');
INSERT INTO `ai_product_units_types` VALUES (4, 'Unidad', '04');
INSERT INTO `ai_product_units_types` VALUES (5, 'Tiempo', '05');
-- ----------------------------
-- Table structure for ai_receipt_income
-- ----------------------------
DROP TABLE IF EXISTS `ai_receipt_income`;
CREATE TABLE `ai_receipt_income` (
`receiptId` int(11) NOT NULL AUTO_INCREMENT,
`statusId` int(11) NULL DEFAULT 0,
`number` int(11) NULL DEFAULT 0,
`schoolId` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`receiptId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for ai_relationships
-- ----------------------------
DROP TABLE IF EXISTS `ai_relationships`;
CREATE TABLE `ai_relationships` (
`relationshipId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`relationshipId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_relationships
-- ----------------------------
INSERT INTO `ai_relationships` VALUES (1, 'Padre', 0);
INSERT INTO `ai_relationships` VALUES (2, 'Madre', 0);
INSERT INTO `ai_relationships` VALUES (3, 'Abuelo (a)', 0);
INSERT INTO `ai_relationships` VALUES (4, 'Hermano (a)', 0);
INSERT INTO `ai_relationships` VALUES (5, 'Tío (a)', 0);
INSERT INTO `ai_relationships` VALUES (6, 'Tutor (a)', 0);
INSERT INTO `ai_relationships` VALUES (7, 'Primo (a)', 0);
-- ----------------------------
-- Table structure for ai_schools
-- ----------------------------
DROP TABLE IF EXISTS `ai_schools`;
CREATE TABLE `ai_schools` (
`schoolId` int(11) NOT NULL AUTO_INCREMENT,
`typeId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`domain` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`web` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`countryId` int(11) NULL DEFAULT 0,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`slogan` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`statusId` int(11) NULL DEFAULT 0,
`expiracy_date` date NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`initial_settings` tinyint(1) NULL DEFAULT 0,
`start_school_year` date NULL DEFAULT NULL,
`end_school_year` date NULL DEFAULT NULL,
`planId` int(11) NULL DEFAULT 0,
PRIMARY KEY (`schoolId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_schools
-- ----------------------------
INSERT INTO `ai_schools` VALUES (1, 0, 'Aventuritas', 'aventuritas', '(809) 906-0295', NULL, '<EMAIL>', NULL, '2020-06-11 10:15:49', 1, '', 'Donde tus sueños se hacen realidad', NULL, NULL, 1, '2020-07-11', 0, 1, '2020-01-01', '2020-12-31', 2);
INSERT INTO `ai_schools` VALUES (2, 0, 'La escuelita', 'laescuelita', NULL, NULL, '<EMAIL>', NULL, '2021-12-04 10:23:16', 0, '', NULL, NULL, NULL, 1, '2022-01-03', 0, 0, NULL, NULL, 2);
INSERT INTO `ai_schools` VALUES (3, 1, 'Mi escuela', 'miescuela', '809-741-2614', NULL, '<EMAIL>', NULL, '2021-12-04 10:24:52', 1, '', 'Mi eslogan', NULL, NULL, 1, '2022-01-03', 0, 1, '2021-01-01', '2021-12-31', 2);
INSERT INTO `ai_schools` VALUES (4, 1, 'd', 'd', '', NULL, '<EMAIL>', NULL, '2021-12-05 11:54:35', 1, '', '', NULL, NULL, 1, '2022-01-04', 0, 1, '2021-01-01', '2021-12-31', 2);
INSERT INTO `ai_schools` VALUES (5, 1, 'la escuela1', 'laescuela1', '809-639-0000', NULL, '<EMAIL>', NULL, '2021-12-06 19:50:15', 1, '', 'Mi eslogan', NULL, NULL, 1, '2022-01-05', 0, 1, '2021-01-01', '2021-12-31', 2);
INSERT INTO `ai_schools` VALUES (6, 1, 'mi escuelita', 'miescuelita', '8092201111', NULL, '<EMAIL>', NULL, '2021-12-06 20:20:12', 1, '', 'Mi eslogan', NULL, NULL, 1, '2022-01-05', 0, 1, '2021-01-01', '2021-12-31', 2);
-- ----------------------------
-- Table structure for ai_settings
-- ----------------------------
DROP TABLE IF EXISTS `ai_settings`;
CREATE TABLE `ai_settings` (
`settingId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`currencyId` int(11) NULL DEFAULT NULL,
`language` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`settingId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_settings
-- ----------------------------
INSERT INTO `ai_settings` VALUES (1, 1, 1, 'es', 0);
INSERT INTO `ai_settings` VALUES (2, 2, 1, 'es', 0);
INSERT INTO `ai_settings` VALUES (3, 3, 1, 'es', 0);
INSERT INTO `ai_settings` VALUES (4, 4, 1, 'es', 0);
INSERT INTO `ai_settings` VALUES (5, 5, 1, 'es', 0);
INSERT INTO `ai_settings` VALUES (6, 6, 1, 'es', 0);
-- ----------------------------
-- Table structure for ai_sex
-- ----------------------------
DROP TABLE IF EXISTS `ai_sex`;
CREATE TABLE `ai_sex` (
`sexId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`sexId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_sex
-- ----------------------------
INSERT INTO `ai_sex` VALUES (1, 'Masculino', 0);
INSERT INTO `ai_sex` VALUES (2, 'Femenino', 0);
-- ----------------------------
-- Table structure for ai_specialties
-- ----------------------------
DROP TABLE IF EXISTS `ai_specialties`;
CREATE TABLE `ai_specialties` (
`specialtyId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
`schoolId` int(11) NULL DEFAULT 0,
PRIMARY KEY (`specialtyId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 127 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_specialties
-- ----------------------------
INSERT INTO `ai_specialties` VALUES (1, 'Lengua Española', 0, 1);
INSERT INTO `ai_specialties` VALUES (2, 'Matemáticas', 0, 1);
INSERT INTO `ai_specialties` VALUES (3, 'Ciencias Naturales', 0, 1);
INSERT INTO `ai_specialties` VALUES (4, 'Química', 0, 1);
INSERT INTO `ai_specialties` VALUES (5, 'Física', 0, 1);
INSERT INTO `ai_specialties` VALUES (6, 'Biología', 0, 1);
INSERT INTO `ai_specialties` VALUES (7, 'Ciencias Sociales', 0, 1);
INSERT INTO `ai_specialties` VALUES (8, 'Historia', 0, 1);
INSERT INTO `ai_specialties` VALUES (9, 'Geografía', 0, 1);
INSERT INTO `ai_specialties` VALUES (10, 'Economía', 0, 1);
INSERT INTO `ai_specialties` VALUES (11, 'Antropología', 0, 1);
INSERT INTO `ai_specialties` VALUES (12, 'Demografía', 0, 1);
INSERT INTO `ai_specialties` VALUES (13, 'Álgebra', 0, 1);
INSERT INTO `ai_specialties` VALUES (14, 'Geometría', 0, 1);
INSERT INTO `ai_specialties` VALUES (15, 'Estadística', 0, 1);
INSERT INTO `ai_specialties` VALUES (16, 'Inglés', 0, 1);
INSERT INTO `ai_specialties` VALUES (17, 'Informática', 0, 1);
INSERT INTO `ai_specialties` VALUES (18, 'Artistica', 0, 1);
INSERT INTO `ai_specialties` VALUES (19, 'Educación física', 0, 1);
INSERT INTO `ai_specialties` VALUES (20, 'Formación Integral, Humana y Religiosa', 0, 1);
INSERT INTO `ai_specialties` VALUES (21, 'Francés', 0, 1);
INSERT INTO `ai_specialties` VALUES (22, 'Lengua Española', 0, 1);
INSERT INTO `ai_specialties` VALUES (23, 'Matemáticas', 0, 1);
INSERT INTO `ai_specialties` VALUES (24, 'Ciencias Naturales', 0, 1);
INSERT INTO `ai_specialties` VALUES (25, 'Química', 0, 1);
INSERT INTO `ai_specialties` VALUES (26, 'Física', 0, 1);
INSERT INTO `ai_specialties` VALUES (27, 'Biología', 0, 1);
INSERT INTO `ai_specialties` VALUES (28, 'Ciencias Sociales', 0, 1);
INSERT INTO `ai_specialties` VALUES (29, 'Historia', 0, 1);
INSERT INTO `ai_specialties` VALUES (30, 'Geografía', 0, 1);
INSERT INTO `ai_specialties` VALUES (31, 'Economía', 0, 1);
INSERT INTO `ai_specialties` VALUES (32, 'Antropología', 0, 1);
INSERT INTO `ai_specialties` VALUES (33, 'Demografía', 0, 1);
INSERT INTO `ai_specialties` VALUES (34, 'Álgebra', 0, 1);
INSERT INTO `ai_specialties` VALUES (35, 'Geometría', 0, 1);
INSERT INTO `ai_specialties` VALUES (36, 'Estadística', 0, 1);
INSERT INTO `ai_specialties` VALUES (37, 'Inglés', 0, 1);
INSERT INTO `ai_specialties` VALUES (38, 'Informática', 0, 1);
INSERT INTO `ai_specialties` VALUES (39, 'Artistica', 0, 1);
INSERT INTO `ai_specialties` VALUES (40, 'Educación física', 0, 1);
INSERT INTO `ai_specialties` VALUES (41, 'Formación Integral, Humana y Religiosa', 0, 1);
INSERT INTO `ai_specialties` VALUES (42, 'Francés', 0, 1);
INSERT INTO `ai_specialties` VALUES (43, 'Lengua Española', 0, 3);
INSERT INTO `ai_specialties` VALUES (44, 'Matemáticas', 0, 3);
INSERT INTO `ai_specialties` VALUES (45, 'Ciencias Naturales', 0, 3);
INSERT INTO `ai_specialties` VALUES (46, 'Química', 0, 3);
INSERT INTO `ai_specialties` VALUES (47, 'Física', 0, 3);
INSERT INTO `ai_specialties` VALUES (48, 'Biología', 0, 3);
INSERT INTO `ai_specialties` VALUES (49, 'Ciencias Sociales', 0, 3);
INSERT INTO `ai_specialties` VALUES (50, 'Historia', 0, 3);
INSERT INTO `ai_specialties` VALUES (51, 'Geografía', 0, 3);
INSERT INTO `ai_specialties` VALUES (52, 'Economía', 0, 3);
INSERT INTO `ai_specialties` VALUES (53, 'Antropología', 0, 3);
INSERT INTO `ai_specialties` VALUES (54, 'Demografía', 0, 3);
INSERT INTO `ai_specialties` VALUES (55, 'Álgebra', 0, 3);
INSERT INTO `ai_specialties` VALUES (56, 'Geometría', 0, 3);
INSERT INTO `ai_specialties` VALUES (57, 'Estadística', 0, 3);
INSERT INTO `ai_specialties` VALUES (58, 'Inglés', 0, 3);
INSERT INTO `ai_specialties` VALUES (59, 'Informática', 0, 3);
INSERT INTO `ai_specialties` VALUES (60, 'Artistica', 0, 3);
INSERT INTO `ai_specialties` VALUES (61, 'Educación física', 0, 3);
INSERT INTO `ai_specialties` VALUES (62, 'Formación Integral, Humana y Religiosa', 0, 3);
INSERT INTO `ai_specialties` VALUES (63, 'Francés', 0, 3);
INSERT INTO `ai_specialties` VALUES (64, 'Lengua Española', 0, 4);
INSERT INTO `ai_specialties` VALUES (65, 'Matemáticas', 0, 4);
INSERT INTO `ai_specialties` VALUES (66, 'Ciencias Naturales', 0, 4);
INSERT INTO `ai_specialties` VALUES (67, 'Química', 0, 4);
INSERT INTO `ai_specialties` VALUES (68, 'Física', 0, 4);
INSERT INTO `ai_specialties` VALUES (69, 'Biología', 0, 4);
INSERT INTO `ai_specialties` VALUES (70, 'Ciencias Sociales', 0, 4);
INSERT INTO `ai_specialties` VALUES (71, 'Historia', 0, 4);
INSERT INTO `ai_specialties` VALUES (72, 'Geografía', 0, 4);
INSERT INTO `ai_specialties` VALUES (73, 'Economía', 0, 4);
INSERT INTO `ai_specialties` VALUES (74, 'Antropología', 0, 4);
INSERT INTO `ai_specialties` VALUES (75, 'Demografía', 0, 4);
INSERT INTO `ai_specialties` VALUES (76, 'Álgebra', 0, 4);
INSERT INTO `ai_specialties` VALUES (77, 'Geometría', 0, 4);
INSERT INTO `ai_specialties` VALUES (78, 'Estadística', 0, 4);
INSERT INTO `ai_specialties` VALUES (79, 'Inglés', 0, 4);
INSERT INTO `ai_specialties` VALUES (80, 'Informática', 0, 4);
INSERT INTO `ai_specialties` VALUES (81, 'Artistica', 0, 4);
INSERT INTO `ai_specialties` VALUES (82, 'Educación física', 0, 4);
INSERT INTO `ai_specialties` VALUES (83, 'Formación Integral, Humana y Religiosa', 0, 4);
INSERT INTO `ai_specialties` VALUES (84, 'Francés', 0, 4);
INSERT INTO `ai_specialties` VALUES (85, 'Lengua Española', 0, 5);
INSERT INTO `ai_specialties` VALUES (86, 'Matemáticas', 0, 5);
INSERT INTO `ai_specialties` VALUES (87, 'Ciencias Naturales', 0, 5);
INSERT INTO `ai_specialties` VALUES (88, 'Química', 0, 5);
INSERT INTO `ai_specialties` VALUES (89, 'Física', 0, 5);
INSERT INTO `ai_specialties` VALUES (90, 'Biología', 0, 5);
INSERT INTO `ai_specialties` VALUES (91, 'Ciencias Sociales', 0, 5);
INSERT INTO `ai_specialties` VALUES (92, 'Historia', 0, 5);
INSERT INTO `ai_specialties` VALUES (93, 'Geografía', 0, 5);
INSERT INTO `ai_specialties` VALUES (94, 'Economía', 0, 5);
INSERT INTO `ai_specialties` VALUES (95, 'Antropología', 0, 5);
INSERT INTO `ai_specialties` VALUES (96, 'Demografía', 0, 5);
INSERT INTO `ai_specialties` VALUES (97, 'Álgebra', 0, 5);
INSERT INTO `ai_specialties` VALUES (98, 'Geometría', 0, 5);
INSERT INTO `ai_specialties` VALUES (99, 'Estadística', 0, 5);
INSERT INTO `ai_specialties` VALUES (100, 'Inglés', 0, 5);
INSERT INTO `ai_specialties` VALUES (101, 'Informática', 0, 5);
INSERT INTO `ai_specialties` VALUES (102, 'Artistica', 0, 5);
INSERT INTO `ai_specialties` VALUES (103, 'Educación física', 0, 5);
INSERT INTO `ai_specialties` VALUES (104, 'Formación Integral, Humana y Religiosa', 0, 5);
INSERT INTO `ai_specialties` VALUES (105, 'Francés', 0, 5);
INSERT INTO `ai_specialties` VALUES (106, 'Lengua Española', 0, 6);
INSERT INTO `ai_specialties` VALUES (107, 'Matemáticas', 0, 6);
INSERT INTO `ai_specialties` VALUES (108, 'Ciencias Naturales', 0, 6);
INSERT INTO `ai_specialties` VALUES (109, 'Química', 0, 6);
INSERT INTO `ai_specialties` VALUES (110, 'Física', 0, 6);
INSERT INTO `ai_specialties` VALUES (111, 'Biología', 0, 6);
INSERT INTO `ai_specialties` VALUES (112, 'Ciencias Sociales', 0, 6);
INSERT INTO `ai_specialties` VALUES (113, 'Historia', 0, 6);
INSERT INTO `ai_specialties` VALUES (114, 'Geografía', 0, 6);
INSERT INTO `ai_specialties` VALUES (115, 'Economía', 0, 6);
INSERT INTO `ai_specialties` VALUES (116, 'Antropología', 0, 6);
INSERT INTO `ai_specialties` VALUES (117, 'Demografía', 0, 6);
INSERT INTO `ai_specialties` VALUES (118, 'Álgebra', 0, 6);
INSERT INTO `ai_specialties` VALUES (119, 'Geometría', 0, 6);
INSERT INTO `ai_specialties` VALUES (120, 'Estadística', 0, 6);
INSERT INTO `ai_specialties` VALUES (121, 'Inglés', 0, 6);
INSERT INTO `ai_specialties` VALUES (122, 'Informática', 0, 6);
INSERT INTO `ai_specialties` VALUES (123, 'Artistica', 0, 6);
INSERT INTO `ai_specialties` VALUES (124, 'Educación física', 0, 6);
INSERT INTO `ai_specialties` VALUES (125, 'Formación Integral, Humana y Religiosa', 0, 6);
INSERT INTO `ai_specialties` VALUES (126, 'Francés', 0, 6);
-- ----------------------------
-- Table structure for ai_student_address
-- ----------------------------
DROP TABLE IF EXISTS `ai_student_address`;
CREATE TABLE `ai_student_address` (
`addressId` int(11) NOT NULL AUTO_INCREMENT,
`studentId` int(11) NULL DEFAULT 0,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`main` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`addressId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_student_address
-- ----------------------------
INSERT INTO `ai_student_address` VALUES (1, 7, 'Calle orquidea #7', 'Santo domingo', 'Santo domingo', '2021-12-04 10:30:31', 1, 0);
INSERT INTO `ai_student_address` VALUES (2, 8, 'Calle orquidea #7', 'Santo domingo', 'Santo domingo', '2021-12-04 10:39:15', 1, 0);
INSERT INTO `ai_student_address` VALUES (3, 9, 'ww', 'ww', 'ww', '2021-12-04 10:48:00', 1, 0);
INSERT INTO `ai_student_address` VALUES (4, 10, 'sss', 'sss', 'sss', '2021-12-04 10:53:29', 1, 0);
INSERT INTO `ai_student_address` VALUES (5, 13, 'Calle oeste', 'Santo domingo', 'Santo domingo', '2021-12-06 19:55:32', 1, 0);
-- ----------------------------
-- Table structure for ai_student_diseases
-- ----------------------------
DROP TABLE IF EXISTS `ai_student_diseases`;
CREATE TABLE `ai_student_diseases` (
`diseaseId` int(11) NOT NULL AUTO_INCREMENT,
`studentId` int(11) NOT NULL DEFAULT 0,
`typeId` int(11) NULL DEFAULT 0,
`last_reaction` date NULL DEFAULT NULL,
`last_visit` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`treatment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`active` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`diseaseId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_student_diseases
-- ----------------------------
INSERT INTO `ai_student_diseases` VALUES (1, 10, 1, '2021-12-04', '2021-12-04', '', 1, 0);
INSERT INTO `ai_student_diseases` VALUES (2, 13, 1, '2021-12-06', '2021-12-06', '', 1, 0);
-- ----------------------------
-- Table structure for ai_student_diseases_items
-- ----------------------------
DROP TABLE IF EXISTS `ai_student_diseases_items`;
CREATE TABLE `ai_student_diseases_items` (
`itemId` int(11) NOT NULL AUTO_INCREMENT,
`diseaseId` int(11) NOT NULL DEFAULT 0,
`key` int(11) NULL DEFAULT 0,
`value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`active` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
`key_parent` int(11) NULL DEFAULT 0,
PRIMARY KEY (`itemId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_student_diseases_items
-- ----------------------------
INSERT INTO `ai_student_diseases_items` VALUES (1, 1, 1, 'ssss', 1, 0, 1);
INSERT INTO `ai_student_diseases_items` VALUES (2, 2, 1, 'Pimienta,albaahca', 1, 0, 1);
-- ----------------------------
-- Table structure for ai_students
-- ----------------------------
DROP TABLE IF EXISTS `ai_students`;
CREATE TABLE `ai_students` (
`studentId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`birthday` date NULL DEFAULT NULL,
`years_old` varchar(25) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0',
`sexId` int(11) NULL DEFAULT 0,
`blood_groupId` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`studentId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_students
-- ----------------------------
INSERT INTO `ai_students` VALUES (1, 1, NULL, NULL, '', '2020-06-14 10:35:56', '2020-06-14', '0', 0, 0, 0);
INSERT INTO `ai_students` VALUES (2, 1, NULL, NULL, '', '2020-06-15 21:26:30', '2020-06-15', '0', 0, 0, 0);
INSERT INTO `ai_students` VALUES (3, 1, NULL, NULL, '', '2020-06-20 13:01:43', '2020-06-20', '0', 0, 0, 0);
INSERT INTO `ai_students` VALUES (4, 1, NULL, NULL, '', '2020-06-20 13:14:26', '2020-06-20', '0', 0, 0, 0);
INSERT INTO `ai_students` VALUES (5, 1, NULL, NULL, '', '2020-06-20 13:52:46', '2020-06-20', '0', 0, 0, 0);
INSERT INTO `ai_students` VALUES (6, 1, NULL, NULL, '', '2020-06-30 20:57:58', '2020-06-30', '0', 0, 0, 1);
INSERT INTO `ai_students` VALUES (7, 3, NULL, NULL, '', '2021-12-04 10:29:11', '2021-12-04', '0', 0, 0, 1);
INSERT INTO `ai_students` VALUES (8, 3, NULL, NULL, '', '2021-12-04 10:38:14', '2021-12-04', '0', 0, 0, 1);
INSERT INTO `ai_students` VALUES (9, 3, NULL, NULL, '', '2021-12-04 10:46:12', '2021-12-04', '0', 0, 0, 1);
INSERT INTO `ai_students` VALUES (10, 3, 'estudiante', 'uNO', '', '2021-12-04 10:52:51', '2000-12-02', '21', 0, 1, 0);
INSERT INTO `ai_students` VALUES (11, 3, NULL, NULL, '', '2021-12-04 16:46:54', '2021-12-04', '0', 0, 0, 1);
INSERT INTO `ai_students` VALUES (12, 3, NULL, NULL, '', '2021-12-04 22:49:39', '2021-12-04', '0', 0, 0, 1);
INSERT INTO `ai_students` VALUES (13, 5, 'Estudiante', 'UNo', '', '2021-12-06 19:54:31', '2004-04-22', '17', 1, 1, 0);
INSERT INTO `ai_students` VALUES (14, 6, NULL, NULL, '', '2021-12-06 20:22:46', '2021-12-06', '0', 0, 0, 1);
-- ----------------------------
-- Table structure for ai_teachers
-- ----------------------------
DROP TABLE IF EXISTS `ai_teachers`;
CREATE TABLE `ai_teachers` (
`teacherId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`statusId` int(11) NULL DEFAULT NULL,
`doc_typeId` int(11) NULL DEFAULT 0,
`document` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`cellphone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`birthday` datetime(0) NULL DEFAULT NULL,
`specialtyId` int(11) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`teacherId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_teachers
-- ----------------------------
INSERT INTO `ai_teachers` VALUES (1, 1, NULL, NULL, 1, 0, NULL, '', NULL, NULL, NULL, '2020-07-01 20:05:51', NULL, 0, 1);
INSERT INTO `ai_teachers` VALUES (2, 1, 'UNo', 'UNo', 1, 1, '111-1111111-1', '', '<EMAIL>', '(111) 111-1111', '(111) 111-1111', '2021-12-02 21:08:41', '2021-12-02 00:00:00', 1, 0);
INSERT INTO `ai_teachers` VALUES (3, 1, '1', '1', 1, 1, '111-1111111-2', '', '<EMAIL>', '', '', '2021-12-02 21:16:31', '2021-12-02 00:00:00', 0, 0);
INSERT INTO `ai_teachers` VALUES (4, 1, 'dfg', 'dfg', 1, 1, '111-1111111-3', '', '<EMAIL>', '', '', '2021-12-03 00:12:35', '2021-12-03 00:00:00', 1, 0);
INSERT INTO `ai_teachers` VALUES (5, 3, 'Profesor', '#1', 1, 1, '120-0000000-0', '', '<EMAIL>', '(800) 000-0000', '(900) 000-0000', '2021-12-04 10:56:03', '1990-12-06 00:00:00', 43, 0);
INSERT INTO `ai_teachers` VALUES (6, 3, NULL, NULL, 1, 0, NULL, '', NULL, NULL, NULL, '2021-12-04 11:21:51', NULL, 0, 1);
INSERT INTO `ai_teachers` VALUES (7, 3, NULL, NULL, 1, 0, NULL, '', NULL, NULL, NULL, '2021-12-04 11:23:13', NULL, 0, 1);
INSERT INTO `ai_teachers` VALUES (8, 3, NULL, NULL, 1, 0, NULL, '', NULL, NULL, NULL, '2021-12-04 11:30:43', NULL, 0, 1);
INSERT INTO `ai_teachers` VALUES (9, 3, NULL, NULL, 1, 0, NULL, '', NULL, NULL, NULL, '2021-12-04 11:32:52', NULL, 0, 1);
INSERT INTO `ai_teachers` VALUES (10, 3, NULL, NULL, 1, 0, NULL, '', NULL, NULL, NULL, '2021-12-04 12:53:37', NULL, 0, 1);
INSERT INTO `ai_teachers` VALUES (11, 3, 'Profesor', 'DOs', 1, 1, '130-0000000-0', '', '<EMAIL>', '(810) 000-0000', '(820) 000-0000', '2021-12-04 13:02:52', '1998-10-15 00:00:00', 44, 0);
INSERT INTO `ai_teachers` VALUES (12, 3, 'Profesor', 'Tres', 1, 1, '140-0000000-0', '', '<EMAIL>', '(840) 000-0000', '(850) 000-0000', '2021-12-04 13:06:00', '2021-12-04 00:00:00', 45, 0);
-- ----------------------------
-- Table structure for ai_teachers_address
-- ----------------------------
DROP TABLE IF EXISTS `ai_teachers_address`;
CREATE TABLE `ai_teachers_address` (
`addressId` int(11) NOT NULL AUTO_INCREMENT,
`teacherId` int(11) NULL DEFAULT 0,
`address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`city` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`province` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`main` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`addressId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_teachers_address
-- ----------------------------
INSERT INTO `ai_teachers_address` VALUES (1, 5, '34w', 'ewe', 'weew', '2021-12-04 10:57:09', 1, 0);
INSERT INTO `ai_teachers_address` VALUES (2, 5, '34w', 'ewe', 'weew', '2021-12-04 11:02:24', 1, 0);
INSERT INTO `ai_teachers_address` VALUES (3, 5, '34w', 'ewe', 'weew', '2021-12-04 11:03:55', 1, 0);
INSERT INTO `ai_teachers_address` VALUES (4, 11, 'Hola', 'Hola', 'Ho0la', '2021-12-04 13:03:51', 1, 0);
INSERT INTO `ai_teachers_address` VALUES (5, 12, 'Hola 2', 'Hola 3', 'Hola 4', '2021-12-04 13:08:22', 1, 0);
-- ----------------------------
-- Table structure for ai_type_documents
-- ----------------------------
DROP TABLE IF EXISTS `ai_type_documents`;
CREATE TABLE `ai_type_documents` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_type_documents
-- ----------------------------
INSERT INTO `ai_type_documents` VALUES (1, 'Cédula', NULL, 0);
INSERT INTO `ai_type_documents` VALUES (2, 'Pasaporte', NULL, 0);
INSERT INTO `ai_type_documents` VALUES (3, 'Docente', NULL, 1);
-- ----------------------------
-- Table structure for ai_units
-- ----------------------------
DROP TABLE IF EXISTS `ai_units`;
CREATE TABLE `ai_units` (
`unitId` int(11) NOT NULL AUTO_INCREMENT,
`typeId` int(11) NULL DEFAULT 0,
`name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`abbreviation` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`key` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
PRIMARY KEY (`unitId`) USING BTREE,
INDEX `index_unitId`(`unitId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 35 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_units
-- ----------------------------
INSERT INTO `ai_units` VALUES (1, 1, 'Libras', 'LB', 'db_pounds');
INSERT INTO `ai_units` VALUES (2, 1, 'Onzas', 'ON', 'db_ounces');
INSERT INTO `ai_units` VALUES (3, 1, 'Gramos', 'GM', 'db_grams');
INSERT INTO `ai_units` VALUES (5, 1, 'Kilogramos', 'KG', 'db_kilograms');
INSERT INTO `ai_units` VALUES (6, 1, 'Miligramos', 'MG', 'db_milligrams');
INSERT INTO `ai_units` VALUES (7, 1, 'Quintales', 'QQ', 'db_quintales');
INSERT INTO `ai_units` VALUES (8, 1, 'Toneladas', 'TN', 'db_tons');
INSERT INTO `ai_units` VALUES (9, 2, 'Decímetro', 'DM', 'db_decimeter');
INSERT INTO `ai_units` VALUES (10, 2, 'Milímetro', 'PG', 'db_millimeter');
INSERT INTO `ai_units` VALUES (11, 2, 'Centímetro', 'FT', 'db_centimeter');
INSERT INTO `ai_units` VALUES (12, 2, 'Pulgada', 'MT', 'db_inch');
INSERT INTO `ai_units` VALUES (13, 2, 'Píe', 'YD', 'db_foot');
INSERT INTO `ai_units` VALUES (14, 3, 'Litros', 'L', 'db_liters');
INSERT INTO `ai_units` VALUES (15, 3, 'Onzas', 'OZ', 'db_ounces');
INSERT INTO `ai_units` VALUES (16, 3, 'Galones', 'GAL', 'db_gallons');
INSERT INTO `ai_units` VALUES (17, 3, 'Metros cúbicos', 'MC', 'db_cubic_meters');
INSERT INTO `ai_units` VALUES (18, 3, 'Mililitros', 'ML', 'db_milliliters');
INSERT INTO `ai_units` VALUES (19, 2, 'Metro', 'M', 'db_meter');
INSERT INTO `ai_units` VALUES (20, 2, 'Hectometro', 'HM', 'db_hectometer');
INSERT INTO `ai_units` VALUES (21, 2, 'Decametro', 'DM', 'db_decameter');
INSERT INTO `ai_units` VALUES (22, 2, 'Kilómetro', 'KM', 'db_kilometer');
INSERT INTO `ai_units` VALUES (23, 4, 'Unidad', 'DAM', 'db_unity');
INSERT INTO `ai_units` VALUES (24, 5, 'Hora', 'H', 'db_hour');
INSERT INTO `ai_units` VALUES (25, 5, 'Minutos', 'M', 'db_minutes');
INSERT INTO `ai_units` VALUES (34, 2, 'Yarda', 'Y', 'db_yard');
-- ----------------------------
-- Table structure for ai_users
-- ----------------------------
DROP TABLE IF EXISTS `ai_users`;
CREATE TABLE `ai_users` (
`userId` int(11) NOT NULL AUTO_INCREMENT,
`schoolId` int(11) NULL DEFAULT 0,
`typeId` tinyint(1) NULL DEFAULT 0,
`username` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`first_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`last_name` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`email` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`image` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`creation_date` datetime(0) NULL DEFAULT NULL,
`last_login` datetime(0) NULL DEFAULT NULL,
`hash` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`statusId` tinyint(1) NULL DEFAULT 0,
`phone` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`cellphone` varchar(255) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`owner` tinyint(1) NOT NULL DEFAULT 0,
`is_employee` tinyint(1) NULL DEFAULT 0,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`userId`) USING BTREE,
INDEX `userId_index`(`userId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 8 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_users
-- ----------------------------
INSERT INTO `ai_users` VALUES (1, 1, 1, '<EMAIL>', '25<PASSWORD>ad<PASSWORD>aa<PASSWORD>', 'Diomedes', '<NAME>', '<EMAIL>', '', '2020-06-11 10:15:49', NULL, 'b5c71e50a777629f315503f3eba5c7d18c2f9e2e', 1, '', '', 1, 0, 0);
INSERT INTO `ai_users` VALUES (2, 2, 1, '<EMAIL>', '2<PASSWORD>', 'Diomedes', 'Example', '<EMAIL>', '', '2021-12-04 10:23:16', NULL, NULL, 1, NULL, NULL, 1, 0, 0);
INSERT INTO `ai_users` VALUES (3, 3, 1, '<EMAIL>', '25d55ad283aa400af464c76d713c07ad', 'Diomedes', 'Example', '<EMAIL>', '', '2021-12-04 10:24:52', NULL, NULL, 1, '(809) 220-1111', '(809) 544-5555', 1, 0, 0);
INSERT INTO `ai_users` VALUES (4, 3, 1, 'Diomedes', '25d55ad283aa400af464c76d713c07ad', 'Diomedes 02s', 'EL DOS', '<EMAIL>', '', '2021-12-04 14:11:21', NULL, NULL, 1, '(140) 000-0000', '(780) 000-0000', 0, 1, 0);
INSERT INTO `ai_users` VALUES (5, 4, 1, '<EMAIL>', 'defac44447b57f152d14f30cea7a73cb', 'd', 'd', '<EMAIL>', '', '2021-12-05 11:54:35', NULL, '', 1, NULL, NULL, 1, 0, 0);
INSERT INTO `ai_users` VALUES (6, 5, 1, '<EMAIL>', '25d55ad283aa400af464c76d713c07ad', 'Diomedes', 'Moreno', '<EMAIL>', '', '2021-12-06 19:50:15', NULL, '751ff41e2f9c356ebdd1703ec7d8f6ee7694aefc', 1, NULL, NULL, 1, 0, 0);
INSERT INTO `ai_users` VALUES (7, 6, 1, '<EMAIL>', '25d55ad283aa400af464c76d713c07ad', 'DIomedes', 'Moreno', '<EMAIL>', '', '2021-12-06 20:20:12', NULL, NULL, 1, NULL, NULL, 1, 0, 0);
-- ----------------------------
-- Table structure for ai_users_status
-- ----------------------------
DROP TABLE IF EXISTS `ai_users_status`;
CREATE TABLE `ai_users_status` (
`statusId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`class` varchar(50) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`statusId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_users_status
-- ----------------------------
INSERT INTO `ai_users_status` VALUES (1, 'Activo', 'primary', 0);
INSERT INTO `ai_users_status` VALUES (2, 'Inactivo', 'default', 1);
INSERT INTO `ai_users_status` VALUES (3, 'Bloqueado', 'warning', 0);
-- ----------------------------
-- Table structure for ai_users_type
-- ----------------------------
DROP TABLE IF EXISTS `ai_users_type`;
CREATE TABLE `ai_users_type` (
`typeId` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`description` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`hidden` tinyint(1) NULL DEFAULT 0,
PRIMARY KEY (`typeId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of ai_users_type
-- ----------------------------
INSERT INTO `ai_users_type` VALUES (1, 'Administrador(a)', NULL, 0);
INSERT INTO `ai_users_type` VALUES (2, 'Secretaria(o)', NULL, 0);
INSERT INTO `ai_users_type` VALUES (3, 'Docente', NULL, 0);
-- ----------------------------
-- View structure for ai_employees_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_employees_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_employees_view` AS SELECT
`a`.`employeeId` AS `employeeId`,
concat( `a`.`first_name`, ' ', `a`.`last_name` ) AS `full_name`,
a.schoolId AS schoolId,
a.document AS document,
a.image AS image,
IF(a.positionId = 7, a.position_name, b.name) AS position_name,
a.statusId as statusId,
`a`.`hidden` AS `hidden`
FROM
`ai_employees` AS `a`
LEFT JOIN ai_positions AS b ON a.positionId = b.positionId
WHERE
a.hidden = 0 ;
-- ----------------------------
-- View structure for ai_inventory_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_inventory_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_inventory_view` AS SELECT
`a`.`inventoryId` AS `inventoryId`,
a.name,
a.schoolId AS schoolId,
CONCAT(b.first_name, ' ', b.last_name) AS student_name,
a.image AS image,
a.price AS price,
( SELECT b.quantity FROM ai_inventory_entries AS b WHERE b.inventoryId = a.inventoryId ORDER BY b.entryId DESC LIMIT 1 ) AS quantity,
a.date,
`a`.`hidden` AS `hidden`
FROM
`ai_inventory` AS `a`
LEFT JOIN ai_students AS b ON b.studentId = a.studentId
WHERE
a.hidden = 0 and a.typeId = 1 ;
-- ----------------------------
-- View structure for ai_invoices_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_invoices_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_invoices_view` AS SELECT
a.invoiceId,
a.number,
a.amount as amount_total,
a.schoolId,
a.date,
CONCAT( c.first_name, ' ', c.last_name ) AS parent_name,
c.email,
c.cellphone,
a.statusId,
b.name as status_name,
b.class
FROM
ai_invoices AS a
LEFT JOIN ai_invoices_status as b on a.statusId = b.statusId
LEFT JOIN ai_parents AS c ON a.parentId = c.parentId
WHERE a.hidden = 0 ;
-- ----------------------------
-- View structure for ai_parents_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_parents_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_parents_view` AS SELECT
`a`.`parentId` AS `parentId`,
concat( `a`.`first_name`, ' ', `a`.`last_name` ) AS `full_name`,
a.schoolId AS schoolId,
a.image AS image,
`a`.`hidden` AS `hidden`
FROM
`ai_parents` AS `a`
WHERE
a.hidden = 0 ;
-- ----------------------------
-- View structure for ai_students_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_students_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_students_view` AS SELECT
`a`.`studentId` AS `studentId`,
concat( `a`.`first_name`, ' ', `a`.`last_name` ) AS `full_name`,
a.schoolId AS schoolId,
a.years_old,
a.birthday,
a.image AS image,
`a`.`hidden` AS `hidden`
FROM
`ai_students` AS `a`
WHERE
a.hidden = 0 ;
-- ----------------------------
-- View structure for ai_teachers_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_teachers_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_teachers_view` AS SELECT
`a`.`teacherId` AS `teacherId`,
concat( `a`.`first_name`, ' ', `a`.`last_name` ) AS `full_name`,
a.schoolId AS schoolId,
a.image AS image,
a.statusId as statusId,
`a`.`hidden` AS `hidden`,
b.name AS specialty_name
FROM
`ai_teachers` AS `a`
LEFT JOIN ai_specialties AS b ON b.specialtyId = a.specialtyId
WHERE
a.hidden = 0 ;
-- ----------------------------
-- View structure for ai_users_view
-- ----------------------------
DROP VIEW IF EXISTS `ai_users_view`;
CREATE ALGORITHM = UNDEFINED SQL SECURITY DEFINER VIEW `ai_users_view` AS SELECT
`a`.`userId` AS `userId`,
concat( `a`.`first_name`, ' ', `a`.`last_name` ) AS `full_name`,
`a`.`username` AS `username`,
a.schoolId AS schoolId,
a.image AS image,
a.owner AS owner,
b.name AS type_name,
a.statusId as statusId,
c.name AS status_name,
c.class AS class,
`a`.`hidden` AS `hidden`
FROM
`ai_users` AS `a`
LEFT JOIN ai_users_type AS b ON a.typeId = b.typeId
LEFT JOIN ai_users_status AS c ON a.statusId = c.statusId
WHERE
a.hidden = 0 ;
-- ----------------------------
-- Function structure for get_quantity
-- ----------------------------
DROP FUNCTION IF EXISTS `get_quantity`;
delimiter ;;
CREATE FUNCTION `get_quantity`(`pInventoryId` int)
RETURNS int(11)
BEGIN
DECLARE quantity int(11);
SET quantity = (SELECT IFNULL(a.quantity, 0) AS quantity FROM ai_inventory_entries as a WHERE a.inventoryId = pInventoryId ORDER BY entryId DESC LIMIT 1);
RETURN quantity;
END
;;
delimiter ;
SET FOREIGN_KEY_CHECKS = 1;
|
ALTER TABLE securemessage.secure_message RENAME COLUMN survey TO survey_id;
ALTER TABLE securemessage.secure_message RENAME COLUMN collection_exercise TO exercise_id;
ALTER TABLE securemessage.secure_message RENAME COLUMN collection_case TO case_id; |
-- Function: addtestfield(integer, text, text, integer, boolean, integer, text, text, text, boolean, text, boolean, boolean)
-- DROP FUNCTION addtestfield(integer, text, text, integer, boolean, integer, text, text, text, boolean, text, boolean, boolean);
CREATE OR REPLACE FUNCTION addtestfield(
integer,
text,
text,
integer,
boolean,
integer,
text,
text,
text,
boolean,
text,
boolean,
boolean
)
RETURNS boolean AS
$BODY$
DECLARE
_test_id ALIAS for $1;
_field_name ALIAS FOR $2;
_field_description ALIAS for $3;
_datatype ALIAS FOR $4;
_required ALIAS FOR $5;
_position ALIAS FOR $6;
_min_limit ALIAS FOR $7;
_max_limit ALIAS FOR $8;
_unit_of_measure ALIAS FOR $9;
_result_required ALIAS FOR $10;
_defaultvalue ALIAS for $11;
_comborestricted ALIAS FOR $12;
_readonly ALIAS FOR $13;
_testdef_name text; -- For displaying test name in error message
_testfield_id INTEGER; -- For checking if test field creation was successful
_previous_datatype integer; -- For comparing datatypes between voided and new fields
_fieldAdded boolean := false; -- Test field creation status
begin
/* Check if test ID exists */
if (select exists(select 1 from testdef where testdef_id = _test_id)) is false then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS TEST ID "%" DOES NOT EXIST', _test_id;
end if;
/* Check that the field name isn't blank or null */
if _field_name is null or _field_name = '' then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS THE FIELD NAME IS NULL OR BLANK';
end if;
/* Check that the field description isn't blank or null */
if _field_description is null or _field_description = '' then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS THE FIELD DESCRIPTION IS NULL OR BLANK';
end if;
/* Check if data type exists */
if (select exists (select 1 from datatype where datatype_id = _datatype)) is false then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS DATA TYPE ID "%" DOES NOT EXIST', _datatype;
end if;
/* Check if field name already exists and is part of the same test (prevent from adding the same field name to the same test) */
if (select exists(select 1 from testfield where upper(testfield_name) = upper(_field_name) and testfield_test_id = _test_id)) is true then
/* Get test field ID */
select testfield_id from testfield where upper(testfield_name) = upper(_field_name) and testfield_test_id = _test_id into _testfield_id;
/* Check if existing field has been voided */
if (select testfield_void_timestamp from testfield where testfield_id = _testfield_id) is null then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS FIELD "%" ALREADY EXISTS', _field_name;
else
/* Remove voided field if test id and field id are the same (instead of creating a new one) */
update testfield set testfield_void_timestamp = null where testfield_id = _testfield_id;
/* Check that the fields void was removed successfully */
if (select testfield_void_timestamp from testfield where testfield_id = _testfield_id) is not null then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS UNABLE TO REMOVE TEST FIELD VOID TIMESTAMP OF FIELD ID "%"', _testfield_id;
end if;
/* Update test field after void is removed */
Select updatetestfield (_test_id,
_testfield_id,
_field_name,
_field_description,
_datatype,
_required,
_position,
_min_limit,
_max_limit,
_unit_of_measure,
_result_required,
_defaultvalue,
_comborestricted,
_readonly);
if not FOUND then
raise exception 'addtestfield: ERROR ADDING TEST FIELD AS UPDATE OF FIELD "%" AFTER VOID REMOVED WAS UNSUCCESSFUL', _field_name;
else
_fieldAdded := true;
end if;
end if;
else
/* Get test name from test ID */
select testdef_name from testdef where testdef_id = _test_id into _testdef_name;
/* Add test field data to testfield table */
insert into testfield (testfield_test_id,
testfield_name,
testfield_description,
testfield_datatype_id,
testfield_required,
testfield_position,
testfield_created_timestamp,
testfield_min_limit,
testfield_max_limit,
testfield_uom,
testfield_result_required,
testfield_defaultvalue,
testfield_comborestricted,
testfield_readonly)
values (_test_id,
_field_name,
_field_description,
_datatype,
_required,
_position,
now()::timestamp without time zone,
_min_limit,
_max_limit,
_unit_of_measure,
_result_required,
_defaultvalue,
_comborestricted,
_readonly)
returning testfield_id into _testfield_id;
/* Check if test field was submitted successfully */
if _testfield_id is null then
raise exception 'addtestfield: ERROR SUBMITTING "%" FIELD FOR "%" TEST', _field_name, _testdef_name;
else
_fieldAdded := true; -- Set test field creation status
end if;
end if;
return _fieldAdded; -- Return field creation status
end;
$BODY$
language plpgsql volatile
cost 100;
alter function addtestfield(integer, text, text, integer, boolean, integer, text, text, text, boolean, text, boolean, boolean)
owner to postgres;
COMMENT ON function addtestfield(integer, text, text, integer, boolean, integer, text, text, text, boolean, text, boolean, boolean)
IS '[*New* --mrankin--] Adds a test field to a specified test'; |
<reponame>Josiejosi/hhd
--
-- Dumping data for table `test_table`
--
INSERT INTO `test_table` (`val`) VALUES
(8),
(9);
|
-- file:foreign_key.sql ln:756 expect:true
ALTER TABLE fktable ADD CONSTRAINT fk_2_1
FOREIGN KEY (x2) REFERENCES pktable(id1)
|
<gh_stars>100-1000
DROP KEYSPACE IF EXISTS metromind;
CREATE KEYSPACE metromind WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'} AND durable_writes = true;
CREATE TYPE metromind.coordinate (
x double,
y double,
z double
);
CREATE TYPE metromind.aisle (
id text,
name text,
level text,
coordinate frozen<coordinate>
);
CREATE TYPE metromind.analyticsmodule (
id text,
description text,
source text,
version text
);
CREATE TYPE metromind.bbox (
topleftx double,
toplefty double,
bottomrightx double,
bottomrighty double
);
CREATE TYPE metromind.entrance (
name text,
lane text,
level text,
coordinate frozen<coordinate>
);
CREATE TYPE metromind.event (
id text,
type text,
source text,
email text
);
CREATE TYPE metromind.location (
lat double,
lon double,
alt double
);
CREATE TYPE metromind.vehicle (
type text,
make text,
model text,
color text,
confidence double,
license text,
licensestate text
);
CREATE TYPE metromind.object (
id text,
vehicle frozen<vehicle>,
bbox frozen<bbox>,
signature list<double>,
speed double,
direction double,
orientation double,
location frozen<location>,
coordinate frozen<coordinate>
);
CREATE TYPE metromind.parkingspot (
id text,
type text,
level text,
coordinate frozen<coordinate>
);
CREATE TYPE metromind.place (
id text,
name text,
type text,
location frozen<location>,
entrance frozen<entrance>,
parkingspot frozen<parkingspot>,
aisle frozen<aisle>
);
CREATE TYPE metromind.sensor (
id text,
type text,
location frozen<location>,
description text,
coordinate frozen<coordinate>
);
CREATE TABLE metromind.aisle (
messageid text,
timestamp timestamp,
analyticsmodule frozen<analyticsmodule>,
event frozen<event>,
mdsversion text,
object frozen<object>,
place frozen<place>,
sensor frozen<sensor>,
used int,
videopath text,
PRIMARY KEY (messageid, timestamp)
) WITH CLUSTERING ORDER BY (timestamp DESC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
CREATE TABLE metromind.car_count (
id text PRIMARY KEY,
p1_available counter,
p1_count counter,
p2_available counter,
p2_count counter,
reserved_available counter,
reserved_count counter,
total_available counter,
total_count counter
) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
CREATE TABLE metromind.parkingspotplayback (
garageid text,
level text,
sensortype text,
spotid text,
timestamp timestamp,
analyticsmodule frozen<analyticsmodule>,
event frozen<event>,
mdsversion text,
messageid text,
object frozen<object>,
place frozen<place>,
sensor frozen<sensor>,
used int,
videopath text,
PRIMARY KEY ((garageid, level, sensortype, spotid), timestamp)
) WITH CLUSTERING ORDER BY (timestamp DESC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
CREATE TABLE metromind.parkingspot (
messageid text,
timestamp timestamp,
analyticsmodule frozen<analyticsmodule>,
event frozen<event>,
mdsversion text,
object frozen<object>,
place frozen<place>,
sensor frozen<sensor>,
used int,
videopath text,
PRIMARY KEY (messageid, timestamp)
) WITH CLUSTERING ORDER BY (timestamp DESC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
CREATE TABLE metromind.flowrate (
id text,
timestamp timestamp,
entry int,
exit int,
PRIMARY KEY (id, timestamp)
) WITH CLUSTERING ORDER BY (timestamp DESC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
CREATE TABLE metromind.parkingspotdelta (
garageid text,
level text,
sensortype text,
timestamp timestamp,
analyticsmodule frozen<analyticsmodule>,
event frozen<event>,
mdsversion text,
messageid text,
object frozen<object>,
place frozen<place>,
sensor frozen<sensor>,
spotid text,
used int,
videopath text,
PRIMARY KEY ((garageid, level, sensortype), timestamp, spotid)
) WITH CLUSTERING ORDER BY (timestamp DESC, spotid ASC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
CREATE TABLE metromind.parkingspotstate (
garageid text,
level text,
spotid text,
analyticsmodule frozen<analyticsmodule>,
event frozen<event>,
mdsversion text,
messageid text,
object frozen<object>,
place frozen<place>,
sensor frozen<sensor>,
timestamp timestamp,
used int,
videopath text,
PRIMARY KEY ((garageid, level), spotid)
) WITH CLUSTERING ORDER BY (spotid ASC)
AND bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
UPDATE metromind.car_count SET total_available = total_available + 0, total_count = total_count + 0 WHERE id = 'endeavor';
|
<reponame>uk-gov-mirror/defra.prsd-weee<filename>src/EA.Weee.Database/scripts/Update/Release 1/Sprint09/20150710-1534-AddSchemeProducerTables.sql
GO
PRINT N'Creating [PCS].[Scheme]...';
CREATE TABLE [PCS].[Scheme](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[ApprovalNumber] [nvarchar](50) NULL,
[OrganisationId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_Scheme] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [PCS].[Scheme] WITH CHECK ADD CONSTRAINT [FK_Scheme_Organisation] FOREIGN KEY([OrganisationId])
REFERENCES [Organisation].[Organisation] ([Id])
GO
ALTER TABLE [PCS].[Scheme] CHECK CONSTRAINT [FK_Scheme_Organisation]
GO
GO
PRINT N'Creating [Producer]...';
GO
CREATE SCHEMA [Producer]
AUTHORIZATION [dbo];
GO
PRINT N'Creating [Producer].[Address]...';
GO
CREATE TABLE [Producer].[Address](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[PrimaryName] [nvarchar](100) NOT NULL,
[SecondaryName] [nvarchar](100) NOT NULL,
[Street] [nvarchar](50) NOT NULL,
[Town] [nvarchar](50) NOT NULL,
[Locality] [nvarchar](50) NOT NULL,
[AdministrativeArea] [nvarchar](50) NOT NULL,
[CountryId] [uniqueidentifier] NOT NULL,
[PostCode] [nvarchar](35) NOT NULL,
CONSTRAINT [PK_Address] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Address] WITH CHECK ADD CONSTRAINT [FK_Address_Country] FOREIGN KEY([CountryId])
REFERENCES [Lookup].[Country] ([Id])
GO
ALTER TABLE [Producer].[Address] CHECK CONSTRAINT [FK_Address_Country]
GO
GO
PRINT N'Creating [Producer].[Contact]...';
GO
CREATE TABLE [Producer].[Contact](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[Title] [nvarchar](35) NOT NULL,
[Forename] [nvarchar](35) NOT NULL,
[Surname] [nvarchar](35) NOT NULL,
[Telephone] [nvarchar](35) NOT NULL,
[Mobile] [nvarchar](35) NOT NULL,
[Fax] [nvarchar](35) NOT NULL,
[Email] [nvarchar](35) NOT NULL,
[AddressId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_Contact] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Contact] WITH CHECK ADD CONSTRAINT [FK_Contact_Address] FOREIGN KEY([AddressId])
REFERENCES [Producer].[Address] ([Id])
GO
ALTER TABLE [Producer].[Contact] CHECK CONSTRAINT [FK_Contact_Address]
GO
PRINT N'Creating [Producer].[AuthorisedRepresentative]...';
GO
CREATE TABLE [Producer].[AuthorisedRepresentative](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[OverseasProducerName] [nvarchar](50) NOT NULL,
[OverseasContactId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_AuthorisedRepresentative] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[AuthorisedRepresentative] WITH CHECK ADD CONSTRAINT [FK_AuthorisedRepresentative_OverseasContact] FOREIGN KEY([OverseasContactId])
REFERENCES [Producer].[Contact] ([Id])
GO
ALTER TABLE [Producer].[AuthorisedRepresentative] CHECK CONSTRAINT [FK_AuthorisedRepresentative_OverseasContact]
GO
PRINT N'Creating [Producer].[Company]...';
GO
CREATE TABLE [Producer].[Company](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[Name] [nvarchar](50) NULL,
[CompanyNumber] [nvarchar](8) NOT NULL,
[RegisteredOfficeId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_Company] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Company] WITH CHECK ADD CONSTRAINT [FK_Company_Contact] FOREIGN KEY([RegisteredOfficeId])
REFERENCES [Producer].[Contact] ([Id])
GO
ALTER TABLE [Producer].[Company] CHECK CONSTRAINT [FK_Company_Contact]
GO
PRINT N'Creating [Producer].[Partnership]...';
GO
CREATE TABLE [Producer].[Partnership](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[Name] [nvarchar](255) NOT NULL,
[PrinciplaPlaceOfBusinessId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_Partnership] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Partnership] WITH CHECK ADD CONSTRAINT [FK_Partnership_Contact] FOREIGN KEY([PrinciplaPlaceOfBusinessId])
REFERENCES [Producer].[Contact] ([Id])
GO
ALTER TABLE [Producer].[Partnership] CHECK CONSTRAINT [FK_Partnership_Contact]
GO
PRINT N'Creating [Producer].[Partner]...';
GO
CREATE TABLE [Producer].[Partner](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[Name] [nvarchar](70) NOT NULL,
[PartnershipId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_Partner] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Partner] WITH CHECK ADD CONSTRAINT [FK_Partner_Partnership] FOREIGN KEY([PartnershipId])
REFERENCES [Producer].[Partnership] ([Id])
GO
ALTER TABLE [Producer].[Partner] CHECK CONSTRAINT [FK_Partner_Partnership]
GO
PRINT N'Creating [Producer].[Business]...';
GO
CREATE TABLE [Producer].[Business](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[CorrespondentForNoticesContactId] [uniqueidentifier] NULL,
[CompanyId] [uniqueidentifier] NULL,
[PartnershipId] [uniqueidentifier] NULL,
CONSTRAINT [PK_Business] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Business] WITH CHECK ADD CONSTRAINT [FK_Business_Company] FOREIGN KEY([CompanyId])
REFERENCES [Producer].[Company] ([Id])
GO
ALTER TABLE [Producer].[Business] CHECK CONSTRAINT [FK_Business_Company]
GO
ALTER TABLE [Producer].[Business] WITH CHECK ADD CONSTRAINT [FK_Business_Contact] FOREIGN KEY([CorrespondentForNoticesContactId])
REFERENCES [Producer].[Contact] ([Id])
GO
ALTER TABLE [Producer].[Business] CHECK CONSTRAINT [FK_Business_Contact]
GO
ALTER TABLE [Producer].[Business] WITH CHECK ADD CONSTRAINT [FK_Business_Partnership] FOREIGN KEY([PartnershipId])
REFERENCES [Producer].[Partnership] ([Id])
GO
ALTER TABLE [Producer].[Business] CHECK CONSTRAINT [FK_Business_Partnership]
GO
PRINT N'Creating [Producer].[Producer]...';
GO
CREATE TABLE [Producer].[Producer](
[Id] [uniqueidentifier] NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[RegistrationNumber] [nvarchar](50) NOT NULL,
[VATRegistered] [bit] NOT NULL,
[AnnualTurnover] [float] NOT NULL,
[CeaseToExist] [datetime] NOT NULL,
[ObligationType] [int] NOT NULL,
[EEEPlacedOnMarketBandType] [int] NOT NULL,
[AnnualTurnoverBandType] [int] NOT NULL,
[SellingTechniqueType] [int] NOT NULL,
[ChargeBandType] [int] NOT NULL,
[PCSId] [uniqueidentifier] NOT NULL,
[MemberUploadId] [uniqueidentifier] NOT NULL,
[AuthorisedRepresentativeId] [uniqueidentifier] NOT NULL,
[ProducerBusinessId] [uniqueidentifier] NOT NULL,
[LastSubmitted] [datetime] NOT NULL,
CONSTRAINT [PK_Producer] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[Producer] ADD CONSTRAINT [DF_Producer_AnnualTurnover] DEFAULT ((0)) FOR [AnnualTurnover]
GO
ALTER TABLE [Producer].[Producer] WITH CHECK ADD CONSTRAINT [FK_Producer_AuthorisedRepresentative] FOREIGN KEY([AuthorisedRepresentativeId])
REFERENCES [Producer].[AuthorisedRepresentative] ([Id])
GO
ALTER TABLE [Producer].[Producer] CHECK CONSTRAINT [FK_Producer_AuthorisedRepresentative]
GO
ALTER TABLE [Producer].[Producer] WITH CHECK ADD CONSTRAINT [FK_Producer_Business] FOREIGN KEY([ProducerBusinessId])
REFERENCES [Producer].[Business] ([Id])
GO
ALTER TABLE [Producer].[Producer] CHECK CONSTRAINT [FK_Producer_Business]
GO
ALTER TABLE [Producer].[Producer] WITH CHECK ADD CONSTRAINT [FK_Producer_MemberUpload] FOREIGN KEY([MemberUploadId])
REFERENCES [PCS].[MemberUpload] ([Id])
GO
ALTER TABLE [Producer].[Producer] CHECK CONSTRAINT [FK_Producer_MemberUpload]
GO
ALTER TABLE [Producer].[Producer] WITH CHECK ADD CONSTRAINT [FK_Producer_Scheme] FOREIGN KEY([PCSId])
REFERENCES [PCS].[Scheme] ([Id])
GO
ALTER TABLE [Producer].[Producer] CHECK CONSTRAINT [FK_Producer_Scheme]
GO
GO
PRINT N'Creating [Producer].[BrandName]...';
CREATE TABLE [Producer].[BrandName](
[Id] [uniqueidentifier] NOT NULL,
[BrandName] [nvarchar](255) NOT NULL,
[RowVersion] [timestamp] NOT NULL,
[ProducerId] [uniqueidentifier] NOT NULL,
CONSTRAINT [PK_BrandNameList] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[BrandName] WITH CHECK ADD CONSTRAINT [FK_BrandNameList_Producer] FOREIGN KEY([ProducerId])
REFERENCES [Producer].[Producer] ([Id])
GO
ALTER TABLE [Producer].[BrandName] CHECK CONSTRAINT [FK_BrandNameList_Producer]
GO
PRINT N'Creating [Producer].[BrandName]...';
CREATE TABLE [Producer].[SICCode](
[Id] [uniqueidentifier] NOT NULL,
[ProducerId] [uniqueidentifier] NOT NULL,
[SICCode] [nvarchar](10) NOT NULL,
CONSTRAINT [PK_SICCodeList] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [Producer].[SICCode] WITH CHECK ADD CONSTRAINT [FK_SICCodeList_Producer] FOREIGN KEY([ProducerId])
REFERENCES [Producer].[Producer] ([Id])
GO
ALTER TABLE [Producer].[SICCode] CHECK CONSTRAINT [FK_SICCodeList_Producer]
GO
PRINT N'Update complete.';
|
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Aug 20, 2020 at 02:21 PM
-- Server version: 5.7.26
-- PHP Version: 7.3.5
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: `db_question`
--
-- --------------------------------------------------------
--
-- Table structure for table `t_code`
--
DROP TABLE IF EXISTS `t_code`;
CREATE TABLE IF NOT EXISTS `t_code` (
`codeId` smallint(6) NOT NULL AUTO_INCREMENT,
`userId` smallint(6) DEFAULT NULL,
`title` varchar(2000) COLLATE utf8_persian_ci DEFAULT NULL,
`text` text COLLATE utf8_persian_ci,
`source` text COLLATE utf8_persian_ci,
`date` datetime DEFAULT NULL,
`point` smallint(6) DEFAULT NULL,
PRIMARY KEY (`codeId`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
--
-- Dumping data for table `t_code`
--
INSERT INTO `t_code` (`codeId`, `userId`, `title`, `text`, `source`, `date`, `point`) VALUES
(1, 1, 'فایل سکلتور اختصاصی', 'پسوند دلخواهتون رو توی یه String[] قرار بدید به این صورت : new String[]{\".jpg\"} فولدر های شامل \".nomedia\" ایندکس نخواهند شد! توضیحات : https://answers.uncox.com/android/question/31642 گیت هاب : https://github.com/criss721/Android-FileSelector', 'import android.app.Activity;\r\nimport android.app.Dialog;\r\nimport android.graphics.Typeface;\r\nimport android.os.Environment;\r\nimport android.support.v7.widget.LinearLayoutManager;\r\nimport android.support.v7.widget.RecyclerView;\r\nimport android.util.Log;\r\nimport android.util.TypedValue;\r\nimport android.view.Gravity;\r\nimport android.view.View;\r\nimport android.view.ViewGroup;\r\nimport android.view.Window;\r\nimport android.widget.LinearLayout;\r\nimport android.widget.TextView;\r\n\r\nimport java.io.File;\r\nimport java.util.ArrayList;\r\n\r\n\r\n\r\n/**\r\n * Created by Javad on 2019-11-28 at 4:43 PM.\r\n */\r\n\r\npublic class FileSelector {\r\n\r\n private Activity context;\r\n private String[] extensions;\r\n private ArrayList<SelectedFile> itemsData = new ArrayList<>();\r\n public static final String MP4 = \".mp4\", MP3 = \".mp3\", JPG = \".jpg\", JPEG = \".jpeg\", PNG = \".png\", DOC = \".doc\", DOCX = \".docx\", XLS = \".xls\", XLSX = \".xlsx\", PDF = \".pdf\";\r\n\r\n\r\n public FileSelector(Activity context, String[] extensions) {\r\n this.context = context;\r\n this.extensions = extensions;\r\n }\r\n\r\n public interface OnSelectListener {\r\n void onSelect(String path);\r\n\r\n }\r\n\r\n public void selectFile(OnSelectListener listener) {\r\n String sdCard = Environment.getExternalStorageDirectory().getAbsolutePath();\r\n listOfFile(new File(sdCard));\r\n dialogFileList(listener);\r\n }\r\n\r\n private void listOfFile(File dir) {\r\n File[] list = dir.listFiles();\r\n\r\n for (File file : list) {\r\n if (file.isDirectory()) {\r\n if (!new File(file, \".nomedia\").exists() && !file.getName().startsWith(\".\")) {\r\n Log.w(\"LOG\", \"IS DIR \" + file);\r\n listOfFile(file);\r\n }\r\n } else {\r\n String path = file.getAbsolutePath();\r\n\r\n for (String ext : extensions) {\r\n if (path.endsWith(ext)) {\r\n SelectedFile selectedFile = new SelectedFile();\r\n\r\n selectedFile.path = path;\r\n String[] split = path.split(\"/\");\r\n selectedFile.name = split[split.length - 1];\r\n itemsData.add(selectedFile);\r\n Log.i(\"LOG\", \"ADD \" + selectedFile.path + \" \" + selectedFile.name);\r\n }\r\n }\r\n }\r\n }\r\n Log.d(\"LOG\", itemsData.size() + \" DONE\");\r\n }\r\n\r\n private void dialogFileList(OnSelectListener listener) {\r\n LinearLayout lytMain = new LinearLayout(context);\r\n lytMain.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\r\n lytMain.setOrientation(LinearLayout.VERTICAL);\r\n int p = convertToPixels(12);\r\n lytMain.setPadding(p, p, p, p);\r\n lytMain.setGravity(Gravity.CENTER);\r\n\r\n TextView textView = new TextView(context);\r\n textView.setLayoutParams(new LinearLayout.LayoutParams(screenWidth(), ViewGroup.LayoutParams.WRAP_CONTENT));\r\n textView.setText(\"JDM File Selecor\");\r\n\r\n RecyclerView recyclerView = new RecyclerView(context);\r\n\r\n lytMain.addView(textView);\r\n lytMain.addView(recyclerView);\r\n\r\n final Dialog dialog = new Dialog(context);\r\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n // dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\r\n dialog.setContentView(lytMain);\r\n dialog.setCancelable(true);\r\n dialog.show();\r\n\r\n AdapterFile adapter = new AdapterFile(dialog, listener, itemsData);\r\n recyclerView.setAdapter(adapter);\r\n LinearLayoutManager LayoutManager = new LinearLayoutManager(context);\r\n LayoutManager.setOrientation(LinearLayoutManager.VERTICAL);\r\n recyclerView.setLayoutManager(LayoutManager);\r\n }\r\n\r\n private int convertToPixels(int dp) {\r\n float scale = context.getResources().getDisplayMetrics().density;\r\n return (int) (dp * scale + 0.5f);\r\n }\r\n\r\n private int screenWidth() {\r\n return context.getResources().getDisplayMetrics().widthPixels;\r\n }\r\n\r\n private class SelectedFile {\r\n public String path = \"\";\r\n public String name = \"\";\r\n }\r\n\r\n private class AdapterFile extends RecyclerView.Adapter<AdapterFile.ViewHolder> {\r\n\r\n private ArrayList<SelectedFile> itemsData;\r\n private OnSelectListener listener;\r\n private Dialog dialog;\r\n\r\n public AdapterFile(Dialog dialog, OnSelectListener listener, ArrayList<SelectedFile> itemsData) {\r\n this.itemsData = itemsData;\r\n this.listener = listener;\r\n this.dialog = dialog;\r\n }\r\n\r\n // Create new views (invoked by the layout manager)\r\n @Override\r\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\r\n\r\n LinearLayout linearLayout = new LinearLayout(context);\r\n linearLayout.setOrientation(LinearLayout.VERTICAL);\r\n TextView txtName = new TextView(context);\r\n TextView txtPath = new TextView(context);\r\n txtPath.setTypeface(txtPath.getTypeface(), Typeface.ITALIC);\r\n txtPath.setTextSize(TypedValue.COMPLEX_UNIT_SP, 11);\r\n\r\n linearLayout.addView(txtName);\r\n linearLayout.addView(txtPath);\r\n\r\n ViewHolder viewHolder = new ViewHolder(linearLayout);\r\n return viewHolder;\r\n }\r\n\r\n // inner class to hold a reference to each item of RecyclerView\r\n public class ViewHolder extends RecyclerView.ViewHolder {\r\n\r\n public LinearLayout linearLayout;\r\n public TextView txtName;\r\n public TextView txtPath;\r\n\r\n public ViewHolder(View itemLayoutView) {\r\n super(itemLayoutView);\r\n\r\n linearLayout = (LinearLayout) itemLayoutView;\r\n txtName = (TextView) linearLayout.getChildAt(0);\r\n txtPath = (TextView) linearLayout.getChildAt(1);\r\n }\r\n }\r\n\r\n\r\n @Override\r\n public int getItemCount() {\r\n return itemsData.size();\r\n }\r\n\r\n @Override\r\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\r\n final SelectedFile selectedFile = itemsData.get(position);\r\n\r\n viewHolder.txtName.setText(selectedFile.name);\r\n viewHolder.txtPath.setText(selectedFile.path);\r\n\r\n viewHolder.linearLayout.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n listener.onSelect(selectedFile.path);\r\n }\r\n });\r\n }\r\n }\r\n}', '2020-07-24 05:17:16', 24),
(2, 2, 'اگر آموزش های توسعه ی وب با ساختار lamp را از سایت uncox خوب مطالعه نکرده باشید . درک کردن این قابلیت گنگ است. برای استفاده باید حتماً توضیحات را با دقت بخوانید و سپس استفاده کنید.', 'این قابلیت برروی پروژه ی notes که داخل آموزش توسعه ی وب با ساختار lamp همین سایت هست نوشته شده. همچنین برای بهبود یافتن و کامل شدن باید خودتان پی گیر باشید. اما برای سایت های ساده به خوبی کار میکند.\r\n\r\nدر ابتدا باید فایل sql را که دارای table ی به نام x_hashlink که برای همین قابلیت لازم است را به دیتابیس سایت خود import کنید که در پیوست همین اسنیپ قرار دارد.\r\n\r\nتوجه داشته باشید که این table باید ساختار مشخصی داشته باشد بنابراین اضافه یا حذف هر یک از فیلد های باعث خرابکاری میشود و حتما برای فیلد های اضافه تر باید برنامه نویسی بیشتری صورت گیرد.\r\n\r\nدر مرحله ی بعد باید متد های فایل UserModel در داخل پوشه model وارد کنید. که هر کدام یک کاری را درسمت دیتا بیس انجام می دهند. پس هرگونه تغییر به عهده ی خودتان است و حتماً اگر به سر فصل 7 که قسمت security هست رسیدید حتماً این فایل را طبق قاعده ی امن شده ی خود بنویسید. این که این متد ها چطور کار میکنند باید به فایل userController نگاه کنید تا متوجه شوید.\r\n\r\nدر مرحله ی سوم فایل UserController را به usercontroller خود اضافه کنید . متد forgotPassword ابتدا سعی در دریافت ایمیل از کاربر را دارد و در صورتی که نتوانست ایمیل را درافت کند فرمی که کاربر لازم است آنرا پر کند را نمایش می دهد. این اطلاعات یک ایمیل از کاربر میخواهد که باید وجود داشته باشد و سپس به دنبال آن در دیتابیس می گردد با متد fetch_by_email و اگر این کاربر وجود نداشته باشد پیغام مناسب با سیستم message نمایش داده میشود و در غیر این صورت با استفاده از ایمیل اطلاعات مربوطه را دریافت می کند و نام کاربری ، کاربر را به صورت encrypt شده و همرا با ایمیل به متد send_hashed_email فرستاده میشود و ایمیل را تحویل این متد private می دهد و سپس این متد در دیتابیس hashlink ایمیل کاربر را درج میکند و سپس آنرا همراه با نام کاربری encrypt شده به فایل مورد نیاز فرستاده میشود و توجه کنید کاربر در اینجا نمی تواند ایمیل خود را ببیند اما میتواند هم ببیند در هر صورت باید دوباره بازگردانده شود چون لازم است. در صفحه ی مربوطه از کاربر خواسته شده که نام کاربری خود را جهت صحت کامل کند. فایل مربوطه پاسخ کاربر را به متد get_name_from_user میفرستد که این متد نیز برای اینکه از صحت ایمیل مطمئن شود باز هم اطلاعات را دریافت میکند و در صورت موفقیت به مرحله ی بعدی می رود . شاید بگویید قبلاً ایمیل بازرسی شده چرا دوباره باید بازرسی شود ، توجه کنید که اگر کاربر کمی از برنامه نویسی سر در بیاورد ممکن است در صفحه ای که دارد نام کاربری خود را وارد میکند ممکن است ایمیل خود را تغییر دهد به همین خاطر دوباره ایمیل بازرسی میشود.', ' public function forgotPassword() {\r\n if(isset($_POST[\'email\'])) {\r\n $email = $_POST[\'email\'];\r\n $record = UserModel::fetch_by_email($email);\r\n if($record == null) {\r\n message(\'fail\', \'چنین کاربری وجود ندارد لظفاً مجدداً تلاش کنید.\', true);\r\n }\r\n $letter = $record[\'nickname\'];\r\n $record = UserModel::fetch_by_email($email);\r\n if($email == $record[\'email\']) {\r\n $this->send_hashed_email($email, hashedString($letter, 2));\r\n }\r\n } else {\r\n View::render(\'/user/link-forgot-password.php\');\r\n }\r\n }\r\n \r\n private function send_hashed_email($email, $hashedName){\r\n UserModel::insert_forgot_email($email);\r\n $data[\'hashedName\'] = $hashedName;\r\n $data[\'email\'] = $email;\r\n View::render(\'/user/get-nickname.php\', $data);\r\n }\r\n\r\n public function get_name_from_user() {\r\n if(!isset($_POST[\'answer\'])) {\r\n message(\'fail\', \'لطفاً نام کاربری خود را وارد کنید.<br><br> <a href=\"\' . baseUrl() . \'/forgotPassword\">بازگشت به صفحه ی قبلی </a>\', true);\r\n }\r\n $email = $_POST[\'email\'];\r\n $record = UserModel::fetch_by_email($email);\r\n if(!($record[\'nickname\'] == $_POST[\'answer\'])){\r\n message(\'fail\', \'لطفاً نام کاربری خود را به درستی وارد کنید.<br><br> <a href=\"\' . baseUrl() . \'/forgotPassword\">بازگشت به صفحه ی قبلی </a>\', true);\r\n }\r\n\r\n if($record != null) {\r\n $hash = generateHash(28);\r\n UserModel::insert_forgot_hash($hash, $record[\'email\']);\r\n $this->send_hashed_link_for_email($record[\'email\'], $hash);\r\n message(\'success\', \'ایمیل لینک رمز جدید به ایمیل شما ارسال شد.\', true);\r\n } else {\r\n message(\'fail\', \'لطفاً نام کاربری خود را به درستی وارد کنید.<br><br> <a href=\"\' . baseUrl() . \'/forgotPassword\">بازگشت به صفحه ی قبلی </a>\', true);\r\n }\r\n }\r\n\r\n public function getNewPassword($hash = null) {\r\n if(!isset($_POST[\'password1\']) || !isset($_POST[\'password2\'])) {\r\n $data[\'hash\'] = $hash;\r\n View::render(\'/user/get-new-password.php\', $data);\r\n return;\r\n }\r\n\r\n $hash = $_POST[\'hash\'];\r\n $record = UserModel::fetch_by_hash($hash);\r\n\r\n if($record == null) {\r\n message(\'fail\', \'این لینک اشتباه است .\', true);\r\n }\r\n\r\n $time = getCurrentDateTime();\r\n if($time > $record[\'endDate\']) {\r\n message(\'fail\', \'درخواست رمز جدید شما منقضی شده ، لطفاً دوباره درخواست دهید. <br><br> <a href=\"\' . baseUrl() . \'/login\">لینک صفحه ی ورود</a>\', true);\r\n }\r\n\r\n $password1 = $_POST[\'password1\'];\r\n $password2 = $_POST[\'password2\'];\r\n\r\n if($password1 == null || $password2 == null){\r\n message(\'fail\', _password_empty, true);\r\n }\r\n if($password1 != $password2) {\r\n message(\'fail\', _passwords_not_matched, true);\r\n }\r\n\r\n UserModel::update_password($record[\'email\'], $password1);\r\n UserModel::remove_hashlink($record[\'email\']);\r\n message(\'success\', \'رمز عبور شما با موفقیت تغییر کرد. <br><br> <a href=\"\' . baseUrl() . \'/login\">لینک صفحه ی ورود</a>\', true);\r\n }\r\n\r\n private function send_hashed_link_for_email($email, $hash) {\r\n mail($email, \'فراموشی رمز عبور در سایت یادداشت ها\', \'لطفاً برای وارد کردن رمز جدید روی لینک زیر کلیک کنید. \' . \'project.libcode.ir/notes-v3/user/getNewPassword/\' . $hash . \'\');\r\n }', '2020-07-22 07:30:18', 98),
(3, 2, 'دوستان با این کلاس میتونید عکس رو با به وسیله انگشت scale in و scale out کنید', 'دوستان یه کلاس بسازین و کد های پایین رو داخلش کپی کنین.بعد برای استفاده هم مثل تعریف imageView ازش استفاده کنید\r\n\r\n', '\r\nimport android.content.Context;\r\nimport android.graphics.Matrix;\r\nimport android.graphics.PointF;\r\nimport android.graphics.drawable.Drawable;\r\nimport android.util.AttributeSet;\r\nimport android.view.MotionEvent;\r\nimport android.view.ScaleGestureDetector;\r\nimport android.widget.ImageView;\r\n\r\npublic class TouchImageView extends ImageView {\r\n\r\n// region . Static fields .\r\n\r\n static final int NONE = 0;\r\n static final int DRAG = 1;\r\n static final int ZOOM = 2;\r\n static final int CLICK = 3;\r\n\r\n// endregion . Static fields .\r\n\r\n// region . Fields .\r\n\r\n private int mode = NONE;\r\n\r\n private Matrix mMatrix = new Matrix();\r\n\r\n private PointF mLastTouch = new PointF();\r\n private PointF mStartTouch = new PointF();\r\n private float minScale = 0.5f;\r\n private float maxScale = 4f;\r\n private float[] mCriticPoints;\r\n\r\n private float mScale = 1f;\r\n private float mRight;\r\n private float mBottom;\r\n private float mOriginalBitmapWidth;\r\n private float mOriginalBitmapHeight;\r\n\r\n private ScaleGestureDetector mScaleDetector;\r\n\r\n//endregion . Fields .\r\n\r\n // region . Ctor .\r\n public TouchImageView(Context context) {\r\n super(context);\r\n init(context);\r\n }\r\n\r\n public TouchImageView(Context context, AttributeSet attrs) {\r\n super(context, attrs);\r\n init(context);\r\n }\r\n\r\n public TouchImageView(Context context, AttributeSet attrs, int defStyleAttr) {\r\n super(context, attrs, defStyleAttr);\r\n init(context);\r\n }\r\n\r\n// endregion . Ctor .\r\n\r\n// region . Overrider .\r\n\r\n @Override\r\n protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\r\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\r\n int bmHeight = getBmHeight();\r\n int bmWidth = getBmWidth();\r\n\r\n float width = getMeasuredWidth();\r\n float height = getMeasuredHeight();\r\n float scale = 1;\r\n\r\n // If image is bigger then display fit it to screen.\r\n if (width < bmWidth || height < bmHeight) {\r\n scale = width > height ? height / bmHeight : width / bmWidth;\r\n }\r\n\r\n mMatrix.setScale(scale, scale);\r\n mScale = 1f;\r\n\r\n mOriginalBitmapWidth = scale * bmWidth;\r\n mOriginalBitmapHeight = scale * bmHeight;\r\n\r\n // Center the image\r\n float redundantYSpace = (height - mOriginalBitmapHeight);\r\n float redundantXSpace = (width - mOriginalBitmapWidth);\r\n\r\n mMatrix.postTranslate(redundantXSpace / 2, redundantYSpace / 2);\r\n\r\n setImageMatrix(mMatrix);\r\n }\r\n\r\n @Override\r\n public boolean onTouchEvent(MotionEvent event) {\r\n mScaleDetector.onTouchEvent(event);\r\n\r\n mMatrix.getValues(mCriticPoints);\r\n float translateX = mCriticPoints[Matrix.MTRANS_X];\r\n float trnslateY = mCriticPoints[Matrix.MTRANS_Y];\r\n PointF currentPoint = new PointF(event.getX(), event.getY());\r\n\r\n switch (event.getAction()) {\r\n //when one finger is touching\r\n //set the mode to DRAG\r\n case MotionEvent.ACTION_DOWN:\r\n mLastTouch.set(event.getX(), event.getY());\r\n mStartTouch.set(mLastTouch);\r\n mode = DRAG;\r\n break;\r\n //when two fingers are touching\r\n //set the mode to ZOOM\r\n case MotionEvent.ACTION_POINTER_DOWN:\r\n mLastTouch.set(event.getX(), event.getY());\r\n mStartTouch.set(mLastTouch);\r\n mode = ZOOM;\r\n break;\r\n //when a finger moves\r\n //If mode is applicable move image\r\n case MotionEvent.ACTION_MOVE:\r\n\r\n //if the mode is ZOOM or\r\n //if the mode is DRAG and already zoomed\r\n if (mode == ZOOM || (mode == DRAG && mScale > minScale)) {\r\n\r\n // region . Move image.\r\n\r\n float deltaX = currentPoint.x - mLastTouch.x;// x difference\r\n float deltaY = currentPoint.y - mLastTouch.y;// y difference\r\n float scaleWidth = Math.round(mOriginalBitmapWidth * mScale);// width after applying current scale\r\n float scaleHeight = Math.round(mOriginalBitmapHeight * mScale);// height after applying current scale\r\n\r\n // Move image to lef or right if its width is bigger than display width\r\n if (scaleWidth > getWidth()) {\r\n if (translateX + deltaX > 0) {\r\n deltaX = -translateX;\r\n } else if (translateX + deltaX < -mRight) {\r\n deltaX = -(translateX + mRight);\r\n }\r\n } else {\r\n deltaX = 0;\r\n }\r\n // Move image to up or bottom if its height is bigger than display height\r\n if (scaleHeight > getHeight()) {\r\n if (trnslateY + deltaY > 0) {\r\n deltaY = -trnslateY;\r\n } else if (trnslateY + deltaY < -mBottom) {\r\n deltaY = -(trnslateY + mBottom);\r\n }\r\n } else {\r\n deltaY = 0;\r\n }\r\n\r\n //move the image with the matrix\r\n mMatrix.postTranslate(deltaX, deltaY);\r\n //set the last touch location to the current\r\n mLastTouch.set(currentPoint.x, currentPoint.y);\r\n\r\n // endregion . Move image .\r\n }\r\n break;\r\n //first finger is lifted\r\n case MotionEvent.ACTION_UP:\r\n mode = NONE;\r\n int xDiff = (int) Math.abs(currentPoint.x - mStartTouch.x);\r\n int yDiff = (int) Math.abs(currentPoint.y - mStartTouch.y);\r\n if (xDiff < CLICK && yDiff < CLICK)\r\n performClick();\r\n break;\r\n // second finger is lifted\r\n case MotionEvent.ACTION_POINTER_UP:\r\n mode = NONE;\r\n break;\r\n }\r\n setImageMatrix(mMatrix);\r\n invalidate();\r\n return true;\r\n }\r\n\r\n//endregion . Overrides .\r\n\r\n// region . Privates .\r\n\r\n private void init(Context context) {\r\n super.setClickable(true);\r\n mScaleDetector = new ScaleGestureDetector(context, new ScaleListener());\r\n mCriticPoints = new float[9];\r\n setImageMatrix(mMatrix);\r\n setScaleType(ScaleType.MATRIX);\r\n }\r\n\r\n private int getBmWidth() {\r\n Drawable drawable = getDrawable();\r\n if (drawable != null) {\r\n return drawable.getIntrinsicWidth();\r\n }\r\n return 0;\r\n }\r\n\r\n private int getBmHeight() {\r\n Drawable drawable = getDrawable();\r\n if (drawable != null) {\r\n return drawable.getIntrinsicHeight();\r\n }\r\n return 0;\r\n }\r\n\r\n//endregion . Privates .\r\n\r\n// region . Internal classes .\r\n\r\n private class ScaleListener extends ScaleGestureDetector.SimpleOnScaleGestureListener {\r\n\r\n @Override\r\n public boolean onScaleBegin(ScaleGestureDetector detector) {\r\n mode = ZOOM;\r\n return true;\r\n }\r\n\r\n @Override\r\n public boolean onScale(ScaleGestureDetector detector) {\r\n float scaleFactor = detector.getScaleFactor();\r\n float newScale = mScale * scaleFactor;\r\n if (newScale < maxScale && newScale > minScale) {\r\n mScale = newScale;\r\n float width = getWidth();\r\n float height = getHeight();\r\n mRight = (mOriginalBitmapWidth * mScale) - width;\r\n mBottom = (mOriginalBitmapHeight * mScale) - height;\r\n\r\n float scaledBitmapWidth = mOriginalBitmapWidth * mScale;\r\n float scaledBitmapHeight = mOriginalBitmapHeight * mScale;\r\n\r\n if (scaledBitmapWidth <= width || scaledBitmapHeight <= height) {\r\n mMatrix.postScale(scaleFactor, scaleFactor, width / 2, height / 2);\r\n } else {\r\n mMatrix.postScale(scaleFactor, scaleFactor, detector.getFocusX(), detector.getFocusY());\r\n }\r\n }\r\n return true;\r\n }\r\n }\r\n\r\n// endregion . Internal classes .\r\n}\r\n\r\n\r\n', '2020-07-14 09:30:18', 66),
(4, 3, 'منوی باز شو', 'کدهای طراحی کامل منوی باز شو---بدنه اصلی منو --هدر منو--- آیتم های منو--- معرفی آن در اکتیویتی دلخواه (آکتیویتی اصلی است در این پروژه)', 'package com.example.countryhelpbook\r\n\r\nimport android.os.Bundle\r\nimport android.support.design.widget.NavigationView\r\nimport android.support.v7.app.AppCompatActivity\r\nimport android.view.Gravity\r\nimport android.view.Menu\r\nimport android.view.MenuItem\r\nimport android.widget.Toast\r\nimport kotlinx.android.synthetic.main.navigationdrawer_main.*\r\nimport kotlinx.android.synthetic.main.toolbardesign.*\r\n\r\nclass MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener {\r\n\r\n\r\n override fun onCreate(savedInstanceState: Bundle?) {\r\n super.onCreate(savedInstanceState)\r\n setContentView(R.layout.navigation_main)\r\n\r\n //--- دقت شود---- به جای لایه اصلی لایه ساخته شده را اضافه میکنیم زیرا لایه اصلی در این لایه ساخته شده اینکلود شده است به کد ایکس ام ال دقت کنید. .navigationdrawer_main\r\n\r\n\r\n\r\n\r\n \r\n\r\n\r\n\r\n\r\n imageView_navMenuIconID.setOnClickListener {\r\n\r\n drawerLayoutID.openDrawer(Gravity.END)\r\n }\r\n\r\n }\r\n\r\n //--به منظور عدم خروج از برنامه با باز بودن منوی کشویی با دکمه back------\r\n override fun onBackPressed() {\r\n if (drawerLayoutID.isDrawerOpen(Gravity.END)) {\r\n\r\n drawerLayoutID.closeDrawer(Gravity.END)\r\n } else {\r\n\r\n super.onBackPressed()\r\n }\r\n }\r\n\r\n //--تابع جهت کلید بر روی آیتم های navigationDrawer---\r\n override fun onNavigationItemSelected(item: MenuItem): Boolean {\r\n\r\n when (item.itemId) {\r\n\r\n R.id.nav_aboutUs -> {\r\n Toast.makeText(this, \"HELOOO\", Toast.LENGTH_LONG).show()\r\n }\r\n\r\n R.id.nav_contactUs -> {\r\n }\r\n\r\n R.id.nav_setting -> {\r\n }\r\n\r\n }\r\n drawerLayoutID.closeDrawer(Gravity.END)\r\n\r\n\r\n return true\r\n }\r\n\r\n //--تابع جهت کلید بر روی آیتم های mainmenu---\r\n override fun onCreateOptionsMenu(menu: Menu?): Boolean {\r\n menuInflater.inflate(R.menu.main_menu, menu)\r\n\r\n return super.onCreateOptionsMenu(menu)\r\n }\r\n\r\n /* fun setTabOption() {\r\n val tabLayout: TabLayout = findViewById(R.id.tabLayoutID)\r\n val viewPager: ViewPager = findViewById(R.id.viewPagerID)\r\n val tabadapter= FragmentAdapter(supportFragmentManager)\r\n\r\n viewPager.adapter=tabadapter\r\n tabLayout.setupWithViewPager(viewPager)\r\n\r\n }*/\r\n\r\n}\r\n', '2020-07-20 05:17:25', 75);
-- --------------------------------------------------------
--
-- Table structure for table `t_course`
--
DROP TABLE IF EXISTS `t_course`;
CREATE TABLE IF NOT EXISTS `t_course` (
`courseId` smallint(6) NOT NULL AUTO_INCREMENT,
`title` varchar(1000) COLLATE utf8_persian_ci DEFAULT NULL,
`text` varchar(5000) COLLATE utf8_persian_ci DEFAULT NULL,
`link` text COLLATE utf8_persian_ci,
`image` text COLLATE utf8_persian_ci,
`priority` tinyint(4) DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`star` tinyint(4) DEFAULT '0',
`color` varchar(10) COLLATE utf8_persian_ci DEFAULT NULL,
PRIMARY KEY (`courseId`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
--
-- Dumping data for table `t_course`
--
INSERT INTO `t_course` (`courseId`, `title`, `text`, `link`, `image`, `priority`, `price`, `star`, `color`) VALUES
(1, 'آموزش ساخت اپلیکیشن اندروید دیجی کالا', 'آموزش ساخت اپلیکیشن اندروید دیجی کالا( فیلم آموزشی ) ،توسط مهندس مجتبی نکویی\r\nبه کلیک سایت خوش اومدی ، اینجا میتونی هر فیلم آموزشی که مد نظر داری رو پیدا کنی.\r\nآموزش های کلیک سایت کاملا از صفر تا صد طراحی شده و تمامی آموزش ها به زبان فارسی و مناسب جهت ورود به بازار کار تولید شده.\r\nپس از دیدن آموزش ها ، بدون تردید شما آماده ورود به بازار کار و کسب درآمد خواهید شد.\r\nبرای شروع ، ابتدا فیلم معرفی دوره رو مشاهده نمایید. سپس میتوانید در ادامه همین صفحه ، سایر قسمت های این مجموعه را دانلود نمایید.\r\nبرای مشاهده فیلم با سرعت بالا ، از آی پی ایران استفاده نمایید.\r\n\r\nموضوعات:\r\n\r\n \r\n\r\nجهت مشاهده دمو روی تصویر کلیک کنید.دریافت همه بخش های رایگانآموزش ساخت اپلیکیشن اندروید دیجی کالا \r\nقبل از اینکه به معرفی سرفصل های این دوره بپردازیم ، ابتدا شما را دعوت می کنیم که نظرات برخی از کارآموزان گرامی که از این آموزش استفاده نموده اند را با هم بشنویم (جهت دریافت سایر نظرات از طریق تلگرام با ما در ارتباط باشید) :\r\n\r\nمعرفی سرفصل های این دوره:\r\n\r\n\r\nآموزش ساخت برنامه اندروید\r\nساخت برنامه اندروید یکی از پر طرفدارترین آموزش های کلیک سایت می باشد. با توجه به فراگیر شدن سیستم اندروید و آشنایی افراد با این سیستم ، برنامه های کاربردی فراوانی برای این سیستم پیاده سازی شده است. ساخت برنامه برای سیستم عامل اندروید نیاز به یادگیری یک مهارت دارد. ما در آموزش ساخت برنامه اندروید به شما به طور کامل می گوییم که چگونه یک برنامه یا اپ اندروید را تولید کنید.\r\n\r\nآموزش ساخت برنامه اندروید\r\n\r\n \r\nآموزش ساخت برنامه اندروید به کسب در آمد شما چه کمکی می کند ؟\r\nبرنامه های موبایل دارای بازار خوبی هستند و این امکان را به توسعه دهندگان این برنامه ها می دهند که بتوانند به طرق مختلفی از برنامه های ساخته شده توسط خودشان کسب درآمد داشته باشند. مدل های کسب درآمد مختلفی از طریق برنامه اندروید وجود دارد که سه مدل معروف آن عبارتند از :\r\n\r\nفروش برنامه\r\nپرداخت درون برنامه ای\r\nنمایش تبلیغات\r\nشما با استفاده از آموزش ساخت برنامه اندروید می توانید برای خودتان منابع کسب درآمد پایداری بسازید. این فرصت را غنمیت بشمارید و همین امروز شروع به یادگیری این مهارت بکنید .\r\n\r\n \r\n\r\nدموی آموزش را حتما ببینید(دوره به روز شده است و ورژن جدید اپلیکیشن دیجی کالا با معماری MVVM+Rxjava در تاریخ 13 مرداد 98 روی سایت قرار گرفته)\r\nتصاویر مربوط به دوره را حتما از گالری تماشا بفرمایید\r\n\r\nرفع مشکل پخش در ویندوز 7 وافزایش کیفیت صدا\r\nاگر بخواهیم در مورد معماری MVVM کمی صحبت کنیم بی شک این معماری در حال حاضر بهترین معماری برای برنامه نویسی اندروید است.دراین معماری که براساس سه لایه کار میکند میتوان به model-view -view model اشاره کرد که اسم این معماری از مخفف این سه کلمه تشکیل شده است.معماری MVVM به دلیل سهولت در استفاده و یادگیری بسیار پر طرفدار است و امروزه به عنوان بهترین نوع معماری برای برنامه نویسی اندروید محسوب می شود.\r\n\r\n \r\n\r\n\r\n\r\nیکی دیگر از موارد مهمی که دراین دوره یاد خواهید گرفت مفهوم rxjava هست که امروزه شرکت ها به دنبال متخصصینی هستند که اشنا به مفاهیم معماری و rxjava باشند.\r\n\r\nدراین دوره ساخت اپلیکیشن دیجی کالا به تمامی این موارد مسلط خواهید شد\r\n\r\nدراین مجموعه اموزشی قصد داریم تا اپلیکیشن دیجی کالا را از صفر با آموزش همه جزئیات بسازیم\r\n\r\nبنا بر درخواست دوستان این مجموعه قبل از تکمیل برروی سایت قرار گرفته وبه زودی تکمیل خواهد شد\r\n\r\nهر هفته این مجموعه آپدیت خواهد شد وفصل جدیدی برای دوستان قرار داده خواهد شد(دوره تکمیل شده است)\r\n\r\nپیشنیاز این مجموعه پکیج آموزش مقدماتی تا پیشرفته اندروید کلیک سایت می باشد\r\nدوستانی که قصد خرید این اموزش را دارند ابتدا اموزش مقدماتی تا پیشرفته اندروید ما را ببینند وبعد به سراغ این مجموعه بیایند تا بتونند درک بهتری ازاین اموزش داشته باشند . همچنین دوستانی که علاقه مند به آموزش طراحی سایت هستند نیز می توانند روی همین لینک کلیک کنند. همچنین آموزش ساخت سایت از پایه نیز در کلیک سایت قرار داده شده است.\r\n\r\nاین مجموعه تنها مجموعه اموزشی ساخت اپلیکیشن دیجی کالا می باشد که در کلیک سایت تولید وکلیه حقوق آن متعلق به کلیک سایت هست\r\n\r\nلذا در صورت مشاهده این اموزش در سایت یا کانالهای دیگر به ما اطلاع بدید وکدتخفیف بگیرید\r\n\r\nسورس این مجموعه در پایان به دوستانی که این مجموعه را خریداری کرده باشند تعلق خواهد گرفت', 'https://clicksite.org/tutorial/%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%D8%B3%D8%A7%D8%AE%D8%AA_%D8%A7%D9%BE%D9%84%DB%8C%DA%A9%DB%8C%D8%B4%D9%86_%D8%A7%D9%86%D8%AF%D8%B1%D9%88%DB%8C%D8%AF_%D8%AF%DB%8C%D8%AC%DB%8C_%DA%A9%D8%A7%D9%84%D8%A7_/82', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_digikala_14807025183422677.jpg', 3, 450000, 75, '#F44336'),
(2, 'آموزش کار با GPS گوشی و نقشه گوگل ', 'اولین دوره کامل کار با نقشه گوگل ومسیریابی در نقشه گوگل(این اموزش مشابه فارسی ندارد)\r\nاموزش کار با نقشه گوگل در برنامه نویسی اندروید یکی از مهم ترین مباحث هست که دراین دوره سعی کردیم کامل ترین مجموعه رو به همراه تمامی سورس ها و مستندات در اختیار شما قرار بدیم. بعد از تهیه دوره سورس را از طریق پنل رفع اشکال سایت ویا از طریق پشتیبانی تهیه بفرمایید\r\nسرفصلهای این دوره:\r\n\r\nاموزش ساخت api key برای نقشه گوگل\r\nاموزش استفاده از GPS گوشی ونمایش مکان کاربر برروی نقشه\r\nامکان اعمال دستورات با تغییر مکان کاربر روی نقشه\r\nرسم خط بین چند نقطه برروی نقشه\r\nرسم چندضلعی ودایره برروی نقشه ومشخص کردن یک منطقه از نقشه وبا خاصیت کلیک برروی ان\r\nجستجوی یک نقطه برروی نقشه با استفاده از اسم ان\r\nشخصی سازی پنجره نمایش اطلاعات مارکت روی نقشه\r\nاموزش مسیریابی با استفاده از مستندات گوگل\r\nمارک کردن دونقطه برروی نقشه با کلیک کردن برروی نقشه\r\nارسال اطلاعات مارکت های مشخص شده روی نقشه\r\nدریافت اطلاعات مربوط به مسیرهای بین دونقطه مشخص شده\r\nتحلیل اطلاعات دریافتی ورسم مسیر بین دونقطه\r\nاین دوره تنها دوره فارسی مربوط به مسیریابی در نقشه گوگل میباشد ویکی از بهترین ومحبوب ترین و کاربردی ترین موارد در برنامه نویسی اندروید است. با استغاده از نقشه گوگل Google Map بسیاری از برنامه ها مثل برنامه اسنپ به راحتی قابل نوشتن خواهد بود', 'https://clicksite.org/tutorial/%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%DA%A9%D8%A7%D8%B1_%D8%A8%D8%A7_GPS_%DA%AF%D9%88%D8%B4%DB%8C_%D9%88_%D9%86%D9%82%D8%B4%D9%87_%DA%AF%D9%88%DA%AF%D9%84(Google_Map)/105', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_google_map[1]_14926595146154325.jpg', 4, 140000, 25, '#FFEA00'),
(3, 'آموزش اندروید اپلیکیشن چت مشابه تلگرام( با استفاده از Socket IO ', 'توضیحات کلی مجموعه:\r\n\r\nدموی مجموعه را حتما ببینید\r\nدراین دوره سعی میشود بسیاری از اپشن هایی که اپلیکیشن موبوگرام داراست رو به اپلیکیشن چت اضافه کنیم . هدف اصلی ساخت اپلیکیشن چت با استفاده از کتابخانه قدرتمند Socket IO اصولی ترین راه ممکنه برای ساخت برنامه چت هست که دراین دوره اموزش خواهیم داد.سرفصلهای این دوره:\r\n\r\nاستفاده از دو سرور در برنامه یک سرور php ویک سرور Nodejs\r\nارسال پیامک از طریق پنل ارسال پیامک و وب سرویس همراه با کدنویسی\r\nدریافت پیامک در برنامه وتشخیص متن\r\nارسال پیامک اعتبارسنجی مشابه تلگرام\r\nاعتبارسنجی کاربر با استفاده از کد\r\nاپلود تصویر پروفایل\r\nلود ونمایش تصویر پروفایل\r\nارسال پیام بصورت شخصی برای کاربر\r\nارسال پیام به کاربر با استفاده از ایدی کاربر\r\nنمایش حالت is typing... در زمان نوشتن پیام توسط مخاطب \r\nحالت روح \r\nساخت گروه های مختلف\r\nاپلود تصویر برای پروفایل\r\nاپلود تصاویر و ارسال تصاویر در چت\r\nاپلود تصاویر روی سرور نود جی اس\r\nکار با گروه ها\r\nکار با کانال\r\nاموزش کامل و مفهومی کانال وگروه در چت\r\nتوضیح کامل تفاوت کانال و گروه\r\nانلاین بودن کاربر\r\nدریافت و نمایش چت ها و لود تصاویر\r\nکار حرفه ای با اینترفیس ها\r\nو بسیاری از امکانات دیگر که در ادامه اموزش اضافه خواهند شد', 'https://clicksite.org/tutorial/%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%D8%A7%D9%86%D8%AF%D8%B1%D9%88%DB%8C%D8%AF_%D8%A7%D9%BE%D9%84%DB%8C%DA%A9%DB%8C%D8%B4%D9%86_%DA%86%D8%AA_%D9%85%D8%B4%D8%A7%D8%A8%D9%87_%D8%AA%D9%84%DA%AF%D8%B1%D8%A7%D9%85(_%D8%A8%D8%A7_%D8%A7%D8%B3%D8%AA%D9%81%D8%A7%D8%AF%D9%87_%D8%A7%D8%B2_Socket_IO_)/114', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_chat_package_clicksite_org_nekooei_15257654008276164.jpg', 5, 210000, 10, '#1976D2'),
(4, 'ساخت موزیک پلیر و ویدیو پلیر حرفه ای اندروید دو زبانه', 'توضیحات کلی مجموعه:\r\n\r\nاموزش ساخت یک موزیک پلیر و ویدیو پلیر ح رفه ای که کاملا کاربردی است و قابلیت نصب روی گوشی های مختلف را دارد\r\n\r\nاز جمله امکانات این اپلیکیشن:\r\n\r\nلیست کردن فایل های صوتی ویدیویی گوشی-\r\n\r\nطراحی متریال وزیبا-استفاده از تب بندی-\r\n\r\nحرکت سیک بار همراه با اهنگ وزمان-\r\n\r\nست کردن زمان موسیقی-استفاده از انیمیشن-\r\n\r\nنمایش thumbnail ویا تصویر هر فیلم برای نمایش اون با کد نویسی-\r\n\r\nاستفاده از کتابخانه در پخش ویدیوو-پخش افلاین وانلاین موزیک-\r\n\r\nپخش افلاین وانلاین ویدیو-پشتیبانی از دو زبان-\r\n\r\nاستفاده از لایبرری برای استفاده اسان از ران تایم پرمیشن و....', 'https://clicksite.org/tutorial/%D8%B3%D8%A7%D8%AE%D8%AA_%D9%85%D9%88%D8%B2%DB%8C%DA%A9_%D9%BE%D9%84%DB%8C%D8%B1_%D9%88_%D9%88%DB%8C%D8%AF%DB%8C%D9%88_%D9%BE%D9%84%DB%8C%D8%B1_%D8%AD%D8%B1%D9%81%D9%87_%D8%A7%DB%8C_%D8%A7%D9%86%D8%AF%D8%B1%D9%88%DB%8C%D8%AF_%D8%AF%D9%88_%D8%B2%D8%A8%D8%A7%D9%86%D9%87/139', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_player_package_clicksite_org_nekooei_15257771746774552.jpg', 3, 180000, 45, '#0D47A1'),
(5, 'آموزش اتصال به سایت وردپرسی/به همراه آموزش کامل رتروفیت', 'توضیحات کلی مجموعه:\r\n\r\nدموی دوره را حتما ببینید\r\nدراین دوره نحوه اتصال به یک سایت وردپرسی به همراه کتابخانه قدرتمند رتروفیت را اموزش میدهیم ویک فروشگاه اینترنتی کوچک میسازیم\r\n\r\nدراین دوره مباحث زیر بصورت پروژه محور به طور کامل اموزش داده میشود:\r\n\r\nاموزش اتصال به وردپرس\r\nاستفاده از پلاگین اماده برای اتصال به وردپرس\r\nنوشتن یک پلاگین اختصاصی برای وردپرس\r\nاموزش کار با رتروفیت(محبوب ترین وقوی ترین کتابخانه برای اتصال به سرور(پیشنهاد شده توسط گوگل))\r\nکار با Gson و مختصر کردن کدها به جای json\r\nست کردن فونت روی کل پروژه به راحتی\r\nدریافت اطلاعات از سرور با رتروفیت\r\nارسال و دریافت انواع داده ها به همراه انواع پارامترها\r\nشکستن انواع داده ها برای پوشش کامل رتروفیت و Gson\r\nاستفاده از picasso برای لود کردن تصاویر', 'https://clicksite.org/tutorial/%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%D8%A7%D8%AA%D8%B5%D8%A7%D9%84_%D8%A8%D9%87_%D8%B3%D8%A7%DB%8C%D8%AA_%D9%88%D8%B1%D8%AF%D9%BE%D8%B1%D8%B3%DB%8C/%D8%A8%D9%87_%D9%87%D9%85%D8%B1%D8%A7%D9%87_%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%DA%A9%D8%A7%D9%85%D9%84_%D8%B1%D8%AA%D8%B1%D9%88%D9%81%DB%8C%D8%AA/142', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_dsfsdf_15268289089923818.jpg', 2, 250000, 77, '#388E3C'),
(6, 'آموزش پرداخت درون برنامه ای بازار', 'توضیحات کلی مجموعه:\r\n\r\nپرداخت درونبرنامهای یا In-App Billing که به اختصار به آن IAP نیز میگوییم، یکی از خدمات ارائه شده توسط بازار است که به شما امکان میدهد یک فروشگاه در برنامه خود راهاندازی کنید و در آن محتویات دیجیتال مورد نظرتان را بفروشید. دراین دوره قصد داریم تا انواع فروش محصولات در بازار رو بصورت پرداخت درون برنامه ای اموزش دهیم .انواع فروش ها مثل فروش سکه ، نسخه اصلی و پولی یک محصل ،خرید اشتراک ماهیانه یا سالانه و...\r\n\r\nدرحال حاضر بدون شک بهترین راه کسب درامد برای اپلیکیشن ها قرار دادن پرداخت درون برنامه ای هست چون کرک شدن و ارائه رایگان برنامه را به حداقل می رساند.دراین دوره ها کار با پنل توسعه دهندگان بازار نیز اموزش داده شده است دراین دوره مباحث امنیتی برای امن کردن پرداخت درون برنامه ای بازار هم اموزش داده شده است', 'https://clicksite.org/tutorial/%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%D9%BE%D8%B1%D8%AF%D8%A7%D8%AE%D8%AA_%D8%AF%D8%B1%D9%88%D9%86_%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87_%D8%A7%DB%8C_%D8%A8%D8%A7%D8%B2%D8%A7%D8%B1_/151', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_bazar_15318079318623455.jpg', 7, 150000, 35, '#673AB7'),
(7, 'پکیج آموزش ساخت اپلیکیشن شارژ و پرداخت قبوض', 'سرفصل ها\r\n\r\nمقدمه و معرفی متد آموزشی\r\n\r\nبررسی جزئی و خلاصه موارد موردنیاز پیش از آموزش شامل: کار با ویوها، کار با کتابخانه های مختلف و ...\r\n\r\nمعرفی متریال دیزاین\r\n\r\nدلایل استفاده از متریال دیزاین در طراحی اپ\r\n\r\nبررسی تفاوت های موجود میان متریال دیزاین و طراحی های قدیمی\r\n\r\nبررسی قابلیت های موجود در اندروید استودیو برای پیاده سازی سریع تر متریال دیزاین\r\n\r\nطراحی رابط کاربری اپلیکیشن متناسب با جدیدترین متدهای طراحی ارائه شده از سوی کمپانی گوگل و هماهنگ با متریال دیزاین\r\n\r\nطراحی صفحه ی اولیه برای ثبت نام کاربران در برنامه\r\n\r\nبررسی روش های موجود برای ذخیره سازی اطلاعات در حافظه\r\n\r\nدریافت مشخصات کاربران و ذخیره سازی آن ها در حافظه\r\n\r\nافزودن بخش قوانین به اپلیکیشن و عدم امکان ثبت نام کاربر در صورت عدم پذیرش قوانین\r\n\r\nافزودن بنر اسلایدر به صفحه ی خدمات اپلیکیشن\r\n\r\nطراحی چند بنر برای معرفی قابلیت های برنامه\r\n\r\nافزودن بنرهای مناسب به اپلیکیشن به صورت آنلاین با قابلیت Cache شدن و اجرا به صورت آفلاین\r\n\r\nراست چین کردن صفحه ی خدمات\r\n\r\nمعرفی کتابخانه های اعمال فونت بروی ویوها\r\n\r\nدانلود و استفاده از کتابخانه calligraphy و بررسی دلایل برتری این کتابخانه\r\n\r\nساخت باکس برای قابلیت پرداخت قبض به صفحه ی خدمات\r\n\r\nافزودن آیکن مناسب برای خدمات پرداخت قبض\r\n\r\nافزودن متن و تکمیل باکس پرداخت قبض\r\n\r\nاستفاده از کتابخانه CardView برای زیباترشدن باکس\r\n\r\nایجاد منوی کشویی یا Navigation Drawer\r\n\r\nفارسی سازی Navigation Drawer\r\n\r\nحذف آیتم های اضافی افزوده شده به صفحه مانند Floating Action Button\r\n\r\nشخصی سازی تصویر شاخص Navigation Drawer\r\n\r\nشخصی سازی پس زمینه ی تصویر شاخص در Navigation Drawer\r\n\r\nافزودن آیتم های جدید به Navigation Drawer\r\n\r\nاستفاده از آیکن های مناسب برای آیتم های افزوده شده در Navigation Drawer\r\n\r\nبررسی متدهای موجود برای استفاده از Navigation Drawer و قابلیت های آن\r\n\r\nدریافت مشخصاتی که کاربر در زمان ثبت در اپلیکیشن وارد کرده است و نمایش آن ها در Navigation Drawer\r\n\r\nطراحی صفحه ی مربوط به پرداخت قبض\r\n\r\nایجاد چند EditText و دکمه برای دریافت و ثبت اطلاعات قبض\r\n\r\nاتصال View های ایجاد شده به فایل Java\r\n\r\nوب سرویس چیست ؟\r\n\r\nبررسی دلایل نیاز به وب سرویس\r\n\r\nانواع مختلف وب سرویس ها\r\n\r\nمعرفی API\r\n\r\nانواع مختلف تبادل اطلاعات میان سرور و کلاینت\r\n\r\nمعرفی ساختارهای Key - Value\r\n\r\nمعرفی و بررسی ساختار Json برای تبادل اطلاعات با سرور\r\n\r\nبررسی اجمالی ساختار XML برای ارتباط با سرور\r\n\r\nمعرفی وب سرویس های مختلف در زمینه ی فعالیت اپلیکیشن پرداخت\r\n\r\nنقد و بررسی وب سرویس های مختلف\r\n\r\nانتخاب وب سرویس مناسب\r\n\r\nبررسی مستندات فنی ارائه شده از سوی سرویس دهنده\r\n\r\nنقد و بررسی API انتخاب شده\r\n\r\nبررسی روش های موجود برای پیاده سازی ارتباط با سرور مثل: کتابخانه Volley، رتروفیت و ...\r\n\r\nبررسی مزیت ها و مشکلات کتابخانه رتروفیت\r\n\r\nمعرفی کتابخانه Volley و تاریخچه آن\r\n\r\nاستفاده از کتابخانه Volley ساخت کمپانی گوگل برای پیاده سازی ارتباط با سرور\r\n\r\nبررسی دلایل استفاده از کتابخانه Volley\r\n\r\nبررسی عمیق شیء و آرایه در ساختار Json\r\n\r\nذکر چند مثال برای درک بهتر ساختار Json\r\n\r\nمعرفی کلاس JsonObjectRequest و بررسی زمان لزوم به استفاده از این کلاس\r\n\r\nمعرفی کلاس JsonArrayRequest و بررسی زمان لزوم به استفاده از این کلاس\r\n\r\nمعرفی کلاس StringRequest و بررسی زمان لزوم به استفاده از این کلاس\r\n\r\nمعرفی کلاس VolleyMultipartRequest\r\n\r\nبررسی متدهای ارتباط با سرور مثل: POST,GET,PUT,...\r\n\r\nاستفاده از کلاس VolleyMultipartRequest برای ارتباط با سرور\r\n\r\nانجام تست های مختلف برای سرویس های مختلف ارائه شده از سوی وب سرویس\r\n\r\nتوضیح و بررسی کامل متدهای کلاس VolleyMultipartRequest\r\n\r\nبررسی پارامترهای لازم برای ارسال به سرور\r\n\r\nدریافت شناسه قبض و شناسه پرداخت از کاربر و ارسال به سرور\r\n\r\nبررسی پاسخ دریافتی از سرور\r\n\r\nکدنویسی عملیات مناسب در صورت موفقیت آمیز بودن درخواست\r\n\r\nکدنویسی عملیات مناسب برای ناموفق بودن درخواست\r\n\r\nنمایش پیام خطای مناسب به کاربر در صورت بروز مشکل\r\n\r\nانتقال کاربر به سایت بانک برای پرداخت قبض\r\n\r\nبررسی روش های موجود برای پارزکردن پیام دریافتی از سمت سرور که مشخص کننده ی وضعیت تراکنش می باشد\r\n\r\nاستفاده از کتابخانه ی مناسب برای بررسی پاسخ\r\n\r\nبررسی پرداخت موفق یا ناموفق قبض\r\n\r\nطراحی یک صفحه برای نمایش شماره پیگیری، زمان پرداخت قبض و ...\r\n\r\nطراحی صفحه ی مربوط به خرید شارژ مستقیم\r\n\r\nافزودن آیتم های مختلف خرید شارژ مانند: شارژ مستقیم ایرانسل، همراه اول و رایتل\r\n\r\nپیاده سازی بخش ارتباط با سرور برای صفحه ی خرید شارژ\r\n\r\nانتقال کاربر به سایت بانک برای پرداخت هزینه ی شارژ\r\n\r\nبررسی وضعیت تراکنش از سایت بانک\r\n\r\nطراحی صفحه ی پشتیبانی اپلیکیشن\r\n\r\nاستفاده از Intent های مختلف برای تماس با پشتیبانی و ارسال ایمیل\r\n\r\nافزودن قابلیت اسکرول به صفحه های نیازمند به این قابلیت\r\n\r\nبررسی عملکرد برنامه با ارتباط های اینترنتی مختلف\r\n\r\nبررسی اپلیکیشن بروی دیوایس های مختلف با نسخه های مختلف سیستم عامل اندروید\r\n\r\nبررسی موارد لازم برای انتشار قانونی اپلیکیشن\r\n\r\nمعرفی مارکت های معتبر برای انتشار اپلیکیشن\r\n\r\nبررسی قوانین مارکت های مختلف\r\n\r\nآموزش ساخت اکانت توسعه دهنده در گوگل پلی\r\n\r\nآموزش انتشار اپلیکیشن در گوگل پلی\r\n\r\nآموزش انتشار اپلیکیشن در کافه بازار\r\n\r\n', 'https://clicksite.org/tutorial/%D9%BE%DA%A9%DB%8C%D8%AC_%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%D8%B3%D8%A7%D8%AE%D8%AA_%D8%A7%D9%BE%D9%84%DB%8C%DA%A9%DB%8C%D8%B4%D9%86_%D8%B4%D8%A7%D8%B1%DA%98_%D9%88_%D9%BE%D8%B1%D8%AF%D8%A7%D8%AE%D8%AA_%D9%82%D8%A8%D9%88%D8%B6/159', 'https://clicksite.org/uploadcenter/15446f/thumbnail/file_apppay_package_clicksite_org_goodarzi_15347448004326782.jpg', 4, 135000, 66, '#E91E63'),
(8, 'دوره حضوری برنامه نویسی اندروید با جاوا به صورت پروژه محور(اپلیکیشن دیجی کالا ورژن جدید)', 'معرفی سرفصل های این دوره:\r\n\r\nتوضیحات کلی مجموعه:\r\n\r\nدراین سری از دوره ها قصد داریم تا دوره های حضوری و متخصص اندروید کلیک سایت را در اختیار کاربران سایت قرار دهیم. اولین دوره حضوری و متخصص اندروید کلیک سایت در شهر مشهد درحال برگزاری است وبه زودی در سایر شهرهای ایران این دوره ها تشکیل خواهند شد', 'https://clicksite.org/tutorial/%D8%AF%D9%88%D8%B1%D9%87_%D8%AD%D8%B6%D9%88%D8%B1%DB%8C_%D8%A8%D8%B1%D9%86%D8%A7%D9%85%D9%87_%D9%86%D9%88%DB%8C%D8%B3%DB%8C_%D8%A7%D9%86%D8%AF%D8%B1%D9%88%DB%8C%D8%AF_%D8%A8%D8%A7_%D8%AC%D8%A7%D9%88%D8%A7_%D8%A8%D9%87_%D8%B5%D9%88%D8%B1%D8%AA_%D9%BE%D8%B1%D9%88%DA%98%D9%87_%D9%85%D8%AD%D9%88%D8%B1(%D8%A7%D9%BE%D9%84%DB%8C%DA%A9%DB%8C%D8%B4%D9%86_%D8%AF%DB%8C%D8%AC%DB%8C_%DA%A9%D8%A7%D9%84%D8%A7_%D9%88%D8%B1%DA%98%D9%86_%D8%AC%D8%AF%DB%8C%D8%AF)/175', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_android_nekooei_hozuri_15442626988189977.jpg', 12, 900000, 35, '#f44336'),
(9, 'آموزش دوره صفرتاصد کاتلین پروژه محور', 'به کلیک سایت خوش اومدی ، اینجا میتونی هر فیلم آموزشی که مد نظر داری رو پیدا کنی.\r\nآموزش های کلیک سایت کاملا از صفر تا صد طراحی شده و تمامی آموزش ها به زبان فارسی و مناسب جهت ورود به بازار کار تولید شده.\r\nپس از دیدن آموزش ها ، بدون تردید شما آماده ورود به بازار کار و کسب درآمد خواهید شد.\r\nبرای شروع ، ابتدا فیلم معرفی دوره رو مشاهده نمایید. سپس میتوانید در ادامه همین صفحه ، سایر قسمت های این مجموعه را دانلود نمایید.\r\nبرای مشاهده فیلم با سرعت بالا ، از آی پی ایران استفاده نمایید.\r\n\r\nموضوعات:\r\n\r\n\r\nجهت مشاهده دمو روی تصویر کلیک کنید.دریافت همه بخش های رایگانآموزش دوره صفرتاصد کاتلین پروژه محور \r\nمعرفی سرفصل های این دوره:\r\n\r\n\r\n\r\nتوضیحات کلی مجموعه:\r\n\r\nدموی دوره را حتما بببینید(این دوره پروژه محور هست و فصل دوم اموزش ساخت اپلیکیشن دیوار را اموزش دادیم)\r\nدروه اموزش کاتلین بصورت تصویری و کاملا پروژه محور که تمامی مطالب مفید وکاربردی را اموزش دادیم.کاتلین زبان جدید برنامه نویسی گوگل هست که به تازگی توسط این شرکت معرفی شده است. از مزایای این زبان سرعت بالای آن وحجم کمتر کدها و شباهت بسیار زیاد ان به زبان جاواست.برای ان دسته از دوستانی که نگران سیستم عامل فیوشا هستند باید عرض کنم که قطعا کد زنی زبان فیوشا هم با کاتلین خواهد بود. باتوجه به سرمایه گذاری میلیارد دلاری گوگل برای کاتلین باید اینده برنامه نویسی اندروید و یا سایر سیستم عامل های اندروید از ان کاتلین دانست\r\n\r\nفصل های بعدی این دوره به زودی ارائه میشه ودر ان یک پروژه بزرگ از صفرتاصد اموزش داده میشه. نمونه این دوره را درهیچ یک از دوره های مشابه فارسی پیدا نخواهید کرد\r\n\r\nبرای تهیه سورس به سایت http://www.clicksource.ir مراجعه کنید', 'https://clicksite.org/tutorial/%D8%A2%D9%85%D9%88%D8%B2%D8%B4_%D8%AF%D9%88%D8%B1%D9%87_%D8%B5%D9%81%D8%B1%D8%AA%D8%A7%D8%B5%D8%AF_%DA%A9%D8%A7%D8%AA%D9%84%DB%8C%D9%86_%D9%BE%D8%B1%D9%88%DA%98%D9%87_%D9%85%D8%AD%D9%88%D8%B1/164', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_kotlin_package_clicksite_org_15373394148948256.jpg', 5, 220000, 95, '#3949AB'),
(10, 'دوره امنیت و دیزاین پترن در اندروید', 'دموی دوره را حتما ببینید\r\n\r\nدوره امنیت و دیزاین پترن در برنامه نویسی اندروید که شامل دو فصل هست. فصل اول شامل اموزش singletone design patern-builder design patern-command design patern-factory design patern-facade design patern-sterategy design patern هست که به طور مفصل نحوه استفاده ازاین دیزاین پترن ها داده شده است. درفصل دوم اموزش امنیت در برنامه نویسی اندروید داده شده است.چطور میتوان در برنامه نویسی اندروید درخواست های امن به سمت سرور ارسال کرد وبه هکر ها اجازه سو استفاده را ندهیم. دراین دوره بصورت کامل نحوه محافظت از کدها و امنیت را اموزش میدهیم. یکی از مهم ترین و به روزترین روشهای ایجاد امنیت بین سرور و کلاینت oauth2 هست که دراین دوره اموزش دادیم .نحوه ایجاد توکن امن بین سرور و کلاینت به همراه تاریخ انقضا از جمله موارد تدریس شده در فصل دوم هست', 'https://clicksite.org/tutorial/%D8%AF%D9%88%D8%B1%D9%87_%D8%A7%D9%85%D9%86%DB%8C%D8%AA_%D9%88_%D8%AF%DB%8C%D8%B2%D8%A7%DB%8C%D9%86_%D9%BE%D8%AA%D8%B1%D9%86_%D8%AF%D8%B1_%D8%A7%D9%86%D8%AF%D8%B1%D9%88%DB%8C%D8%AF/241', 'https://clicksite.org/uploadcenter/52f/thumbnail/file_photo_2016-07-06_11-07-59_15669200874694487.jpg', 7, 160000, 54, '#6D4C41');
-- --------------------------------------------------------
--
-- Table structure for table `t_news`
--
DROP TABLE IF EXISTS `t_news`;
CREATE TABLE IF NOT EXISTS `t_news` (
`newsId` smallint(6) NOT NULL AUTO_INCREMENT,
`title` varchar(500) COLLATE utf8_persian_ci DEFAULT NULL,
`text` text COLLATE utf8_persian_ci,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`newsId`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
-- --------------------------------------------------------
--
-- Table structure for table `t_question`
--
DROP TABLE IF EXISTS `t_question`;
CREATE TABLE IF NOT EXISTS `t_question` (
`questionId` smallint(6) NOT NULL AUTO_INCREMENT,
`fromUser` mediumint(9) DEFAULT NULL,
`toUser` mediumint(9) DEFAULT NULL,
`title` varchar(500) COLLATE utf8_persian_ci DEFAULT NULL,
`text` text COLLATE utf8_persian_ci,
`type` tinyint(4) DEFAULT NULL,
`date` varchar(20) COLLATE utf8_persian_ci DEFAULT NULL,
`course` varchar(1000) COLLATE utf8_persian_ci DEFAULT NULL,
PRIMARY KEY (`questionId`)
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
--
-- Dumping data for table `t_question`
--
INSERT INTO `t_question` (`questionId`, `fromUser`, `toUser`, `title`, `text`, `type`, `date`, `course`) VALUES
(1, 28, NULL, 'this is a title', 'this is a text', 0, '۱۳۹۹/۰۵/۲۵ ۱۳:۴۷', 'آموزش دیجی کالا'),
(2, 28, NULL, 'this is a title', 'this is a text', 0, '۱۳۹۹/۰۵/۲۵ ۱۳:۵۲', 'آموزش دیجی کالا'),
(3, 28, NULL, 'this is a title', 'this is a text', 0, '۱۳۹۹/۰۵/۲۵ ۱۳:۵۲', 'آموزش دیجی کالا'),
(4, 28, NULL, 'this is a title', 'this is a text', 0, '۱۳۹۹/۰۵/۲۵ ۱۳:۵۴', 'آموزش دیجی کالا'),
(5, 31, NULL, 'ghgh', 'hghghghg', 1, '۱۳۹۹/۰۵/۲۷ ۱۱:۳۸', 'دوره حضوری برنامه نویسی اندروید با جاوا به صورت پروژه محور(اپلیکیشن دیجی کالا ورژن جدید)'),
(6, 31, NULL, 'ghgh', 'hghghghg', 1, '۱۳۹۹/۰۵/۲۷ ۱۱:۳۸', 'دوره حضوری برنامه نویسی اندروید با جاوا به صورت پروژه محور(اپلیکیشن دیجی کالا ورژن جدید)'),
(7, 31, NULL, 'fdfdfdf', 'dfdfdfdfdfdfdfd', 1, '۱۳۹۹/۰۵/۲۷ ۱۱:۳۹', 'آموزش ساخت اپلیکیشن اندروید دیجی کالا'),
(8, 31, NULL, 'fdfdfdf', 'dfdfdfdfdfdfdfd', 1, '۱۳۹۹/۰۵/۲۷ ۱۱:۳۹', 'آموزش ساخت اپلیکیشن اندروید دیجی کالا'),
(9, 31, -1, 'njnjnjn', 'njnjnjnj', 1, '۱۳۹۹/۰۵/۲۷ ۱۱:۴۳', 'دوره حضوری برنامه نویسی اندروید با جاوا به صورت پروژه محور(اپلیکیشن دیجی کالا ورژن جدید)'),
(10, 28, -1, 'this is a titlerrrrrr', 'this is a text rrrrrr', 0, '۱۳۹۹/۰۵/۳۰ ۱۴:۳۱', 'آموزش دیجی کالاrr'),
(11, -1, 28, 'این عنوان جواب مدیر است ', 'این هم متن جواب مدیر است ', 0, '۱۳۹۹/۰۵/۳ ۱۴:۳۱', 'آموزش دیجی کالا');
-- --------------------------------------------------------
--
-- Table structure for table `t_rule`
--
DROP TABLE IF EXISTS `t_rule`;
CREATE TABLE IF NOT EXISTS `t_rule` (
`ruleId` mediumint(9) NOT NULL AUTO_INCREMENT,
`rule` text COLLATE utf8_persian_ci,
PRIMARY KEY (`ruleId`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
--
-- Dumping data for table `t_rule`
--
INSERT INTO `t_rule` (`ruleId`, `rule`) VALUES
(1, 'this is a test ');
-- --------------------------------------------------------
--
-- Table structure for table `t_user`
--
DROP TABLE IF EXISTS `t_user`;
CREATE TABLE IF NOT EXISTS `t_user` (
`userId` mediumint(9) NOT NULL AUTO_INCREMENT,
`name` varchar(50) COLLATE utf8_persian_ci DEFAULT NULL,
`family` varchar(50) COLLATE utf8_persian_ci DEFAULT NULL,
`image` varchar(1000) COLLATE utf8_persian_ci DEFAULT NULL,
`phone` varchar(20) COLLATE utf8_persian_ci DEFAULT NULL,
`email` varchar(100) COLLATE utf8_persian_ci DEFAULT NULL,
`password` text COLLATE utf8_persian_ci,
`gender` tinyint(4) DEFAULT '0',
`role` varchar(50) COLLATE utf8_persian_ci DEFAULT 'user',
`token` text COLLATE utf8_persian_ci,
`point` smallint(6) DEFAULT NULL,
PRIMARY KEY (`userId`),
UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COLLATE=utf8_persian_ci;
--
-- Dumping data for table `t_user`
--
INSERT INTO `t_user` (`userId`, `name`, `family`, `image`, `phone`, `email`, `password`, `gender`, `role`, `token`, `point`) VALUES
(1, 'یونس', 'غلامی', 'https://ware.uncox.com/asset/profile/male/10.jpg', '(+22) 87912', '<EMAIL>', NULL, 0, 'user', NULL, 68),
(2, 'حسین', 'ظفری', NULL, '(+22) 87912', '<EMAIL>', NULL, 0, 'user', NULL, 40),
(3, 'ساریانا', 'حیدری', 'https://ware.uncox.com/asset/profile/female/63.jpg', '(+22) 87985', '<EMAIL>', NULL, 1, 'user', NULL, 98),
(4, 'hossein', 'zafari', NULL, '09035555127', '<EMAIL>', <PASSWORD>', 0, 'user', NULL, NULL),
(31, 'hossein ', 'mansori', NULL, '09111111112', '<EMAIL>', '$2y$10$59N6h/v2cK6OZMz2c7qJaOGT5yQQLxdbfOavhOM1RCwLPFPKKAzpe', 0, 'user', '29f519f1edf18922243c3501386eec596861616e40676d313539373331313231392e38363431', NULL),
(30, 'hossein ', 'mansori ', NULL, '09035482821', '<EMAIL>', '$2y$10$XF4aTUU.sAcwhfdUZOZcKu.PGvXIbYZkX/Gx44gU78mYE1D85jD0K', 0, 'user', '1ff8522bb020120c9ddfe57ef5979273687a313240676d313539363739323436312e39333836', NULL),
(29, 'زهرا ', 'نعمتی ', NULL, '09035488888', '<EMAIL>', <PASSWORD>$eUiib/y4FarTutcIav4kzuRUF4rciapwQmeEfgN0.FRsS7wEUIa3O', 0, 'user', 'cb1eb0004008f6ce15299d849d52cdf67a616140676d61313539363739313936392e38373739', NULL),
(28, 'امید ', 'باقریان', NULL, '09035490665', '<EMAIL>', '$2y$10$eX1eo/rbUL1I2Uqew/6ddO88xGHkYd4AajCh93dsf.B6dBpJOOd1W', 0, 'user', '4b210d828e57f40472e1972711f7b9b66261657240676d313539363739313733352e37333835', NULL),
(27, 'hossein', 'zafari', NULL, '3343434', '<EMAIL>', '$2y$10$KuPi8.tMvqPJHe2htRPqJuZXnkciqZVBhp9iUjJsAk58CHe3cyQDK', 0, 'user', '8b693ce5b21d5ea112877acc4653e895686f7340672e63313539363733353932302e35323735', NULL),
(26, 'hossein', 'zafari', NULL, '3343434', '<EMAIL>', <PASSWORD>', 0, 'user', 'e8e485efb14d06d84ad583738f0fda72686f313539363733353832392e33343539', NULL),
(25, 'hossein ', 'zafari', NULL, '09035490726', '<EMAIL>', '$2y$10$hwFaCC3/YlHVgBb/EdBvbuJ8prbOLmP1Maax0558S152.2JFjei1K', 1, 'user', NULL, NULL),
(24, 'hossein ', 'zafari', NULL, '09035490726', '<EMAIL>', '$2y$10$juJ1hv3D.9cysw44uN8p3umK/wEmCYMoogThJ2WZpFFvYzjfrc4fm', 0, 'admin', NULL, NULL);
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 */;
|
/*
SQLyog Ultimate v10.00 Beta1
MySQL - 5.6.37-log
@author ahming
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
insert into `tc_attr_value` (`id`, `category_id`, `attr_item_id`, `name`, `alias`, `no`, `sort`, `parent_id`, `parent_ids`, `level`, `type`, `image`, `image_resource_id`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`) values('8ddedd1f1f6a4a35b013ab2cd7ff8966','e626416f233b11e888080a002700000b','c1e9b85f9a0f4ceca914f58f1efc2053','文档','','28105','30','1','0,1,','1','t','','','1','2019-01-13 00:23:10','1','2019-01-13 00:23:10','','0');
insert into `tc_attr_value` (`id`, `category_id`, `attr_item_id`, `name`, `alias`, `no`, `sort`, `parent_id`, `parent_ids`, `level`, `type`, `image`, `image_resource_id`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`) values('bdd202bf295743a285acf57761383d86','e626416f233b11e888080a002700000b','c1e9b85f9a0f4ceca914f58f1efc2053','图片','','28101','30','1','0,1,','1','t','','','1','2019-01-12 23:31:42','1','2019-01-12 23:31:42','','0');
insert into `tc_attr_value` (`id`, `category_id`, `attr_item_id`, `name`, `alias`, `no`, `sort`, `parent_id`, `parent_ids`, `level`, `type`, `image`, `image_resource_id`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`) values('e4c72d0813414fe39cfdf6724b98450d','e626416f233b11e888080a002700000b','c1e9b85f9a0f4ceca914f58f1efc2053','大尺寸','','28102','30','bdd202bf295743a285acf57761383d86','0,1,bdd202bf295743a285acf57761383d86,','2','t','','','1','2019-01-12 23:39:18','1','2019-01-12 23:39:18','','0');
insert into `tc_attr_value` (`id`, `category_id`, `attr_item_id`, `name`, `alias`, `no`, `sort`, `parent_id`, `parent_ids`, `level`, `type`, `image`, `image_resource_id`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`) values('166acf036d514d68adf2838fe5d5cbb8','e626416f233b11e888080a002700000b','fd208a0cab36425f83d4147f8a2c0d03','科学类','','28104','30','1','0,1,','1','t','','','1','2019-01-13 00:04:48','1','2019-01-13 00:04:48','','0');
insert into `tc_attr_value` (`id`, `category_id`, `attr_item_id`, `name`, `alias`, `no`, `sort`, `parent_id`, `parent_ids`, `level`, `type`, `image`, `image_resource_id`, `create_by`, `create_date`, `update_by`, `update_date`, `remarks`, `del_flag`) values('768ea658735b40c4945d782f4884ea5e','e626416f233b11e888080a002700000b','fd208a0cab36425f83d4147f8a2c0d03','文学类','','28103','30','1','0,1,','1','t','','','1','2019-01-13 00:04:22','1','2019-01-13 00:04:22','','0');
|
/****** Object: StoredProcedure [dbo].[RemoveOldJobs] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE dbo.RemoveOldJobs
/****************************************************
**
** Desc:
** Delete jobs past their expiration date
** from the main tables in the database
**
** Return values: 0: success, otherwise, error code
**
** Auth: grk
** 12/18/2008 grk - initial release
** 12/29/2008 mem - Updated to use Start time if Finish time is null and the Job has failed (State=5)
** 02/19/2009 grk - Added call to RemoveSelectedJobs (Ticket #723)
** 02/26/2009 mem - Now passing @LogDeletions=0 to RemoveSelectedJobs
** 05/31/2009 mem - Updated @intervalDaysForSuccess to support partial days (e.g. 0.5)
** 02/24/2012 mem - Added parameter @MaxJobsToProcess with a default of 25000
** 08/20/2013 mem - Added parameter @LogDeletions
** 03/10/2014 mem - Added call to SynchronizeJobStatsWithJobSteps
** 01/18/2017 mem - Now counting job state 7 (No Intermediate Files Created) as Success
**
*****************************************************/
(
@intervalDaysForSuccess real = 45, -- successful job must be this old to be deleted (0 -> no deletion)
@intervalDaysForFail int = 135, -- failed job must be this old to be deleted (0 -> no deletion)
@infoOnly tinyint = 0, -- 1 -> don't actually delete, just dump list of jobs that would have been
@message varchar(512)='' output,
@ValidateJobStepSuccess tinyint = 0,
@JobListOverride varchar(max) = '', -- Comma separated list of jobs to remove from T_Jobs, T_Job_Steps, and T_Job_Parameters
@MaxJobsToProcess int = 25000,
@LogDeletions tinyint = 0 -- When 1, then logs each deleted job number in T_Log_Entries; when 2 then prints a log message (but does not log to T_Log_Entries)
)
As
set nocount on
declare @myError int
declare @myRowCount int
set @myError = 0
set @myRowCount = 0
declare @saveTime datetime
set @saveTime = getdate()
---------------------------------------------------
-- Create table to track the list of affected jobs
---------------------------------------------------
--
CREATE TABLE #SJL (
Job INT not null,
State INT
)
CREATE INDEX #IX_SJL_Job ON #SJL (Job)
CREATE TABLE #TmpJobsNotInHistory (
Job int not null,
State int,
JobFinish datetime
)
CREATE INDEX #IX_TmpJobsNotInHistory ON #TmpJobsNotInHistory (Job)
---------------------------------------------------
-- Validate the inputs
---------------------------------------------------
If IsNull(@intervalDaysForSuccess, -1) < 0
Set @intervalDaysForSuccess = 0
If isNull(@intervalDaysForFail, -1) < 0
Set @intervalDaysForFail = 0
Set @JobListOverride = IsNull(@JobListOverride, '')
Set @MaxJobsToProcess = IsNull(@MaxJobsToProcess, 25000)
Set @LogDeletions = IsNull(@LogDeletions, 0)
Set @infoOnly = IsNull(@infoOnly, 0)
Set @message = ''
---------------------------------------------------
-- Make sure the job Start and Finish values are up-to-date
---------------------------------------------------
--
Exec SynchronizeJobStatsWithJobSteps @infoOnly=0
---------------------------------------------------
-- add old successful jobs to be removed to list
---------------------------------------------------
--
if @intervalDaysForSuccess > 0
begin -- <a>
declare @cutoffDateTimeForSuccess datetime
set @cutoffDateTimeForSuccess = dateadd(hour, -1 * @intervalDaysForSuccess * 24, getdate())
INSERT INTO #SJL
SELECT TOP (@MaxJobsToProcess) Job, State
FROM T_Jobs
WHERE
State in (4,7) AND -- 4=Complete, 7=No Intermediate Files Created
Finish < @cutoffDateTimeForSuccess
ORDER BY Finish
--
SELECT @myError = @@error, @myRowCount = @@rowcount
--
if @myError <> 0
begin
set @message = 'Error looking for successful jobs to remove'
goto Done
end
if @ValidateJobStepSuccess <> 0
Begin
-- Remove any jobs that have failed, in progress, or holding job steps
DELETE #SJL
FROM #SJL INNER JOIN
T_Job_Steps JS ON #SJL.Job = JS.Job
WHERE NOT (JS.State IN (3, 5))
--
SELECT @myError = @@error, @myRowCount = @@rowcount
If @myRowCount > 0
Print 'Warning: Removed ' + Convert(varchar(12), @myRowCount) + ' job(s) with one or more steps that was not skipped or complete'
Else
Print 'Successful jobs have been confirmed to all have successful (or skipped) steps'
End
end -- </a>
---------------------------------------------------
-- add old failed jobs to be removed to list
---------------------------------------------------
--
if @intervalDaysForFail > 0
begin -- <b>
declare @cutoffDateTimeForFail datetime
set @cutoffDateTimeForFail = dateadd(day, -1 * @intervalDaysForFail, getdate())
INSERT INTO #SJL
SELECT Job, State
FROM T_Jobs
WHERE
State = 5 AND -- 5=Failed
IsNull(Finish, Start) < @cutoffDateTimeForFail
--
SELECT @myError = @@error, @myRowCount = @@rowcount
--
if @myError <> 0
begin
set @message = 'Error looking for successful jobs to remove'
goto Done
end
end -- </b>
---------------------------------------------------
-- Add any jobs defined in @JobListOverride
---------------------------------------------------
If @JobListOverride <> ''
Begin
INSERT INTO #SJL
SELECT Job,
State
FROM T_Jobs
WHERE Job IN ( SELECT DISTINCT VALUE
FROM dbo.udfParseDelimitedIntegerList ( @JobListOverride, ',' ) )
AND NOT Job IN (SELECT Job FROM #SJL)
End
---------------------------------------------------
-- Make sure the jobs to be deleted exist
-- in T_Jobs_History and T_Job_Steps_History
---------------------------------------------------
INSERT INTO #TmpJobsNotInHistory (Job, State)
SELECT #SJL.Job,
#SJL.State
FROM #SJL
LEFT OUTER JOIN T_Jobs_History JH
ON #SJL.Job = JH.Job
WHERE JH.Job IS NULL
--
SELECT @myError = @@error, @myRowCount = @@rowcount
If Exists (Select * from #TmpJobsNotInHistory)
Begin
Declare @JobToAdd int = 0
Declare @State int
Declare @SaveTimeOverride datetime
Declare @continue tinyint = 1
UPDATE #TmpJobsNotInHistory
SET JobFinish = Coalesce(J.Finish, J.Start, GetDate())
FROM #TmpJobsNotInHistory Target
INNER JOIN T_Jobs J
ON Target.Job = J.Job
While @Continue > 0
Begin
SELECT TOP 1 @JobToAdd = Job,
@State = State,
@SaveTimeOverride = JobFinish
FROM #TmpJobsNotInHistory
WHERE Job > @JobToAdd
ORDER BY Job
--
SELECT @myError = @@error, @myRowCount = @@rowcount
If @myRowCount = 0
Set @Continue = 0
Else
Begin
If @infoOnly > 0
Print 'Call copyJobToHistory for job ' + Cast(@JobToAdd as varchar(9)) + ' with date ' + Cast(@SaveTimeOverride as varchar(32))
Else
exec CopyJobToHistory @JobToAdd, @State, @message output, @OverrideSaveTime=1, @SaveTimeOverride=@SaveTimeOverride
End
End
End
---------------------------------------------------
-- do actual deletion
---------------------------------------------------
declare @transName varchar(64)
set @transName = 'RemoveOldJobs'
begin transaction @transName
exec @myError = RemoveSelectedJobs @infoOnly, @message output, @LogDeletions=@LogDeletions
if @myError = 0
commit transaction @transName
else
rollback transaction @transName
---------------------------------------------------
-- Exit
---------------------------------------------------
--
Done:
return @myError
GO
GRANT VIEW DEFINITION ON [dbo].[RemoveOldJobs] TO [DDL_Viewer] AS [dbo]
GO
GRANT VIEW DEFINITION ON [dbo].[RemoveOldJobs] TO [Limited_Table_Write] AS [dbo]
GO
|
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50505
Source Host : localhost:3306
Source Database : guoan
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2019-07-31 09:40:38
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for banner
-- ----------------------------
DROP TABLE IF EXISTS `banner`;
CREATE TABLE `banner` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) DEFAULT NULL,
`src` varchar(255) DEFAULT NULL COMMENT '图片地址',
`is_show` int(2) DEFAULT '0' COMMENT '是否显示 默认显示',
`datetime` int(12) DEFAULT NULL,
`type` varchar(255) DEFAULT 'index' COMMENT '幻灯类型 index为首页幻灯,suo为溯源页面幻灯',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of banner
-- ----------------------------
INSERT INTO `banner` VALUES ('1', '123123', 'b907dd5bedc1fbbb12b2438790e94b42.png', '0', '1563610675', 'index');
INSERT INTO `banner` VALUES ('2', '123123', 'c05dcd3fda9ab983869540cfe4b79c94.png', '0', '1563611074', 'index');
INSERT INTO `banner` VALUES ('4', 'dsadasd', '4de251a30f67ab28345546816cdd65e3.png', '0', '1563957781', 'index');
INSERT INTO `banner` VALUES ('5', '123', '21f5dea5cc8b1c5639bdcec392bcaf22.png', '0', '1564190507', 'suo');
INSERT INTO `banner` VALUES ('6', '大萨达', 'a1f8d10f269daf1535d2ffe586cb711d.png', '0', '1564190528', 'suo');
INSERT INTO `banner` VALUES ('7', 'as', '2917e96f8f2232cc0edbb6e899f53bd8.png', '0', '1564190544', 'suo');
INSERT INTO `banner` VALUES ('8', 'as', '2917e96f8f2232cc0edbb6e899f53bd8.png', '0', '1564190544', 'suo');
-- ----------------------------
-- Table structure for events
-- ----------------------------
DROP TABLE IF EXISTS `events`;
CREATE TABLE `events` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` varchar(255) CHARACTER SET utf8 DEFAULT NULL COMMENT '时间区间',
`event` text CHARACTER SET utf8 COMMENT '事件记录',
`time` int(11) DEFAULT NULL COMMENT '添加时间',
`is_show` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否显示(默认0显示,1不显示)',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
-- ----------------------------
-- Records of events
-- ----------------------------
INSERT INTO `events` VALUES ('5', '2018年4月23日', '与云南瀛滇律师事务所签订了史上第一份用区块链代币支付劳务费用的法律服务协议', '1', '0');
INSERT INTO `events` VALUES ('6', '2018年5月22日', '与云南瀛滇律师事务所签订了史上第一份用区块链代币支付劳务费用的法律服务协议', '1', '0');
INSERT INTO `events` VALUES ('7', '2018年6月18日', '成为云南省青年企业家商会副会长单位', '1', '0');
INSERT INTO `events` VALUES ('8', '2018年7月-8月', '连续举办三届“企业教练技术培训”,参与人数近千人', '1', '0');
INSERT INTO `events` VALUES ('9', '2018年4月23日', '在昆明创立', '1', '0');
INSERT INTO `events` VALUES ('10', '2018年5月22日', '与云南瀛滇律师事务所签订了史上第一份用区块链代币支付劳务费用的法律服务协议', '1', '0');
-- ----------------------------
-- Table structure for index
-- ----------------------------
DROP TABLE IF EXISTS `index`;
CREATE TABLE `index` (
`id` int(22) NOT NULL AUTO_INCREMENT,
`part` varchar(50) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`title_en` varchar(255) DEFAULT NULL COMMENT '英文标题',
`content` text,
`src` varchar(255) DEFAULT NULL COMMENT '排序',
`time` int(12) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of index
-- ----------------------------
INSERT INTO `index` VALUES ('2', '2', '实体产业与互联网高度融合', 'High Integration of Real Industry and Internet', '<p>共享经济,一般是指以获得一定报酬为主要目的 基于陌生人且存在物品使用权暂时转移的一种新 的经济模式。1</p>', '20190723/7e103fa804fb0fec5d667818c5264eb3.jpg', '1564480120');
INSERT INTO `index` VALUES ('3', '3', '线上销售和线下服务为一体', null, '<p>其本质是整合线下的闲散物品、劳动力、教育 医疗资源。有的也说共享经济是人们公平享有 社会资源各自以不同的方式付出和受益,共同获得经济红利</p>', '20190723/a91b705abaf544cfb00d632432c46439.jpg', '1563853553');
INSERT INTO `index` VALUES ('4', '4', '质量溯源方面', null, '<p>实现全产业链数据采集、存储与共享,近实时为 参与者提供商品整个生命周期内一切关联信息。</p>', '20190724/9b1574ec7370fd4a64b79861102636c4.png', '1563958878');
INSERT INTO `index` VALUES ('5', '5', '供需信息方面', null, '<p>打造了产业链所有环节共同参与的信息互动平台 能及时传导供需信息,为实现大规模订单式生产 提供有力支撑。</p>', '20190724/565a1fb847528f18352a0dbf8501b94b.png', '1563959479');
INSERT INTO `index` VALUES ('6', '6', '流通成本控制方面', null, '<p>采用TOKEN经济模式和IOT技术,将上下游产业链节点的责权 利在智能合约上约定,实时监控物流、仓储信息及时调控商品 流向流量,有效压降中间环节和库存消耗</p>', '20190724/0fc2778e3f0bf59050d073e361639fbb.jpg', '1563959663');
INSERT INTO `index` VALUES ('7', '7', '分享经济方面', null, '<p>基于区块链技术的创新模式,实现了海量分散和闲置资源平台化 协同化集聚,独创的激励机制重新定位了分享者经济角色,使分 享者不再是单纯的消费者,而是与平台利益高度一致的参与者</p>', '20190724/f762ee7b8da127752205b88afa6fc756.png', '1564107376');
INSERT INTO `index` VALUES ('1', '1', '共享经济两个特点', 'SHARED ECONOMIC CHARACTERISTICS', '', '', '1563959743');
-- ----------------------------
-- Table structure for messages
-- ----------------------------
DROP TABLE IF EXISTS `messages`;
CREATE TABLE `messages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(155) NOT NULL,
`email` varchar(155) DEFAULT NULL,
`phone` varchar(15) DEFAULT NULL COMMENT '手机号',
`content` varchar(255) DEFAULT NULL,
`reply` varchar(255) DEFAULT NULL COMMENT '管理员回复',
`is_show` int(2) DEFAULT '0' COMMENT '默认为0显示',
`status` int(2) DEFAULT '0' COMMENT '默认是未回复',
`time` int(12) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=17 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of messages
-- ----------------------------
INSERT INTO `messages` VALUES ('15', '123123', null, '12313123', 'dasdsada', null, '0', '0', null);
INSERT INTO `messages` VALUES ('16', '23werqwe', null, '13670208426', 'wqewqe', null, '0', '0', null);
-- ----------------------------
-- Table structure for news
-- ----------------------------
DROP TABLE IF EXISTS `news`;
CREATE TABLE `news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(155) DEFAULT NULL,
`content` text,
`img` varchar(50) DEFAULT NULL,
`sort` int(2) DEFAULT NULL COMMENT '排序',
`is_show` int(1) DEFAULT '0' COMMENT '是否首页显示0是1否',
`time` int(12) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of news
-- ----------------------------
INSERT INTO `news` VALUES ('1', '123', '<p style=\"text-align: center;\">哈哈哈哈哈</p><p style=\"text-align: center;\"><img src=\"/ueditor/php/upload/image/20190730/1564455614867176.png\" title=\"1564455614867176.png\" alt=\"1@23x.png\" style=\"width: 438px; height: 374px;\" width=\"438\" height=\"374\"/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('2', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('3', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('4', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('5', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('6', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('7', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('8', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('9', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('10', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('11', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('12', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('13', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('14', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
INSERT INTO `news` VALUES ('15', '123', '<p>123123123123<br/></p>', '20190723/8de10202b0929f360431344ec77589f4.jpg', '23213', '0', '1563873165');
-- ----------------------------
-- Table structure for notice
-- ----------------------------
DROP TABLE IF EXISTS `notice`;
CREATE TABLE `notice` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(155) DEFAULT NULL,
`content` text,
`img` varchar(50) DEFAULT NULL,
`sort` int(2) DEFAULT NULL COMMENT '排序',
`is_show` int(1) DEFAULT '0' COMMENT '是否首页显示0是1否',
`time` int(12) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of notice
-- ----------------------------
-- ----------------------------
-- Table structure for plan
-- ----------------------------
DROP TABLE IF EXISTS `plan`;
CREATE TABLE `plan` (
`id` int(22) NOT NULL AUTO_INCREMENT,
`part` varchar(50) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`src` varchar(255) DEFAULT NULL COMMENT '排序',
`time` int(12) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of plan
-- ----------------------------
-- ----------------------------
-- Table structure for system
-- ----------------------------
DROP TABLE IF EXISTS `system`;
CREATE TABLE `system` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`logo` varchar(50) DEFAULT NULL COMMENT '网站logo',
`describe` varchar(100) DEFAULT NULL COMMENT '网站描述',
`web_name` varchar(15) DEFAULT NULL COMMENT '网站名',
`seo` varchar(255) DEFAULT '0' COMMENT '搜索优化',
`web_close` int(2) DEFAULT '0' COMMENT '站点关闭',
`close_desc` varchar(150) DEFAULT NULL COMMENT '关闭描述',
`record` varchar(100) DEFAULT NULL COMMENT '备案号',
`wechat` varchar(50) DEFAULT NULL COMMENT '网站微信公众号',
`email` varchar(30) DEFAULT NULL,
`phone` int(11) DEFAULT NULL COMMENT '网站联系方式',
`qrcode` varchar(50) DEFAULT NULL COMMENT '客服二维码',
`company` varchar(255) DEFAULT NULL COMMENT '公司名称',
`address` varchar(200) DEFAULT NULL COMMENT '公司地址',
`qq` varchar(20) DEFAULT NULL,
`weibo` varchar(20) DEFAULT NULL COMMENT '微博号',
`zx_phone` varchar(20) DEFAULT NULL COMMENT '咨询电话',
`longitude` decimal(11,8) NOT NULL COMMENT '经度',
`latitude` decimal(11,8) DEFAULT NULL COMMENT '纬度',
`wechat_public` varchar(50) DEFAULT NULL COMMENT '微信公众号',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of system
-- ----------------------------
INSERT INTO `system` VALUES ('1', '20190530/f0d193b68e982cb7bc8857f14f06171c.png', '涵盖溯源防伪、供应链支付结算等领域的底层公链,致力于通过质量溯源、破除供需信息壁垒、调控商品供给,打造高度互信的新型经济协作生态体系,是祛除零售业痛点的根源性解决方案.', '熵云链', '熵云链', '1', '紧急关闭', '粤ICP备19007922号', '11', '<EMAIL>', '2147483647', '20190731/1fefed42f244b7ac8ad274467fc8e70d.png', '©国安较真(广东)科技有限公司', '广东省广州市 黄埔区科学大道50号绿地中央广场A3栋1802室', '200000000', '<EMAIL>', '13355225', '113.43758000', '23.17053800', '20190731/6405c69b396a9fd992973344bf08952a.png');
-- ----------------------------
-- Table structure for team
-- ----------------------------
DROP TABLE IF EXISTS `team`;
CREATE TABLE `team` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(155) DEFAULT NULL COMMENT '姓名',
`position` varchar(20) DEFAULT NULL COMMENT '职务',
`content` text,
`img` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of team
-- ----------------------------
-- ----------------------------
-- Table structure for trend
-- ----------------------------
DROP TABLE IF EXISTS `trend`;
CREATE TABLE `trend` (
`id` int(22) NOT NULL AUTO_INCREMENT,
`part` varchar(50) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`content` text,
`src` varchar(255) DEFAULT NULL COMMENT '排序',
`time` int(12) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='新闻资讯表';
-- ----------------------------
-- Records of trend
-- ----------------------------
INSERT INTO `trend` VALUES ('1', '1', '从农田到餐桌1', '<p>我国是农业大国,但农业发展举步维艰,农产品安全问题更是屡见报端,虽然管理部门积极采取措施加强各方面的管理和监督,但效果一直不理想。一方面消费者难以知晓农产品的“前世今生”,无法对农产品产生信任感;另一方面,一些虚假报道又对农产品的生产者造成难以估量的损失,伤农坑农现象屡屡发生。为此,基于二维码技术的农产品溯源系统,集中展示了农产品种植生产和加工销售过程,不仅保障了农产品质量安全、打消了消费者的担忧,更是对农业生产者的督促与支持。可以说溯源系统是解决农产品安全问题、促进农业发展的重要应用。1111111</p>', '20190730/c021f59ea83b59bf7bfee09c54197ec6.jpg', '1564481262');
INSERT INTO `trend` VALUES ('2', '2', '种植业溯源', '<p>对种子产品的生产、仓储、物流运输、市场巡检及消费等环节进行数据采集跟踪,实现产品生产环节、仓储环节、销售环节、流通环节和服务环\r\n节的全生命周期管理\r\n </p>', '20190727/0528fbb44bf77c41d8b215cfa8173de8.png', '1564192140');
INSERT INTO `trend` VALUES ('3', '3', '畜牧业溯源', '<p>畜牧养殖追溯体系能实现畜禽养殖、屠宰加工物流配送、消费终端等全产业链的无缝监管,做到肉类来源可追溯、去向可查证、责任可追究\r\n </p>', '20190727/c06155b5a866bfa8f034f3f5ea2fd0b8.png', '1564192239');
INSERT INTO `trend` VALUES ('4', '4', '食品溯源', '<p>畜牧养殖追溯体系能实现畜禽养殖、屠宰加工物流配送、消费终端等全产业链的无缝监管,做到肉类来源可追溯、去向可查证、责任可追究</p>', '20190727/2267f660f90f8963fbc0495b89a089e8.png', '1564192289');
INSERT INTO `trend` VALUES ('5', '5', '重要产品溯源', '<p>畜牧养殖追溯体系能实现畜禽养殖、屠宰加工物流配送、消费终端等全产业链的无缝监管,做到肉类来源可追溯、去向可查证、责任可追究</p>', '20190727/7da8ba6f14992c1ffa3599451a4318b4.png', '1564192319');
INSERT INTO `trend` VALUES ('6', '6', '国以民为本 民以食为天 食以安为先', '<p>国家以人民为根基,而人民以粮食为自己生活所系,食物以安全为首要条件,食物安全以食物的质量为根本,而要做保证食物的质量,又得以食物的生产者(生产商和农户等)的诚信为根本</p>', '20190727/9917950691a049c3c5be9dee290a1567.png', '1564192464');
INSERT INTO `trend` VALUES ('7', '7', '国安溯源云平台', '<p>通过记录产品的源头,从供应链下游至上游进行识别,追溯每一批产品品质来源。企业通过扫描产品上的二维码即可查询产品来源信息、营养元素信息、生产加工操作信息、运输仓储和销售等环节的相关信息,以便于监控和追溯产品源头。同时也能够了解产品从源头到物流一系列信息出现问题也可层层溯源……\r\n </p>', '20190727/dcab8ce944843d80255c161d6729d148.png', '1564192503');
INSERT INTO `trend` VALUES ('8', '8', '食品溯源意义', '', '20190727/28a8cf5856ae16966c028f1a1350409e.png', '1564192537');
INSERT INTO `trend` VALUES ('9', '9', '对社会', '<p>提高食品质量安全监管水平提高对问题食品的发现和处理能力防止重大安全事件的发生于蔓延促进食品流通和出口贸易</p>', '20190726/f37f0f721f9ddf701c0e0784643aea9a.jpg', '1564192576');
INSERT INTO `trend` VALUES ('10', '10', '对企业', '<p>杜绝假冒伪劣注重产品的品质和服务提升企业品牌和知名度拓宽市场份额树立行业标杆打造核心竞争力持续优化企业产品生产流通经销全流程提高企业生产效率\r\n 提高企业生产经营利润</p>', '20190726/f37f0f721f9ddf701c0e0784643aea9a.jpg', '1564192614');
INSERT INTO `trend` VALUES ('11', '11', '对消费者', '<p>提高产品生产加工流通销售各环节信息透明保障消费者合法权益\r\n有利于消费者维权及反馈使消费者得到更优质的售前体验和售后服务</p>', '20190726/f37f0f721f9ddf701c0e0784643aea9a.jpg', '1564192644');
INSERT INTO `trend` VALUES ('12', '12', '种植农特溯源', '<p>平台整合农产品产地环境、生产档案、检测数据形成农产品质量安全溯源数据。终端用户通过平台进行农产品全程溯源信息查询的统计入口,用户通过农产品唯一安全码(二维码)即可查看农产品从生长到销售各个重要环节的详细信息\r\n </p>', '20190727/41ef78f63282603495dd83c1894c1d9f.png', '1564192705');
INSERT INTO `trend` VALUES ('13', '13', '散养禽畜溯源', '<p>畜牧养殖追溯体系能实现畜禽养殖、屠宰加工、物流配送、消费终端等全产业链的无缝监管,做到肉类来源可追溯、去向可查证、责任可追究,应用于散养禽类(运动记步、健康监测)、散养畜类(运动轨迹、健康监测)等业务场景</p>', '20190727/c3c1c0daa3e19f37c3e9c2bfc391c21c.png', '1564192757');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(15) NOT NULL,
`password` varchar(36) NOT NULL,
`pass` int(2) DEFAULT '0' COMMENT '是否通过,0代表正常,1代表封号',
`img` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COMMENT='后台管理员表';
-- ----------------------------
-- Records of user
-- ----------------------------
INSERT INTO `user` VALUES ('1', 'admin', '<PASSWORD>0e89', '0', null);
INSERT INTO `user` VALUES ('3', 'lisi', '<KEY>', '1', null);
INSERT INTO `user` VALUES ('4', 'wangwu', '5d73137c4ab5fca28f421b2bf3cd0e89', '0', null);
INSERT INTO `user` VALUES ('5', 'zhangsan', '<KEY>', '0', null);
INSERT INTO `user` VALUES ('6', 'zhaoliu', '5d73137c4ab5fca28f421b2bf3cd0e89', '0', null);
|
<filename>emit-monitoring/emit-services/src/main/resources/fr/icam/emit/queries/brokers/size.sql
SELECT
count(b.`uri`) AS size
FROM `brokers` b
WHERE b.`user` = ?; |
<filename>scripts/migrations/postgres/20211214182257_profile_birthday.up.sql
ALTER TABLE profile
ALTER COLUMN birthday DROP NOT NULL; |
-- Copyright (c) YugaByte, Inc.
alter table customer_config add column if not exists config_name varchar(100) null;
update customer_config set config_name = concat(name, '-Default') where config_name is null;
create index if not exists unique_config_name on customer_config (config_uuid, name, config_name);
|
<filename>sql/_13_issues/_13_1h/cases/bug_bts_9918.sql
--TEST: [I18N] IF function doesn't work well with CHARSET AND COLLATION function.
set names utf8;
create table t1 (id int, a varchar(10) charset utf8 collate utf8_en_ci, b varchar(10) charset iso88591 collate iso88591_en_ci);
insert into t1 values (1, 'A', 'a'), (2, 'B', 'b');
select charset(if(id%2, _utf8'a', _iso88591'b')), collation(if(id%2, _utf8'a', _iso88591'b' collate iso88591_en_ci)) from t1;
select charset(if(id%2, _utf8'a', a)), collation(if(id%2, _utf8'a', a)) from t1;
select charset(if(id%2, _utf8'a', b)), collation(if(id%2, _utf8'a', b)) from t1;
select charset(if(id%2, a, b)), collation(if(id%2, a, b)) from t1;
select charset(decode(id, 1, _utf8'a', 2, _iso88591'b')), collation(decode(id, 1, _utf8'a', 2, _iso88591'b' collate iso88591_en_ci)) from t1;
select charset(decode(id, 1, _utf8'a', 2, a)), collation(decode(id, 1, _utf8'a', 2, a)) from t1;
select charset(decode(id, 1, _utf8'a', 2, b)), collation(decode(id, 1, _utf8'a', 2, b)) from t1;
select charset(decode(id, 1, a, 2, b)), collation(decode(id, 1, a, 2, b)) from t1;
drop table t1;
set names iso88591;
|
alter table question modify description longtext not null;
|
delete from estados
where sigla = 'MN'
delete from estados
where id >= 1000
select * from estados |
-- @(#) $Id: //bas/CGK/src/ccm/rsbr/sapdba_role.sql#1 $ SAP
-- Create/update sapdba role
-- This script can only be run on Oracle 9i or higher
-- Calling syntax (sapdba_role.sql in current directory):
-- sqlplus /nolog @sapdba_role <SAPSCHEMA_ID> [<PDB_NAME>]
-- <SAPSCHEMA_ID> - for owner SAPR3: R3, SAP<SID>: <SID>, SAP<SID>DB: <SID>DB
-- <PDB_NAME> - pluggable database name (only for multitenant database)
-- For ROOT container database: sqlplus /nolog @sapdba_role NONE ROOT
-- Log file sapdba_role.log will be created in current directory
set echo off;
set termout off;
set linesize 250;
spool sapdba_role.log
whenever sqlerror exit sql.sqlcode
connect / as sysdba;
whenever sqlerror continue
define User = ' '
variable Owner VARCHAR2(30)
variable Pref_os_auth VARCHAR2(30)
variable Pref_com_user VARCHAR2(30)
execute -
if length('&&1') >= 6 and substr(upper('&&1'), 1, 3) = 'SAP' or upper('&&1') = 'SAPR3' then -
:Owner := upper('&&1'); -
else -
:Owner := upper('SAP&&1'); -
end if
column arg2 noprint new_value 2
select null arg2 from dual where 1 = 2;
declare
Curs INTEGER;
Statement VARCHAR2(128);
RetWert INTEGER;
V_User VARCHAR2(30);
role_exists EXCEPTION;
pragma exception_init (role_exists, -1921);
cursor Curs_1 is select username from sys.dba_users where username like :Pref_os_auth or username like :Pref_com_user;
begin
Curs := dbms_sql.open_cursor;
begin
select upper(value) || '%' into :Pref_os_auth from v$parameter where name = 'os_authent_prefix';
exception
when others then
:Pref_os_auth := 'OPS$%';
end;
if '&&2' is not null and length('&&2') >= 3 then
begin
select upper(value) || 'BRT$%' into :Pref_com_user from v$parameter where name = 'common_user_prefix';
exception
when others then
:Pref_com_user := 'C##BRT$%';
end;
else
:Pref_com_user := 'BRT$%';
end if;
if '&&2' is not null and length('&&2') >= 3 and '&&2' <> 'ROOT' then
begin
Statement := 'alter session set container = "&2"';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
end if;
if '&&2' is null or length('&&2') >= 3 and '&&2' <> 'ROOT' then
begin
Statement := 'create role sapdba';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
exception
when role_exists then
NULL;
end;
end if;
begin
open curs_1;
loop
fetch curs_1 into V_User;
exit when curs_1%notfound;
if '&&2' is null or length('&&2') >= 3 and '&&2' <> 'ROOT' then
begin
Statement := 'grant sapdba to "' || V_User || '"';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
end if;
if '&&2' is not null and length('&&2') >= 3 and '&&2' = 'ROOT' then
begin
Statement := 'grant create session to "' || V_User || '" container = all';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant alter session to "' || V_User || '" container = all';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant set container to "' || V_User || '" container = all';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant select_catalog_role to "' || V_User || '" container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant create synonym to "' || V_User || '" container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant analyze any dictionary to "' || V_User || '" container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant analyze any to "' || V_User || '" container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'grant gather_system_statistics to "' || V_User || '" container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'alter user "' || V_User || '" set container_data = all for v_$pdbs container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
begin
Statement := 'alter user "' || V_User || '" set container_data = all for dba_pdbs container = current';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
end if;
end loop;
close curs_1;
end;
if '&&2' is not null and length('&&2') >= 3 and '&&2' <> 'ROOT' then
begin
Statement := 'grant sapdba to sysbackup';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
end if;
begin
select username into V_User from sys.dba_users where username = :Owner;
exception
when others then
:Owner := 'SAPSR3';
end;
dbms_sql.close_cursor(Curs);
end; -- procedure
/
spool off
set echo off;
set termout off;
whenever sqlerror exit success
declare
Curs INTEGER;
Statement VARCHAR2(128);
RetWert NUMBER;
begin
Curs := dbms_sql.open_cursor;
-- trigger a dummy error to exit the script for ROOT container
if '&&2' is not null and length('&&2') >= 3 and '&&2' = 'ROOT' then
begin
Statement := 'drop role sapdba';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
end;
end if;
dbms_sql.close_cursor(Curs);
end; -- procedure
/
whenever sqlerror continue
spool sapdba_role.log append
grant sapdba to system;
grant select_catalog_role to sapdba;
grant select on sys.file$ to sapdba;
grant select on sys.ts$ to sapdba;
grant select on sys.uet$ to sapdba;
grant select on sys.fet$ to sapdba;
grant select on sys.obj$ to sapdba;
grant select on sys.seg$ to sapdba;
grant select on sys.tab$ to sapdba;
grant select on sys.ind$ to sapdba;
grant select on sys.clu$ to sapdba;
grant select on sys.lob$ to sapdba;
grant select on sys.user$ to sapdba;
grant select on sys.object_usage to sapdba;
grant select on sys.redef_object$ to sapdba;
grant create session to sapdba;
grant create view to sapdba;
grant create synonym to sapdba;
grant alter session to sapdba;
grant alter system to sapdba;
grant alter database to sapdba;
grant alter tablespace to sapdba;
grant alter any table to sapdba;
grant alter any index to sapdba;
grant alter any procedure to sapdba;
grant analyze any to sapdba;
grant analyze any dictionary to sapdba;
grant execute any procedure to sapdba;
grant gather_system_statistics to sapdba;
grant create public synonym to sapdba;
grant drop public synonym to sapdba;
grant create job to sapdba;
column dummy noprint new_value User
select :Owner dummy from dual;
grant ALL on &User..SDBAH to sapdba;
grant ALL on &User..SDBAD to sapdba;
grant ALL on &User..DBAML to sapdba;
grant ALL on &User..DBARCL to sapdba;
grant ALL on &User..DBAFID to sapdba;
grant ALL on &User..DBAEXTL to sapdba;
grant ALL on &User..DBAREOL to sapdba;
grant ALL on &User..DBABARL to sapdba;
grant ALL on &User..DBADFL to sapdba;
grant ALL on &User..DBAOPTL to sapdba;
grant ALL on &User..DBASPAL to sapdba;
grant ALL on &User..DBABD to sapdba;
grant ALL on &User..DBABL to sapdba;
grant ALL on &User..DBATL to sapdba;
grant ALL on &User..DBAOBJL to sapdba;
grant ALL on &User..DBAPHAL to sapdba;
grant ALL on &User..DBAGRP to sapdba;
grant ALL on &User..DBAERR to sapdba;
grant ALL on &User..DBATRIAL to sapdba;
grant ALL on &User..DBSTATC to sapdba;
grant ALL on &User..DBSTATTORA to sapdba;
grant ALL on &User..DBSTATIORA to sapdba;
grant ALL on &User..DBSTATHORA to sapdba;
grant ALL on &User..DBSTAIHORA to sapdba;
grant ALL on &User..DBMSGORA to sapdba;
grant ALL on &User..DBCHECKORA to sapdba;
grant ALL on &User..MLICHECK to sapdba;
grant SELECT on &User..TGORA to sapdba;
grant SELECT on &User..IGORA to sapdba;
grant SELECT on &User..TSORA to sapdba;
grant SELECT on &User..TAORA to sapdba;
grant SELECT on &User..IAORA to sapdba;
grant SELECT on &User..SVERS to sapdba;
grant SELECT on &User..CVERS to sapdba;
grant SELECT on &User..DD02L to sapdba;
grant SELECT on &User..DD09L to sapdba;
grant SELECT on &User..DDNTT to sapdba;
grant SELECT on &User..DDART to sapdba;
grant SELECT on &User..DARTT to sapdba;
grant SELECT on &User..DBCHK to sapdba;
grant SELECT on &User..DBDIFF to sapdba;
declare
Curs INTEGER;
Statement VARCHAR2(128);
RetWert NUMBER;
table_not_found EXCEPTION;
pragma exception_init (table_not_found, -942);
begin
Curs := dbms_sql.open_cursor;
begin
Statement := 'grant ALL on &User..SAPLIKEY to sapdba';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
exception
when table_not_found then
NULL;
end;
begin
Statement := 'grant SELECT on &User..RSNSPACE to sapdba';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
exception
when table_not_found then
NULL;
end;
begin
Statement := 'grant SELECT on &User..RSPSPACE to sapdba';
dbms_sql.parse(Curs, Statement, DBMS_SQL.NATIVE);
RetWert := dbms_sql.execute(Curs);
exception
when table_not_found then
NULL;
end;
dbms_sql.close_cursor(Curs);
end; -- procedure
/
exit;
|
DROP DATABASE IF EXISTS Employee_tracker_db;
CREATE DATABASE Employee_tracker_db;
USE Employee_tracker_db; |
<reponame>StarcadeDesigns/SQL-Learning
<<<<<<< HEAD
select top 2 adventurerid,silver
from AdventurerBalance
order by silver desc
=======
select top 2 adventurerid,silver
from AdventurerBalance
order by silver desc
>>>>>>> 8cd8c143e180df3ffab4ad726999a391a6ed3646
/* i need the top 2 adv. with the most silver*/ |
SELECT [FirstName]
,[LastName]
,[City]
FROM [Person].[Person], [Person].[Address]
WHERE [City] != 'Payson'
ORDER BY [Address].[City] |
-- migrate up
CREATE SCHEMA IF NOT EXISTS "acl";
-- application domains
CREATE TABLE "acl"."domain" (
id_domain SERIAL PRIMARY KEY,
"name" TEXT NOT NULL,
"key" TEXT NOT NULL UNIQUE,
description TEXT NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
-- domain roles
CREATE TABLE "acl"."role" (
id_role SERIAL PRIMARY KEY,
fk_domain INTEGER NOT NULL REFERENCES "acl"."domain" (id_domain),
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
description TEXT NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_domain, "key")
);
-- resource categories
CREATE TABLE "acl"."resource_category" (
id_resource_category SERIAL PRIMARY KEY,
fk_domain INTEGER NOT NULL REFERENCES "acl"."domain" (id_domain),
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
description TEXT NOT NULL,
fk_parent_resource_category INTEGER REFERENCES "acl"."resource_category" (id_resource_category),
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_domain, "key")
);
-- resource pages
CREATE TABLE "acl"."resource_page" (
id_resource_page SERIAL PRIMARY KEY,
fk_domain INTEGER NOT NULL REFERENCES "acl"."domain" (id_domain),
fk_resource_category INTEGER NOT NULL REFERENCES "acl"."resource_category" (id_resource_category),
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
description TEXT NOT NULL,
fk_parent_resource_page INTEGER REFERENCES "acl"."resource_page" (id_resource_page),
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_domain, fk_resource_category, "key")
);
-- resource types
CREATE TABLE "acl"."resource_type" (
id_resource_type SERIAL PRIMARY KEY,
"name" TEXT NOT NULL,
"key" TEXT NOT NULL UNIQUE,
description TEXT NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
-- resources
CREATE TABLE "acl"."resource" (
id_resource SERIAL PRIMARY KEY,
fk_domain INTEGER NOT NULL REFERENCES "acl"."domain" (id_domain),
fk_resource_type INTEGER NOT NULL REFERENCES "acl"."resource_type" (id_resource_type),
fk_resource_page INTEGER NOT NULL REFERENCES "acl"."resource_page" (id_resource_page),
"name" TEXT NOT NULL,
"key" TEXT NOT NULL,
description TEXT NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_domain, "key")
);
-- role resources
CREATE TABLE "acl"."role_resource" (
fk_role INTEGER NOT NULL REFERENCES "acl"."role" (id_role),
fk_resource INTEGER NOT NULL REFERENCES "acl"."resource" (id_resource),
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_role, fk_resource)
);
-- user resource restrictions
CREATE TABLE "acl"."user_resource" (
fk_user TEXT NOT NULL,
fk_resource INTEGER NOT NULL REFERENCES "acl"."resource" (id_resource),
"allow" BOOLEAN DEFAULT TRUE NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_user, fk_resource)
);
-- domain endpoints
CREATE TABLE "acl".endpoint (
id_endpoint SERIAL PRIMARY KEY,
fk_domain INTEGER NOT NULL REFERENCES "acl"."domain" (id_domain),
"method" TEXT NOT NULL,
"endpoint" TEXT NOT NULL,
description TEXT NOT NULL,
"check" BOOLEAN DEFAULT TRUE NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_domain, "method", "endpoint")
);
-- endpoint resources
CREATE TABLE "acl"."endpoint_resource" (
fk_role INTEGER NOT NULL REFERENCES "acl"."role" (id_role),
fk_endpoint INTEGER NOT NULL REFERENCES "acl"."endpoint" (id_endpoint),
fk_resource INTEGER NOT NULL REFERENCES "acl"."resource" (id_resource),
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
-- user endpoint restrictions
CREATE TABLE "acl"."user_endpoint" (
fk_user TEXT NOT NULL,
fk_endpoint INTEGER NOT NULL REFERENCES "acl"."endpoint" (id_endpoint),
"allow" BOOLEAN DEFAULT TRUE NOT NULL,
"active" BOOLEAN DEFAULT TRUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
UNIQUE(fk_user, fk_endpoint)
);
-- migrate down
DROP TABLE "acl"."user_endpoint";
DROP TABLE "acl"."endpoint_resource";
DROP TABLE "acl"."endpoint";
DROP TABLE "acl"."user_resource";
DROP TABLE "acl"."role_resource";
DROP TABLE "acl"."resource";
DROP TABLE "acl"."resource_type";
DROP TABLE "acl"."resource_page";
DROP TABLE "acl"."resource_category";
DROP TABLE "acl"."role";
DROP TABLE "acl"."domain";
DROP SCHEMA "acl" CASCADE;
|
<reponame>bradybyrd/hr_demo
alter table locations add (elevation number);
create or replace PROCEDURE "SECURE_DML"
IS
BEGIN
IF TO_CHAR (SYSDATE, 'HH24:MI') NOT BETWEEN '08:00' AND '18:00'
OR TO_CHAR (SYSDATE, 'DY') IN ('SAT', 'SUN') THEN
RAISE_APPLICATION_ERROR (-20205,
'You may only make changes during normal office hours, dummy');
END IF;
END secure_dml;
/
|
/* Delimitador */
SELECT C.NOME,
C.SEXO,
IFNULL(C.EMAIL,'CLIENTE SEM EMAIL') AS "E-MAIL",
T.TIPO,
T.NUMERO,
E.BAIRRO,
E.CIDADE,
E.ESTADO
FROM CLIENTE C
INNER JOIN TELEFONE T
ON C.IDCLIENTE = T.ID_CLIENTE
INNER JOIN ENDERECO E
ON C.IDCLIENTE = E.ID_CLIENTE
ORDER BY 1
STATUS
DELIMITER $
SELECT * FROM V_RELATORIO;
DELIMITER @
DELIMITER@
DELIMITER @ @
DELIMITER ;
/* STORED PROCEDURES */
SELECT 'MAFRA';
DELIMITER $
CREATE PROCEDURE NOME()
BEGIN
QUALQUER PROGRAMACAO;
END
$
DELIMITER $
CREATE PROCEDURE NOME_EMPRESA()
BEGIN
SELECT 'UNIVERSIDADE DOS DADOS' AS EMPRESA;
END
$
/* CHAMANDO UMA PROCEDURE */
CALL NOME_EMPRESA()$
DELIMITER ;
CALL NOME_EMPRESA();
/* PROCEDURES COM PARAMETROS */
SELECT 10 + 10 AS CONTA;
DELIMITER $
CREATE PROCEDURE CONTA()
BEGIN
SELECT 10 + 10 AS CONTA;
END
$
CALL CONTA();
DROP PROCEDURE CONTA;
DELIMITER $
CREATE PROCEDURE CONTA(NUMERO1 INT, NUMERO2 INT)
BEGIN
SELECT NUMERO1 + NUMERO2 AS CONTA;
END
$
CALL CONTA(100,50)$
CALL CONTA(345634,4354)$
CALL CONTA(55654,56760)$
CALL CONTA(45646,6766)$ |
REM /**********************************************************/
REM SCRIPT
REM _BEGIN.sql
REM TITLE
REM The startup script.
REM HINT
REM The startup script
REM NOTES
REM No
REM /**********************************************************/
@@_SET
@@_DEFINE
SPOOL &output
|
<gh_stars>1-10
USE master
CREATE DATABASE MinionsDB
USE MinionsDB
CREATE TABLE Countries
(
Id int PRIMARY KEY IDENTITY,
Name nvarchar(30) NOT NULL
)
CREATE TABLE Towns
(
Id int PRIMARY KEY IDENTITY,
Name nvarchar(50) NOT NULL,
CountryCode int NOT NULL REFERENCES Countries (Id)
)
CREATE TABLE Minions
(
Id int PRIMARY KEY IDENTITY,
Name nvarchar(50) NOT NULL,
Age int NOT NULL CHECK (Age >= 0),
TownId int NOT NULL REFERENCES Towns (Id)
)
CREATE TABLE EvilnessFactors
(
Id int PRIMARY KEY IDENTITY,
Name nvarchar(50) NOT NULL
CHECK (Name IN ('super good', 'good', 'bad', 'evil', 'super evil'))
)
CREATE TABLE Villains
(
Id int PRIMARY KEY IDENTITY,
Name nvarchar(30) NOT NULL,
EvilnessFactorId int NOT NULL REFERENCES EvilnessFactors (Id)
)
CREATE TABLE MinionsVillains
(
MinionId int NOT NULL REFERENCES Minions (Id),
VillainId int NOT NULL REFERENCES Villains (Id),
PRIMARY KEY (MinionId, VillainId)
)
use master
drop DATABASE MinionsDB |
-- Tutaj wpisujemy polecenia które będą uruchomione po aktualizacji bazy |
-----------------------------
-- A L T E R T A B L E S --
-----------------------------
alter table status
add column best_id varchar(10);
|
<filename>src/test/resources/sort.test_13.sql
-- sort.test
--
-- execsql {SELECT n FROM t1 ORDER BY log, flt}
SELECT n FROM t1 ORDER BY log, flt |
<reponame>jdkoren/sqlite-parser
-- randexpr1.test
--
-- db eval {SELECT coalesce((select 11 from t1 where exists(select 1 from t1 where not exists(select 1 from t1 where not (select +count(*)* -count(distinct case when exists(select 1 from t1 where 13+a=t1.b) then d else 13 end-t1.b) from t1)<=17 | e-13)) or not exists(select 1 from t1 where not t1.e in ((13),17,19) and not t1.d>a and t1.e not between t1.e and b)),coalesce((select max(coalesce((select max(b) from t1 where (b)>11),d)) from t1 where 11> -19),f)-c) FROM t1 WHERE NOT (case when -13 not in (b,(abs(coalesce((select max(case when -17<>t1.f then b when coalesce((select t1.b from t1 where t1.c in (select (a) from t1 union select c from t1)),17)<=t1.e then b else f end) from t1 where b<=11),t1.c))/abs((d))),19) then t1.b when (exists(select 1 from t1 where not exists(select 1 from t1 where ((13)=e and t1.f between 17 and t1.a) or t1.f between (a) and -(t1.f)))) and t1.e between b and 13 or b<>(f) then t1.f else d end>=a or d>=13)}
SELECT coalesce((select 11 from t1 where exists(select 1 from t1 where not exists(select 1 from t1 where not (select +count(*)* -count(distinct case when exists(select 1 from t1 where 13+a=t1.b) then d else 13 end-t1.b) from t1)<=17 | e-13)) or not exists(select 1 from t1 where not t1.e in ((13),17,19) and not t1.d>a and t1.e not between t1.e and b)),coalesce((select max(coalesce((select max(b) from t1 where (b)>11),d)) from t1 where 11> -19),f)-c) FROM t1 WHERE NOT (case when -13 not in (b,(abs(coalesce((select max(case when -17<>t1.f then b when coalesce((select t1.b from t1 where t1.c in (select (a) from t1 union select c from t1)),17)<=t1.e then b else f end) from t1 where b<=11),t1.c))/abs((d))),19) then t1.b when (exists(select 1 from t1 where not exists(select 1 from t1 where ((13)=e and t1.f between 17 and t1.a) or t1.f between (a) and -(t1.f)))) and t1.e between b and 13 or b<>(f) then t1.f else d end>=a or d>=13) |
<filename>src/test/resources/sql/select/81565685.sql<gh_stars>10-100
-- file:aggregates.sql ln:46 expect:true
select sum(null::float8) from generate_series(1,3)
|
-- file:numeric.sql ln:173 expect:true
INSERT INTO num_exp_sub VALUES (3,7,'83028489.31')
|
-- file:collate.icu.utf8.sql ln:340 expect:true
CREATE SCHEMA test_schema
|
<filename>persistence-modules/java-jpa-2/src/main/resources/products_jpa.sql
insert into product(id, name, description, category) values (1,'Product Name 1','This is Product 1', 'category1');
insert into product(id, name, description, category) values (2,'Product Name 2','This is Product 2', 'category1');
insert into product(id, name, description, category) values (3,'Product Name 3','This is Product 3', 'category2');
insert into product(id, name, description, category) values (4,'Product Name 4','This is Product 4', 'category3');
|
INSERT INTO [dbo].[interactionlevel] ([Code], [Name (en-CA)], [Name (fr-CA)]) VALUES ('LARGEGROUP', N'Large Group', N'Grand groupe')
INSERT INTO [dbo].[interactionlevel] ([Code], [Name (en-CA)], [Name (fr-CA)]) VALUES ('ONEONONE', N'One-on-one', N'Individuel')
INSERT INTO [dbo].[interactionlevel] ([Code], [Name (en-CA)], [Name (fr-CA)]) VALUES ('SMALLGROUP', N'Small Group', N'Petit groupe')
INSERT INTO [dbo].[interactionlevel] ([Code], [Name (en-CA)], [Name (fr-CA)]) VALUES ('SOLITARY', N'Solitary', N'Solitaire')
INSERT INTO [dbo].[interactionlevel] ([Code], [Name (en-CA)], [Name (fr-CA)]) VALUES ('VIRTUAL', N'Virtual Volunteering', N'Bénévolat virtuel')
|
-- MySQL dump 10.17 Distrib 10.3.22-MariaDB, for debian-linux-gnueabihf (armv8l)
--
-- Host: localhost Database: ipsen5groep11
-- ------------------------------------------------------
-- Server version 10.3.22-MariaDB-0+deb10u1
/*!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 */;
/*!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 `Batch`
--
DROP TABLE IF EXISTS `Batch`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Batch` (
`BatchID` varchar(255) NOT NULL,
`BatchName` varchar(255) NOT NULL,
`StandardMessage` varchar(255) DEFAULT NULL,
PRIMARY KEY (`BatchID`),
UNIQUE KEY `BatchID` (`BatchID`),
KEY `Batch_fk0` (`StandardMessage`),
CONSTRAINT `Batch_fk0` FOREIGN KEY (`StandardMessage`) REFERENCES `MessageTemplate` (`MessageID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Batch`
--
LOCK TABLES `Batch` WRITE;
/*!40000 ALTER TABLE `Batch` DISABLE KEYS */;
INSERT INTO `Batch` VALUES ('Datadump voorbeeld bestand.xlsx','Datadump voorbeeld bestand.xlsx',NULL),('Datadump voorbeeld bestand4.xlsx','Datadump voorbeeld bestand4.xlsx',NULL),('Datadump voorbeeld bestand7.xlsx','Datadump voorbeeld bestand7.xlsx',NULL),('Datadump_voorbeeld_bestand.xlsx','Datadump_voorbeeld_bestand.xlsx',NULL);
/*!40000 ALTER TABLE `Batch` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `BatchContactPersoon`
--
DROP TABLE IF EXISTS `BatchContactPersoon`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `BatchContactPersoon` (
`Contactpersoon` varchar(255) NOT NULL,
`Batch` varchar(255) NOT NULL,
PRIMARY KEY (`Contactpersoon`,`Batch`),
KEY `BatchContactPersoon_fk1` (`Batch`),
CONSTRAINT `BatchContactPersoon_fk0` FOREIGN KEY (`Contactpersoon`) REFERENCES `ContactPersoon` (`UserID`),
CONSTRAINT `BatchContactPersoon_fk1` FOREIGN KEY (`Batch`) REFERENCES `Batch` (`BatchID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `BatchContactPersoon`
--
LOCK TABLES `BatchContactPersoon` WRITE;
/*!40000 ALTER TABLE `BatchContactPersoon` DISABLE KEYS */;
INSERT INTO `BatchContactPersoon` VALUES ('432e52b2e278dcc7586ed4213256f210b7bd6536bf9b3071c642718c7a514eac','Datadump voorbeeld bestand4.xlsx'),('a3002e260050a9943af0fe3d30073fe6e8c5e741752e97483a3cc987f95f910e','Datadump_voorbeeld_bestand.xlsx'),('c34d8eaf3fe15d540a17821b29d2b5d5844b5a9133d7c59453fc118fdbadc58e','Datadump voorbeeld bestand7.xlsx'),('d6c71c4471bd9c36b56aa9b63e54f0e452f2e10eb29e7d01bad80b89956b766a','Datadump voorbeeld bestand.xlsx'),('d6c71c4471bd9c36b56aa9b63e54f0e452f2e10eb29e7d01bad80b89956b766a','Datadump_voorbeeld_bestand.xlsx'),('e2d4257514dc7671d3321209d0c83f7f52f2e10eb29e7d01bad80b89956b766a','Datadump voorbeeld bestand.xlsx'),('e2d4257514dc7671d3321209d0c83f7f52f2e10eb29e7d01bad80b89956b766a','Datadump_voorbeeld_bestand.xlsx'),('e6958e9fe19be5239698530a5a45b4cb4fc462e4a38b1ef860b237ff0659773d','Datadump voorbeeld bestand4.xlsx');
/*!40000 ALTER TABLE `BatchContactPersoon` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Chatbot`
--
DROP TABLE IF EXISTS `Chatbot`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Chatbot` (
`Username` varchar(50) NOT NULL,
`UserPassword` varchar(255) NOT NULL,
`Platform` varchar(255) NOT NULL,
PRIMARY KEY (`Username`),
KEY `Chatbot_fk0` (`Platform`),
CONSTRAINT `Chatbot_fk0` FOREIGN KEY (`Platform`) REFERENCES `Platform` (`PlatformName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Chatbot`
--
LOCK TABLES `Chatbot` WRITE;
/*!40000 ALTER TABLE `Chatbot` DISABLE KEYS */;
/*!40000 ALTER TABLE `Chatbot` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Contact`
--
DROP TABLE IF EXISTS `Contact`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Contact` (
`Username` varchar(255) NOT NULL,
`Platform` varchar(255) NOT NULL,
`UserID` varchar(255) NOT NULL,
PRIMARY KEY (`Username`,`Platform`),
KEY `Contact_fk0` (`Platform`),
KEY `Contact_fk1` (`UserID`),
CONSTRAINT `Contact_fk0` FOREIGN KEY (`Platform`) REFERENCES `Platform` (`PlatformName`),
CONSTRAINT `Contact_fk1` FOREIGN KEY (`UserID`) REFERENCES `ContactPersoon` (`UserID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Contact`
--
LOCK TABLES `Contact` WRITE;
/*!40000 ALTER TABLE `Contact` DISABLE KEYS */;
INSERT INTO `Contact` VALUES ('Thomas','whatssssapp,snapchat','2042101ac1f6e7741bfe43f3672e6d7c7fcd4d2535fac49da67b2115c85334a4'),('woeejwej','whatsapp','260550ea68207372d657367b6de47a00c4f79e15f8c6ed0715a8ea44aebc38d8'),('joumoma','snapchat','425b30a5c94efff0a991bcd562303497e6a7130b80d82c439b42321b8d31094f'),('sjoerd','insta','432e52b2e278dcc7586ed4213256f210b7bd6536bf9b3071c642718c7a514eac'),('Justsssassssaaswddsswwwdwdwdwdomebody','whatssssapp,snapchat','464b4694009bc16611242b9f7f3defdf7fcd4d2535fac49da67b2115c85334a4'),('Justsssasssaaswddsswwwdwdwdwdomebody','whatssssapp,snapchat','4b639f1da47802e67255b54f02d40d217fcd4d2535fac49da67b2115c85334a4'),('joumddeasasaaswwdwoma','snaspchat','5f3cb742e43b10a501270cd409f129b5640ba2370c69f1242beace90276cc804'),('assas','assas','<KEY>'),('wejo','bookface','8729cf270309a06fb95118fee420bd8ed07aa810539ae54c093a998349dd1539'),('sss','sss','9f6e6800cfae7749eb6c486619254b9c9f6e6800cfae7749eb6c486619254b9c'),('CKMofficial1','kik','a3002e260050a9943af0fe3d30073fe6e8c5e741752e97483a3cc987f95f910e'),('Anthsony2','snaspchat','b3297c0a30c169527edc56403656b76e640ba2370c69f1242beace90276cc804'),('mekatsten','facesmoel','c34d8eaf3fe15d540a17821b29d2b5d5844b5a9133d7c59453fc118fdbadc58e'),('jemoermoer','bookie','c41da11875328dea57f88ee198f9f7819f535b6ae672f627e4e5f79f2b7c63fe'),('Justsomebody','whatsapp,snapchat, kik','d6c71c4471bd9c36b56aa9b63e54f0e452f2e10eb29e7d01bad80b89956b766a'),('Justsomebody','whatsapp,snapchat','d6c71c4471bd9c36b56aa9b63e54f0e479188f5d22d9f5e7a20bc1e053245f54'),('Thsomas','whatssssapp,snapchat','e15bd765efcf652d4dac45741792280a7fcd4d2535fac49da67b2115c85334a4'),('Justsomebody2','whatsapp,snapchat, kik','e2d4257514dc7671d3321209d0c83f7f52f2e10eb29e7d01bad80b89956b766a'),('jemoer','facebook, meida','e6958e9fe19be5239698530a5a45b4cb4fc462e4a38b1ef860b237ff0659773d'),('thomas','facebook','ef6e65efc188e7dffd7335b646a85a2126cae7718c32180a7a0f8e19d6d40a59'),('thesedlife','kik ','efffc53cd9c0640226f0f66d9c5535f46141ba778e106295983fccd9384a7d3a'),('Anthony2','snaspchat','f2b8139131e85264c1d1aca08685f110640ba2370c69f1242beace90276cc804');
/*!40000 ALTER TABLE `Contact` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ContactPersoon`
--
DROP TABLE IF EXISTS `ContactPersoon`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ContactPersoon` (
`UserID` varchar(255) NOT NULL,
`ContactName` varchar(255) DEFAULT NULL,
`OriginalPost` varchar(255) DEFAULT NULL,
`CustomMessage` varchar(255) NOT NULL,
`SocialMedia` varchar(255) DEFAULT NULL,
`Info` varchar(255) DEFAULT NULL,
PRIMARY KEY (`UserID`),
UNIQUE KEY `UserID` (`UserID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ContactPersoon`
--
LOCK TABLES `ContactPersoon` WRITE;
/*!40000 ALTER TABLE `ContactPersoon` DISABLE KEYS */;
INSERT INTO `ContactPersoon` VALUES ('2042101ac1f6e7741bfe43f3672e6d7c7fcd4d2535fac49da67b2115c85334a4','Thomas','65.432.1.xxx','Leeg',NULL,'Teksfcesdcvscacast van het bericht'),('260550ea68207372d657367b6de47a00c4f79e15f8c6ed0715a8ea44aebc38d8',NULL,'2332.2323.23','Leeg',NULL,'vervelend'),('2d02e669731cbade6a64b58d602cf2a49f6e6800cfae7749eb6c486619254b9c','kummGAMER','hoi help mij','Focus op je school man..','insta','dit is mijn test info'),('425b30a5c94efff0a991bcd562303497e6a7130b80d82c439b42321b8d31094f',NULL,'34.34.34','Helpme',NULL,'Helpme'),('432e52b2e278dcc7586ed4213256f210b7bd6536bf9b3071c642718c7a514eac',NULL,'33.33.33.x','Leeg',NULL,'Het is je boi Wino'),('<KEY>','Justsssassssaaswddsswwwdwdwdwdomebody','65.432.1.xxx','Leeg',NULL,'Teksfcesdcvscacast van het bericht'),('4b639f1da47802e67255b54f02d40d217fcd4d2535fac49da67b2115c85334a4','Justsssasssaaswddsswwwdwdwdwdomebody','65.432.1.xxx','Leeg',NULL,'Teksfcesdcvscacast van het bericht'),('5f3cb742e43b10a501270cd409f129b5640ba2370c69f1242beace90276cc804','joumddeasasaaswwdwoma','34.34.34','Leeg',NULL,'Haccdwqssseqcewqqcelpme'),('600d475fa96e30530b548c9cfbb85187600d475fa96e30530b548c9cfbb85187','tessKiller64','what up gamers!?','dit is een test custom bericht','kik','Dit is een tessa :0'),('8729cf270309a06fb95118fee420bd8ed07aa810539ae54c093a998349dd1539','wejo','123.xxx.xxx.xxxx','Leeg',NULL,'last minut '),('8f60c8102d29fcd525162d02eed4566b9f6e6800cfae7749eb6c486619254b9c','antononiyo','doe je best man..','ik doe me best :)','kik','ik doe nogsteets me best'),('9f6e6800cfae7749eb6c486619254b9c9f6e6800cfae7749eb6c486619254b9c',NULL,NULL,'ssss',NULL,NULL),('a3002e260050a9943af0fe3d30073fe6e8c5e741752e97483a3cc987f95f910e','CKMofficial1','42.454.6.xxx','Leeg',NULL,'Ik ben heel alleen'),('b3297c0a30c169527edc56403656b76e640ba2370c69f1242beace90276cc804','Anthsony2','34.34.34','Leeg',NULL,'Haccdwqssseqcewqqcelpme'),('c34d8eaf3fe15d540a17821b29d2b5d5844b5a9133d7c59453fc118fdbadc58e','mekatsten','232.323.232.xxx','Leeg',NULL,'pas op op het internet!'),('c41da11875328dea57f88ee198f9f7819f535b6ae672f627e4e5f79f2b7c63fe','jemoermoer','2323','Leeg',NULL,'wejo'),('d6c71c4471bd9c36b56aa9b63e54f0e452f2e10eb29e7d01bad80b89956b766a','Justsomebody','65.432.1.xxx','Leeg',NULL,'Tekst van het bericht'),('d6c71c4471bd9c36b56aa9b63e54f0e479188f5d22d9f5e7a20bc1e053245f54',NULL,'65.432.1.xxx','Tekst van het bericht',NULL,'Tekst van het bericht'),('e15bd765efcf652d4dac45741792280a7fcd4d2535fac49da67b2115c85334a4','Thsomas','65.432.1.xxx','Leeg',NULL,'Teksfcesdcvscacast van het bericht'),('e2d4257514dc7671d3321209d0c83f7f52f2e10eb29e7d01bad80b89956b766a','Justsomebody2','65.432.1.xxx','Leeg',NULL,'Tekst van het bericht'),('e6958e9fe19be5239698530a5a45b4cb4fc462e4a38b1ef860b237ff0659773d',NULL,'23.2323.xx.xx','Leeg',NULL,'KOMT VECHTEN G'),('ef6e65efc188e7dffd7335b646a85a2126cae7718c32180a7a0f8e19d6d40a59',NULL,'213.322.322.xxx','leuk',NULL,'leuk'),('efffc53cd9c0640226f0f66d9c5535f46141ba778e106295983fccd9384a7d3a','thesedlife','144.12.2.xxx','Leeg',NULL,'Ik voel me onzeker, help me afvallen please.'),('f2b8139131e85264c1d1aca08685f110640ba2370c69f1242beace90276cc804','Anthony2','34.34.34','Leeg',NULL,'Haccdwqssseqcewqqcelpme'),('sss','Pinopilatuspas','yeet','Het internet is een grote plek vol enge mensen. Pas op met wat je post!','facebook','Mentaal instabiel');
/*!40000 ALTER TABLE `ContactPersoon` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Log`
--
DROP TABLE IF EXISTS `Log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Log` (
`Medewerker` varchar(255) NOT NULL,
`Info` varchar(255) NOT NULL,
`LogTime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`Medewerker`,`Info`,`LogTime`),
CONSTRAINT `Log_fk0` FOREIGN KEY (`Medewerker`) REFERENCES `Medewerker` (`Email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Log`
--
LOCK TABLES `Log` WRITE;
/*!40000 ALTER TABLE `Log` DISABLE KEYS */;
/*!40000 ALTER TABLE `Log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Medewerker`
--
DROP TABLE IF EXISTS `Medewerker`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Medewerker` (
`Email` varchar(50) NOT NULL,
`UserPassword` varchar(50) NOT NULL,
`Usertype` varchar(50) NOT NULL,
PRIMARY KEY (`Email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Medewerker`
--
LOCK TABLES `Medewerker` WRITE;
/*!40000 ALTER TABLE `Medewerker` DISABLE KEYS */;
INSERT INTO `Medewerker` VALUES ('<EMAIL>','ttt','default'),('<EMAIL>','meerblokjesismeerbeter','admin'),('<EMAIL>','@123fortnightchtmaster@','admin'),('<EMAIL>.ckm.nl','kwerkoverwerk','default');
/*!40000 ALTER TABLE `Medewerker` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `MessageTemplate`
--
DROP TABLE IF EXISTS `MessageTemplate`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `MessageTemplate` (
`MessageID` varchar(255) NOT NULL,
`Message` varchar(255) NOT NULL,
`Info` varchar(255) NOT NULL,
PRIMARY KEY (`MessageID`),
UNIQUE KEY `MessageID` (`MessageID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `MessageTemplate`
--
LOCK TABLES `MessageTemplate` WRITE;
/*!40000 ALTER TABLE `MessageTemplate` DISABLE KEYS */;
INSERT INTO `MessageTemplate` VALUES ('0','<NAME> flex niet zo hard dit is niet normaal. Als je zo hard dept en fortnightcht speelt ben je sws een probleem','Geschreven door Jemoeder, bedoel voor doelgroep 8-12 jaar'),('1','Hoi! Lees dit goed. Wees er van bewust dat je in rieel gevaar kan zijn, door de dingen die je post. Neem alsjeblieft contact met ons op.','Geschreven door Isabel, bedoel voor doelgroep 12-25 jaar'),('2','Kijk uit met wat je op internet zet!','Geschreven door Jan, bedoel voor doelgroep 12-40 jaar'),('3','Het internet is een grote plek vol enge mensen. Pas op met wat je post!','Geschreven door Henk, doelgroep: 25-35');
/*!40000 ALTER TABLE `MessageTemplate` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Platform`
--
DROP TABLE IF EXISTS `Platform`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Platform` (
`PlatformName` varchar(50) NOT NULL,
PRIMARY KEY (`PlatformName`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Platform`
--
LOCK TABLES `Platform` WRITE;
/*!40000 ALTER TABLE `Platform` DISABLE KEYS */;
INSERT INTO `Platform` VALUES ('assas'),('bookface'),('bookie'),('facebook'),('facebook, meida'),('facesmoel'),('insta'),('kik '),('snapchat'),('snaspchat'),('sss'),('whatsapp'),('whatsapp,snapchat'),('whatsapp,snapchat, kik'),('whatssssapp,snapchat');
/*!40000 ALTER TABLE `Platform` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `yeet`
--
DROP TABLE IF EXISTS `yeet`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `yeet` (
`piet` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `yeet`
--
LOCK TABLES `yeet` WRITE;
/*!40000 ALTER TABLE `yeet` DISABLE KEYS */;
/*!40000 ALTER TABLE `yeet` 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-06-22 5:22:29
|
<reponame>cocfire/springboot-origin
/*
Navicat PGSQL Data Transfer
Source Server : 172.16.43.94
Source Server Version : 90603
Source Host : 172.16.43.94:5432
Source Database : test
Source Schema : public
Target Server Type : PGSQL
Target Server Version : 90603
File Encoding : 65001
Date: 2021-11-08 19:15:21
*/
-- ----------------------------
-- Sequence structure for hello_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."hello_id_seq";
CREATE SEQUENCE "public"."hello_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 36
CACHE 1;
SELECT setval('"public"."hello_id_seq"', 36, true);
-- ----------------------------
-- Sequence structure for helloworld_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."helloworld_id_seq";
CREATE SEQUENCE "public"."helloworld_id_seq"
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 10
CACHE 1;
-- ----------------------------
-- Table structure for helloworld
-- ----------------------------
DROP TABLE IF EXISTS "public"."helloworld";
CREATE TABLE "public"."helloworld" (
"id" int4 DEFAULT nextval('hello_id_seq'::regclass) NOT NULL,
"api" varchar(255) COLLATE "default",
"core" varchar(255) COLLATE "default",
"data" varchar(255) COLLATE "default"
)
WITH (OIDS=FALSE)
;
-- ----------------------------
-- Records of helloworld
-- ----------------------------
INSERT INTO "public"."helloworld" VALUES ('36', '从这里插入数据', '从这里处理逻辑', '从这里操作datsbass');
-- ----------------------------
-- Alter Sequences Owned By
-- ----------------------------
-- ----------------------------
-- Primary Key structure for table helloworld
-- ----------------------------
ALTER TABLE "public"."helloworld" ADD PRIMARY KEY ("id");
|
<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v24_to_v25/11 Create Constraints/40730 ContractedStaff [PK, IX, D].sql
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
PRINT N'Creating primary key [ContractedStaff_PK] on [edfi].[ContractedStaff]'
GO
ALTER TABLE [edfi].[ContractedStaff] ADD CONSTRAINT [ContractedStaff_PK] PRIMARY KEY CLUSTERED ([StaffUSI], [EducationOrganizationId], [AccountNumber], [FiscalYear], [AsOfDate])
GO
PRINT N'Creating index [UX_ContractedStaff_Id] on [edfi].[ContractedStaff]'
GO
CREATE UNIQUE NONCLUSTERED INDEX [UX_ContractedStaff_Id] ON [edfi].[ContractedStaff] ([Id]) WITH (FILLFACTOR=75, PAD_INDEX=ON)
GO
PRINT N'Creating index [FK_ContractedStaff_Account] on [edfi].[ContractedStaff]'
GO
CREATE NONCLUSTERED INDEX [FK_ContractedStaff_Account] ON [edfi].[ContractedStaff] ([EducationOrganizationId], [AccountNumber], [FiscalYear])
GO
PRINT N'Creating index [FK_ContractedStaff_Staff] on [edfi].[ContractedStaff]'
GO
CREATE NONCLUSTERED INDEX [FK_ContractedStaff_Staff] ON [edfi].[ContractedStaff] ([StaffUSI])
GO
PRINT N'Adding constraints to [edfi].[ContractedStaff]'
GO
ALTER TABLE [edfi].[ContractedStaff] ADD CONSTRAINT [ContractedStaff_DF_CreateDate] DEFAULT (getdate()) FOR [CreateDate]
GO
ALTER TABLE [edfi].[ContractedStaff] ADD CONSTRAINT [ContractedStaff_DF_LastModifiedDate] DEFAULT (getdate()) FOR [LastModifiedDate]
GO
ALTER TABLE [edfi].[ContractedStaff] ADD CONSTRAINT [ContractedStaff_DF_Id] DEFAULT (newid()) FOR [Id]
GO
|
<reponame>pbuchholz/ObjectRelationalMapper
drop schema HealthMetrics RESTRICT; |
<filename>Connect.API/Connect.API/DBScript/connect-the-planet-mssql.sql
USE [Connect.Planet.API]
GO
/****** Object: Table [dbo].[GroupInfo] Script Date: 1/24/2021 9:04:40 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[GroupInfo](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[GroupId] [varchar](50) NOT NULL,
[Name] [varchar](100) NOT NULL,
[Description] [varchar](200) NOT NULL,
[CreateDate] [datetime] NOT NULL,
[ModifyDate] [datetime] NULL,
[MemberIds] [text] NULL,
[IsActive] [int] NOT NULL,
CONSTRAINT [PK_GroupInfo] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [u_groupid] UNIQUE NONCLUSTERED
(
[GroupId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [u_name] UNIQUE NONCLUSTERED
(
[Name] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[MessageHistories] Script Date: 1/24/2021 9:04:40 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[MessageHistories](
[ID] [bigint] IDENTITY(1,1) NOT NULL,
[UserId] [varchar](50) NOT NULL,
[Message] [text] NOT NULL,
[MessageDate] [datetime] NOT NULL,
[ModifyDate] [datetime] NULL,
[GroupId] [varchar](50) NOT NULL,
[IsActive] [int] NOT NULL,
CONSTRAINT [PK_MessageHistories] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[Users] Script Date: 1/24/2021 9:04:40 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Users](
[Id] [varchar](50) NOT NULL,
[Name] [varchar](100) NOT NULL,
[FirstName] [varchar](50) NOT NULL,
[LastName] [varchar](50) NULL,
[Email] [varchar](200) NOT NULL,
[CreateDate] [datetime] NOT NULL,
[ModifyDate] [datetime] NULL,
[LastSignInDate] [datetime] NULL,
[ConnectionId] [varchar](100) NULL,
[Token] [varchar](1) NULL,
[IsLive] [int] NOT NULL,
[IsActive] [int] NOT NULL,
CONSTRAINT [PK_Users] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [u_email] UNIQUE NONCLUSTERED
(
[Email] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MessageHistories] WITH CHECK ADD CONSTRAINT [FK_MessageHistories_GroupId] FOREIGN KEY([GroupId])
REFERENCES [dbo].[GroupInfo] ([GroupId])
GO
ALTER TABLE [dbo].[MessageHistories] CHECK CONSTRAINT [FK_MessageHistories_GroupId]
GO
ALTER TABLE [dbo].[MessageHistories] WITH CHECK ADD CONSTRAINT [FK_MessageHistories_UserId] FOREIGN KEY([UserId])
REFERENCES [dbo].[Users] ([Id])
GO
ALTER TABLE [dbo].[MessageHistories] CHECK CONSTRAINT [FK_MessageHistories_UserId]
GO
|
<reponame>ddd-cqrs-es/BookLibrary<filename>DBScripts/BookInventoryDB.sql
USE [BookRepositoryDB]
GO
/****** Object: Table [dbo].[Book] Script Date: 11/9/2017 8:52:43 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Book](
[BookId] [uniqueidentifier] NOT NULL,
[BookName] [nvarchar](max) NOT NULL,
[ISBN] [nvarchar](max) NOT NULL,
[DateIssued] [datetime2](7) NOT NULL,
[Description] [nvarchar](max) NULL,
CONSTRAINT [PK_Book] PRIMARY KEY CLUSTERED
(
[BookId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
/****** Object: Table [dbo].[BookRepository] Script Date: 11/9/2017 8:52:43 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[BookRepository](
[BookRepositoryId] [uniqueidentifier] NOT NULL,
[BookId] [uniqueidentifier] NOT NULL,
[Status] [int] NOT NULL,
[IsRemoved] [bit] NOT NULL,
CONSTRAINT [PK_BookRepository] PRIMARY KEY CLUSTERED
(
[BookRepositoryId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[History] Script Date: 11/9/2017 8:52:43 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[History](
[HistoryId] [uniqueidentifier] NOT NULL,
[BookId] [uniqueidentifier] NOT NULL,
[BookRepositoryId] [uniqueidentifier] NOT NULL,
[Note] [nvarchar](max) NOT NULL,
[CreatedOn] [datetime2](7) NOT NULL,
CONSTRAINT [PK_History] PRIMARY KEY CLUSTERED
(
[HistoryId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'死神', N'S003', CAST(N'2017-11-10 00:00:00.0000000' AS DateTime2), N'test')
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'265380e1-d01b-410a-a754-44aa16cab38e', N'闪电11人', N'S006', CAST(N'2017-11-02 00:00:00.0000000' AS DateTime2), N'test')
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'7a103421-88ce-48d7-8e49-5fbe24ca067e', N'火影忍者', N'S001', CAST(N'2017-11-01 00:00:00.0000000' AS DateTime2), N'test')
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'海贼王', N'S002', CAST(N'2017-11-29 00:00:00.0000000' AS DateTime2), N'test')
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'圣斗士星矢', N'S0056', CAST(N'2017-11-08 00:00:00.0000000' AS DateTime2), N'est')
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'蜡笔小新', N'S007', CAST(N'2017-11-02 00:00:00.0000000' AS DateTime2), N'test')
GO
INSERT [dbo].[Book] ([BookId], [BookName], [ISBN], [DateIssued], [Description]) VALUES (N'1ee98f79-83e1-46f1-8749-f023784bb8ad', N'我是谁', N'S943', CAST(N'2017-11-01 00:00:00.0000000' AS DateTime2), N'test')
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'2ec7ac07-6313-4cb0-802b-00d7f55fff63', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'7fef3925-f273-46de-a1dd-02d71470b2dd', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'a170293c-c69c-42f0-83d7-0c3b26b416e8', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'0f8b26cc-2804-4e33-8771-0e6d8317de31', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'd397f2ab-2a07-4c06-a901-0e7aa51f7041', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'ad00715d-fe97-481d-b131-1172b2e7b4f8', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'55084f19-ffb0-4b14-a7ec-17ef984da324', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'092cc2ad-216e-4353-a560-19750746cf03', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'9e827045-45d7-443b-a8e6-1b617ada8849', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'9ce723e6-dff0-40d0-a43d-1cb8c62846a6', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'54e5923b-d107-4a5e-9a25-1d0cdcd3af19', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'2970b580-348f-4c73-aa31-1dfe486cef5c', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'46d2671a-9d9e-4b4e-bec1-2590c91c2244', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'9c7070e6-6745-4e22-8c36-2708240cac13', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'd45a85b1-d5da-4ee1-9f32-2bdb8ac3de37', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'f3c321e2-9d73-4a2f-b2ea-3446f7bbb301', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'098d8e36-2630-449a-a37c-43c2a94bc46c', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'998229a3-2393-40e1-8fac-44ab20fa344b', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'38dab1bf-9b70-4f94-bf1e-459c0f488c37', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'ed94db17-96e8-40c2-b0a7-4970b751ee37', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'3abfbf55-373f-483f-bcce-4eb2c83b84ad', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'bd2f59b5-109e-4d47-b01b-4fd807922e68', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'e0658f3d-5fd1-4c90-9fa4-5035feb52177', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'11469d7b-1585-4c73-90f4-5134cd1e4da7', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'0347ed20-7512-4739-8315-526c136651c1', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'4f42ef0f-3ed0-4c6c-aaad-53bf43c6e67d', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'd4663575-7ab4-4ad2-9c2f-53cfcfaff74f', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'2fae2ba6-1e20-4c86-9c8d-540ec50c74c0', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'f5aaa8cb-dc23-43b2-8309-578d65f775a1', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'baa1f7a7-0ac6-4f76-bb93-579b225acfcf', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'58e32d5d-75ec-4240-a75d-580d058398b8', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'c40a7774-0617-4fc1-9c85-5cd9ba7564d2', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'6eacd0ae-2b26-46a1-b90f-672349607121', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'5e8fed36-82ae-46c0-b3ca-6957b1b8f182', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'1d90cb12-6a2e-454b-97b0-6ba33bfb2a88', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'a74dbb10-9815-454e-ac48-6ed1c6f48d63', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'6ebbc584-5dcd-45db-819c-78183228a2d3', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'a94b788f-7811-4580-a0f3-7e8d4e8f99e3', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'caac8537-76f9-4048-b7de-7f6b106eacc2', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'f29c0e0f-4047-4319-b6b7-7f8cf0003b46', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'6965a906-3e0d-49a2-8bab-86676676e157', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'909fb161-55a8-4314-b9e4-88f02d4d8c63', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'9e3564d6-4996-4be2-a990-90519395a777', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'afe5d45f-c0c3-40fb-bca5-91a59c76c144', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'24535f99-f6aa-4174-b557-96576e546f6a', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'c090fa1a-ca77-4b09-b496-98df1fc8caa4', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'b08a1e8a-2680-457e-84f1-9bf9c7a35a54', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'e8fc9300-be61-43f1-a177-9d9178b84ddc', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'996f3a85-0d4d-43be-8a09-9f3f7a45f18c', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'fd9180ff-0501-4550-9874-a3ddc0a0aaf3', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'54fa0755-6c13-4dd0-99cf-a61933d697cf', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'5f276ba4-8cb7-4c58-b3ab-a89a4ab26060', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'346c5233-f065-409e-b3b3-ab86c3ad71ae', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'551a2859-7151-40cb-acec-ae19fa8dd95f', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'bb583751-a682-44e2-bde2-b04ae675b9e7', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'90e1487f-4d22-4616-a620-b2cdd2d6e5ad', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'5f6808d9-5f09-4046-87a3-b6eaa9a49073', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'9baff069-1692-4852-94a3-bbf91c8a4996', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'58dabfaf-693f-464e-b19b-bc0a327142a1', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'72eb1c2f-2d1e-4549-bdd9-bed5b4cbdb83', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'70589129-14be-4451-a663-c110ed42da63', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'334b1952-975c-4f04-871f-c140b6ee927c', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'73b597dd-0f06-4baa-a810-c5b0e1ea125c', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'21e1f28f-9cdf-4edb-92b1-cb4b882f6a76', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'b43b6a34-76c9-408e-9bab-cf335e5b66da', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'a19c1b6c-ef49-46ef-9e72-d195f8df5e1e', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'158becd2-5b3b-440f-9cf9-d1ee95389884', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'5c382321-d00a-4e2a-95ba-d271ca57ece3', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'eea65a98-1336-4d9e-b298-d71c762f012f', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'62060c7f-457d-4a53-86d7-db7c2a2084fb', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'9164b097-507e-41c1-a02b-df5886e3eb15', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'ec7c46f5-0d52-41aa-b4e5-e4f174c9e733', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'25d5d1b3-1dcc-4461-b04e-ea95b3e169ca', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'42dbfdf4-afc3-40a1-8a02-efa49a9f6933', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'e096acf5-d4f1-487c-b96f-f01003aafc7f', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'39bc8701-94f7-451e-976e-f41273305503', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'12c9eeb0-18cf-4fc1-96c1-f80a35d52807', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'6e803760-3c5a-4bc5-960b-f95a518311b7', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'abcc3731-5bae-4a19-8e56-fe6c9c481d31', N'e8b39da3-cabe-48ad-b635-2729c7df204a', 1, 0)
GO
INSERT [dbo].[BookRepository] ([BookRepositoryId], [BookId], [Status], [IsRemoved]) VALUES (N'73cd8722-6001-47c4-8de8-ffcf212660d0', N'265380e1-d01b-410a-a754-44aa16cab38e', 1, 0)
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'1e864990-446e-4fda-93e6-0366efda3ca9', N'265380e1-d01b-410a-a754-44aa16cab38e', N'996f3a85-0d4d-43be-8a09-9f3f7a45f18c', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367923' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'18d832d7-5df3-4a41-944b-0487827fb61c', N'265380e1-d01b-410a-a754-44aa16cab38e', N'3abfbf55-373f-483f-bcce-4eb2c83b84ad', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065209' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'ff6b13a1-0ba4-41b3-9d34-0e2cce309df3', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'5f276ba4-8cb7-4c58-b3ab-a89a4ab26060', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287917' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'3353dc46-0dc0-4d59-97f3-0efb3034ef1d', N'265380e1-d01b-410a-a754-44aa16cab38e', N'd45a85b1-d5da-4ee1-9f32-2bdb8ac3de37', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065269' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'76d4caaa-81fc-40f3-acf4-13c8f8db6b24', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'42dbfdf4-afc3-40a1-8a02-efa49a9f6933', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606199' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'24fd19d4-39b8-493e-9ef7-1466f3409f6b', N'265380e1-d01b-410a-a754-44aa16cab38e', N'b08a1e8a-2680-457e-84f1-9bf9c7a35a54', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3368002' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'1860cb9f-d8b2-45c6-b110-1553a1fdea8c', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'551a2859-7151-40cb-acec-ae19fa8dd95f', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824115' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'ff2bbe11-623a-4cbd-9d17-180a9cee7bd6', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'5f6808d9-5f09-4046-87a3-b6eaa9a49073', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287928' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'318f01e8-a094-4189-81d1-18391fb43b84', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'0347ed20-7512-4739-8315-526c136651c1', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824364' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'28811cac-425f-4cd3-9dc8-22b24a6ec501', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'62060c7f-457d-4a53-86d7-db7c2a2084fb', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959759' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'a04a7ae5-1516-41b9-9187-23d7b71a3eb7', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'2970b580-348f-4c73-aa31-1dfe486cef5c', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824150' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'099e7690-2a5d-46d6-b64b-26f198521569', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'd397f2ab-2a07-4c06-a901-0e7aa51f7041', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606188' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'26dc8b9d-6dea-44c0-9588-2a0ba41ee005', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'38dab1bf-9b70-4f94-bf1e-459c0f488c37', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959791' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'50c79e24-6262-43d4-8bf9-30ae83173450', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'46d2671a-9d9e-4b4e-bec1-2590c91c2244', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959617' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'2ecf8c1d-4ee7-450b-ab15-34b6b1805781', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'54fa0755-6c13-4dd0-99cf-a61933d697cf', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959680' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'6452fdf8-c283-463e-bfed-443ed1261b31', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'ed94db17-96e8-40c2-b0a7-4970b751ee37', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287889' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'0bd9a6b8-f9ce-4081-bcaa-463bab821fd5', N'265380e1-d01b-410a-a754-44aa16cab38e', N'6ebbc584-5dcd-45db-819c-78183228a2d3', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065063' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'e0055895-2aef-464b-a508-4675d6056e09', N'265380e1-d01b-410a-a754-44aa16cab38e', N'73cd8722-6001-47c4-8de8-ffcf212660d0', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367911' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'ce253bd9-e09e-4548-afc0-4d3c3d81588a', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'7fef3925-f273-46de-a1dd-02d71470b2dd', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792807' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'5fd7d8a6-a39b-48ef-b6cc-50472e84f525', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'909fb161-55a8-4314-b9e4-88f02d4d8c63', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287739' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'48a87dd3-65bf-41a9-9275-517bb208c3a8', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'baa1f7a7-0ac6-4f76-bb93-579b225acfcf', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824257' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'4a531fba-6624-4b97-a27f-5529975d904a', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'6eacd0ae-2b26-46a1-b90f-672349607121', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606172' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'b91c407c-b217-4a05-8a8f-55349ab127b0', N'265380e1-d01b-410a-a754-44aa16cab38e', N'55084f19-ffb0-4b14-a7ec-17ef984da324', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367990' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'8007b906-f89b-49be-a71f-581b10b3f8e0', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'bd2f59b5-109e-4d47-b01b-4fd807922e68', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0288011' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'1b9a159e-b6a9-4d01-8c50-581b1c27d34e', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'f3c321e2-9d73-4a2f-b2ea-3446f7bbb301', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824135' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'6cc2d364-e7ef-4d0c-ad19-60b09e8932ae', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'a170293c-c69c-42f0-83d7-0c3b26b416e8', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792791' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'bd2d909d-29fb-4d7c-83bf-632a8a2b9bf1', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'1d90cb12-6a2e-454b-97b0-6ba33bfb2a88', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824194' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'f2690e5d-1249-4c3c-a047-66e241c59fbf', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'9c7070e6-6745-4e22-8c36-2708240cac13', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792728' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'8af114f0-9570-4fa7-b76c-69f7e3605e32', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'6e803760-3c5a-4bc5-960b-f95a518311b7', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792712' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'9b39ec35-0377-4a1e-b1f0-6bd5b1272176', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'a94b788f-7811-4580-a0f3-7e8d4e8f99e3', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287944' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'aea141ef-4ba5-490b-a1d6-6f1720e3e86e', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'098d8e36-2630-449a-a37c-43c2a94bc46c', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606527' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'55390484-612a-4788-b4e0-792e8c1ec198', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'ec7c46f5-0d52-41aa-b4e5-e4f174c9e733', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792823' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'09892a4f-c2f7-4538-820a-8c9f477dfd4b', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'd4663575-7ab4-4ad2-9c2f-53cfcfaff74f', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824237' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'fe16af92-0396-4d36-bc59-8d889572e259', N'265380e1-d01b-410a-a754-44aa16cab38e', N'9ce723e6-dff0-40d0-a43d-1cb8c62846a6', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065281' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'33f8a2f6-b95f-4aa5-b1d5-8e68137dcac5', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'5e8fed36-82ae-46c0-b3ca-6957b1b8f182', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606160' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'd706b01c-3a5b-48ef-bf31-91e3ace7f50c', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'bb583751-a682-44e2-bde2-b04ae675b9e7', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287763' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'41c52c5e-8379-474e-b574-92398b766367', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'ad00715d-fe97-481d-b131-1172b2e7b4f8', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287774' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'9519cfef-2463-4142-a436-94123dd8e0cc', N'265380e1-d01b-410a-a754-44aa16cab38e', N'158becd2-5b3b-440f-9cf9-d1ee95389884', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065178' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'bda4e1e5-6b4d-49fa-ae11-95376eeb1924', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'9164b097-507e-41c1-a02b-df5886e3eb15', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959692' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'b4eed89d-7e5a-4ebc-880b-9ae661e46e2f', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'2fae2ba6-1e20-4c86-9c8d-540ec50c74c0', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959704' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'52ce69e5-c22b-45e1-b45c-9d79c614bf64', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'9baff069-1692-4852-94a3-bbf91c8a4996', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287510' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'99b789cc-35f6-48b2-a972-9e1214c1c610', N'265380e1-d01b-410a-a754-44aa16cab38e', N'a74dbb10-9815-454e-ac48-6ed1c6f48d63', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367975' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'34165b48-acd2-4234-8042-a0e0e38bbb65', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'90e1487f-4d22-4616-a620-b2cdd2d6e5ad', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959779' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'31dc4e51-7e02-4980-a435-a72b72e45cf1', N'265380e1-d01b-410a-a754-44aa16cab38e', N'11469d7b-1585-4c73-90f4-5134cd1e4da7', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065340' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'bc241f1a-e57f-4062-adc4-acbafdcfd952', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'58dabfaf-693f-464e-b19b-bc0a327142a1', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792906' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'35cd375b-3638-4c0a-ba86-b1bace8fd2ae', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'5c382321-d00a-4e2a-95ba-d271ca57ece3', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606610' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'635b7cb6-0776-4cb4-8eb0-b5797c57a1bb', N'265380e1-d01b-410a-a754-44aa16cab38e', N'39bc8701-94f7-451e-976e-f41273305503', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065194' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'218733d7-2ef1-43f1-aa2b-b7b4bc9c0ee7', N'265380e1-d01b-410a-a754-44aa16cab38e', N'72eb1c2f-2d1e-4549-bdd9-bed5b4cbdb83', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065257' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'c0c31945-17d1-4c21-8be1-b8dd3cc54769', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'afe5d45f-c0c3-40fb-bca5-91a59c76c144', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792550' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'579faa39-a980-4d7c-8cc5-bbb4eca95475', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'c090fa1a-ca77-4b09-b496-98df1fc8caa4', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606650' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'87426feb-4a83-4375-a6b0-bf17cdb43812', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'998229a3-2393-40e1-8fac-44ab20fa344b', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959629' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'5c1cd744-533f-4815-8a32-c1595026b0e8', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'9e3564d6-4996-4be2-a990-90519395a777', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959720' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'a7eddff5-42e2-46b5-8f4e-c469d15c2d71', N'265380e1-d01b-410a-a754-44aa16cab38e', N'eea65a98-1336-4d9e-b298-d71c762f012f', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065296' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'ce01e0e7-03be-4363-ba0d-c77e88bd37f2', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'9e827045-45d7-443b-a8e6-1b617ada8849', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606124' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'264ca01e-acd3-4980-965c-cbc977a157ef', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'2ec7ac07-6313-4cb0-802b-00d7f55fff63', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792886' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'e00a89ae-1b4a-440a-a5b1-d0af6da7e172', N'265380e1-d01b-410a-a754-44aa16cab38e', N'0f8b26cc-2804-4e33-8771-0e6d8317de31', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367900' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'64f23f6a-0620-4338-a707-d2194e427cd7', N'10f62ef0-68bd-4d70-aa36-a86f99eea2d5', N'fd9180ff-0501-4550-9874-a3ddc0a0aaf3', N'Bulk Imported.', CAST(N'2017-11-03 17:01:53.0959594' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'53e29dcd-9ff3-4773-8021-d54ab97b83ea', N'265380e1-d01b-410a-a754-44aa16cab38e', N'6965a906-3e0d-49a2-8bab-86676676e157', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367805' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'9451bb15-d3a9-4e6a-8c5d-d553fb273b2d', N'265380e1-d01b-410a-a754-44aa16cab38e', N'b43b6a34-76c9-408e-9bab-cf335e5b66da', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367848' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'd747e460-af18-4f87-ac29-ded1545fc8e2', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'58e32d5d-75ec-4240-a75d-580d058398b8', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606591' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'3807631a-0165-4cce-9fe4-e13f0532ccc1', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'24535f99-f6aa-4174-b557-96576e546f6a', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792834' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'73804361-6040-43e9-93dc-e13fb37097fb', N'265380e1-d01b-410a-a754-44aa16cab38e', N'54e5923b-d107-4a5e-9a25-1d0cdcd3af19', N'Bulk Imported.', CAST(N'2017-11-03 16:57:34.1065162' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'd41a9468-6bf6-4ad3-9967-e60dd31a7d83', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'abcc3731-5bae-4a19-8e56-fe6c9c481d31', N'Bulk Imported.', CAST(N'2017-11-08 16:21:24.0287782' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'2ac9e58f-f09e-4cb0-85f0-e9666a4438c1', N'265380e1-d01b-410a-a754-44aa16cab38e', N'e096acf5-d4f1-487c-b96f-f01003aafc7f', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367864' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'fc12fc07-c2b1-4e53-8b3d-e9aa3cb1d1c4', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'73b597dd-0f06-4baa-a810-c5b0e1ea125c', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824289' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'a8d108cd-f5e2-49e6-9e7a-e9d92e8ec09d', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'21e1f28f-9cdf-4edb-92b1-cb4b882f6a76', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824020' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'11f07a46-d161-415e-9d91-f1903e244610', N'265380e1-d01b-410a-a754-44aa16cab38e', N'a19c1b6c-ef49-46ef-9e72-d195f8df5e1e', N'Bulk Imported.', CAST(N'2017-11-03 16:57:37.3367959' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'9164d12f-4237-476f-806a-f648382c083c', N'5cfc0ccb-f975-43e5-bb04-e4a3d001c91a', N'25d5d1b3-1dcc-4461-b04e-ea95b3e169ca', N'Bulk Imported.', CAST(N'2017-11-03 17:01:48.6824273' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'b6576622-f242-486e-a06c-fa7a63d2dd24', N'e8b39da3-cabe-48ad-b635-2729c7df204a', N'f5aaa8cb-dc23-43b2-8309-578d65f775a1', N'Bulk Imported.', CAST(N'2017-11-09 16:33:19.5792696' AS DateTime2))
GO
INSERT [dbo].[History] ([HistoryId], [BookId], [BookRepositoryId], [Note], [CreatedOn]) VALUES (N'26693905-91b6-468b-9595-ff109ad4ef37', N'8e5aff08-b44c-4569-9259-7ca6c5d5d041', N'e0658f3d-5fd1-4c90-9fa4-5035feb52177', N'Bulk Imported.', CAST(N'2017-11-03 17:01:55.1606622' AS DateTime2))
GO
ALTER TABLE [dbo].[BookRepository] WITH CHECK ADD CONSTRAINT [FK_BookRepository_Book] FOREIGN KEY([BookId])
REFERENCES [dbo].[Book] ([BookId])
GO
ALTER TABLE [dbo].[BookRepository] CHECK CONSTRAINT [FK_BookRepository_Book]
GO
ALTER TABLE [dbo].[History] WITH CHECK ADD CONSTRAINT [FK_History_BookRepository] FOREIGN KEY([BookRepositoryId])
REFERENCES [dbo].[BookRepository] ([BookRepositoryId])
GO
ALTER TABLE [dbo].[History] CHECK CONSTRAINT [FK_History_BookRepository]
GO
ALTER TABLE [dbo].[History] WITH CHECK ADD CONSTRAINT [FK_History_History] FOREIGN KEY([BookId])
REFERENCES [dbo].[Book] ([BookId])
GO
ALTER TABLE [dbo].[History] CHECK CONSTRAINT [FK_History_History]
GO
USE [master]
GO
ALTER DATABASE [BookRepositoryDB] SET READ_WRITE
GO
|
<reponame>dfagnan/dbt_mailchimp_source<gh_stars>1-10
with base as (
select *
from {{ ref('stg_mailchimp__campaigns_tmp') }}
),
fields as (
select
{{
fivetran_utils.fill_staging_columns(
source_columns=adapter.get_columns_in_relation(ref('stg_mailchimp__campaigns_tmp')),
staging_columns=get_campaign_columns()
)
}}
from base
),
final as (
select
id as campaign_id,
segment_id,
create_time as create_timestamp,
send_time as send_timestamp,
list_id,
reply_to as reply_to_email,
type as campaign_type,
title,
archive_url,
authenticate,
auto_footer,
auto_tweet,
clicktale,
content_type,
drag_and_drop,
fb_comments,
folder_id,
from_name,
google_analytics,
inline_css,
long_archive_url,
status,
subject_line,
template_id,
test_size,
timewarp,
to_name,
track_ecomm_360,
track_goals,
track_html_clicks,
track_opens,
track_text_clicks,
use_conversation,
wait_time,
winner_criteria,
winning_campaign_id,
winning_combination_id
from fields
)
select *
from final |
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2021] EMBL-European Bioinformatics Institute
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
# structural variation changes
create table structural_variation_feature (
structural_variation_feature_id int(10) unsigned NOT NULL AUTO_INCREMENT,
seq_region_id int(10) unsigned NOT NULL,
outer_start int,
seq_region_start int NOT NULL,
inner_start int,
inner_end int,
seq_region_end int NOT NULL,
outer_end int,
seq_region_strand tinyint NOT NULL,
structural_variation_id int(10) unsigned NOT NULL,
variation_name varchar(255),
source_id int(10) unsigned NOT NULL,
class_attrib_id int(10) unsigned NOT NULL DEFAULT 0,
allele_string longtext DEFAULT NULL,
PRIMARY KEY (structural_variation_feature_id),
KEY pos_idx( seq_region_id, seq_region_start, seq_region_end ),
KEY structural_variation_idx (structural_variation_id),
KEY attrib_idx (class_attrib_id)
);
ALTER TABLE supporting_structural_variation ADD COLUMN class_attrib_id int(10) unsigned NOT NULL DEFAULT 0;
ALTER TABLE supporting_structural_variation ADD INDEX attrib_idx (class_attrib_id);
ALTER TABLE structural_variation ADD COLUMN somatic tinyint(1) NOT NULL DEFAULT 0;
ALTER TABLE structural_variation DROP COLUMN seq_region_id;
ALTER TABLE structural_variation DROP COLUMN seq_region_start;
ALTER TABLE structural_variation DROP COLUMN seq_region_end;
ALTER TABLE structural_variation DROP COLUMN seq_region_strand;
ALTER TABLE structural_variation DROP COLUMN inner_start;
ALTER TABLE structural_variation DROP COLUMN inner_end;
ALTER TABLE structural_variation DROP COLUMN allele_string;
# patch identifier
INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL,'patch', 'patch_63_64_b.sql|structural variation changes');
|
<filename>jbpm-db-scripts/src/main/resources/db/ddl-scripts/sybase/task_assigning_tables_sybase.sql
create table PlanningTask (
taskId numeric(19,0) not null,
OPTLOCK int null,
assignedUser varchar(255) null,
taskIndex int not null,
lastModificationDate datetime null,
published smallint not null,
primary key (taskId)
) lock datarows
go
create index IDX_PlanningTask_assignedUser on PlanningTask(assignedUser)
go |
<gh_stars>1-10
CREATE PROCEDURE [bll].[AccountTypes_Validate__Delete]
@Ids [dbo].[IndexedIdList] READONLY,
@Top INT = 10,
@IsError BIT OUTPUT
AS
BEGIN
SET NOCOUNT ON;
DECLARE @ValidationErrors [dbo].[ValidationErrorList];
INSERT INTO @ValidationErrors([Key], [ErrorName])
SELECT DISTINCT TOP(@Top)
'[' + CAST(FE.[Index] AS NVARCHAR (255)) + ']',
N'Error_CannotDeleteSystemRecords'
FROM @Ids FE
JOIN [dbo].[AccountTypes] BE ON FE.[Id] = BE.[Id]
WHERE BE.[IsSystem] = 1;
-- Set @IsError
SET @IsError = CASE WHEN EXISTS(SELECT 1 FROM @ValidationErrors) THEN 1 ELSE 0 END;
SELECT TOP (@Top) * FROM @ValidationErrors;
END;
|
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/yes/Opengauss_Function_Keyword_Yes_Case0023.sql
-- @testpoint: opengauss关键字yes非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop index if exists yes;
create index yes on explain_test(id);
drop index yes;
--关键字带双引号-成功
drop index if exists "yes";
create index "yes" on explain_test(id);
drop index "yes";
--关键字带单引号-合理报错
drop index if exists 'yes';
create index 'yes' on explain_test(id);
--关键字带反引号-合理报错
drop index if exists `yes`;
create index `yes` on explain_test(id);
drop table if exists explain_test; |
Subsets and Splits