--
-- PostgreSQL database dump
--

-- Dumped from database version 15.10
-- Dumped by pg_dump version 15.10

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

ALTER TABLE IF EXISTS ONLY qualifications_certifications.tbl_qualifications DROP CONSTRAINT IF EXISTS tbl_qualifications_i_qualification_type_fkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_uploads DROP CONSTRAINT IF EXISTS tbl_uploads_i_record_id_fkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_roles DROP CONSTRAINT IF EXISTS tbl_roles_i_department_id_fkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_record_qualifications DROP CONSTRAINT IF EXISTS tbl_record_qualifications_i_record_id_fkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_record_qualifications DROP CONSTRAINT IF EXISTS tbl_record_qualifications_i_qualification_id_fkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_languages DROP CONSTRAINT IF EXISTS tbl_languages_i_record_id_fkey;
ALTER TABLE IF EXISTS ONLY users.tbl_users DROP CONSTRAINT IF EXISTS tbl_users_pkey;
ALTER TABLE IF EXISTS ONLY qualifications_certifications.tbl_qualifications DROP CONSTRAINT IF EXISTS tbl_qualifications_pkey;
ALTER TABLE IF EXISTS ONLY qualifications_certifications.tbl_qualification_types DROP CONSTRAINT IF EXISTS tbl_qualification_types_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_uploads DROP CONSTRAINT IF EXISTS tbl_uploads_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_tenders DROP CONSTRAINT IF EXISTS tbl_tenders_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_tender_cvs DROP CONSTRAINT IF EXISTS tbl_tender_cvs_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_roles DROP CONSTRAINT IF EXISTS tbl_roles_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_role_departments DROP CONSTRAINT IF EXISTS tbl_role_departments_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_records DROP CONSTRAINT IF EXISTS tbl_records_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_record_qualifications DROP CONSTRAINT IF EXISTS tbl_record_qualifications_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_languages DROP CONSTRAINT IF EXISTS tbl_languages_pkey;
ALTER TABLE IF EXISTS ONLY cv_data.tbl_all_languages DROP CONSTRAINT IF EXISTS tbl_all_languages_pkey;
ALTER TABLE IF EXISTS users.tbl_users ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS qualifications_certifications.tbl_qualifications ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS qualifications_certifications.tbl_qualification_types ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_uploads ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_tenders ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_tender_cvs ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_roles ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_role_departments ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_records ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_record_qualifications ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_languages ALTER COLUMN id DROP DEFAULT;
ALTER TABLE IF EXISTS cv_data.tbl_all_languages ALTER COLUMN id DROP DEFAULT;
DROP SEQUENCE IF EXISTS users.tbl_users_id_seq;
DROP TABLE IF EXISTS users.tbl_users;
DROP SEQUENCE IF EXISTS qualifications_certifications.tbl_qualifications_id_seq;
DROP TABLE IF EXISTS qualifications_certifications.tbl_qualifications;
DROP SEQUENCE IF EXISTS qualifications_certifications.tbl_qualification_types_id_seq;
DROP TABLE IF EXISTS qualifications_certifications.tbl_qualification_types;
DROP SEQUENCE IF EXISTS cv_data.tbl_uploads_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_uploads;
DROP SEQUENCE IF EXISTS cv_data.tbl_tenders_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_tenders;
DROP SEQUENCE IF EXISTS cv_data.tbl_tender_cvs_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_tender_cvs;
DROP SEQUENCE IF EXISTS cv_data.tbl_roles_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_roles;
DROP SEQUENCE IF EXISTS cv_data.tbl_role_departments_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_role_departments;
DROP SEQUENCE IF EXISTS cv_data.tbl_records_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_records;
DROP SEQUENCE IF EXISTS cv_data.tbl_record_qualifications_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_record_qualifications;
DROP SEQUENCE IF EXISTS cv_data.tbl_languages_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_languages;
DROP SEQUENCE IF EXISTS cv_data.tbl_all_languages_id_seq;
DROP TABLE IF EXISTS cv_data.tbl_all_languages;
DROP SCHEMA IF EXISTS users;
DROP SCHEMA IF EXISTS qualifications_certifications;
DROP SCHEMA IF EXISTS cv_data;
--
-- Name: cv_data; Type: SCHEMA; Schema: -; Owner: cv_database_user
--

CREATE SCHEMA cv_data;


ALTER SCHEMA cv_data OWNER TO cv_database_user;

--
-- Name: qualifications_certifications; Type: SCHEMA; Schema: -; Owner: cv_database_user
--

CREATE SCHEMA qualifications_certifications;


ALTER SCHEMA qualifications_certifications OWNER TO cv_database_user;

--
-- Name: users; Type: SCHEMA; Schema: -; Owner: cv_database_user
--

CREATE SCHEMA users;


ALTER SCHEMA users OWNER TO cv_database_user;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: tbl_all_languages; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_all_languages (
    id integer NOT NULL,
    v_language_abbreviation character varying(10) DEFAULT ''::character varying NOT NULL,
    v_language_name character varying(64) DEFAULT ''::character varying NOT NULL,
    bl_south_african boolean DEFAULT false NOT NULL
);


ALTER TABLE cv_data.tbl_all_languages OWNER TO cv_database_user;

--
-- Name: tbl_all_languages_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_all_languages_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_all_languages_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_all_languages_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_all_languages_id_seq OWNED BY cv_data.tbl_all_languages.id;


--
-- Name: tbl_languages; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_languages (
    id integer NOT NULL,
    i_record_id integer DEFAULT 0 NOT NULL,
    v_language_abbreviation character varying(5) DEFAULT ''::character varying NOT NULL,
    v_language_name character varying(32) DEFAULT ''::character varying NOT NULL,
    si_ranking smallint DEFAULT '0'::smallint NOT NULL,
    si_level smallint DEFAULT '0'::smallint NOT NULL
);


ALTER TABLE cv_data.tbl_languages OWNER TO cv_database_user;

--
-- Name: tbl_languages_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_languages_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_languages_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_languages_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_languages_id_seq OWNED BY cv_data.tbl_languages.id;


--
-- Name: tbl_record_qualifications; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_record_qualifications (
    id integer NOT NULL,
    i_qualification_id integer DEFAULT 0 NOT NULL,
    i_record_id integer DEFAULT 0 NOT NULL,
    d_acquired date
);


ALTER TABLE cv_data.tbl_record_qualifications OWNER TO cv_database_user;

--
-- Name: tbl_record_qualifications_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_record_qualifications_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_record_qualifications_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_record_qualifications_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_record_qualifications_id_seq OWNED BY cv_data.tbl_record_qualifications.id;


--
-- Name: tbl_records; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_records (
    id integer NOT NULL,
    v_name_1 character varying(50) DEFAULT ''::character varying NOT NULL,
    v_name_2 character varying(50) DEFAULT ''::character varying NOT NULL,
    v_name_3 character varying(50) DEFAULT ''::character varying NOT NULL,
    v_surname character varying(50) DEFAULT ''::character varying NOT NULL,
    v_id_number character varying(50) DEFAULT ''::character varying NOT NULL,
    c_gender character(1) DEFAULT 'm'::bpchar NOT NULL,
    si_years_experience smallint DEFAULT '0'::smallint NOT NULL,
    v_sap_k_level character varying(2) DEFAULT ''::character varying NOT NULL,
    v_contact_number character varying(18) DEFAULT ''::character varying NOT NULL,
    v_email character varying(128) DEFAULT ''::character varying NOT NULL,
    i_department_id integer DEFAULT 0 NOT NULL,
    i_role_id integer DEFAULT 0 NOT NULL
);


ALTER TABLE cv_data.tbl_records OWNER TO cv_database_user;

--
-- Name: tbl_records_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_records_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_records_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_records_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_records_id_seq OWNED BY cv_data.tbl_records.id;


--
-- Name: tbl_role_departments; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_role_departments (
    id integer NOT NULL,
    v_department_name character varying(128) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE cv_data.tbl_role_departments OWNER TO cv_database_user;

--
-- Name: tbl_role_departments_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_role_departments_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_role_departments_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_role_departments_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_role_departments_id_seq OWNED BY cv_data.tbl_role_departments.id;


--
-- Name: tbl_roles; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_roles (
    id integer NOT NULL,
    i_department_id integer DEFAULT 0 NOT NULL,
    v_role_name character varying(128) DEFAULT ''::character varying NOT NULL,
    v_description character varying(255) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE cv_data.tbl_roles OWNER TO cv_database_user;

--
-- Name: tbl_roles_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_roles_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_roles_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_roles_id_seq OWNED BY cv_data.tbl_roles.id;


--
-- Name: tbl_tender_cvs; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_tender_cvs (
    id integer NOT NULL,
    i_record_id integer DEFAULT 0 NOT NULL,
    i_tender_id integer DEFAULT 0 NOT NULL,
    dt_when timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
);


ALTER TABLE cv_data.tbl_tender_cvs OWNER TO cv_database_user;

--
-- Name: tbl_tender_cvs_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_tender_cvs_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_tender_cvs_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_tender_cvs_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_tender_cvs_id_seq OWNED BY cv_data.tbl_tender_cvs.id;


--
-- Name: tbl_tenders; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_tenders (
    id integer NOT NULL,
    v_reference_number character varying(64) DEFAULT ''::character varying NOT NULL,
    v_description character varying(512) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE cv_data.tbl_tenders OWNER TO cv_database_user;

--
-- Name: tbl_tenders_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_tenders_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_tenders_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_tenders_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_tenders_id_seq OWNED BY cv_data.tbl_tenders.id;


--
-- Name: tbl_uploads; Type: TABLE; Schema: cv_data; Owner: cv_database_user
--

CREATE TABLE cv_data.tbl_uploads (
    id integer NOT NULL,
    i_record_id integer DEFAULT 0 NOT NULL,
    si_upload_type smallint DEFAULT '0'::smallint NOT NULL,
    i_matching_id integer DEFAULT 0 NOT NULL,
    v_description character varying(256) DEFAULT ''::character varying NOT NULL,
    v_filename character varying(128) DEFAULT ''::character varying NOT NULL,
    v_mime_type character varying(128) DEFAULT ''::character varying NOT NULL,
    b_file bytea
);


ALTER TABLE cv_data.tbl_uploads OWNER TO cv_database_user;

--
-- Name: tbl_uploads_id_seq; Type: SEQUENCE; Schema: cv_data; Owner: cv_database_user
--

CREATE SEQUENCE cv_data.tbl_uploads_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE cv_data.tbl_uploads_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: cv_data; Owner: cv_database_user
--

ALTER SEQUENCE cv_data.tbl_uploads_id_seq OWNED BY cv_data.tbl_uploads.id;


--
-- Name: tbl_qualification_types; Type: TABLE; Schema: qualifications_certifications; Owner: cv_database_user
--

CREATE TABLE qualifications_certifications.tbl_qualification_types (
    id integer NOT NULL,
    v_qualification_type character varying(128) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE qualifications_certifications.tbl_qualification_types OWNER TO cv_database_user;

--
-- Name: tbl_qualification_types_id_seq; Type: SEQUENCE; Schema: qualifications_certifications; Owner: cv_database_user
--

CREATE SEQUENCE qualifications_certifications.tbl_qualification_types_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE qualifications_certifications.tbl_qualification_types_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_qualification_types_id_seq; Type: SEQUENCE OWNED BY; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER SEQUENCE qualifications_certifications.tbl_qualification_types_id_seq OWNED BY qualifications_certifications.tbl_qualification_types.id;


--
-- Name: tbl_qualifications; Type: TABLE; Schema: qualifications_certifications; Owner: cv_database_user
--

CREATE TABLE qualifications_certifications.tbl_qualifications (
    id integer NOT NULL,
    i_qualification_type integer DEFAULT 0 NOT NULL,
    v_qualification_name character varying(128) DEFAULT ''::character varying NOT NULL,
    v_description character varying(255) DEFAULT ''::character varying NOT NULL
);


ALTER TABLE qualifications_certifications.tbl_qualifications OWNER TO cv_database_user;

--
-- Name: tbl_qualifications_id_seq; Type: SEQUENCE; Schema: qualifications_certifications; Owner: cv_database_user
--

CREATE SEQUENCE qualifications_certifications.tbl_qualifications_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE qualifications_certifications.tbl_qualifications_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_qualifications_id_seq; Type: SEQUENCE OWNED BY; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER SEQUENCE qualifications_certifications.tbl_qualifications_id_seq OWNED BY qualifications_certifications.tbl_qualifications.id;


--
-- Name: tbl_users; Type: TABLE; Schema: users; Owner: cv_database_user
--

CREATE TABLE users.tbl_users (
    id integer NOT NULL,
    v_user_id character varying(50) DEFAULT ''::character varying NOT NULL,
    v_password character varying(255) DEFAULT ''::character varying NOT NULL,
    bl_admin boolean DEFAULT false NOT NULL,
    bl_capture boolean DEFAULT false NOT NULL
);


ALTER TABLE users.tbl_users OWNER TO cv_database_user;

--
-- Name: tbl_users_id_seq; Type: SEQUENCE; Schema: users; Owner: cv_database_user
--

CREATE SEQUENCE users.tbl_users_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE users.tbl_users_id_seq OWNER TO cv_database_user;

--
-- Name: tbl_users_id_seq; Type: SEQUENCE OWNED BY; Schema: users; Owner: cv_database_user
--

ALTER SEQUENCE users.tbl_users_id_seq OWNED BY users.tbl_users.id;


--
-- Name: tbl_all_languages id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_all_languages ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_all_languages_id_seq'::regclass);


--
-- Name: tbl_languages id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_languages ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_languages_id_seq'::regclass);


--
-- Name: tbl_record_qualifications id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_record_qualifications ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_record_qualifications_id_seq'::regclass);


--
-- Name: tbl_records id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_records ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_records_id_seq'::regclass);


--
-- Name: tbl_role_departments id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_role_departments ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_role_departments_id_seq'::regclass);


--
-- Name: tbl_roles id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_roles ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_roles_id_seq'::regclass);


--
-- Name: tbl_tender_cvs id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_tender_cvs ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_tender_cvs_id_seq'::regclass);


--
-- Name: tbl_tenders id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_tenders ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_tenders_id_seq'::regclass);


--
-- Name: tbl_uploads id; Type: DEFAULT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_uploads ALTER COLUMN id SET DEFAULT nextval('cv_data.tbl_uploads_id_seq'::regclass);


--
-- Name: tbl_qualification_types id; Type: DEFAULT; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER TABLE ONLY qualifications_certifications.tbl_qualification_types ALTER COLUMN id SET DEFAULT nextval('qualifications_certifications.tbl_qualification_types_id_seq'::regclass);


--
-- Name: tbl_qualifications id; Type: DEFAULT; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER TABLE ONLY qualifications_certifications.tbl_qualifications ALTER COLUMN id SET DEFAULT nextval('qualifications_certifications.tbl_qualifications_id_seq'::regclass);


--
-- Name: tbl_users id; Type: DEFAULT; Schema: users; Owner: cv_database_user
--

ALTER TABLE ONLY users.tbl_users ALTER COLUMN id SET DEFAULT nextval('users.tbl_users_id_seq'::regclass);


--
-- Data for Name: tbl_all_languages; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_all_languages VALUES (179, 'sq', 'Albanian - (Shqip)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (180, 'am', 'Amharic - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (181, 'ar', 'Arabic - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (182, 'an', 'Aragonese - (Aragonés)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (183, 'hy', 'Armenian - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (184, 'ast', 'Asturian - (Asturianu)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (185, 'ay', 'Aymara - (Aymar aru)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (186, 'az', 'Azerbaijani - (Az?rbaycan dili)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (187, 'eu', 'Basque - (Euskara)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (188, 'be', 'Belarusian - (??????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (189, 'bn', 'Bengali - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (190, 'brx', 'Bodo - (??'')', false);
INSERT INTO cv_data.tbl_all_languages VALUES (191, 'bs', 'Bosnian - (Bosanski)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (192, 'br', 'Breton - (Brezhoneg)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (193, 'bg', 'Bulgarian - (?????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (194, 'ca', 'Catalan - (Català)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (195, 'ckb', 'Central - Kurdish (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (196, 'ce', 'Chechen (??????? ????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (197, 'zh', 'Chinese (??)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (198, 'zh-HK', 'Chinese Hong Kong - (?? - ??)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (199, 'zh-CN', 'Chinese Simplified - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (200, 'zh-TW', 'Chinese Traditional - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (201, 'co', 'Corsican - (Corsu)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (202, 'hr', 'Croatian - (Hrvatski)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (203, 'cs', 'Czech - (Ceština)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (204, 'da', 'Danish - (Dansk)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (205, 'dv', 'Dhivehi - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (206, 'nl', 'Dutch (Nederlands)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (207, 'dz', 'Dzongkha (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (209, 'en-AU', 'English (Australia)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (210, 'en-CA', 'English (Canada)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (211, 'en-IN', 'English (India)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (212, 'en-NZ', 'English (New Zealand)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (213, 'en-ZA', 'English (South Africa)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (214, 'en-GB', 'English (United Kingdom)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (215, 'en-US', 'English (United States)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (216, 'eo', 'Esperanto', false);
INSERT INTO cv_data.tbl_all_languages VALUES (217, 'et', 'Estonian (Eesti)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (218, 'ee', 'Ewe (E?egbe)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (219, 'fo', 'Faroese - (Føroyskt)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (220, 'fil', 'Filipino (Wikang Filipino)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (221, 'fi', 'Finnish (Suomi)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (222, 'fr', 'French (Français)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (223, 'fr-CA', 'French Canada - (Français Canada)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (224, 'fr-FR', 'French France - (Français France)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (225, 'fr-CH', 'French Switzerland - (Français Suisse)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (226, 'gl', 'Galician - (Galego)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (227, 'ka', 'Georgian - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (228, 'de', 'German - (Deutsch)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (229, 'de-AT', 'German Austria  - (Deutsch Österreich)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (230, 'de-DE', 'German Germany  - (Deutsch Deutschland)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (231, 'de-LI', 'German Liechtenstein  - (Deutsch Liechtenstein)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (232, 'de-CH', 'German Switzerland  - (Deutsch Schweiz)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (233, 'el', 'Greek - (????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (234, 'gn', 'Guarani - (Avañe''?)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (235, 'gu', 'Gujarati - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (236, 'ha', 'Hausa - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (237, 'haw', 'Hawaiian - (?Olelo Hawai?i)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (238, 'he', 'Hebrew - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (239, 'hi', 'Hindi - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (240, 'hu', 'Hungarian - (Magyar)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (241, 'is', 'Icelandic - (Íslenska)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (242, 'id', 'Indonesian - (Bahasa Indonesia)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (243, 'ia', 'Interlingua', false);
INSERT INTO cv_data.tbl_all_languages VALUES (244, 'iu', 'Inuktitut - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (245, 'ga', 'Irish - (Gaeilge)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (246, 'it', 'Italian - (Italiano)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (247, 'it-IT', 'Italian Italy - (Italiano Italia)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (248, 'it-CH', 'Italian Switzerland - (Italiano - Svizzera)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (249, 'ja', 'Japanese - (???)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (250, 'kl', 'Kalaallisut - (Kalaallisut)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (251, 'kn', 'Kannada - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (252, 'ks', 'Kashmiri - (????? / ??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (253, 'kk', 'Kazakh - (????? ????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (254, 'km', 'Khmer - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (255, 'rw', 'Kinyarwanda - (Ikinyarwanda)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (256, 'ko', 'Korean - (???)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (257, 'ku', 'Kurdish - (Kurdî)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (258, 'ky', 'Kyrgyz - (????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (259, 'lo', 'Lao - (???)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (260, 'la', 'Latin - (Latina)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (261, 'lv', 'Latvian - (Latviešu)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (262, 'ln', 'Lingala - (Lingála)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (263, 'lt', 'Lithuanian - (Lietuviu)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (264, 'lg', 'Luganda - (Luganda)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (265, 'lb', 'Luxembourgish - (Lëtzebuergesch)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (266, 'mk', 'Macedonian - (??????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (267, 'mai', 'Maithili - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (268, 'ms', 'Malay - (Bahasa Melayu)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (269, 'ml', 'Malayalam - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (270, 'mt', 'Maltese - (Malti)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (271, 'mni', 'Manipuri - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (272, 'mr', 'Marathi - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (273, 'mn', 'Mongolian - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (274, 'ne', 'Nepali - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (276, 'no', 'Norwegian (Norsk)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (277, 'nb', 'Norwegian Bokmål - (Norsk bokmål)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (278, 'nn', 'Norwegian Nynorsk - (Nynorsk)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (279, 'oc', 'Occitan', false);
INSERT INTO cv_data.tbl_all_languages VALUES (280, 'or', 'Oriya - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (281, 'om', 'Oromo - (Afaan Oromoo)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (282, 'os', 'Ossetian - (???? æ????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (283, 'ps', 'Pashto - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (284, 'fa', 'Persian - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (285, 'pl', 'Polish - (Polski)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (286, 'pt', 'Portuguese - (Português)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (287, 'pt-BR', 'Portuguese Brazil - (Português Brasil)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (288, 'pt-PT', 'Portuguese Portugal - (Português Portugal)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (289, 'pa', 'Punjabi - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (290, 'qu', 'Quechua - (Runa Simi)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (291, 'ro', 'Romanian - (Româna)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (292, 'mo', 'Romanian  Moldova - (Româna Moldova)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (293, 'rm', 'Romansh - (Rumantsch)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (294, 'ru', 'Russian - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (295, 'sm', 'Samoan - (Gagana Samoa)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (296, 'sat', 'Santali - (???????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (297, 'sc', 'Sardinian - (Sardu)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (298, 'gd', 'Scottish Gaelic - (Gàidhlig)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (299, 'sr', 'Serbian - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (300, 'sh', 'Serbo_Croatian - (Srpskohrvatski)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (301, 'sn', 'Shona - (ChiShona)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (302, 'sd', 'Sindhi - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (303, 'si', 'Sinhala - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (304, 'sk', 'Slovak - (Slovencina)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (305, 'sl', 'Slovenian - (Slovenšcina)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (306, 'so', 'Somali - (Soomaali)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (308, 'es', 'Spanish - (Español)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (309, 'es-AR', 'Spanish  Argentina  - (Español Argentina)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (310, 'es-419', 'Spanish  Latin America  - (Español Latinoamérica)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (311, 'es-MX', 'Spanish  Mexico  - (Español  México)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (312, 'es-ES', 'Spanish  Spain  - (Español España)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (313, 'es-US', 'Spanish  United States  - (Español Estados Unidos)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (314, 'su', 'Sundanese - (Basa Sunda)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (315, 'sw', 'Swahili - (Kiswahili)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (316, 'sv', 'Swedish - (Svenska)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (317, 'tg', 'Tajik - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (318, 'ta', 'Tamil - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (319, 'tt', 'Tatar - (?????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (320, 'te', 'Telugu - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (321, 'th', 'Thai - (???)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (322, 'ti', 'Tigrinya - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (323, 'to', 'Tongan - (Lea fakatonga)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (325, 'tr', 'Turkish - (Türkçe)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (326, 'tk', 'Turkmen - (Türkmençe)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (327, 'tw', 'Twi - (Twi)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (328, 'udm', 'Udmurt - (?????? ???)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (329, 'uk', 'Ukrainian - (??????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (330, 'ur', 'Urdu - (????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (331, 'ug', 'Uyghur - (????????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (332, 'uz', 'Uzbek - (O''zbek)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (334, 'vi', 'Vietnamese - (Ti?ng Vi?t)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (335, 'wa', 'Walloon - (Walon)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (336, 'cy', 'Welsh - (Cymraeg)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (337, 'fy', 'Western Frisian - (Frysk)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (338, 'wo', 'Wolof - (Wollof)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (340, 'yi', 'Yiddish - (??????)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (341, 'yo', 'Yoruba - (Èdè Yorùbá)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (342, 'za', 'Zhuang - (Sa? cue??)', false);
INSERT INTO cv_data.tbl_all_languages VALUES (344, 'af', 'Afrikaans', true);
INSERT INTO cv_data.tbl_all_languages VALUES (345, 'en', 'English', true);
INSERT INTO cv_data.tbl_all_languages VALUES (346, 'nr', 'isiNdebele', true);
INSERT INTO cv_data.tbl_all_languages VALUES (347, 'xh', 'isiXhosa', true);
INSERT INTO cv_data.tbl_all_languages VALUES (348, 'zu', 'isiZulu', true);
INSERT INTO cv_data.tbl_all_languages VALUES (349, 'nso', 'Sepedi', true);
INSERT INTO cv_data.tbl_all_languages VALUES (350, 'st', 'Sesotho', true);
INSERT INTO cv_data.tbl_all_languages VALUES (351, 'tn', 'Setswana', true);
INSERT INTO cv_data.tbl_all_languages VALUES (352, 'ss', 'siSwati', true);
INSERT INTO cv_data.tbl_all_languages VALUES (353, 've', 'Tshivenda', true);
INSERT INTO cv_data.tbl_all_languages VALUES (354, 'ts', 'Xitsonga', true);
INSERT INTO cv_data.tbl_all_languages VALUES (355, 'sfs', 'South African Sign Language', true);


--
-- Data for Name: tbl_languages; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_languages VALUES (3, 13, 'en', 'English', 1, 2);
INSERT INTO cv_data.tbl_languages VALUES (4, 13, 'af', 'Afrikaans', 2, 2);


--
-- Data for Name: tbl_record_qualifications; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_record_qualifications VALUES (1, 1, 10, '1970-01-01');
INSERT INTO cv_data.tbl_record_qualifications VALUES (3, 6, 10, '2024-10-01');


--
-- Data for Name: tbl_records; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_records VALUES (10, 'Roger', '', '', 'Wilco', '777777', 'm', 10, '', '555-1234', 'roger@spacequest.com', 1, 3);
INSERT INTO cv_data.tbl_records VALUES (12, 'Simon', '', '', 'Templar', '987654321', 'm', 0, '', '998-1459', 'john@lecarre.com', 1, 0);
INSERT INTO cv_data.tbl_records VALUES (11, 'Peter', 'Punpkin', 'Eater', 'Piper', '54321', 'm', 10, '', '555-1234', 'peter@piper.com', 1, 7);
INSERT INTO cv_data.tbl_records VALUES (13, '12345', '2', '3', '45678', '567', 'n', 5, 'K1', '123', 'j@k.l', 2, 4);


--
-- Data for Name: tbl_role_departments; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_role_departments VALUES (2, 'Sales and Marketing');
INSERT INTO cv_data.tbl_role_departments VALUES (1, 'IT and Technology');


--
-- Data for Name: tbl_roles; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_roles VALUES (1, 1, 'Systems Administrator', 'General network and server 

management/maintenance');
INSERT INTO cv_data.tbl_roles VALUES (2, 1, 'Network Administrator', '');
INSERT INTO cv_data.tbl_roles VALUES (3, 1, 'Software Developer / Software Engineer', 'Software development');
INSERT INTO cv_data.tbl_roles VALUES (4, 2, 'Sales and Marketing Manager', 'Sales management');
INSERT INTO cv_data.tbl_roles VALUES (5, 2, 'Digital Marketing Specialist', 'Online media');
INSERT INTO cv_data.tbl_roles VALUES (6, 1, 'Database Administrator (DBA)', 'Database administrator, RDBMS');
INSERT INTO cv_data.tbl_roles VALUES (7, 1, 'Technical Support Specialist / IT Support Technician', 'Technical Support Specialist / IT Support 

Technician');
INSERT INTO cv_data.tbl_roles VALUES (8, 1, 'Mobile App Developer', 'Mobile App Developer');


--
-- Data for Name: tbl_tender_cvs; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--



--
-- Data for Name: tbl_tenders; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_tenders VALUES (1, 'RFQ001', 'First tender');
INSERT INTO cv_data.tbl_tenders VALUES (4, 'b001', 'bbbbb');
INSERT INTO cv_data.tbl_tenders VALUES (5, 'aaa', 'aaaaa');
INSERT INTO cv_data.tbl_tenders VALUES (6, 'cdcdcd', 'usic');


--
-- Data for Name: tbl_uploads; Type: TABLE DATA; Schema: cv_data; Owner: cv_database_user
--

INSERT INTO cv_data.tbl_uploads VALUES (2, 10, 1, 0, 'Alteram version of CV', 'Senior Developer - Jacob Kruger.docx', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', '\[encoded data, 405509 characters]');
INSERT INTO cv_data.tbl_uploads VALUES (3, 10, 2, 3, 'Amazon Web Services introduction webinar', 'aws_completion.pdf', 'application/pdf', '\[encoded data, 143049 characters]');
INSERT INTO cv_data.tbl_uploads VALUES (4, 10, 3, 0, 'ID document', 'ID-Book.jpg', 'image/jpeg', '\[encoded data, 396695 characters]');


--
-- Data for Name: tbl_qualification_types; Type: TABLE DATA; Schema: qualifications_certifications; Owner: cv_database_user
--

INSERT INTO qualifications_certifications.tbl_qualification_types VALUES (5, 'Diploma');
INSERT INTO qualifications_certifications.tbl_qualification_types VALUES (6, 'Degree');
INSERT INTO qualifications_certifications.tbl_qualification_types VALUES (1, 'Certificate');


--
-- Data for Name: tbl_qualifications; Type: TABLE DATA; Schema: qualifications_certifications; Owner: cv_database_user
--

INSERT INTO qualifications_certifications.tbl_qualifications VALUES (1, 1, 'certificate in programming', 'almost any form of programming');
INSERT INTO qualifications_certifications.tbl_qualifications VALUES (3, 1, 'certificate in something', 'something...');
INSERT INTO qualifications_certifications.tbl_qualifications VALUES (4, 6, 'Computer Science', 'BSc Computer Science');
INSERT INTO qualifications_certifications.tbl_qualifications VALUES (6, 1, 'AWS Basics', 'Amazon Web Services introduction webinar 

completion');


--
-- Data for Name: tbl_users; Type: TABLE DATA; Schema: users; Owner: cv_database_user
--

INSERT INTO users.tbl_users VALUES (2, 'review', '$2b$12$Oodj7QwC4ahiPTcyQeIFXuLu/WYSPAdF2lJJ74f2QKoPO7dFvcdMq', false, false);
INSERT INTO users.tbl_users VALUES (1, 'capture', '$2b$12$IiXIM5qYeS8I171Q6B7mfOUiy7KlOlpP5eNIcwmdPq8C8F0BQz3kS', false, true);
INSERT INTO users.tbl_users VALUES (3, 'admin', '$2b$12$JByyeru/mAiKjxlSCxR.PO.ntXkNq88mZQO50iJ7.En62FbJDL/cO', true, false);


--
-- Name: tbl_all_languages_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_all_languages_id_seq', 355, true);


--
-- Name: tbl_languages_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_languages_id_seq', 4, true);


--
-- Name: tbl_record_qualifications_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_record_qualifications_id_seq', 3, true);


--
-- Name: tbl_records_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_records_id_seq', 13, true);


--
-- Name: tbl_role_departments_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_role_departments_id_seq', 4, true);


--
-- Name: tbl_roles_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_roles_id_seq', 8, true);


--
-- Name: tbl_tender_cvs_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_tender_cvs_id_seq', 12, true);


--
-- Name: tbl_tenders_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_tenders_id_seq', 6, true);


--
-- Name: tbl_uploads_id_seq; Type: SEQUENCE SET; Schema: cv_data; Owner: cv_database_user
--

SELECT pg_catalog.setval('cv_data.tbl_uploads_id_seq', 4, true);


--
-- Name: tbl_qualification_types_id_seq; Type: SEQUENCE SET; Schema: qualifications_certifications; Owner: cv_database_user
--

SELECT pg_catalog.setval('qualifications_certifications.tbl_qualification_types_id_seq', 7, true);


--
-- Name: tbl_qualifications_id_seq; Type: SEQUENCE SET; Schema: qualifications_certifications; Owner: cv_database_user
--

SELECT pg_catalog.setval('qualifications_certifications.tbl_qualifications_id_seq', 6, true);


--
-- Name: tbl_users_id_seq; Type: SEQUENCE SET; Schema: users; Owner: cv_database_user
--

SELECT pg_catalog.setval('users.tbl_users_id_seq', 4, true);


--
-- Name: tbl_all_languages tbl_all_languages_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_all_languages
    ADD CONSTRAINT tbl_all_languages_pkey PRIMARY KEY (id);


--
-- Name: tbl_languages tbl_languages_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_languages
    ADD CONSTRAINT tbl_languages_pkey PRIMARY KEY (id);


--
-- Name: tbl_record_qualifications tbl_record_qualifications_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_record_qualifications
    ADD CONSTRAINT tbl_record_qualifications_pkey PRIMARY KEY (id);


--
-- Name: tbl_records tbl_records_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_records
    ADD CONSTRAINT tbl_records_pkey PRIMARY KEY (id);


--
-- Name: tbl_role_departments tbl_role_departments_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_role_departments
    ADD CONSTRAINT tbl_role_departments_pkey PRIMARY KEY (id);


--
-- Name: tbl_roles tbl_roles_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_roles
    ADD CONSTRAINT tbl_roles_pkey PRIMARY KEY (id);


--
-- Name: tbl_tender_cvs tbl_tender_cvs_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_tender_cvs
    ADD CONSTRAINT tbl_tender_cvs_pkey PRIMARY KEY (id);


--
-- Name: tbl_tenders tbl_tenders_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_tenders
    ADD CONSTRAINT tbl_tenders_pkey PRIMARY KEY (id);


--
-- Name: tbl_uploads tbl_uploads_pkey; Type: CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_uploads
    ADD CONSTRAINT tbl_uploads_pkey PRIMARY KEY (id);


--
-- Name: tbl_qualification_types tbl_qualification_types_pkey; Type: CONSTRAINT; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER TABLE ONLY qualifications_certifications.tbl_qualification_types
    ADD CONSTRAINT tbl_qualification_types_pkey PRIMARY KEY (id);


--
-- Name: tbl_qualifications tbl_qualifications_pkey; Type: CONSTRAINT; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER TABLE ONLY qualifications_certifications.tbl_qualifications
    ADD CONSTRAINT tbl_qualifications_pkey PRIMARY KEY (id);


--
-- Name: tbl_users tbl_users_pkey; Type: CONSTRAINT; Schema: users; Owner: cv_database_user
--

ALTER TABLE ONLY users.tbl_users
    ADD CONSTRAINT tbl_users_pkey PRIMARY KEY (id);


--
-- Name: tbl_languages tbl_languages_i_record_id_fkey; Type: FK CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_languages
    ADD CONSTRAINT tbl_languages_i_record_id_fkey FOREIGN KEY (i_record_id) REFERENCES cv_data.tbl_records(id) ON DELETE CASCADE;


--
-- Name: tbl_record_qualifications tbl_record_qualifications_i_qualification_id_fkey; Type: FK CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_record_qualifications
    ADD CONSTRAINT tbl_record_qualifications_i_qualification_id_fkey FOREIGN KEY (i_qualification_id) REFERENCES qualifications_certifications.tbl_qualifications(id) ON DELETE CASCADE;


--
-- Name: tbl_record_qualifications tbl_record_qualifications_i_record_id_fkey; Type: FK CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_record_qualifications
    ADD CONSTRAINT tbl_record_qualifications_i_record_id_fkey FOREIGN KEY (i_record_id) REFERENCES cv_data.tbl_records(id) ON DELETE CASCADE;


--
-- Name: tbl_roles tbl_roles_i_department_id_fkey; Type: FK CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_roles
    ADD CONSTRAINT tbl_roles_i_department_id_fkey FOREIGN KEY (i_department_id) REFERENCES cv_data.tbl_role_departments(id) ON DELETE CASCADE;


--
-- Name: tbl_uploads tbl_uploads_i_record_id_fkey; Type: FK CONSTRAINT; Schema: cv_data; Owner: cv_database_user
--

ALTER TABLE ONLY cv_data.tbl_uploads
    ADD CONSTRAINT tbl_uploads_i_record_id_fkey FOREIGN KEY (i_record_id) REFERENCES cv_data.tbl_records(id) ON DELETE CASCADE;


--
-- Name: tbl_qualifications tbl_qualifications_i_qualification_type_fkey; Type: FK CONSTRAINT; Schema: qualifications_certifications; Owner: cv_database_user
--

ALTER TABLE ONLY qualifications_certifications.tbl_qualifications
    ADD CONSTRAINT tbl_qualifications_i_qualification_type_fkey FOREIGN KEY (i_qualification_type) REFERENCES qualifications_certifications.tbl_qualification_types(id) ON DELETE CASCADE;


--
-- PostgreSQL database dump complete
--

