Despliegue de los pods en kubernetes

lahelice20250819.sql 62KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 12.22 (Ubuntu 12.22-0ubuntu0.20.04.4)
  5. -- Dumped by pg_dump version 12.22 (Ubuntu 12.22-0ubuntu0.20.04.4)
  6. SET statement_timeout = 0;
  7. SET lock_timeout = 0;
  8. SET idle_in_transaction_session_timeout = 0;
  9. SET client_encoding = 'UTF8';
  10. SET standard_conforming_strings = on;
  11. SELECT pg_catalog.set_config('search_path', '', false);
  12. SET check_function_bodies = false;
  13. SET xmloption = content;
  14. SET client_min_messages = warning;
  15. SET row_security = off;
  16. --
  17. -- Name: address_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  18. --
  19. CREATE SEQUENCE public.address_id_seq
  20. START WITH 1
  21. INCREMENT BY 1
  22. NO MINVALUE
  23. MAXVALUE 32767
  24. CACHE 1;
  25. ALTER TABLE public.address_id_seq OWNER TO vespot;
  26. SET default_tablespace = '';
  27. SET default_table_access_method = heap;
  28. --
  29. -- Name: addresses; Type: TABLE; Schema: public; Owner: vespot
  30. --
  31. CREATE TABLE public.addresses (
  32. address_id integer NOT NULL,
  33. client_id integer,
  34. name character varying,
  35. address character varying,
  36. country_id integer,
  37. city character varying
  38. );
  39. ALTER TABLE public.addresses OWNER TO vespot;
  40. --
  41. -- Name: addresses_address_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  42. --
  43. CREATE SEQUENCE public.addresses_address_id_seq
  44. AS integer
  45. START WITH 1
  46. INCREMENT BY 1
  47. NO MINVALUE
  48. NO MAXVALUE
  49. CACHE 1;
  50. ALTER TABLE public.addresses_address_id_seq OWNER TO vespot;
  51. --
  52. -- Name: addresses_address_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  53. --
  54. ALTER SEQUENCE public.addresses_address_id_seq OWNED BY public.addresses.address_id;
  55. --
  56. -- Name: categories; Type: TABLE; Schema: public; Owner: vespot
  57. --
  58. CREATE TABLE public.categories (
  59. category_id smallint NOT NULL,
  60. name character varying,
  61. standar_code character varying,
  62. reference character varying,
  63. material character varying
  64. );
  65. ALTER TABLE public.categories OWNER TO vespot;
  66. --
  67. -- Name: categories_category_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  68. --
  69. CREATE SEQUENCE public.categories_category_id_seq
  70. AS smallint
  71. START WITH 1
  72. INCREMENT BY 1
  73. NO MINVALUE
  74. NO MAXVALUE
  75. CACHE 1;
  76. ALTER TABLE public.categories_category_id_seq OWNER TO vespot;
  77. --
  78. -- Name: categories_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  79. --
  80. ALTER SEQUENCE public.categories_category_id_seq OWNED BY public.categories.category_id;
  81. --
  82. -- Name: clients; Type: TABLE; Schema: public; Owner: vespot
  83. --
  84. CREATE TABLE public.clients (
  85. client_id smallint NOT NULL,
  86. name character varying,
  87. address character varying,
  88. phonenumber1 character varying,
  89. phonenumber2 character varying,
  90. contact_name character varying
  91. );
  92. ALTER TABLE public.clients OWNER TO vespot;
  93. --
  94. -- Name: clients_client_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  95. --
  96. CREATE SEQUENCE public.clients_client_id_seq
  97. AS smallint
  98. START WITH 1
  99. INCREMENT BY 1
  100. NO MINVALUE
  101. NO MAXVALUE
  102. CACHE 1;
  103. ALTER TABLE public.clients_client_id_seq OWNER TO vespot;
  104. --
  105. -- Name: clients_client_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  106. --
  107. ALTER SEQUENCE public.clients_client_id_seq OWNED BY public.clients.client_id;
  108. --
  109. -- Name: countries; Type: TABLE; Schema: public; Owner: vespot
  110. --
  111. CREATE TABLE public.countries (
  112. country_id smallint NOT NULL,
  113. name character varying
  114. );
  115. ALTER TABLE public.countries OWNER TO vespot;
  116. --
  117. -- Name: delivery_types; Type: TABLE; Schema: public; Owner: vespot
  118. --
  119. CREATE TABLE public.delivery_types (
  120. delivery_type_id smallint NOT NULL,
  121. name character varying
  122. );
  123. ALTER TABLE public.delivery_types OWNER TO vespot;
  124. --
  125. -- Name: incidents_id; Type: TABLE; Schema: public; Owner: vespot
  126. --
  127. CREATE TABLE public.incidents_id (
  128. incident_id smallint NOT NULL,
  129. name character varying,
  130. detail character varying,
  131. quantity integer,
  132. turn_incidents_id integer
  133. );
  134. ALTER TABLE public.incidents_id OWNER TO vespot;
  135. --
  136. -- Name: incidents_id_incident_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  137. --
  138. CREATE SEQUENCE public.incidents_id_incident_id_seq
  139. AS smallint
  140. START WITH 1
  141. INCREMENT BY 1
  142. NO MINVALUE
  143. NO MAXVALUE
  144. CACHE 1;
  145. ALTER TABLE public.incidents_id_incident_id_seq OWNER TO vespot;
  146. --
  147. -- Name: incidents_id_incident_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  148. --
  149. ALTER SEQUENCE public.incidents_id_incident_id_seq OWNED BY public.incidents_id.incident_id;
  150. --
  151. -- Name: input_types; Type: TABLE; Schema: public; Owner: vespot
  152. --
  153. CREATE TABLE public.input_types (
  154. input_type_id smallint NOT NULL,
  155. name character varying,
  156. reference character varying,
  157. standar_code character varying
  158. );
  159. ALTER TABLE public.input_types OWNER TO vespot;
  160. --
  161. -- Name: input_types_input_type_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  162. --
  163. CREATE SEQUENCE public.input_types_input_type_id_seq
  164. AS smallint
  165. START WITH 1
  166. INCREMENT BY 1
  167. NO MINVALUE
  168. NO MAXVALUE
  169. CACHE 1;
  170. ALTER TABLE public.input_types_input_type_id_seq OWNER TO vespot;
  171. --
  172. -- Name: input_types_input_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  173. --
  174. ALTER SEQUENCE public.input_types_input_type_id_seq OWNED BY public.input_types.input_type_id;
  175. --
  176. -- Name: inputs; Type: TABLE; Schema: public; Owner: vespot
  177. --
  178. CREATE TABLE public.inputs (
  179. input_id integer NOT NULL,
  180. barcode character varying,
  181. lot character varying,
  182. name character varying,
  183. supplier_id integer,
  184. input_type_id smallint,
  185. reception_date timestamp without time zone,
  186. quantity real,
  187. standar_code character varying,
  188. disponible real
  189. );
  190. ALTER TABLE public.inputs OWNER TO vespot;
  191. --
  192. -- Name: inputs_input_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  193. --
  194. CREATE SEQUENCE public.inputs_input_id_seq
  195. AS integer
  196. START WITH 1
  197. INCREMENT BY 1
  198. NO MINVALUE
  199. NO MAXVALUE
  200. CACHE 1;
  201. ALTER TABLE public.inputs_input_id_seq OWNER TO vespot;
  202. --
  203. -- Name: inputs_input_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  204. --
  205. ALTER SEQUENCE public.inputs_input_id_seq OWNED BY public.inputs.input_id;
  206. --
  207. -- Name: invoices_invoice_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  208. --
  209. CREATE SEQUENCE public.invoices_invoice_id_seq
  210. START WITH 1
  211. INCREMENT BY 1
  212. NO MINVALUE
  213. MAXVALUE 32767
  214. CACHE 1;
  215. ALTER TABLE public.invoices_invoice_id_seq OWNER TO vespot;
  216. --
  217. -- Name: invoices; Type: TABLE; Schema: public; Owner: vespot
  218. --
  219. CREATE TABLE public.invoices (
  220. invoice_id integer DEFAULT nextval('public.invoices_invoice_id_seq'::regclass) NOT NULL,
  221. client_id integer,
  222. invoice_date timestamp without time zone
  223. );
  224. ALTER TABLE public.invoices OWNER TO vespot;
  225. --
  226. -- Name: invoices_products; Type: TABLE; Schema: public; Owner: vespot
  227. --
  228. CREATE TABLE public.invoices_products (
  229. invoice_id integer NOT NULL,
  230. product_id integer NOT NULL,
  231. quantity real,
  232. remission_id integer NOT NULL
  233. );
  234. ALTER TABLE public.invoices_products OWNER TO vespot;
  235. --
  236. -- Name: lines; Type: TABLE; Schema: public; Owner: vespot
  237. --
  238. CREATE TABLE public.lines (
  239. line_id smallint NOT NULL,
  240. name character varying
  241. );
  242. ALTER TABLE public.lines OWNER TO vespot;
  243. --
  244. -- Name: lines_line_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  245. --
  246. CREATE SEQUENCE public.lines_line_id_seq
  247. AS smallint
  248. START WITH 1
  249. INCREMENT BY 1
  250. NO MINVALUE
  251. NO MAXVALUE
  252. CACHE 1;
  253. ALTER TABLE public.lines_line_id_seq OWNER TO vespot;
  254. --
  255. -- Name: lines_line_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  256. --
  257. ALTER SEQUENCE public.lines_line_id_seq OWNED BY public.lines.line_id;
  258. --
  259. -- Name: lines_machines; Type: TABLE; Schema: public; Owner: vespot
  260. --
  261. CREATE TABLE public.lines_machines (
  262. line_id smallint NOT NULL,
  263. machine_id smallint NOT NULL
  264. );
  265. ALTER TABLE public.lines_machines OWNER TO vespot;
  266. --
  267. -- Name: machines; Type: TABLE; Schema: public; Owner: vespot
  268. --
  269. CREATE TABLE public.machines (
  270. machine_id smallint NOT NULL,
  271. name character varying,
  272. serial character varying
  273. );
  274. ALTER TABLE public.machines OWNER TO vespot;
  275. --
  276. -- Name: machines_machine_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  277. --
  278. CREATE SEQUENCE public.machines_machine_id_seq
  279. AS smallint
  280. START WITH 1
  281. INCREMENT BY 1
  282. NO MINVALUE
  283. NO MAXVALUE
  284. CACHE 1;
  285. ALTER TABLE public.machines_machine_id_seq OWNER TO vespot;
  286. --
  287. -- Name: machines_machine_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  288. --
  289. ALTER SEQUENCE public.machines_machine_id_seq OWNED BY public.machines.machine_id;
  290. --
  291. -- Name: operators; Type: TABLE; Schema: public; Owner: vespot
  292. --
  293. CREATE TABLE public.operators (
  294. operator_id integer NOT NULL,
  295. is_leader boolean,
  296. name character varying,
  297. document_number character varying,
  298. rh character varying,
  299. operator_type_id smallint
  300. );
  301. ALTER TABLE public.operators OWNER TO vespot;
  302. --
  303. -- Name: operators_operator_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  304. --
  305. CREATE SEQUENCE public.operators_operator_id_seq
  306. AS integer
  307. START WITH 1
  308. INCREMENT BY 1
  309. NO MINVALUE
  310. NO MAXVALUE
  311. CACHE 1;
  312. ALTER TABLE public.operators_operator_id_seq OWNER TO vespot;
  313. --
  314. -- Name: operators_operator_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  315. --
  316. ALTER SEQUENCE public.operators_operator_id_seq OWNED BY public.operators.operator_id;
  317. --
  318. -- Name: preproducts; Type: TABLE; Schema: public; Owner: vespot
  319. --
  320. CREATE TABLE public.preproducts (
  321. preproduct_id integer NOT NULL,
  322. measure integer,
  323. standar_code character varying,
  324. lot character varying,
  325. material character varying,
  326. weight real,
  327. caliber real,
  328. fabrication_date timestamp without time zone,
  329. turn_id integer,
  330. quantity integer,
  331. waste real,
  332. residue real,
  333. details character varying
  334. );
  335. ALTER TABLE public.preproducts OWNER TO vespot;
  336. --
  337. -- Name: preproducts_preproduct_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  338. --
  339. CREATE SEQUENCE public.preproducts_preproduct_id_seq
  340. AS integer
  341. START WITH 1
  342. INCREMENT BY 1
  343. NO MINVALUE
  344. NO MAXVALUE
  345. CACHE 1;
  346. ALTER TABLE public.preproducts_preproduct_id_seq OWNER TO vespot;
  347. --
  348. -- Name: preproducts_preproduct_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  349. --
  350. ALTER SEQUENCE public.preproducts_preproduct_id_seq OWNED BY public.preproducts.preproduct_id;
  351. --
  352. -- Name: products; Type: TABLE; Schema: public; Owner: vespot
  353. --
  354. CREATE TABLE public.products (
  355. product_id integer NOT NULL,
  356. fabrication_date timestamp without time zone,
  357. name character varying,
  358. barcode character varying,
  359. category_id smallint,
  360. product_status_id smallint,
  361. turn_id integer,
  362. sale_order_id integer,
  363. weight real,
  364. waste real,
  365. supplier_id integer,
  366. quantity real,
  367. available integer
  368. );
  369. ALTER TABLE public.products OWNER TO vespot;
  370. --
  371. -- Name: products_inputs; Type: TABLE; Schema: public; Owner: vespot
  372. --
  373. CREATE TABLE public.products_inputs (
  374. product_id integer NOT NULL,
  375. input_id integer NOT NULL
  376. );
  377. ALTER TABLE public.products_inputs OWNER TO vespot;
  378. --
  379. -- Name: products_product_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  380. --
  381. CREATE SEQUENCE public.products_product_id_seq
  382. AS integer
  383. START WITH 1
  384. INCREMENT BY 1
  385. NO MINVALUE
  386. NO MAXVALUE
  387. CACHE 1;
  388. ALTER TABLE public.products_product_id_seq OWNER TO vespot;
  389. --
  390. -- Name: products_product_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  391. --
  392. ALTER SEQUENCE public.products_product_id_seq OWNED BY public.products.product_id;
  393. --
  394. -- Name: products_status; Type: TABLE; Schema: public; Owner: vespot
  395. --
  396. CREATE TABLE public.products_status (
  397. product_status_id smallint NOT NULL,
  398. name character varying,
  399. description character varying
  400. );
  401. ALTER TABLE public.products_status OWNER TO vespot;
  402. --
  403. -- Name: products_technical_data; Type: TABLE; Schema: public; Owner: vespot
  404. --
  405. CREATE TABLE public.products_technical_data (
  406. product_id integer NOT NULL,
  407. reference character varying,
  408. article character varying,
  409. product_group character varying,
  410. presentation character varying,
  411. cai character varying,
  412. height numeric,
  413. width numeric,
  414. square_meters numeric,
  415. diameter numeric,
  416. length numeric,
  417. angle numeric,
  418. sale_value numeric,
  419. rental_value numeric
  420. );
  421. ALTER TABLE public.products_technical_data OWNER TO vespot;
  422. --
  423. -- Name: remissions; Type: TABLE; Schema: public; Owner: vespot
  424. --
  425. CREATE TABLE public.remissions (
  426. remission_id integer NOT NULL,
  427. client_id integer,
  428. address_id integer,
  429. request_date timestamp without time zone,
  430. deliver_date timestamp without time zone,
  431. name character varying,
  432. is_delivery boolean
  433. );
  434. ALTER TABLE public.remissions OWNER TO vespot;
  435. --
  436. -- Name: remission_remission_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  437. --
  438. CREATE SEQUENCE public.remission_remission_id_seq
  439. AS integer
  440. START WITH 1
  441. INCREMENT BY 1
  442. NO MINVALUE
  443. NO MAXVALUE
  444. CACHE 1;
  445. ALTER TABLE public.remission_remission_id_seq OWNER TO vespot;
  446. --
  447. -- Name: remission_remission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  448. --
  449. ALTER SEQUENCE public.remission_remission_id_seq OWNED BY public.remissions.remission_id;
  450. --
  451. -- Name: remissions_products; Type: TABLE; Schema: public; Owner: vespot
  452. --
  453. CREATE TABLE public.remissions_products (
  454. remission_id integer NOT NULL,
  455. product_id integer NOT NULL,
  456. quantity real,
  457. full_delivered boolean,
  458. quantity_for_return integer
  459. );
  460. ALTER TABLE public.remissions_products OWNER TO vespot;
  461. --
  462. -- Name: remissions_remission_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  463. --
  464. CREATE SEQUENCE public.remissions_remission_id_seq
  465. START WITH 1
  466. INCREMENT BY 1
  467. NO MINVALUE
  468. MAXVALUE 32767
  469. CACHE 1;
  470. ALTER TABLE public.remissions_remission_id_seq OWNER TO vespot;
  471. --
  472. -- Name: returns_return_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  473. --
  474. CREATE SEQUENCE public.returns_return_id_seq
  475. START WITH 1
  476. INCREMENT BY 1
  477. NO MINVALUE
  478. MAXVALUE 32767
  479. CACHE 1;
  480. ALTER TABLE public.returns_return_id_seq OWNER TO vespot;
  481. --
  482. -- Name: returns; Type: TABLE; Schema: public; Owner: vespot
  483. --
  484. CREATE TABLE public.returns (
  485. return_id integer DEFAULT nextval('public.returns_return_id_seq'::regclass) NOT NULL,
  486. client_id integer,
  487. return_date timestamp without time zone
  488. );
  489. ALTER TABLE public.returns OWNER TO vespot;
  490. --
  491. -- Name: returns_products; Type: TABLE; Schema: public; Owner: vespot
  492. --
  493. CREATE TABLE public.returns_products (
  494. return_id integer NOT NULL,
  495. product_id integer NOT NULL,
  496. quantity real,
  497. remission_id integer NOT NULL
  498. );
  499. ALTER TABLE public.returns_products OWNER TO vespot;
  500. --
  501. -- Name: sale_order_status; Type: TABLE; Schema: public; Owner: vespot
  502. --
  503. CREATE TABLE public.sale_order_status (
  504. sale_order_status_id smallint NOT NULL,
  505. name character varying,
  506. description character varying
  507. );
  508. ALTER TABLE public.sale_order_status OWNER TO vespot;
  509. --
  510. -- Name: sale_orders; Type: TABLE; Schema: public; Owner: vespot
  511. --
  512. CREATE TABLE public.sale_orders (
  513. sale_order_id integer NOT NULL,
  514. internal_code character varying,
  515. order_date timestamp without time zone,
  516. client_id smallint,
  517. description character varying,
  518. delivery_type_id smallint,
  519. sale_order_status_id smallint
  520. );
  521. ALTER TABLE public.sale_orders OWNER TO vespot;
  522. --
  523. -- Name: sale_orders_categories; Type: TABLE; Schema: public; Owner: vespot
  524. --
  525. CREATE TABLE public.sale_orders_categories (
  526. sale_order_id integer NOT NULL,
  527. category_id smallint NOT NULL,
  528. quantity double precision
  529. );
  530. ALTER TABLE public.sale_orders_categories OWNER TO vespot;
  531. --
  532. -- Name: sale_orders_sale_order_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  533. --
  534. CREATE SEQUENCE public.sale_orders_sale_order_id_seq
  535. AS integer
  536. START WITH 1
  537. INCREMENT BY 1
  538. NO MINVALUE
  539. NO MAXVALUE
  540. CACHE 1;
  541. ALTER TABLE public.sale_orders_sale_order_id_seq OWNER TO vespot;
  542. --
  543. -- Name: sale_orders_sale_order_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  544. --
  545. ALTER SEQUENCE public.sale_orders_sale_order_id_seq OWNED BY public.sale_orders.sale_order_id;
  546. --
  547. -- Name: supplier_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  548. --
  549. CREATE SEQUENCE public.supplier_id_seq
  550. START WITH 1
  551. INCREMENT BY 1
  552. NO MINVALUE
  553. MAXVALUE 32767
  554. CACHE 1;
  555. ALTER TABLE public.supplier_id_seq OWNER TO vespot;
  556. --
  557. -- Name: suppliers; Type: TABLE; Schema: public; Owner: vespot
  558. --
  559. CREATE TABLE public.suppliers (
  560. supplier_id integer NOT NULL,
  561. name character varying,
  562. address character varying,
  563. phonenumber1 character varying,
  564. phonenumber2 character varying,
  565. contact_name character varying
  566. );
  567. ALTER TABLE public.suppliers OWNER TO vespot;
  568. --
  569. -- Name: suppliers_input_types; Type: TABLE; Schema: public; Owner: vespot
  570. --
  571. CREATE TABLE public.suppliers_input_types (
  572. supplier_id integer,
  573. input_type_id integer
  574. );
  575. ALTER TABLE public.suppliers_input_types OWNER TO vespot;
  576. --
  577. -- Name: suppliers_supplier_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  578. --
  579. CREATE SEQUENCE public.suppliers_supplier_id_seq
  580. AS integer
  581. START WITH 1
  582. INCREMENT BY 1
  583. NO MINVALUE
  584. NO MAXVALUE
  585. CACHE 1;
  586. ALTER TABLE public.suppliers_supplier_id_seq OWNER TO vespot;
  587. --
  588. -- Name: suppliers_supplier_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  589. --
  590. ALTER SEQUENCE public.suppliers_supplier_id_seq OWNED BY public.suppliers.supplier_id;
  591. --
  592. -- Name: turn_incidents; Type: TABLE; Schema: public; Owner: vespot
  593. --
  594. CREATE TABLE public.turn_incidents (
  595. turn_incident_id integer NOT NULL,
  596. turn_id integer,
  597. description character varying,
  598. title character varying
  599. );
  600. ALTER TABLE public.turn_incidents OWNER TO vespot;
  601. --
  602. -- Name: turn_incidents_turn_incident_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  603. --
  604. CREATE SEQUENCE public.turn_incidents_turn_incident_id_seq
  605. AS integer
  606. START WITH 1
  607. INCREMENT BY 1
  608. NO MINVALUE
  609. NO MAXVALUE
  610. CACHE 1;
  611. ALTER TABLE public.turn_incidents_turn_incident_id_seq OWNER TO vespot;
  612. --
  613. -- Name: turn_incidents_turn_incident_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  614. --
  615. ALTER SEQUENCE public.turn_incidents_turn_incident_id_seq OWNED BY public.turn_incidents.turn_incident_id;
  616. --
  617. -- Name: turn_types; Type: TABLE; Schema: public; Owner: vespot
  618. --
  619. CREATE TABLE public.turn_types (
  620. turn_type_id integer NOT NULL,
  621. initial_hour time without time zone,
  622. final_hour time without time zone,
  623. description character varying
  624. );
  625. ALTER TABLE public.turn_types OWNER TO vespot;
  626. --
  627. -- Name: turns; Type: TABLE; Schema: public; Owner: vespot
  628. --
  629. CREATE TABLE public.turns (
  630. turn_id integer NOT NULL,
  631. line_id smallint,
  632. start_time timestamp without time zone,
  633. end_time timestamp without time zone,
  634. turn_type_id integer,
  635. waste real,
  636. residue real,
  637. waste_desc character varying,
  638. peletizado character varying,
  639. original character varying
  640. );
  641. ALTER TABLE public.turns OWNER TO vespot;
  642. --
  643. -- Name: turns_operators; Type: TABLE; Schema: public; Owner: vespot
  644. --
  645. CREATE TABLE public.turns_operators (
  646. turn_id integer NOT NULL,
  647. operator_id integer NOT NULL
  648. );
  649. ALTER TABLE public.turns_operators OWNER TO vespot;
  650. --
  651. -- Name: turns_turn_id_seq; Type: SEQUENCE; Schema: public; Owner: vespot
  652. --
  653. CREATE SEQUENCE public.turns_turn_id_seq
  654. AS integer
  655. START WITH 1
  656. INCREMENT BY 1
  657. NO MINVALUE
  658. NO MAXVALUE
  659. CACHE 1;
  660. ALTER TABLE public.turns_turn_id_seq OWNER TO vespot;
  661. --
  662. -- Name: turns_turn_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: vespot
  663. --
  664. ALTER SEQUENCE public.turns_turn_id_seq OWNED BY public.turns.turn_id;
  665. --
  666. -- Name: units_measure; Type: TABLE; Schema: public; Owner: vespot
  667. --
  668. CREATE TABLE public.units_measure (
  669. name character varying,
  670. standar_code character varying NOT NULL
  671. );
  672. ALTER TABLE public.units_measure OWNER TO vespot;
  673. --
  674. -- Name: addresses address_id; Type: DEFAULT; Schema: public; Owner: vespot
  675. --
  676. ALTER TABLE ONLY public.addresses ALTER COLUMN address_id SET DEFAULT nextval('public.addresses_address_id_seq'::regclass);
  677. --
  678. -- Name: categories category_id; Type: DEFAULT; Schema: public; Owner: vespot
  679. --
  680. ALTER TABLE ONLY public.categories ALTER COLUMN category_id SET DEFAULT nextval('public.categories_category_id_seq'::regclass);
  681. --
  682. -- Name: clients client_id; Type: DEFAULT; Schema: public; Owner: vespot
  683. --
  684. ALTER TABLE ONLY public.clients ALTER COLUMN client_id SET DEFAULT nextval('public.clients_client_id_seq'::regclass);
  685. --
  686. -- Name: incidents_id incident_id; Type: DEFAULT; Schema: public; Owner: vespot
  687. --
  688. ALTER TABLE ONLY public.incidents_id ALTER COLUMN incident_id SET DEFAULT nextval('public.incidents_id_incident_id_seq'::regclass);
  689. --
  690. -- Name: input_types input_type_id; Type: DEFAULT; Schema: public; Owner: vespot
  691. --
  692. ALTER TABLE ONLY public.input_types ALTER COLUMN input_type_id SET DEFAULT nextval('public.input_types_input_type_id_seq'::regclass);
  693. --
  694. -- Name: inputs input_id; Type: DEFAULT; Schema: public; Owner: vespot
  695. --
  696. ALTER TABLE ONLY public.inputs ALTER COLUMN input_id SET DEFAULT nextval('public.inputs_input_id_seq'::regclass);
  697. --
  698. -- Name: lines line_id; Type: DEFAULT; Schema: public; Owner: vespot
  699. --
  700. ALTER TABLE ONLY public.lines ALTER COLUMN line_id SET DEFAULT nextval('public.lines_line_id_seq'::regclass);
  701. --
  702. -- Name: machines machine_id; Type: DEFAULT; Schema: public; Owner: vespot
  703. --
  704. ALTER TABLE ONLY public.machines ALTER COLUMN machine_id SET DEFAULT nextval('public.machines_machine_id_seq'::regclass);
  705. --
  706. -- Name: operators operator_id; Type: DEFAULT; Schema: public; Owner: vespot
  707. --
  708. ALTER TABLE ONLY public.operators ALTER COLUMN operator_id SET DEFAULT nextval('public.operators_operator_id_seq'::regclass);
  709. --
  710. -- Name: preproducts preproduct_id; Type: DEFAULT; Schema: public; Owner: vespot
  711. --
  712. ALTER TABLE ONLY public.preproducts ALTER COLUMN preproduct_id SET DEFAULT nextval('public.preproducts_preproduct_id_seq'::regclass);
  713. --
  714. -- Name: products product_id; Type: DEFAULT; Schema: public; Owner: vespot
  715. --
  716. ALTER TABLE ONLY public.products ALTER COLUMN product_id SET DEFAULT nextval('public.products_product_id_seq'::regclass);
  717. --
  718. -- Name: remissions remission_id; Type: DEFAULT; Schema: public; Owner: vespot
  719. --
  720. ALTER TABLE ONLY public.remissions ALTER COLUMN remission_id SET DEFAULT nextval('public.remission_remission_id_seq'::regclass);
  721. --
  722. -- Name: sale_orders sale_order_id; Type: DEFAULT; Schema: public; Owner: vespot
  723. --
  724. ALTER TABLE ONLY public.sale_orders ALTER COLUMN sale_order_id SET DEFAULT nextval('public.sale_orders_sale_order_id_seq'::regclass);
  725. --
  726. -- Name: suppliers supplier_id; Type: DEFAULT; Schema: public; Owner: vespot
  727. --
  728. ALTER TABLE ONLY public.suppliers ALTER COLUMN supplier_id SET DEFAULT nextval('public.suppliers_supplier_id_seq'::regclass);
  729. --
  730. -- Name: turn_incidents turn_incident_id; Type: DEFAULT; Schema: public; Owner: vespot
  731. --
  732. ALTER TABLE ONLY public.turn_incidents ALTER COLUMN turn_incident_id SET DEFAULT nextval('public.turn_incidents_turn_incident_id_seq'::regclass);
  733. --
  734. -- Name: turns turn_id; Type: DEFAULT; Schema: public; Owner: vespot
  735. --
  736. ALTER TABLE ONLY public.turns ALTER COLUMN turn_id SET DEFAULT nextval('public.turns_turn_id_seq'::regclass);
  737. --
  738. -- Data for Name: addresses; Type: TABLE DATA; Schema: public; Owner: vespot
  739. --
  740. COPY public.addresses (address_id, client_id, name, address, country_id, city) FROM stdin;
  741. 3 3 proyecto 1 cliente 1 cra 5 10 Medellín
  742. 4 4 proyecto 2 cliente 2 cra 34 10 Bogotá
  743. 5 4 proyecto test 2 cra 9 # 24-89 10 Bogotá
  744. 6 3 proyecto test cliente 1 cra 6 # xx-xx 10 Bogotá
  745. 7 6 proyecto 3 test cra 34 10 Bogotá
  746. \.
  747. --
  748. -- Data for Name: categories; Type: TABLE DATA; Schema: public; Owner: vespot
  749. --
  750. COPY public.categories (category_id, name, standar_code, reference, material) FROM stdin;
  751. 1 GENERAL kg
  752. \.
  753. --
  754. -- Data for Name: clients; Type: TABLE DATA; Schema: public; Owner: vespot
  755. --
  756. COPY public.clients (client_id, name, address, phonenumber1, phonenumber2, contact_name) FROM stdin;
  757. 3 cliente test 1 cra 43#23-xx;Bogotá 1234567890 1123456789 1073543223
  758. 4 cliente test 2 cra 32 # xx- xx;Bogotá 1234567890 1345678900 1234567
  759. 6 cliente test 3 cra 3 # 3=33;Bogotá 12312312 12312312 049393
  760. \.
  761. --
  762. -- Data for Name: countries; Type: TABLE DATA; Schema: public; Owner: vespot
  763. --
  764. COPY public.countries (country_id, name) FROM stdin;
  765. 1 Antigua y Barbuda
  766. 2 Argentina
  767. 3 Bahamas
  768. 4 Barbados
  769. 5 Belice
  770. 6 Bolivia
  771. 7 Brasil
  772. 8 Canadá
  773. 9 Chile
  774. 10 Colombia
  775. 11 Costa Rica
  776. 12 Cuba
  777. 13 Dominica
  778. 14 Ecuador
  779. 15 El Salvador
  780. 16 Estados Unidos
  781. 17 Granada
  782. 18 Guatemala
  783. 19 Guyana
  784. 20 Haití
  785. 21 Honduras
  786. 22 Jamaica
  787. 23 México
  788. 24 Nicaragua
  789. 25 Panamá
  790. 26 Paraguay
  791. 27 Perú
  792. 28 República Dominicana
  793. 29 San Cristóbal y Nieves
  794. 30 San Vicente y las Granadinas
  795. 31 Santa Lucía
  796. 32 Surinam
  797. 33 Trinidad y Tobago
  798. 34 Uruguay
  799. 35 Venezuela
  800. \.
  801. --
  802. -- Data for Name: delivery_types; Type: TABLE DATA; Schema: public; Owner: vespot
  803. --
  804. COPY public.delivery_types (delivery_type_id, name) FROM stdin;
  805. 1 Envío certificado
  806. 2 Recogida en Camión
  807. 3 Entregado a ACO
  808. \.
  809. --
  810. -- Data for Name: incidents_id; Type: TABLE DATA; Schema: public; Owner: vespot
  811. --
  812. COPY public.incidents_id (incident_id, name, detail, quantity, turn_incidents_id) FROM stdin;
  813. \.
  814. --
  815. -- Data for Name: input_types; Type: TABLE DATA; Schema: public; Owner: vespot
  816. --
  817. COPY public.input_types (input_type_id, name, reference, standar_code) FROM stdin;
  818. 2 Pelet Amarillo 123456 m
  819. 3 P-313 TAB-25 pl
  820. 4 P-313 R-25 pl
  821. 5 P-313 RSD-25 pl
  822. 6 P-313 N-25 pl
  823. 7 P-313 CRSTL-25 pl
  824. 8 PVC CRISTAL FUSCIA CLARO D81 pl
  825. 9 CMC PELETIZADO TBC pl
  826. 10 GRUPO PVC PELETIZADO TBC pl
  827. 12 GRUPO PVC PELETIZADO RSD pl
  828. 13 GRUPO PVC ROJO PELETIZADO pl
  829. 14 GRUPO PVC CRSTL PELETIZADO pl
  830. 11 GRUPO PVC PELETIZADO NGR pl
  831. 16 CMC PELETIZADO NGR pl
  832. 17 CMC PELETIZADO RSD pl
  833. 15 CMC PELETIZADO ROJO pl
  834. 20 PELICULA EXTENSIBLE TBC 12" CALIBRE DELGADO 0 m
  835. 21 PELICULA EXTENSIBLE NGR 12" CALIBRE DELGADO 0 m
  836. 26 PELICULA EXTENSIBLE RSD 12" CALIBRE NORMAL 0 kg
  837. 27 PELÍCULA EXTENSIBLE NEGRA CALIBRE NORMAL PENGR12"CN kg
  838. 28 SUPER NOVA E P -31TBC 25 kg
  839. 30 PELETIZADO CRISTAL CRSTL PELETIZADO kg
  840. 31 P-330 BIO-25 kg
  841. 32 PVC NEGRO CRISTAL STRECH D85 kg
  842. 33 BOLSA PLASTICA 3KGX100UNDS BLANCA pkg
  843. 34 BOLSA PLASTICA 5KGX100UNDS BLANCA pkg
  844. 35 BOLSA PLASTICA 10KGX100UNDS BLANCA pkg
  845. 36 BOLSA ALUMINIZADA HAMB 6X6X100UND pkg
  846. 37 MOLDE DE HELADO PQX25UNDS pkg
  847. 38 BOL SA ALUMINIZADA 6X9X100UNDS pkg
  848. 39 BOLSA ALUMINIZADA 7X8X100UNDS pkg
  849. 40 PALOS PINCHO MADERA ARO 30CMX100UND pkg
  850. 41 BOLSA ALUMINIZADA 8X10X100UND pkg
  851. 42 PALOS MADERA PINCHUZO ARO 30CMX100UND pkg
  852. 18 CMC PELETIZADO CRSTL kg
  853. 43 PELICULA AMARILLA QUIMIPLAST TBC kg
  854. 44 PELICULA ROSADA QUIMIPLAST RSD kg
  855. 45 PELICULA NEGRA QUIMIPLAST NGR kg
  856. \.
  857. --
  858. -- Data for Name: inputs; Type: TABLE DATA; Schema: public; Owner: vespot
  859. --
  860. COPY public.inputs (input_id, barcode, lot, name, supplier_id, input_type_id, reception_date, quantity, standar_code, disponible) FROM stdin;
  861. \.
  862. --
  863. -- Data for Name: invoices; Type: TABLE DATA; Schema: public; Owner: vespot
  864. --
  865. COPY public.invoices (invoice_id, client_id, invoice_date) FROM stdin;
  866. \.
  867. --
  868. -- Data for Name: invoices_products; Type: TABLE DATA; Schema: public; Owner: vespot
  869. --
  870. COPY public.invoices_products (invoice_id, product_id, quantity, remission_id) FROM stdin;
  871. \.
  872. --
  873. -- Data for Name: lines; Type: TABLE DATA; Schema: public; Owner: vespot
  874. --
  875. COPY public.lines (line_id, name) FROM stdin;
  876. \.
  877. --
  878. -- Data for Name: lines_machines; Type: TABLE DATA; Schema: public; Owner: vespot
  879. --
  880. COPY public.lines_machines (line_id, machine_id) FROM stdin;
  881. \.
  882. --
  883. -- Data for Name: machines; Type: TABLE DATA; Schema: public; Owner: vespot
  884. --
  885. COPY public.machines (machine_id, name, serial) FROM stdin;
  886. \.
  887. --
  888. -- Data for Name: operators; Type: TABLE DATA; Schema: public; Owner: vespot
  889. --
  890. COPY public.operators (operator_id, is_leader, name, document_number, rh, operator_type_id) FROM stdin;
  891. \.
  892. --
  893. -- Data for Name: preproducts; Type: TABLE DATA; Schema: public; Owner: vespot
  894. --
  895. COPY public.preproducts (preproduct_id, measure, standar_code, lot, material, weight, caliber, fabrication_date, turn_id, quantity, waste, residue, details) FROM stdin;
  896. \.
  897. --
  898. -- Data for Name: products; Type: TABLE DATA; Schema: public; Owner: vespot
  899. --
  900. COPY public.products (product_id, fabrication_date, name, barcode, category_id, product_status_id, turn_id, sale_order_id, weight, waste, supplier_id, quantity, available) FROM stdin;
  901. 2 2025-08-15 00:00:00 Pasamanos Madera \N 1 1 \N \N 0 0 \N 4 4
  902. 6 2025-08-15 00:00:00 Plataforma normal 400cm \N 1 1 \N \N 0 0 \N 2 2
  903. 7 2025-08-15 00:00:00 Marco Andamio 1.30 \N 1 1 \N \N 0 0 \N 34 34
  904. 11 2025-08-15 00:00:00 Ruedas de Andamio Nor t.grande \N 1 1 \N \N 0 0 \N 40 40
  905. 12 2025-08-15 00:00:00 Ruedas de Andamio t.pequeño \N 1 1 \N \N 0 0 \N 8 8
  906. 13 2025-08-15 00:00:00 Alineador 240 cm \N 1 1 \N \N 0 0 \N 2 2
  907. 14 2025-08-15 00:00:00 Alineador 400 X 400 \N 1 1 \N \N 0 0 \N 2 2
  908. 15 2025-08-15 00:00:00 Angulo 120 cm \N 1 1 \N \N 0 0 \N 20 20
  909. 16 2025-08-15 00:00:00 Angulo 240cm \N 1 1 \N \N 0 0 \N 211 211
  910. 17 2025-08-15 00:00:00 Angulo 60 cm. \N 1 1 \N \N 0 0 \N 97 97
  911. 18 2025-08-15 00:00:00 Collarines \N 1 1 \N \N 0 0 \N 41 41
  912. 19 2025-08-15 00:00:00 Distanciador HR 12cm \N 1 1 \N \N 0 0 \N 50 50
  913. 20 2025-08-15 00:00:00 Distanciador HR 15cm \N 1 1 \N \N 0 0 \N 131 131
  914. 21 2025-08-15 00:00:00 Distanciador HR 16cm \N 1 1 \N \N 0 0 \N 40 40
  915. 22 2025-08-15 00:00:00 Distanciador HR 18cm \N 1 1 \N \N 0 0 \N 4 4
  916. 23 2025-08-15 00:00:00 Distanciador HR 20cm \N 1 1 \N \N 0 0 \N 134 134
  917. 24 2025-08-15 00:00:00 Distanciador HR 25cm \N 1 1 \N \N 0 0 \N 67 67
  918. 25 2025-08-15 00:00:00 Distanciador HR 30cm \N 1 1 \N \N 0 0 \N 112 112
  919. 26 2025-08-15 00:00:00 Distanciador HR 32cm \N 1 1 \N \N 0 0 \N 12 12
  920. 27 2025-08-15 00:00:00 Distanciador HR 35cm \N 1 1 \N \N 0 0 \N 56 56
  921. 28 2025-08-15 00:00:00 Distanciador HR 40cm \N 1 1 \N \N 0 0 \N 42 42
  922. 29 2025-08-15 00:00:00 Distanciador HR 45cm \N 1 1 \N \N 0 0 \N 17 17
  923. 30 2025-08-15 00:00:00 Distanciador HR 50cm \N 1 1 \N \N 0 0 \N 9 9
  924. 32 2025-08-15 00:00:00 Pin Sencillo \N 1 1 \N \N 0 0 \N 113 113
  925. 33 2025-08-15 00:00:00 Rinconera 15 X 10 X 120cm. \N 1 1 \N \N 0 0 \N 16 16
  926. 34 2025-08-15 00:00:00 Rinconera 15 X 10 X 60cm. \N 1 1 \N \N 0 0 \N 4 4
  927. 35 2025-08-15 00:00:00 Tablero 15 X 120 cm. \N 1 1 \N \N 0 0 \N 24 24
  928. 36 2025-08-15 00:00:00 Tablero 25 X 35 cm. \N 1 1 \N \N 0 0 \N 25 25
  929. 37 2025-08-15 00:00:00 Tablero 30 X40 cm. \N 1 1 \N \N 0 0 \N 3 3
  930. 38 2025-08-15 00:00:00 Tablero 35 X 40 cm. \N 1 1 \N \N 0 0 \N 2 2
  931. 39 2025-08-15 00:00:00 Tablero 50 X 40 cm. \N 1 1 \N \N 0 0 \N 10 10
  932. 40 2025-08-15 00:00:00 Tablero 20 X 120 cm. \N 1 1 \N \N 0 0 \N 45 45
  933. 41 2025-08-15 00:00:00 Tablero 20 X 30 cm. \N 1 1 \N \N 0 0 \N 1 1
  934. 42 2025-08-15 00:00:00 Tablero 25 X 120 cm. \N 1 1 \N \N 0 0 \N 75 75
  935. 43 2025-08-15 00:00:00 Tablero 30 X 120 cm. \N 1 1 \N \N 0 0 \N 135 135
  936. 44 2025-08-15 00:00:00 Tablero 35 X 120 cm. \N 1 1 \N \N 0 0 \N 92 92
  937. 45 2025-08-15 00:00:00 Tablero 40 X 120 cm. \N 1 1 \N \N 0 0 \N 76 76
  938. 46 2025-08-15 00:00:00 Tablero 40 X 60 cm. \N 1 1 \N \N 0 0 \N 18 18
  939. 47 2025-08-15 00:00:00 Tablero 45 X 120 cm. \N 1 1 \N \N 0 0 \N 29 29
  940. 48 2025-08-15 00:00:00 Tablero 50 X 120 cm. \N 1 1 \N \N 0 0 \N 82 82
  941. 49 2025-08-15 00:00:00 Tablero 50 X 60 cm. \N 1 1 \N \N 0 0 \N 9 9
  942. 50 2025-08-15 00:00:00 Tablero 55 X 120 cm. \N 1 1 \N \N 0 0 \N 20 20
  943. 51 2025-08-15 00:00:00 Tablero 55 X 60 cm. \N 1 1 \N \N 0 0 \N 23 23
  944. 52 2025-08-15 00:00:00 Tablero 60 X 120 cm. \N 1 1 \N \N 0 0 \N 44 44
  945. 53 2025-08-15 00:00:00 Tablero 60 X 20 cm. \N 1 1 \N \N 0 0 \N 10 10
  946. 54 2025-08-15 00:00:00 Tablero 60 X 25 cm. \N 1 1 \N \N 0 0 \N 30 30
  947. 55 2025-08-15 00:00:00 Tablero 60 X 30 cm. \N 1 1 \N \N 0 0 \N 21 21
  948. 56 2025-08-15 00:00:00 Tablero 60 X 35 cm. \N 1 1 \N \N 0 0 \N 12 12
  949. 117 2025-08-15 00:00:00 Verticales 200 cm \N 1 1 \N \N 0 0 \N 99 99
  950. 1 2025-08-15 00:00:00 Ganchos Andamio \N 1 1 \N \N 0 0 \N 25 25
  951. 8 2025-08-15 00:00:00 Marco Andamio 1.50 \N 1 1 \N \N 0 0 \N 251 251
  952. 9 2025-08-15 00:00:00 Marco Andamio 80 \N 1 1 \N \N 0 0 \N 145 145
  953. 31 2025-08-15 00:00:00 Grapa \N 1 1 \N \N 0 0 \N 5730 5730
  954. 3 2025-08-15 00:00:00 Pasamanos Metalico \N 1 1 \N \N 0 0 \N 30 30
  955. 4 2025-08-15 00:00:00 Perros \N 1 1 \N \N 0 0 \N 200 200
  956. 5 2025-08-15 00:00:00 Plataforma Normal 300 cm \N 1 1 \N \N 0 0 \N 41 41
  957. 99 2025-08-15 00:00:00 Paral Metalico Corto 160cm \N 1 1 \N \N 0 0 \N 949 949
  958. 100 2025-08-15 00:00:00 Paral metalico enano 110 cm \N 1 1 \N \N 0 0 \N 228 228
  959. 101 2025-08-15 00:00:00 Paral metalico extralargo 300cm \N 1 1 \N \N 0 0 \N 197 197
  960. 102 2025-08-15 00:00:00 Paral Metalico Largo 210cm \N 1 1 \N \N 0 0 \N 830 830
  961. 103 2025-08-15 00:00:00 Diagonales 240 cm \N 1 1 \N \N 0 0 \N 48 48
  962. 104 2025-08-15 00:00:00 Diagonales 280 cm \N 1 1 \N \N 0 0 \N 48 48
  963. 105 2025-08-15 00:00:00 Escalera gato \N 1 1 \N \N 0 0 \N 20 20
  964. 106 2025-08-15 00:00:00 horizontales 140 cm \N 1 1 \N \N 0 0 \N 82 82
  965. 107 2025-08-15 00:00:00 horizontales 152 cm \N 1 1 \N \N 0 0 \N 10 10
  966. 108 2025-08-15 00:00:00 Horizontales 207 cm \N 1 1 \N \N 0 0 \N 97 97
  967. 109 2025-08-15 00:00:00 Horizontales 60 cm \N 1 1 \N \N 0 0 \N 12 12
  968. 110 2025-08-15 00:00:00 Niveladores unidireccionales \N 1 1 \N \N 0 0 \N 41 41
  969. 111 2025-08-15 00:00:00 Plataforma Certificada 140cm \N 1 1 \N \N 0 0 \N 38 38
  970. 112 2025-08-15 00:00:00 Plataforma certificada 216cm \N 1 1 \N \N 0 0 \N 9 9
  971. 113 2025-08-15 00:00:00 Plataforma certificada 300cm \N 1 1 \N \N 0 0 \N 8 8
  972. 114 2025-08-15 00:00:00 Ruedas Andamio Unidireccional \N 1 1 \N \N 0 0 \N 28 28
  973. 10 2025-08-15 00:00:00 Niveladores normales \N 1 1 \N \N 0 0 \N 16 16
  974. 57 2025-08-15 00:00:00 Tensor \N 1 1 \N \N 0 0 \N 95 95
  975. 58 2025-08-15 00:00:00 Lamina 30 X 240 cm \N 1 1 \N \N 0 0 \N 4 4
  976. 59 2025-08-15 00:00:00 Camilla 120 X 60 cm \N 1 1 \N \N 0 0 \N 50 50
  977. 60 2025-08-15 00:00:00 Camilla 50 X 140cm \N 1 1 \N \N 0 0 \N 141 141
  978. 61 2025-08-15 00:00:00 Camilla 70 X 100cm \N 1 1 \N \N 0 0 \N 127 127
  979. 62 2025-08-15 00:00:00 Camilla 70 X 110cm \N 1 1 \N \N 0 0 \N 98 98
  980. 63 2025-08-15 00:00:00 Camilla 70 X 120cm \N 1 1 \N \N 0 0 \N 96 96
  981. 64 2025-08-15 00:00:00 Camilla 70 X 140 cm \N 1 1 \N \N 0 0 \N 1761 1761
  982. 65 2025-08-15 00:00:00 Camilla 30 X 120 cm \N 1 1 \N \N 0 0 \N 20 20
  983. 66 2025-08-15 00:00:00 Camilla 40 X 100 cm \N 1 1 \N \N 0 0 \N 50 50
  984. 67 2025-08-15 00:00:00 Camilla 40 X 130 cm \N 1 1 \N \N 0 0 \N 20 20
  985. 68 2025-08-15 00:00:00 Camilla 40 X 140 cm \N 1 1 \N \N 0 0 \N 365 365
  986. 69 2025-08-15 00:00:00 Camilla 50 X 100 cm \N 1 1 \N \N 0 0 \N 70 70
  987. 70 2025-08-15 00:00:00 camilla 50 X 120 cm \N 1 1 \N \N 0 0 \N 120 120
  988. 71 2025-08-15 00:00:00 Camilla 60 X 140 cm \N 1 1 \N \N 0 0 \N 25 25
  989. 72 2025-08-15 00:00:00 Camilla 70 X 90 cm \N 1 1 \N \N 0 0 \N 88 88
  990. 73 2025-08-15 00:00:00 Camillas 70 X 130 cm \N 1 1 \N \N 0 0 \N 61 61
  991. 74 2025-08-15 00:00:00 Planchones 300 a 350 \N 1 1 \N \N 0 0 \N 220 220
  992. 75 2025-08-15 00:00:00 Planchones 400 a 600 \N 1 1 \N \N 0 0 \N 20 20
  993. 76 2025-08-15 00:00:00 Planchones 200cm \N 1 1 \N \N 0 0 \N 20 20
  994. 77 2025-08-15 00:00:00 Planchones 250 a 280 \N 1 1 \N \N 0 0 \N 68 68
  995. 78 2025-08-15 00:00:00 balde pluma \N 1 1 \N \N 0 0 \N 8 8
  996. 79 2025-08-15 00:00:00 Bomba Sumergible \N 1 1 \N \N 0 0 \N 3 3
  997. 80 2025-08-15 00:00:00 Canastilla \N 1 1 \N \N 0 0 \N 1 1
  998. 81 2025-08-15 00:00:00 Canguro \N 1 1 \N \N 0 0 \N 4 4
  999. 82 2025-08-15 00:00:00 Cortadora de Ladrillo \N 1 1 \N \N 0 0 \N 3 3
  1000. 83 2025-08-15 00:00:00 Cortadora de Piso \N 1 1 \N \N 0 0 \N 1 1
  1001. 84 2025-08-15 00:00:00 Demoledor \N 1 1 \N \N 0 0 \N 9 9
  1002. 85 2025-08-15 00:00:00 EXTENCION \N 1 1 \N \N 0 0 \N 4 4
  1003. 86 2025-08-15 00:00:00 Mezcladora Grande \N 1 1 \N \N 0 0 \N 6 6
  1004. 87 2025-08-15 00:00:00 Mezcladora Pequeña \N 1 1 \N \N 0 0 \N 1 1
  1005. 88 2025-08-15 00:00:00 Pluma \N 1 1 \N \N 0 0 \N 5 5
  1006. 89 2025-08-15 00:00:00 Rana Vibradora \N 1 1 \N \N 0 0 \N 4 4
  1007. 90 2025-08-15 00:00:00 Vibrador \N 1 1 \N \N 0 0 \N 5 5
  1008. 91 2025-08-15 00:00:00 Cercha 200 cm \N 1 1 \N \N 0 0 \N 20 20
  1009. 92 2025-08-15 00:00:00 Cercha 300 cm \N 1 1 \N \N 0 0 \N 979 979
  1010. 93 2025-08-15 00:00:00 Cercha 150cm \N 1 1 \N \N 0 0 \N 9 9
  1011. 94 2025-08-15 00:00:00 Cercha 250 cm \N 1 1 \N \N 0 0 \N 7 7
  1012. 95 2025-08-15 00:00:00 Cruceta 250cm \N 1 1 \N \N 0 0 \N 303 303
  1013. 96 2025-08-15 00:00:00 Cruceta 195cm \N 1 1 \N \N 0 0 \N 453 453
  1014. 97 2025-08-15 00:00:00 Cruceta 200 cm \N 1 1 \N \N 0 0 \N 50 50
  1015. 98 2025-08-15 00:00:00 Cruceta 330 cm \N 1 1 \N \N 0 0 \N 526 526
  1016. 115 2025-08-15 00:00:00 Verticales 100 cm \N 1 1 \N \N 0 0 \N 12 12
  1017. 116 2025-08-15 00:00:00 Verticales 150 cm \N 1 1 \N \N 0 0 \N 4 4
  1018. \.
  1019. --
  1020. -- Data for Name: products_inputs; Type: TABLE DATA; Schema: public; Owner: vespot
  1021. --
  1022. COPY public.products_inputs (product_id, input_id) FROM stdin;
  1023. \.
  1024. --
  1025. -- Data for Name: products_status; Type: TABLE DATA; Schema: public; Owner: vespot
  1026. --
  1027. COPY public.products_status (product_status_id, name, description) FROM stdin;
  1028. 1 Disponible Producto activo y disponible para pedidos
  1029. 2 Ocupado Producto inactivo y no disponible para pedidos
  1030. \.
  1031. --
  1032. -- Data for Name: products_technical_data; Type: TABLE DATA; Schema: public; Owner: vespot
  1033. --
  1034. COPY public.products_technical_data (product_id, reference, article, product_group, presentation, cai, height, width, square_meters, diameter, length, angle, sale_value, rental_value) FROM stdin;
  1035. 1 ANDAMIO COLGANTE 0 0 0 0 0 0 0 0
  1036. 2 ANDAMIO COLGANTE 0 0 0 0 0 0 0 0
  1037. 4 ANDAMIO COLGANTE 0 0 0 0 0 0 0 0
  1038. 113 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1039. 6 ANDAMIO COLGANTE 0 0 0 0 0 0 0 0
  1040. 7 ANDAMIO TUBULAR 0 0 0 0 0 0 0 0
  1041. 115 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1042. 9 ANDAMIO TUBULAR 0 0 0 0 0 0 0 0
  1043. 10 ANDAMIO TUBULAR 0 0 0 0 0 0 0 0
  1044. 11 ANDAMIO TUBULAR 0 0 0 0 0 0 0 0
  1045. 71 MADERA 0 0 0 0 0 0 0 0
  1046. 12 ANDAMIO TUBULAR 0 0 0 0 0 0 0 0
  1047. 14 ENCOFRADO 0 0 0 0 0 0 0 0
  1048. 15 ENCOFRADO 0 0 0 0 0 0 0 0
  1049. 16 ENCOFRADO 0 0 0 0 0 0 0 0
  1050. 17 ENCOFRADO 0 0 0 0 0 0 0 0
  1051. 72 MADERA 0 0 0 0 0 0 0 0
  1052. 73 MADERA 0 0 0 0 0 0 0 0
  1053. 74 MADERA 0 0 0 0 0 0 0 0
  1054. 75 MADERA 0 0 0 0 0 0 0 0
  1055. 76 MADERA 0 0 0 0 0 0 0 0
  1056. 77 MADERA 0 0 0 0 0 0 0 0
  1057. 78 MAQUINARIA 0 0 0 0 0 0 0 0
  1058. 79 MAQUINARIA 0 0 0 0 0 0 0 0
  1059. 80 MAQUINARIA 0 0 0 0 0 0 0 0
  1060. 81 MAQUINARIA 0 0 0 0 0 0 0 0
  1061. 82 MAQUINARIA 0 0 0 0 0 0 0 0
  1062. 83 MAQUINARIA 0 0 0 0 0 0 0 0
  1063. 84 MAQUINARIA 0 0 0 0 0 0 0 0
  1064. 18 ENCOFRADO 0 0 0 0 0 0 0 0
  1065. 19 ENCOFRADO 0 0 0 0 0 0 0 0
  1066. 20 ENCOFRADO 0 0 0 0 0 0 0 0
  1067. 21 ENCOFRADO 0 0 0 0 0 0 0 0
  1068. 22 ENCOFRADO 0 0 0 0 0 0 0 0
  1069. 23 ENCOFRADO 0 0 0 0 0 0 0 0
  1070. 24 ENCOFRADO 0 0 0 0 0 0 0 0
  1071. 25 ENCOFRADO 0 0 0 0 0 0 0 0
  1072. 26 ENCOFRADO 0 0 0 0 0 0 0 0
  1073. 27 ENCOFRADO 0 0 0 0 0 0 0 0
  1074. 28 ENCOFRADO 0 0 0 0 0 0 0 0
  1075. 29 ENCOFRADO 0 0 0 0 0 0 0 0
  1076. 30 ENCOFRADO 0 0 0 0 0 0 0 0
  1077. 31 ENCOFRADO 0 0 0 0 0 0 0 0
  1078. 32 ENCOFRADO 0 0 0 0 0 0 0 0
  1079. 33 ENCOFRADO 0 0 0 0 0 0 0 0
  1080. 34 ENCOFRADO 0 0 0 0 0 0 0 0
  1081. 35 ENCOFRADO 0 0 0 0 0 0 0 0
  1082. 36 ENCOFRADO 0 0 0 0 0 0 0 0
  1083. 37 ENCOFRADO 0 0 0 0 0 0 0 0
  1084. 38 ENCOFRADO 0 0 0 0 0 0 0 0
  1085. 39 ENCOFRADO 0 0 0 0 0 0 0 0
  1086. 40 ENCOFRADO 0 0 0 0 0 0 0 0
  1087. 41 ENCOFRADO 0 0 0 0 0 0 0 0
  1088. 42 ENCOFRADO 0 0 0 0 0 0 0 0
  1089. 43 ENCOFRADO 0 0 0 0 0 0 0 0
  1090. 44 ENCOFRADO 0 0 0 0 0 0 0 0
  1091. 45 ENCOFRADO 0 0 0 0 0 0 0 0
  1092. 46 ENCOFRADO 0 0 0 0 0 0 0 0
  1093. 47 ENCOFRADO 0 0 0 0 0 0 0 0
  1094. 48 ENCOFRADO 0 0 0 0 0 0 0 0
  1095. 49 ENCOFRADO 0 0 0 0 0 0 0 0
  1096. 50 ENCOFRADO 0 0 0 0 0 0 0 0
  1097. 51 ENCOFRADO 0 0 0 0 0 0 0 0
  1098. 52 ENCOFRADO 0 0 0 0 0 0 0 0
  1099. 53 ENCOFRADO 0 0 0 0 0 0 0 0
  1100. 54 ENCOFRADO 0 0 0 0 0 0 0 0
  1101. 55 ENCOFRADO 0 0 0 0 0 0 0 0
  1102. 56 ENCOFRADO 0 0 0 0 0 0 0 0
  1103. 85 MAQUINARIA 0 0 0 0 0 0 0 0
  1104. 86 MAQUINARIA 0 0 0 0 0 0 0 0
  1105. 87 MAQUINARIA 0 0 0 0 0 0 0 0
  1106. 88 MAQUINARIA 0 0 0 0 0 0 0 0
  1107. 89 MAQUINARIA 0 0 0 0 0 0 0 0
  1108. 90 MAQUINARIA 0 0 0 0 0 0 0 0
  1109. 91 METALICO 0 0 0 0 0 0 0 0
  1110. 92 METALICO 0 0 0 0 0 0 0 0
  1111. 93 METALICO 0 0 0 0 0 0 0 0
  1112. 94 METALICO 0 0 0 0 0 0 0 0
  1113. 95 METALICO 0 0 0 0 0 0 0 0
  1114. 96 METALICO 0 0 0 0 0 0 0 0
  1115. 97 METALICO 0 0 0 0 0 0 0 0
  1116. 98 METALICO 0 0 0 0 0 0 0 0
  1117. 99 METALICO 0 0 0 0 0 0 0 0
  1118. 100 METALICO 0 0 0 0 0 0 0 0
  1119. 101 METALICO 0 0 0 0 0 0 0 0
  1120. 102 METALICO 0 0 0 0 0 0 0 0
  1121. 103 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1122. 104 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1123. 105 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1124. 106 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1125. 107 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1126. 108 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1127. 109 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1128. 57 ENCOFRADO 0 0 0 0 0 0 0 0
  1129. 58 ENCOFRADO 0 0 0 0 0 0 0 0
  1130. 59 MADERA 0 0 0 0 0 0 0 0
  1131. 60 MADERA 0 0 0 0 0 0 0 0
  1132. 61 MADERA 0 0 0 0 0 0 0 0
  1133. 63 MADERA 0 0 0 0 0 0 0 0
  1134. 64 MADERA 0 0 0 0 0 0 0 0
  1135. 65 MADERA 0 0 0 0 0 0 0 0
  1136. 66 MADERA 0 0 0 0 0 0 0 0
  1137. 67 MADERA 0 0 0 0 0 0 0 0
  1138. 68 MADERA 0 0 0 0 0 0 0 0
  1139. 69 MADERA 0 0 0 0 0 0 0 0
  1140. 70 MADERA 0 0 0 0 0 0 0 0
  1141. 110 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1142. 111 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1143. 3 ANDAMIO COLGANTE 0 0 0 0 0 0 0 0
  1144. 112 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1145. 114 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1146. 5 ANDAMIO COLGANTE 0 0 0 0 0 0 0 0
  1147. 116 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1148. 117 UNIDIRECCIONAL 0 0 0 0 0 0 0 0
  1149. 8 ANDAMIO TUBULAR 0 0 0 0 0 0 0 0
  1150. 13 ENCOFRADO 0 0 0 0 0 0 0 0
  1151. 62 MADERA 0 0 0 0 0 0 0 0
  1152. \.
  1153. --
  1154. -- Data for Name: remissions; Type: TABLE DATA; Schema: public; Owner: vespot
  1155. --
  1156. COPY public.remissions (remission_id, client_id, address_id, request_date, deliver_date, name, is_delivery) FROM stdin;
  1157. 26 4 5 2025-08-11 00:00:00 2025-08-11 00:00:00 t
  1158. 25 3 3 2025-08-11 00:00:00 2025-08-11 00:00:00 t
  1159. 27 6 7 2025-08-11 00:00:00 2025-08-11 00:00:00 t
  1160. 28 4 4 2025-08-11 00:00:00 2025-08-11 00:00:00 t
  1161. \.
  1162. --
  1163. -- Data for Name: remissions_products; Type: TABLE DATA; Schema: public; Owner: vespot
  1164. --
  1165. COPY public.remissions_products (remission_id, product_id, quantity, full_delivered, quantity_for_return) FROM stdin;
  1166. 25 5 20 f 20
  1167. 25 12 30 f 30
  1168. 26 5 20 f 20
  1169. 26 12 30 f 30
  1170. 27 5 20 f 20
  1171. 27 12 30 f 30
  1172. 28 5 20 f 20
  1173. 28 12 30 f 30
  1174. \.
  1175. --
  1176. -- Data for Name: returns; Type: TABLE DATA; Schema: public; Owner: vespot
  1177. --
  1178. COPY public.returns (return_id, client_id, return_date) FROM stdin;
  1179. \.
  1180. --
  1181. -- Data for Name: returns_products; Type: TABLE DATA; Schema: public; Owner: vespot
  1182. --
  1183. COPY public.returns_products (return_id, product_id, quantity, remission_id) FROM stdin;
  1184. \.
  1185. --
  1186. -- Data for Name: sale_order_status; Type: TABLE DATA; Schema: public; Owner: vespot
  1187. --
  1188. COPY public.sale_order_status (sale_order_status_id, name, description) FROM stdin;
  1189. 1 Creada Orden de Venta creada
  1190. 2 Adjunta Orden de Venta con los productos ya asignados
  1191. 3 Despachada Orden de Venta despachada al cliente
  1192. \.
  1193. --
  1194. -- Data for Name: sale_orders; Type: TABLE DATA; Schema: public; Owner: vespot
  1195. --
  1196. COPY public.sale_orders (sale_order_id, internal_code, order_date, client_id, description, delivery_type_id, sale_order_status_id) FROM stdin;
  1197. \.
  1198. --
  1199. -- Data for Name: sale_orders_categories; Type: TABLE DATA; Schema: public; Owner: vespot
  1200. --
  1201. COPY public.sale_orders_categories (sale_order_id, category_id, quantity) FROM stdin;
  1202. \.
  1203. --
  1204. -- Data for Name: suppliers; Type: TABLE DATA; Schema: public; Owner: vespot
  1205. --
  1206. COPY public.suppliers (supplier_id, name, address, phonenumber1, phonenumber2, contact_name) FROM stdin;
  1207. 24 test proveedor 1 carrera 34 # 12 1231231234 3453453457 proveedor 1
  1208. 25 test proveedor 2 carrera 12 # 12 1122334455 2211334455 proveedor 2
  1209. 26 test proveedor 3 calle 23 # 34 diag 12 123 123 proveedor 3
  1210. 27 Bodega Bodega Bodega Bodega Bodega
  1211. \.
  1212. --
  1213. -- Data for Name: suppliers_input_types; Type: TABLE DATA; Schema: public; Owner: vespot
  1214. --
  1215. COPY public.suppliers_input_types (supplier_id, input_type_id) FROM stdin;
  1216. \.
  1217. --
  1218. -- Data for Name: turn_incidents; Type: TABLE DATA; Schema: public; Owner: vespot
  1219. --
  1220. COPY public.turn_incidents (turn_incident_id, turn_id, description, title) FROM stdin;
  1221. \.
  1222. --
  1223. -- Data for Name: turn_types; Type: TABLE DATA; Schema: public; Owner: vespot
  1224. --
  1225. COPY public.turn_types (turn_type_id, initial_hour, final_hour, description) FROM stdin;
  1226. 1 06:00:00 14:00:00 Mañana (6am a 2pm)
  1227. 3 22:00:00 06:00:00 Noche (10pm a 6am)
  1228. 2 14:00:00 22:00:00 Tarde (2pm a 10pm)
  1229. 4 06:00:00 18:00:00 Dia (6am a 6pm)
  1230. 5 18:00:00 06:00:00 Noche (6pm a 6am)
  1231. \.
  1232. --
  1233. -- Data for Name: turns; Type: TABLE DATA; Schema: public; Owner: vespot
  1234. --
  1235. COPY public.turns (turn_id, line_id, start_time, end_time, turn_type_id, waste, residue, waste_desc, peletizado, original) FROM stdin;
  1236. \.
  1237. --
  1238. -- Data for Name: turns_operators; Type: TABLE DATA; Schema: public; Owner: vespot
  1239. --
  1240. COPY public.turns_operators (turn_id, operator_id) FROM stdin;
  1241. \.
  1242. --
  1243. -- Data for Name: units_measure; Type: TABLE DATA; Schema: public; Owner: vespot
  1244. --
  1245. COPY public.units_measure (name, standar_code) FROM stdin;
  1246. Metro m
  1247. Pulgadas pl
  1248. Kilogramos kg
  1249. Paquete pkg
  1250. \.
  1251. --
  1252. -- Name: address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1253. --
  1254. SELECT pg_catalog.setval('public.address_id_seq', 1, false);
  1255. --
  1256. -- Name: addresses_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1257. --
  1258. SELECT pg_catalog.setval('public.addresses_address_id_seq', 7, true);
  1259. --
  1260. -- Name: categories_category_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1261. --
  1262. SELECT pg_catalog.setval('public.categories_category_id_seq', 3, true);
  1263. --
  1264. -- Name: clients_client_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1265. --
  1266. SELECT pg_catalog.setval('public.clients_client_id_seq', 6, true);
  1267. --
  1268. -- Name: incidents_id_incident_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1269. --
  1270. SELECT pg_catalog.setval('public.incidents_id_incident_id_seq', 27, true);
  1271. --
  1272. -- Name: input_types_input_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1273. --
  1274. SELECT pg_catalog.setval('public.input_types_input_type_id_seq', 45, true);
  1275. --
  1276. -- Name: inputs_input_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1277. --
  1278. SELECT pg_catalog.setval('public.inputs_input_id_seq', 746, true);
  1279. --
  1280. -- Name: invoices_invoice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1281. --
  1282. SELECT pg_catalog.setval('public.invoices_invoice_id_seq', 1, false);
  1283. --
  1284. -- Name: lines_line_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1285. --
  1286. SELECT pg_catalog.setval('public.lines_line_id_seq', 79, true);
  1287. --
  1288. -- Name: machines_machine_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1289. --
  1290. SELECT pg_catalog.setval('public.machines_machine_id_seq', 11, true);
  1291. --
  1292. -- Name: operators_operator_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1293. --
  1294. SELECT pg_catalog.setval('public.operators_operator_id_seq', 18, true);
  1295. --
  1296. -- Name: preproducts_preproduct_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1297. --
  1298. SELECT pg_catalog.setval('public.preproducts_preproduct_id_seq', 25020, true);
  1299. --
  1300. -- Name: products_product_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1301. --
  1302. SELECT pg_catalog.setval('public.products_product_id_seq', 117, true);
  1303. --
  1304. -- Name: remission_remission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1305. --
  1306. SELECT pg_catalog.setval('public.remission_remission_id_seq', 28, true);
  1307. --
  1308. -- Name: remissions_remission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1309. --
  1310. SELECT pg_catalog.setval('public.remissions_remission_id_seq', 1, false);
  1311. --
  1312. -- Name: returns_return_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1313. --
  1314. SELECT pg_catalog.setval('public.returns_return_id_seq', 21, true);
  1315. --
  1316. -- Name: sale_orders_sale_order_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1317. --
  1318. SELECT pg_catalog.setval('public.sale_orders_sale_order_id_seq', 1, false);
  1319. --
  1320. -- Name: supplier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1321. --
  1322. SELECT pg_catalog.setval('public.supplier_id_seq', 1, false);
  1323. --
  1324. -- Name: suppliers_supplier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1325. --
  1326. SELECT pg_catalog.setval('public.suppliers_supplier_id_seq', 27, true);
  1327. --
  1328. -- Name: turn_incidents_turn_incident_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1329. --
  1330. SELECT pg_catalog.setval('public.turn_incidents_turn_incident_id_seq', 261, true);
  1331. --
  1332. -- Name: turns_turn_id_seq; Type: SEQUENCE SET; Schema: public; Owner: vespot
  1333. --
  1334. SELECT pg_catalog.setval('public.turns_turn_id_seq', 1, false);
  1335. --
  1336. -- Name: addresses addresses_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1337. --
  1338. ALTER TABLE ONLY public.addresses
  1339. ADD CONSTRAINT addresses_pk PRIMARY KEY (address_id);
  1340. --
  1341. -- Name: categories categories_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1342. --
  1343. ALTER TABLE ONLY public.categories
  1344. ADD CONSTRAINT categories_pk PRIMARY KEY (category_id);
  1345. --
  1346. -- Name: clients clients_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1347. --
  1348. ALTER TABLE ONLY public.clients
  1349. ADD CONSTRAINT clients_pk PRIMARY KEY (client_id);
  1350. --
  1351. -- Name: countries countries_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1352. --
  1353. ALTER TABLE ONLY public.countries
  1354. ADD CONSTRAINT countries_pk PRIMARY KEY (country_id);
  1355. --
  1356. -- Name: delivery_types delivery_types_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1357. --
  1358. ALTER TABLE ONLY public.delivery_types
  1359. ADD CONSTRAINT delivery_types_pk PRIMARY KEY (delivery_type_id);
  1360. --
  1361. -- Name: incidents_id incidents_id_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1362. --
  1363. ALTER TABLE ONLY public.incidents_id
  1364. ADD CONSTRAINT incidents_id_pk PRIMARY KEY (incident_id);
  1365. --
  1366. -- Name: input_types input_types_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1367. --
  1368. ALTER TABLE ONLY public.input_types
  1369. ADD CONSTRAINT input_types_pk PRIMARY KEY (input_type_id);
  1370. --
  1371. -- Name: inputs inputs_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1372. --
  1373. ALTER TABLE ONLY public.inputs
  1374. ADD CONSTRAINT inputs_pk PRIMARY KEY (input_id);
  1375. --
  1376. -- Name: invoices invoices_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1377. --
  1378. ALTER TABLE ONLY public.invoices
  1379. ADD CONSTRAINT invoices_pk PRIMARY KEY (invoice_id);
  1380. --
  1381. -- Name: invoices_products invoices_products_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1382. --
  1383. ALTER TABLE ONLY public.invoices_products
  1384. ADD CONSTRAINT invoices_products_pk PRIMARY KEY (invoice_id, product_id, remission_id);
  1385. --
  1386. -- Name: lines_machines lines_machines_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1387. --
  1388. ALTER TABLE ONLY public.lines_machines
  1389. ADD CONSTRAINT lines_machines_pk PRIMARY KEY (line_id, machine_id);
  1390. --
  1391. -- Name: lines lines_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1392. --
  1393. ALTER TABLE ONLY public.lines
  1394. ADD CONSTRAINT lines_pk PRIMARY KEY (line_id);
  1395. --
  1396. -- Name: machines machines_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1397. --
  1398. ALTER TABLE ONLY public.machines
  1399. ADD CONSTRAINT machines_pk PRIMARY KEY (machine_id);
  1400. --
  1401. -- Name: operators operators_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1402. --
  1403. ALTER TABLE ONLY public.operators
  1404. ADD CONSTRAINT operators_pk PRIMARY KEY (operator_id);
  1405. --
  1406. -- Name: preproducts preproducts_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1407. --
  1408. ALTER TABLE ONLY public.preproducts
  1409. ADD CONSTRAINT preproducts_pk PRIMARY KEY (preproduct_id);
  1410. --
  1411. -- Name: products_status product_status_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1412. --
  1413. ALTER TABLE ONLY public.products_status
  1414. ADD CONSTRAINT product_status_pk PRIMARY KEY (product_status_id);
  1415. --
  1416. -- Name: products_inputs products_inputs_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1417. --
  1418. ALTER TABLE ONLY public.products_inputs
  1419. ADD CONSTRAINT products_inputs_pk PRIMARY KEY (product_id, input_id);
  1420. --
  1421. -- Name: products products_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1422. --
  1423. ALTER TABLE ONLY public.products
  1424. ADD CONSTRAINT products_pk PRIMARY KEY (product_id);
  1425. --
  1426. -- Name: products_technical_data products_technical_data_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1427. --
  1428. ALTER TABLE ONLY public.products_technical_data
  1429. ADD CONSTRAINT products_technical_data_pk PRIMARY KEY (product_id);
  1430. --
  1431. -- Name: remissions remissions_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1432. --
  1433. ALTER TABLE ONLY public.remissions
  1434. ADD CONSTRAINT remissions_pk PRIMARY KEY (remission_id);
  1435. --
  1436. -- Name: remissions_products remissions_products_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1437. --
  1438. ALTER TABLE ONLY public.remissions_products
  1439. ADD CONSTRAINT remissions_products_pk PRIMARY KEY (remission_id, product_id);
  1440. --
  1441. -- Name: returns returns_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1442. --
  1443. ALTER TABLE ONLY public.returns
  1444. ADD CONSTRAINT returns_pk PRIMARY KEY (return_id);
  1445. --
  1446. -- Name: returns_products returns_products_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1447. --
  1448. ALTER TABLE ONLY public.returns_products
  1449. ADD CONSTRAINT returns_products_pk PRIMARY KEY (return_id, product_id, remission_id);
  1450. --
  1451. -- Name: sale_order_status sale_order_status_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1452. --
  1453. ALTER TABLE ONLY public.sale_order_status
  1454. ADD CONSTRAINT sale_order_status_pk PRIMARY KEY (sale_order_status_id);
  1455. --
  1456. -- Name: sale_orders_categories sale_orders_categories_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1457. --
  1458. ALTER TABLE ONLY public.sale_orders_categories
  1459. ADD CONSTRAINT sale_orders_categories_pk PRIMARY KEY (sale_order_id, category_id);
  1460. --
  1461. -- Name: sale_orders sale_orders_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1462. --
  1463. ALTER TABLE ONLY public.sale_orders
  1464. ADD CONSTRAINT sale_orders_pk PRIMARY KEY (sale_order_id);
  1465. --
  1466. -- Name: suppliers supplier_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1467. --
  1468. ALTER TABLE ONLY public.suppliers
  1469. ADD CONSTRAINT supplier_pk PRIMARY KEY (supplier_id);
  1470. --
  1471. -- Name: turn_incidents turn_incidents_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1472. --
  1473. ALTER TABLE ONLY public.turn_incidents
  1474. ADD CONSTRAINT turn_incidents_pk PRIMARY KEY (turn_incident_id);
  1475. --
  1476. -- Name: turn_types turn_types_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1477. --
  1478. ALTER TABLE ONLY public.turn_types
  1479. ADD CONSTRAINT turn_types_pk PRIMARY KEY (turn_type_id);
  1480. --
  1481. -- Name: turns_operators turns_operators_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1482. --
  1483. ALTER TABLE ONLY public.turns_operators
  1484. ADD CONSTRAINT turns_operators_pk PRIMARY KEY (turn_id, operator_id);
  1485. --
  1486. -- Name: turns turns_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1487. --
  1488. ALTER TABLE ONLY public.turns
  1489. ADD CONSTRAINT turns_pk PRIMARY KEY (turn_id);
  1490. --
  1491. -- Name: units_measure units_measure_pk; Type: CONSTRAINT; Schema: public; Owner: vespot
  1492. --
  1493. ALTER TABLE ONLY public.units_measure
  1494. ADD CONSTRAINT units_measure_pk PRIMARY KEY (standar_code);
  1495. --
  1496. -- Name: addresses addresses_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1497. --
  1498. ALTER TABLE ONLY public.addresses
  1499. ADD CONSTRAINT addresses_fk FOREIGN KEY (country_id) REFERENCES public.countries(country_id);
  1500. --
  1501. -- Name: addresses addresses_fk_1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1502. --
  1503. ALTER TABLE ONLY public.addresses
  1504. ADD CONSTRAINT addresses_fk_1 FOREIGN KEY (client_id) REFERENCES public.clients(client_id);
  1505. --
  1506. -- Name: categories categories_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1507. --
  1508. ALTER TABLE ONLY public.categories
  1509. ADD CONSTRAINT categories_fk FOREIGN KEY (standar_code) REFERENCES public.units_measure(standar_code);
  1510. --
  1511. -- Name: incidents_id incidents_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1512. --
  1513. ALTER TABLE ONLY public.incidents_id
  1514. ADD CONSTRAINT incidents_id_fk FOREIGN KEY (turn_incidents_id) REFERENCES public.turn_incidents(turn_incident_id);
  1515. --
  1516. -- Name: input_types input_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1517. --
  1518. ALTER TABLE ONLY public.input_types
  1519. ADD CONSTRAINT input_types_fk FOREIGN KEY (standar_code) REFERENCES public.units_measure(standar_code);
  1520. --
  1521. -- Name: inputs inputs_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1522. --
  1523. ALTER TABLE ONLY public.inputs
  1524. ADD CONSTRAINT inputs_fk FOREIGN KEY (standar_code) REFERENCES public.units_measure(standar_code);
  1525. --
  1526. -- Name: inputs inputs_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1527. --
  1528. ALTER TABLE ONLY public.inputs
  1529. ADD CONSTRAINT inputs_fk1 FOREIGN KEY (supplier_id) REFERENCES public.suppliers(supplier_id);
  1530. --
  1531. -- Name: inputs inputs_fk2; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1532. --
  1533. ALTER TABLE ONLY public.inputs
  1534. ADD CONSTRAINT inputs_fk2 FOREIGN KEY (input_type_id) REFERENCES public.input_types(input_type_id);
  1535. --
  1536. -- Name: invoices invoices_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1537. --
  1538. ALTER TABLE ONLY public.invoices
  1539. ADD CONSTRAINT invoices_fk FOREIGN KEY (client_id) REFERENCES public.clients(client_id);
  1540. --
  1541. -- Name: lines_machines lines_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1542. --
  1543. ALTER TABLE ONLY public.lines_machines
  1544. ADD CONSTRAINT lines_fk FOREIGN KEY (line_id) REFERENCES public.lines(line_id);
  1545. --
  1546. -- Name: lines_machines machines_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1547. --
  1548. ALTER TABLE ONLY public.lines_machines
  1549. ADD CONSTRAINT machines_fk FOREIGN KEY (machine_id) REFERENCES public.machines(machine_id);
  1550. --
  1551. -- Name: preproducts preproducts_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1552. --
  1553. ALTER TABLE ONLY public.preproducts
  1554. ADD CONSTRAINT preproducts_fk1 FOREIGN KEY (turn_id) REFERENCES public.turns(turn_id);
  1555. --
  1556. -- Name: preproducts preproducts_fk2; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1557. --
  1558. ALTER TABLE ONLY public.preproducts
  1559. ADD CONSTRAINT preproducts_fk2 FOREIGN KEY (standar_code) REFERENCES public.units_measure(standar_code);
  1560. --
  1561. -- Name: products products_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1562. --
  1563. ALTER TABLE ONLY public.products
  1564. ADD CONSTRAINT products_fk FOREIGN KEY (sale_order_id) REFERENCES public.sale_orders(sale_order_id);
  1565. --
  1566. -- Name: products products_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1567. --
  1568. ALTER TABLE ONLY public.products
  1569. ADD CONSTRAINT products_fk1 FOREIGN KEY (category_id) REFERENCES public.categories(category_id);
  1570. --
  1571. -- Name: products products_fk3; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1572. --
  1573. ALTER TABLE ONLY public.products
  1574. ADD CONSTRAINT products_fk3 FOREIGN KEY (product_status_id) REFERENCES public.products_status(product_status_id);
  1575. --
  1576. -- Name: products products_fk4; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1577. --
  1578. ALTER TABLE ONLY public.products
  1579. ADD CONSTRAINT products_fk4 FOREIGN KEY (turn_id) REFERENCES public.turns(turn_id);
  1580. --
  1581. -- Name: products products_fk5; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1582. --
  1583. ALTER TABLE ONLY public.products
  1584. ADD CONSTRAINT products_fk5 FOREIGN KEY (supplier_id) REFERENCES public.suppliers(supplier_id);
  1585. --
  1586. -- Name: products_inputs products_inputs_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1587. --
  1588. ALTER TABLE ONLY public.products_inputs
  1589. ADD CONSTRAINT products_inputs_fk FOREIGN KEY (input_id) REFERENCES public.inputs(input_id);
  1590. --
  1591. -- Name: products_inputs products_inputs_fk_1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1592. --
  1593. ALTER TABLE ONLY public.products_inputs
  1594. ADD CONSTRAINT products_inputs_fk_1 FOREIGN KEY (product_id) REFERENCES public.products(product_id);
  1595. --
  1596. -- Name: products_technical_data products_technical_data_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1597. --
  1598. ALTER TABLE ONLY public.products_technical_data
  1599. ADD CONSTRAINT products_technical_data_fk FOREIGN KEY (product_id) REFERENCES public.products(product_id);
  1600. --
  1601. -- Name: remissions remissions_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1602. --
  1603. ALTER TABLE ONLY public.remissions
  1604. ADD CONSTRAINT remissions_fk FOREIGN KEY (client_id) REFERENCES public.clients(client_id);
  1605. --
  1606. -- Name: remissions remissions_fk_1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1607. --
  1608. ALTER TABLE ONLY public.remissions
  1609. ADD CONSTRAINT remissions_fk_1 FOREIGN KEY (address_id) REFERENCES public.addresses(address_id);
  1610. --
  1611. -- Name: returns returns_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1612. --
  1613. ALTER TABLE ONLY public.returns
  1614. ADD CONSTRAINT returns_fk FOREIGN KEY (client_id) REFERENCES public.clients(client_id);
  1615. --
  1616. -- Name: sale_orders_categories sale_orders_categories_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1617. --
  1618. ALTER TABLE ONLY public.sale_orders_categories
  1619. ADD CONSTRAINT sale_orders_categories_fk1 FOREIGN KEY (sale_order_id) REFERENCES public.sale_orders(sale_order_id);
  1620. --
  1621. -- Name: sale_orders_categories sale_orders_categories_fk2; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1622. --
  1623. ALTER TABLE ONLY public.sale_orders_categories
  1624. ADD CONSTRAINT sale_orders_categories_fk2 FOREIGN KEY (category_id) REFERENCES public.categories(category_id);
  1625. --
  1626. -- Name: sale_orders sale_orders_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1627. --
  1628. ALTER TABLE ONLY public.sale_orders
  1629. ADD CONSTRAINT sale_orders_fk1 FOREIGN KEY (client_id) REFERENCES public.clients(client_id);
  1630. --
  1631. -- Name: sale_orders sale_orders_fk2; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1632. --
  1633. ALTER TABLE ONLY public.sale_orders
  1634. ADD CONSTRAINT sale_orders_fk2 FOREIGN KEY (delivery_type_id) REFERENCES public.delivery_types(delivery_type_id);
  1635. --
  1636. -- Name: sale_orders sale_orders_fk3; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1637. --
  1638. ALTER TABLE ONLY public.sale_orders
  1639. ADD CONSTRAINT sale_orders_fk3 FOREIGN KEY (sale_order_status_id) REFERENCES public.sale_order_status(sale_order_status_id);
  1640. --
  1641. -- Name: suppliers_input_types suppliers_input_types_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1642. --
  1643. ALTER TABLE ONLY public.suppliers_input_types
  1644. ADD CONSTRAINT suppliers_input_types_fk1 FOREIGN KEY (supplier_id) REFERENCES public.suppliers(supplier_id);
  1645. --
  1646. -- Name: suppliers_input_types suppliers_input_types_fk2; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1647. --
  1648. ALTER TABLE ONLY public.suppliers_input_types
  1649. ADD CONSTRAINT suppliers_input_types_fk2 FOREIGN KEY (input_type_id) REFERENCES public.input_types(input_type_id);
  1650. --
  1651. -- Name: turn_incidents turn_incidents_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1652. --
  1653. ALTER TABLE ONLY public.turn_incidents
  1654. ADD CONSTRAINT turn_incidents_fk FOREIGN KEY (turn_id) REFERENCES public.turns(turn_id);
  1655. --
  1656. -- Name: turns turns_lines_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1657. --
  1658. ALTER TABLE ONLY public.turns
  1659. ADD CONSTRAINT turns_lines_fk FOREIGN KEY (line_id) REFERENCES public.lines(line_id);
  1660. --
  1661. -- Name: turns_operators turns_operators_fk1; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1662. --
  1663. ALTER TABLE ONLY public.turns_operators
  1664. ADD CONSTRAINT turns_operators_fk1 FOREIGN KEY (turn_id) REFERENCES public.turns(turn_id);
  1665. --
  1666. -- Name: turns_operators turns_operators_fk2; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1667. --
  1668. ALTER TABLE ONLY public.turns_operators
  1669. ADD CONSTRAINT turns_operators_fk2 FOREIGN KEY (operator_id) REFERENCES public.operators(operator_id);
  1670. --
  1671. -- Name: turns turns_types_fk; Type: FK CONSTRAINT; Schema: public; Owner: vespot
  1672. --
  1673. ALTER TABLE ONLY public.turns
  1674. ADD CONSTRAINT turns_types_fk FOREIGN KEY (turn_type_id) REFERENCES public.turn_types(turn_type_id);
  1675. --
  1676. -- PostgreSQL database dump complete
  1677. --