--
-- PostgreSQL database dump
--

\restrict bxGU7dQ4DrNrHU2OuyEH16NHE6ZA8yFm2MADa6p2XI8qbowdWdtlaDeKSSp2NYx

-- Dumped from database version 15.15
-- Dumped by pg_dump version 15.15

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;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: customers; Type: TABLE; Schema: public; Owner: quoteuser
--

CREATE TABLE public.customers (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    street character varying(255) NOT NULL,
    city character varying(100) NOT NULL,
    state character varying(2) NOT NULL,
    zip_code character varying(10) NOT NULL,
    account_number character varying(50),
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.customers OWNER TO quoteuser;

--
-- Name: customers_id_seq; Type: SEQUENCE; Schema: public; Owner: quoteuser
--

CREATE SEQUENCE public.customers_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.customers_id_seq OWNER TO quoteuser;

--
-- Name: customers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quoteuser
--

ALTER SEQUENCE public.customers_id_seq OWNED BY public.customers.id;


--
-- Name: quote_items; Type: TABLE; Schema: public; Owner: quoteuser
--

CREATE TABLE public.quote_items (
    id integer NOT NULL,
    quote_id integer,
    quantity character varying(20) NOT NULL,
    description text NOT NULL,
    rate character varying(50) NOT NULL,
    amount character varying(50) NOT NULL,
    is_tbd boolean DEFAULT false,
    item_order integer NOT NULL,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.quote_items OWNER TO quoteuser;

--
-- Name: quote_items_id_seq; Type: SEQUENCE; Schema: public; Owner: quoteuser
--

CREATE SEQUENCE public.quote_items_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quote_items_id_seq OWNER TO quoteuser;

--
-- Name: quote_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quoteuser
--

ALTER SEQUENCE public.quote_items_id_seq OWNED BY public.quote_items.id;


--
-- Name: quotes; Type: TABLE; Schema: public; Owner: quoteuser
--

CREATE TABLE public.quotes (
    id integer NOT NULL,
    quote_number character varying(50) NOT NULL,
    customer_id integer,
    quote_date date NOT NULL,
    tax_exempt boolean DEFAULT false,
    tax_rate numeric(5,2) DEFAULT 8.25,
    subtotal numeric(10,2) DEFAULT 0,
    tax_amount numeric(10,2) DEFAULT 0,
    total numeric(10,2) DEFAULT 0,
    has_tbd boolean DEFAULT false,
    tbd_note text,
    created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
    updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);


ALTER TABLE public.quotes OWNER TO quoteuser;

--
-- Name: quotes_id_seq; Type: SEQUENCE; Schema: public; Owner: quoteuser
--

CREATE SEQUENCE public.quotes_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE public.quotes_id_seq OWNER TO quoteuser;

--
-- Name: quotes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quoteuser
--

ALTER SEQUENCE public.quotes_id_seq OWNED BY public.quotes.id;


--
-- Name: customers id; Type: DEFAULT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.customers ALTER COLUMN id SET DEFAULT nextval('public.customers_id_seq'::regclass);


--
-- Name: quote_items id; Type: DEFAULT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quote_items ALTER COLUMN id SET DEFAULT nextval('public.quote_items_id_seq'::regclass);


--
-- Name: quotes id; Type: DEFAULT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quotes ALTER COLUMN id SET DEFAULT nextval('public.quotes_id_seq'::regclass);


--
-- Data for Name: customers; Type: TABLE DATA; Schema: public; Owner: quoteuser
--

COPY public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) FROM stdin;
1	Braselton Development	5337 Yorktown Blvd. Suite 10-D	Corpus Christi	TX	78414	3617790060	2026-01-22 01:09:30.914655	2026-01-22 01:09:30.914655
2	Karen Menn	5134 Graford Place	Corpus Christi	TX	78413	3619933550	2026-01-22 01:19:49.357044	2026-01-22 01:49:16.051712
3	Hearing Aid Company of Texas	6468 Holly Road	Corpus Christi	TX	78412	3618143487	2026-01-22 03:33:56.090479	2026-01-22 03:33:56.090479
4	South Shore Christian Church	4710 S. Alameda	Corpus Christi	TX	78412	3619926391	2026-01-22 03:40:33.012646	2026-01-22 03:40:33.012646
5	JE Construction Services, LLC	7505 Up River Road	Corpus Christi	TX	78409	3612892901	2026-01-22 03:41:08.716604	2026-01-22 03:41:08.716604
6	John T. Thompson, DDS	4101 US-77	Corpus Christi	TX	78410	3612423151	2026-01-30 20:50:22.987565	2026-01-30 21:06:23.354743
\.


--
-- Data for Name: quote_items; Type: TABLE DATA; Schema: public; Owner: quoteuser
--

COPY public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) FROM stdin;
26	5	1	<p>HPE ProLiant MicroServer Gen11 Ultra Micro Tower Server - 1 x Intel Xeon E-2414, 32 GB DDR5 RAM</p>	1900	1900.00	f	0	2026-01-22 18:02:30.878526
27	5	2	<p>Western Digital 24TB WD Red Pro NAS Internal Hard Drive HDD</p>	850	1700.00	f	1	2026-01-22 18:02:30.878526
28	5	1	<ul><li>Off-site installation and base configuration of the TrueNAS system</li><li>Creation of storage pools, datasets, and network shares as specified\n</li><li>Configuration of users, user groups, and access permissions\nSetup of automated snapshots with defined retention and rollback capability\n</li><li>Configuration of cloud backups to iDrive360\nSetup of system monitoring and email notifications for proactive issue detection\n</li><li>Installation and configuration of AOMEI Backup on selected desktops and laptops, storing backups on designated TrueNAS shares</li></ul>	2250	2250.00	f	2	2026-01-22 18:02:30.878526
44	1	1	<ul><li>Dell OptiPlex 7010 SFF Desktop Intel Core i5-13600,14 Cores</li><li>16GB</li><li>Windows 11 Pro</li><li>Crucial - P310 2TB Internal SSD PCIe Gen 4 x4 NVMe M.2</li></ul>	1079	1079.00	f	0	2026-01-22 18:51:00.998206
45	1	1	<p>DisplayPort to HDMI cable 10ft</p>	20	20.00	f	1	2026-01-22 18:51:00.998206
46	1	3	<p>Setup and configure Dell OptiPlex 7010  off-site\nInstall all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network\nTransferred data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. \nSetup printing and scanning as required. Install customer requested software.Test all hardware for proper Operation</p>	125	375.00	f	2	2026-01-22 18:51:00.998206
47	2	1	<p>Lenovo Yoga 7 82YN 16" i5-1335U 1.3GHz 16GB RAM 512GB SSD</p>	500	500.00	f	0	2026-01-22 18:54:57.288474
48	2	2	<p>Setup and configure Lenovo yoga 7 82YN 16" i5-1335U 1.3GHz 16GB RAM 512GB SSD off-site. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Transferred data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p>	125	250.00	f	1	2026-01-22 18:54:57.288474
49	4	1	<ul><li>Dell OptiPlex 7020 Plus Tower Desktop PC – Core i7-14700 </li><li>32GB DDR5 RAM, </li><li>2 TB SSD M.2 PCIe Gen4 TLC, </li><li>NVIDIA® GeForce RTX™ 5050</li></ul>	2080	2080.00	f	0	2026-01-22 20:00:28.631846
50	4	2	<p>Setup and configure Lenovo Yoga as needed. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Transfer data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p>	125	250.00	f	1	2026-01-22 20:00:28.631846
59	3	3	<ul><li><strong>Lenovo </strong>ThinkPad P16s Mobile Workstation</li><li><strong>Processor:</strong> Intel® Core™ Ultra 7 155H</li><li><strong>Graphics Card:</strong> NVIDIA RTX™ 500 Ada Generation Laptop GPU, <strong>4 GB GDDR6</strong></li><li><strong>Memory: 64 GB DDR5-5600 MT/s</strong></li><li><strong>Storage: 1 TB SSD</strong> M.2 2280 PCIe Gen4&nbsp;</li><li><strong>Display: </strong>16" &nbsp;WQUXGA (3840 × 2400) OLED</li><li><strong>Operating System:</strong> Windows 11 Pro 64-bit</li><li><strong>1 Year Warranty</strong></li><li><strong>(This device is new, not refurbished)</strong></li></ul>	1949	5847.00	f	0	2026-01-26 18:41:05.501558
60	3		<p>Setup and configure Lenovo Laptops as needed. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p>	125	TBD	t	1	2026-01-26 18:41:05.501558
74	7	1	<p>Dell Optiplex 7010 (or similar) Tower configured with Intel Core i5-13500 processor, 16GB RAM, 512GB solid state drive and Windows 11 Professional. Refurbished with a one year warranty.\t</p>	725.00	725.00	f	0	2026-01-30 21:04:38.661279
75	7	3	<p>Delivery and installation of Dell Tower PC. Setup on local network and install requested software. Install and configure local and network printers. Transfer requested data from existing PC and verify proper operation of all hardware. </p><p><br></p><p>Microsoft Office (if required) is not included in this quote.</p>	125	375.00	f	1	2026-01-30 21:04:38.661279
76	6	1	<ul><li>Dell Tower Computer configured with Intel Core Ultra 5 235 processor, 16GB RAM, 512GB SSD and Windows 11 Professional. New with One Year Warranty.</li></ul>	1325.00	1325.00	f	0	2026-01-30 21:07:26.820637
77	6	3	<p>Delivery and installation of new Dell Tower PC. Setup on local network and install requested software. Install and configure local and network printers. Transfer requested data from existing PC and verify proper operation of all hardware. </p><p><br></p><p>Microsoft Office (if required) is not included in this quote.</p>	125.00	375.00	f	1	2026-01-30 21:07:26.820637
\.


--
-- Data for Name: quotes; Type: TABLE DATA; Schema: public; Owner: quoteuser
--

COPY public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) FROM stdin;
5	2026-01-0005	5	2026-01-22	f	8.25	5850.00	482.63	6332.63	f		2026-01-22 16:28:42.374654	2026-01-22 18:02:30.878526
1	2026-01-0001	2	2026-01-22	f	8.25	1474.00	121.61	1595.61	f		2026-01-22 01:34:06.558046	2026-01-22 18:51:00.998206
2	2026-01-0002	3	2026-01-22	f	8.25	750.00	61.88	811.88	f		2026-01-22 03:35:15.021729	2026-01-22 18:54:57.288474
4	2026-01-0004	4	2026-01-22	f	8.25	2330.00	192.23	2522.23	f		2026-01-22 03:45:56.686598	2026-01-22 20:00:28.631846
3	2026-01-0003	1	2026-01-26	f	8.25	5847.00	482.38	6329.38	t	Total excludes labor charges which will be determined based on actual time required.	2026-01-22 03:36:47.795674	2026-01-26 18:41:05.501558
7	2026-01-0007	6	2026-01-30	f	8.25	1100.00	90.75	1190.75	f		2026-01-30 21:01:43.538202	2026-01-30 21:04:38.661279
6	2026-01-0006	6	2026-01-30	f	8.25	1700.00	140.25	1840.25	f		2026-01-30 20:58:23.014874	2026-01-30 21:07:26.820637
\.


--
-- Name: customers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--

SELECT pg_catalog.setval('public.customers_id_seq', 6, true);


--
-- Name: quote_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--

SELECT pg_catalog.setval('public.quote_items_id_seq', 77, true);


--
-- Name: quotes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--

SELECT pg_catalog.setval('public.quotes_id_seq', 7, true);


--
-- Name: customers customers_pkey; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.customers
    ADD CONSTRAINT customers_pkey PRIMARY KEY (id);


--
-- Name: quote_items quote_items_pkey; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quote_items
    ADD CONSTRAINT quote_items_pkey PRIMARY KEY (id);


--
-- Name: quotes quotes_pkey; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_pkey PRIMARY KEY (id);


--
-- Name: quotes quotes_quote_number_key; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_quote_number_key UNIQUE (quote_number);


--
-- Name: idx_quote_items_quote_id; Type: INDEX; Schema: public; Owner: quoteuser
--

CREATE INDEX idx_quote_items_quote_id ON public.quote_items USING btree (quote_id);


--
-- Name: idx_quotes_customer_id; Type: INDEX; Schema: public; Owner: quoteuser
--

CREATE INDEX idx_quotes_customer_id ON public.quotes USING btree (customer_id);


--
-- Name: idx_quotes_quote_number; Type: INDEX; Schema: public; Owner: quoteuser
--

CREATE INDEX idx_quotes_quote_number ON public.quotes USING btree (quote_number);


--
-- Name: quote_items quote_items_quote_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quote_items
    ADD CONSTRAINT quote_items_quote_id_fkey FOREIGN KEY (quote_id) REFERENCES public.quotes(id) ON DELETE CASCADE;


--
-- Name: quotes quotes_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: quoteuser
--

ALTER TABLE ONLY public.quotes
    ADD CONSTRAINT quotes_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customers(id);


--
-- PostgreSQL database dump complete
--

\unrestrict bxGU7dQ4DrNrHU2OuyEH16NHE6ZA8yFm2MADa6p2XI8qbowdWdtlaDeKSSp2NYx

