--
-- PostgreSQL database dump
--

\restrict lAaLqLBC97fkSperdxYl5fjzjf6qhnkvpVyPWEkZyQ37Mu4fIXbcWZBIFk58Sg7

-- Dumped from database version 16.10
-- Dumped by pg_dump version 17.6 (Debian 17.6-0+deb13u1)

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_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: api_uploaded_file; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.api_uploaded_file (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    path character varying(500) NOT NULL,
    is_deleted boolean NOT NULL,
    original_filename character varying(255) NOT NULL,
    file_size bigint,
    content_type character varying(100) NOT NULL,
    owner_id integer NOT NULL
);


ALTER TABLE public.api_uploaded_file OWNER TO postgres;

--
-- Name: [REDACTED] Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.api_uploaded_file ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.[REDACTED]    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: auth_group; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auth_group (
    id integer NOT NULL,
    name character varying(150) NOT NULL
);


ALTER TABLE public.auth_group OWNER TO postgres;

--
-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.auth_group ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.auth_group_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auth_group_permissions (
    id bigint NOT NULL,
    group_id integer NOT NULL,
    permission_id integer NOT NULL
);


ALTER TABLE public.auth_group_permissions OWNER TO postgres;

--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.auth_group_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.auth_group_permissions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: auth_permission; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auth_permission (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    content_type_id integer NOT NULL,
    codename character varying(100) NOT NULL
);


ALTER TABLE public.auth_permission OWNER TO postgres;

--
-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.auth_permission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.auth_permission_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: auth_user; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auth_user (
    id integer NOT NULL,
    password character varying(128) NOT NULL,
    last_login timestamp with time zone,
    is_superuser boolean NOT NULL,
    username character varying(150) NOT NULL,
    first_name character varying(150) NOT NULL,
    last_name character varying(150) NOT NULL,
    email character varying(254) NOT NULL,
    is_staff boolean NOT NULL,
    is_active boolean NOT NULL,
    date_joined timestamp with time zone NOT NULL
);


ALTER TABLE public.auth_user OWNER TO postgres;

--
-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auth_user_groups (
    id bigint NOT NULL,
    user_id integer NOT NULL,
    group_id integer NOT NULL
);


ALTER TABLE public.auth_user_groups OWNER TO postgres;

--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.auth_user_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.auth_user_groups_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.auth_user ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.auth_user_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.auth_user_user_permissions (
    id bigint NOT NULL,
    user_id integer NOT NULL,
    permission_id integer NOT NULL
);


ALTER TABLE public.auth_user_user_permissions OWNER TO postgres;

--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.auth_user_user_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.auth_user_user_permissions_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_bankaccount; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_bankaccount (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    auto_number character varying(50) NOT NULL,
    description text,
    attachment character varying(100),
    merchant_id bigint NOT NULL
);


ALTER TABLE public.basic_info_bankaccount OWNER TO postgres;

--
-- Name: basic_info_bankaccount_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_bankaccount ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_bankaccount_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_customer; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_customer (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    mobile character varying(20) NOT NULL,
    area character varying(100),
    email character varying(254),
    contact character varying,
    description text,
    merchant_id bigint NOT NULL,
    created_by_id bigint
);


ALTER TABLE public.basic_info_customer OWNER TO postgres;

--
-- Name: basic_info_customer_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_customer ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_customer_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_customer_visible_employees; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_customer_visible_employees (
    id bigint NOT NULL,
    customer_id bigint NOT NULL,
    employee_id bigint NOT NULL
);


ALTER TABLE public.basic_info_customer_visible_employees OWNER TO postgres;

--
-- Name: basic_info_customer_visible_employees_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_customer_visible_employees ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_customer_visible_employees_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_deviceinfo; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_deviceinfo (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    type character varying(20) NOT NULL,
    status character varying(20) NOT NULL,
    start_working_at date,
    stop_working_at date,
    is_occupied boolean NOT NULL,
    description text,
    merchant_id bigint NOT NULL
);


ALTER TABLE public.basic_info_deviceinfo OWNER TO postgres;

--
-- Name: basic_info_deviceinfo_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_deviceinfo ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_deviceinfo_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_employee; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_employee (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    mobile character varying(20),
    area character varying(100),
    description text,
    status character varying(20) NOT NULL,
    sys_user_id integer,
    merchant_id bigint NOT NULL,
    position_id bigint
);


ALTER TABLE public.basic_info_employee OWNER TO postgres;

--
-- Name: basic_info_employee_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_employee ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_employee_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_employeetype; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_employeetype (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    title character varying(50) NOT NULL,
    description text,
    reverse character varying(100),
    merchant_id bigint NOT NULL
);


ALTER TABLE public.basic_info_employeetype OWNER TO postgres;

--
-- Name: basic_info_employeetype_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_employeetype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_employeetype_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_merchant; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_merchant (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    type integer NOT NULL,
    area character varying(100),
    email character varying(254),
    mobile character varying(20),
    contact text,
    description text,
    auto_complete_stock_change boolean NOT NULL
);


ALTER TABLE public.basic_info_merchant OWNER TO postgres;

--
-- Name: basic_info_merchant_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_merchant ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_merchant_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_product; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_product (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    human_id character varying(100) NOT NULL,
    color character varying(50),
    width_size numeric(10,2),
    single_price_in numeric(10,2),
    single_price_out numeric(10,2),
    unit integer NOT NULL,
    spec character varying(100),
    description text,
    image character varying(100),
    transform_rate numeric(10,4),
    merchant_id bigint NOT NULL,
    category_id bigint NOT NULL,
    minimum_quantity integer
);


ALTER TABLE public.basic_info_product OWNER TO postgres;

--
-- Name: basic_info_product_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_product ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_product_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_productcategory; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_productcategory (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    description text,
    product_prefix character varying(5) NOT NULL,
    merchant_id bigint NOT NULL
);


ALTER TABLE public.basic_info_productcategory OWNER TO postgres;

--
-- Name: basic_info_productcategory_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_productcategory ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_productcategory_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_quickinput; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_quickinput (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    value character varying(200) NOT NULL,
    "group" character varying NOT NULL
);


ALTER TABLE public.basic_info_quickinput OWNER TO postgres;

--
-- Name: basic_info_quickinput_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_quickinput ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_quickinput_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_supplier; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_supplier (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    area character varying(100),
    email character varying(254),
    mobile character varying(20),
    contact text,
    description text,
    merchant_id bigint NOT NULL
);


ALTER TABLE public.basic_info_supplier OWNER TO postgres;

--
-- Name: basic_info_supplier_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_supplier ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_supplier_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_userprofile; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_userprofile (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    description text,
    merchant_id bigint NOT NULL,
    user_id integer NOT NULL
);


ALTER TABLE public.basic_info_userprofile OWNER TO postgres;

--
-- Name: basic_info_userprofile_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_userprofile ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_userprofile_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_vehicletransportrecord; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_vehicletransportrecord (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    driver_name character varying(100) NOT NULL,
    contact_number character varying(20),
    license_plate character varying(20),
    delivery_date date NOT NULL,
    merchant_id bigint NOT NULL,
    vehicle_type_id bigint NOT NULL
);


ALTER TABLE public.basic_info_vehicletransportrecord OWNER TO postgres;

--
-- Name: basic_info_vehicletransportrecord_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_vehicletransportrecord ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_vehicletransportrecord_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_vehicletype; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_vehicletype (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(50) NOT NULL,
    description text,
    merchant_id bigint NOT NULL
);


ALTER TABLE public.basic_info_vehicletype OWNER TO postgres;

--
-- Name: basic_info_vehicletype_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_vehicletype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_vehicletype_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: basic_info_warehouse; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.basic_info_warehouse (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    name character varying(100) NOT NULL,
    location character varying(200),
    contact character varying(100),
    mobile character varying(20),
    area character varying(100),
    description text,
    merchant_id bigint NOT NULL,
    mode integer NOT NULL,
    type integer NOT NULL
);


ALTER TABLE public.basic_info_warehouse OWNER TO postgres;

--
-- Name: basic_info_warehouse_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.basic_info_warehouse ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.basic_info_warehouse_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: business_object; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.business_object (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    name character varying(100) NOT NULL,
    description text NOT NULL,
    process_id bigint NOT NULL,
    content_type_id integer,
    object_id integer,
    CONSTRAINT business_object_object_id_check CHECK ((object_id >= 0))
);


ALTER TABLE public.business_object OWNER TO postgres;

--
-- Name: business_purchaseorder; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.business_purchaseorder (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    order_date date NOT NULL,
    total_amount numeric(15,2) NOT NULL,
    remarks text,
    merchant_id bigint NOT NULL,
    supplier_id bigint NOT NULL
);


ALTER TABLE public.business_purchaseorder OWNER TO postgres;

--
-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.django_admin_log (
    id integer NOT NULL,
    action_time timestamp with time zone NOT NULL,
    object_id text,
    object_repr character varying(200) NOT NULL,
    action_flag smallint NOT NULL,
    change_message text NOT NULL,
    content_type_id integer,
    user_id integer NOT NULL,
    CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0))
);


ALTER TABLE public.django_admin_log OWNER TO postgres;

--
-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.django_admin_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.django_admin_log_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: django_content_type; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.django_content_type (
    id integer NOT NULL,
    app_label character varying(100) NOT NULL,
    model character varying(100) NOT NULL
);


ALTER TABLE public.django_content_type OWNER TO postgres;

--
-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.django_content_type ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.django_content_type_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: django_migrations; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.django_migrations (
    id bigint NOT NULL,
    app character varying(255) NOT NULL,
    name character varying(255) NOT NULL,
    applied timestamp with time zone NOT NULL
);


ALTER TABLE public.django_migrations OWNER TO postgres;

--
-- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.django_migrations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.django_migrations_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: django_session; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.django_session (
    session_key character varying(40) NOT NULL,
    session_data text NOT NULL,
    expire_date timestamp with time zone NOT NULL
);


ALTER TABLE public.django_session OWNER TO postgres;

--
-- Name: printing_plateorder; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.printing_plateorder (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    design_code character varying(50),
    plate_type character varying(20),
    plate_date timestamp with time zone,
    plate_method character varying(50),
    plate_image character varying(100),
    plate_notes text,
    reprint_reason text,
    urgency_level character varying(20) NOT NULL,
    area character varying(255),
    default_address character varying(500),
    is_mark_frame boolean NOT NULL,
    drawing_rating character varying(20),
    color_matching_rating character varying(20),
    sample_rating character varying(20),
    difficulty_rating character varying(20),
    required_completion_date date,
    completion_date timestamp with time zone,
    fabric character varying(100),
    width character varying(50),
    style_name character varying(100),
    production_method character varying(50),
    sample_meter character varying(100),
    required_sample_meters numeric(10,2),
    approval_result character varying(50),
    is_ordered boolean NOT NULL,
    customer_feedback text,
    business_object_id bigint,
    customer_id bigint NOT NULL,
    merchandiser_id bigint,
    salesperson_id bigint,
    is_invalid boolean NOT NULL,
    process integer NOT NULL,
    fabric_source character varying(100),
    designer_id bigint
);


ALTER TABLE public.printing_plateorder OWNER TO postgres;

--
-- Name: printing_plateorder_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.printing_plateorder ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.printing_plateorder_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: printing_printingjob; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.printing_printingjob (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    quantity integer NOT NULL,
    unit character varying(50) NOT NULL,
    size character varying(100),
    pieces integer,
    description text,
    product_id bigint NOT NULL,
    printing_order_id bigint NOT NULL,
    business_object_id bigint,
    CONSTRAINT printing_printingjob_pieces_check CHECK ((pieces >= 0)),
    CONSTRAINT printing_printingjob_quantity_check CHECK ((quantity >= 0))
);


ALTER TABLE public.printing_printingjob OWNER TO postgres;

--
-- Name: printing_printingjob_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.printing_printingjob ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.printing_printingjob_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: printing_printingorder; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.printing_printingorder (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    fabric character varying(100) NOT NULL,
    width character varying(100) NOT NULL,
    is_urgent boolean NOT NULL,
    area character varying(100),
    address character varying(200),
    fabric_source character varying(100),
    is_fabric_received boolean NOT NULL,
    craft character varying(100),
    description text,
    outgoing_date date,
    curve character varying(100),
    new_curve character varying(100),
    "position" text,
    printing_warn text,
    rolling_warn text,
    production_warn text,
    customer_id bigint NOT NULL,
    is_invalid boolean NOT NULL,
    process_id bigint
);


ALTER TABLE public.printing_printingorder OWNER TO postgres;

--
-- Name: printing_printingorder_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.printing_printingorder ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.printing_printingorder_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: state_flow_record; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.state_flow_record (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    completed_at timestamp with time zone NOT NULL,
    completed_by_id integer,
    business_object_id bigint NOT NULL,
    state_id bigint NOT NULL,
    cancelled_at timestamp with time zone,
    is_cancelled boolean NOT NULL
);


ALTER TABLE public.state_flow_record OWNER TO postgres;

--
-- Name: state_log_parameter_record; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.state_log_parameter_record (
    id bigint NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    parameters jsonb NOT NULL,
    created_at timestamp with time zone NOT NULL,
    remark text NOT NULL,
    state_log_id bigint NOT NULL
);


ALTER TABLE public.state_log_parameter_record OWNER TO postgres;

--
-- Name: state_log_parameter_record_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.state_log_parameter_record ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.state_log_parameter_record_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_order_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.business_object ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_order_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_orderstatelog_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.state_flow_record ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_orderstatelog_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_process; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stateflow_process (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    name character varying(100) NOT NULL,
    description text NOT NULL
);


ALTER TABLE public.stateflow_process OWNER TO postgres;

--
-- Name: stateflow_process_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stateflow_process ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_process_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_processnode; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stateflow_processnode (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    "order" integer NOT NULL,
    process_id bigint NOT NULL,
    state_id bigint NOT NULL,
    CONSTRAINT stateflow_processnode_order_check CHECK (("order" >= 0))
);


ALTER TABLE public.stateflow_processnode OWNER TO postgres;

--
-- Name: stateflow_processnode_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stateflow_processnode ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_processnode_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_state; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stateflow_state (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    name character varying(100) NOT NULL,
    description character varying(200) NOT NULL
);


ALTER TABLE public.stateflow_state OWNER TO postgres;

--
-- Name: stateflow_state_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stateflow_state ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_state_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_state_parameters; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stateflow_state_parameters (
    id bigint NOT NULL,
    state_id bigint NOT NULL,
    stateparameter_id bigint NOT NULL
);


ALTER TABLE public.stateflow_state_parameters OWNER TO postgres;

--
-- Name: stateflow_state_parameters_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stateflow_state_parameters ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_state_parameters_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stateflow_stateparameter; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stateflow_stateparameter (
    id bigint NOT NULL,
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    key character varying(100) NOT NULL,
    value character varying(200),
    description character varying(200) NOT NULL,
    attachment character varying(100),
    is_required boolean NOT NULL,
    is_image_path boolean NOT NULL
);


ALTER TABLE public.stateflow_stateparameter OWNER TO postgres;

--
-- Name: stateflow_stateparameter_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stateflow_stateparameter ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stateflow_stateparameter_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_inventory; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stock_inventory (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    quantity numeric(10,2) NOT NULL,
    num_of_rolls integer NOT NULL,
    spec character varying(100),
    description text,
    merchant_id bigint NOT NULL,
    product_id bigint NOT NULL,
    warehouse_id bigint NOT NULL
);


ALTER TABLE public.stock_inventory OWNER TO postgres;

--
-- Name: stock_inventory_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stock_inventory ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_inventory_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_purchaseorder_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.business_purchaseorder ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_purchaseorder_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_stockchangedetail; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stock_stockchangedetail (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    quantity numeric(10,2) NOT NULL,
    unit integer NOT NULL,
    merchant_id bigint NOT NULL,
    product_id bigint NOT NULL,
    stock_change_record_id bigint NOT NULL,
    is_consumed boolean NOT NULL,
    consume_with_id bigint
);


ALTER TABLE public.stock_stockchangedetail OWNER TO postgres;

--
-- Name: stock_stockchangedetail_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stock_stockchangedetail ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_stockchangedetail_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_stockchangerecord; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stock_stockchangerecord (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    type integer NOT NULL,
    source_type integer NOT NULL,
    source_id bigint,
    is_finished boolean NOT NULL,
    finished_at timestamp with time zone,
    remarks text,
    created_by_id integer,
    merchant_id bigint NOT NULL,
    warehouse_id bigint NOT NULL
);


ALTER TABLE public.stock_stockchangerecord OWNER TO postgres;

--
-- Name: stock_stockchangerecord_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stock_stockchangerecord ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_stockchangerecord_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_stockfreeze; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stock_stockfreeze (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    quantity numeric(10,2) NOT NULL,
    unit integer NOT NULL,
    status integer NOT NULL,
    frozen_with bigint,
    completed_at timestamp with time zone,
    completed_with bigint,
    cancelled_at timestamp with time zone,
    reason text,
    cancelled_by_id integer,
    completed_by_id integer,
    frozen_by_id integer NOT NULL,
    merchant_id bigint NOT NULL,
    product_id bigint NOT NULL,
    stock_detail_id bigint NOT NULL,
    warehouse_id bigint NOT NULL
);


ALTER TABLE public.stock_stockfreeze OWNER TO postgres;

--
-- Name: stock_stockfreeze_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stock_stockfreeze ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_stockfreeze_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Name: stock_stocksnapshot; Type: TABLE; Schema: public; Owner: postgres
--

CREATE TABLE public.stock_stocksnapshot (
    created_at timestamp with time zone NOT NULL,
    updated_at timestamp with time zone NOT NULL,
    id bigint NOT NULL,
    delta numeric(10,2) NOT NULL,
    quantity_before numeric(10,2) NOT NULL,
    quantity_after numeric(10,2) NOT NULL,
    unit integer NOT NULL,
    num_of_rolls integer NOT NULL,
    offset_to bigint,
    offset_at timestamp with time zone,
    cancelled boolean NOT NULL,
    cancelled_at timestamp with time zone,
    offset_id bigint,
    merchant_id bigint NOT NULL,
    product_id bigint NOT NULL,
    stock_change_record_id bigint NOT NULL,
    warehouse_id bigint NOT NULL
);


ALTER TABLE public.stock_stocksnapshot OWNER TO postgres;

--
-- Name: stock_stocksnapshot_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--

ALTER TABLE public.stock_stocksnapshot ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME public.stock_stocksnapshot_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- Data for Name: api_uploaded_file; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.api_uploaded_file (id, created_at, updated_at, path, is_deleted, original_filename, file_size, content_type, owner_id) FROM stdin;
1	2025-11-21 02:46:27.837198+00	2025-11-21 02:46:27.837209+00	uploads/2025/11/21/21aed50ea13146c68d20b4ae3e1b3079.png	f	debug_group_4.png	159627	image/png	2
\.


--
-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auth_group (id, name) FROM stdin;
\.


--
-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin;
\.


--
-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin;
1	Can add log entry	1	add_logentry
2	Can change log entry	1	change_logentry
3	Can delete log entry	1	delete_logentry
4	Can view log entry	1	view_logentry
5	Can add permission	2	add_permission
6	Can change permission	2	change_permission
7	Can delete permission	2	delete_permission
8	Can view permission	2	view_permission
9	Can add group	3	add_group
10	Can change group	3	change_group
11	Can delete group	3	delete_group
12	Can view group	3	view_group
13	Can add user	4	add_user
14	Can change user	4	change_user
15	Can delete user	4	delete_user
16	Can view user	4	view_user
17	Can add content type	5	add_contenttype
18	Can change content type	5	change_contenttype
19	Can delete content type	5	delete_contenttype
20	Can view content type	5	view_contenttype
21	Can add session	6	add_session
22	Can change session	6	change_session
23	Can delete session	6	delete_session
24	Can view session	6	view_session
25	Can add 商户资料	7	add_merchant
26	Can change 商户资料	7	change_merchant
27	Can delete 商户资料	7	delete_merchant
28	Can view 商户资料	7	view_merchant
29	Can add 员工资料	8	add_employee
30	Can change 员工资料	8	change_employee
31	Can delete 员工资料	8	delete_employee
32	Can view 员工资料	8	view_employee
33	Can add 设备资料	9	add_deviceinfo
34	Can change 设备资料	9	change_deviceinfo
35	Can delete 设备资料	9	delete_deviceinfo
36	Can view 设备资料	9	view_deviceinfo
37	Can add 客户资料	10	add_customer
38	Can change 客户资料	10	change_customer
39	Can delete 客户资料	10	delete_customer
40	Can view 客户资料	10	view_customer
41	Can add 银行账户	11	add_bankaccount
42	Can change 银行账户	11	change_bankaccount
43	Can delete 银行账户	11	delete_bankaccount
44	Can view 银行账户	11	view_bankaccount
45	Can add 产品类别	12	add_productcategory
46	Can change 产品类别	12	change_productcategory
47	Can delete 产品类别	12	delete_productcategory
48	Can view 产品类别	12	view_productcategory
49	Can add 产品资料	13	add_product
50	Can change 产品资料	13	change_product
51	Can delete 产品资料	13	delete_product
52	Can view 产品资料	13	view_product
53	Can add 供应商	14	add_supplier
54	Can change 供应商	14	change_supplier
55	Can delete 供应商	14	delete_supplier
56	Can view 供应商	14	view_supplier
57	Can add 车辆类型	15	add_vehicletype
58	Can change 车辆类型	15	change_vehicletype
59	Can delete 车辆类型	15	delete_vehicletype
60	Can view 车辆类型	15	view_vehicletype
61	Can add 司机车次	16	add_vehicletransportrecord
62	Can change 司机车次	16	change_vehicletransportrecord
63	Can delete 司机车次	16	delete_vehicletransportrecord
64	Can view 司机车次	16	view_vehicletransportrecord
65	Can add 仓库资料	17	add_warehouse
66	Can change 仓库资料	17	change_warehouse
67	Can delete 仓库资料	17	delete_warehouse
68	Can view 仓库资料	17	view_warehouse
69	Can add 快捷输入	18	add_quickinput
70	Can change 快捷输入	18	change_quickinput
71	Can delete 快捷输入	18	delete_quickinput
72	Can view 快捷输入	18	view_quickinput
73	Can add 采购单	19	add_purchaseorder
74	Can change 采购单	19	change_purchaseorder
75	Can delete 采购单	19	delete_purchaseorder
76	Can view 采购单	19	view_purchaseorder
77	Can add 出入库记录	20	add_stockchangerecord
78	Can change 出入库记录	20	change_stockchangerecord
79	Can delete 出入库记录	20	delete_stockchangerecord
80	Can view 出入库记录	20	view_stockchangerecord
81	Can add 库存变动明细	21	add_stockchangedetail
82	Can change 库存变动明细	21	change_stockchangedetail
83	Can delete 库存变动明细	21	delete_stockchangedetail
84	Can view 库存变动明细	21	view_stockchangedetail
85	Can add 库存快照	22	add_stocksnapshot
86	Can change 库存快照	22	change_stocksnapshot
87	Can delete 库存快照	22	delete_stocksnapshot
88	Can view 库存快照	22	view_stocksnapshot
89	Can add 库存	23	add_inventory
90	Can change 库存	23	change_inventory
91	Can delete 库存	23	delete_inventory
92	Can view 库存	23	view_inventory
93	Can add 库存冻结	24	add_stockfreeze
94	Can change 库存冻结	24	change_stockfreeze
95	Can delete 库存冻结	24	delete_stockfreeze
96	Can view 库存冻结	24	view_stockfreeze
97	Can add 上传文件	25	add_uploadedfile
98	Can change 上传文件	25	change_uploadedfile
99	Can delete 上传文件	25	delete_uploadedfile
100	Can view 上传文件	25	view_uploadedfile
101	Can add 印染订单	26	add_printingorder
102	Can change 印染订单	26	change_printingorder
103	Can delete 印染订单	26	delete_printingorder
104	Can view 印染订单	26	view_printingorder
105	可以作废印染订单	26	can_invalidate_printingorder
106	可以恢复印染订单	26	can_activate_printingorder
107	Can add 印染款式明细	27	add_printingjob
108	Can change 印染款式明细	27	change_printingjob
109	Can delete 印染款式明细	27	delete_printingjob
110	Can view 印染款式明细	27	view_printingjob
111	Can add 开版订单	28	add_plateorder
112	Can change 开版订单	28	change_plateorder
113	Can delete 开版订单	28	delete_plateorder
114	Can view 开版订单	28	view_plateorder
115	可以作废开版订单	28	can_invalidate_plateorder
116	可以恢复开版订单	28	can_activate_plateorder
117	Can add 流程节点	29	add_state
118	Can change 流程节点	29	change_state
119	Can delete 流程节点	29	delete_state
120	Can view 流程节点	29	view_state
121	Can add 流程编排	30	add_process
122	Can change 流程编排	30	change_process
123	Can delete 流程编排	30	delete_process
124	Can view 流程编排	30	view_process
125	Can add 工艺参数	31	add_stateparameter
126	Can change 工艺参数	31	change_stateparameter
127	Can delete 工艺参数	31	delete_stateparameter
128	Can view 工艺参数	31	view_stateparameter
129	Can add 流程节点关联	32	add_processnode
130	Can change 流程节点关联	32	change_processnode
131	Can delete 流程节点关联	32	delete_processnode
132	Can view 流程节点关联	32	view_processnode
133	Can add 业务对象	33	add_businessobject
134	Can change 业务对象	33	change_businessobject
135	Can delete 业务对象	33	delete_businessobject
136	Can view 业务对象	33	view_businessobject
137	Can add 状态流转记录	34	add_stateflowrecord
138	Can change 状态流转记录	34	change_stateflowrecord
139	Can delete 状态流转记录	34	delete_stateflowrecord
140	Can view 状态流转记录	34	view_stateflowrecord
141	Can add 状态流转参数记录	35	add_statelogparameterrecord
142	Can change 状态流转参数记录	35	change_statelogparameterrecord
143	Can delete 状态流转参数记录	35	delete_statelogparameterrecord
144	Can view 状态流转参数记录	35	view_statelogparameterrecord
145	Can add 员工职位类型	36	add_employeetype
146	Can change 员工职位类型	36	change_employeetype
147	Can delete 员工职位类型	36	delete_employeetype
148	Can view 员工职位类型	36	view_employeetype
149	Can add 用户资料扩展	37	add_userprofile
150	Can change 用户资料扩展	37	change_userprofile
151	Can delete 用户资料扩展	37	delete_userprofile
152	Can view 用户资料扩展	37	view_userprofile
153	查看所有客户资料	10	view_all_customers
154	Can add 采购单	38	add_purchaseorder
155	Can change 采购单	38	change_purchaseorder
156	Can delete 采购单	38	delete_purchaseorder
157	Can view 采购单	38	view_purchaseorder
\.


--
-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin;
2	pbkdf2_sha256$1000000$FQEiwQ12oi0PN5Eiy8yBj8$5K56mG8hMRXmQDNAJaeacM1f7ILZ0cF/6Ad6wTI69QA=	2025-11-26 02:43:48.977068+00	f	jimi				f	t	2025-11-18 05:59:00+00
3	pbkdf2_sha256$1000000$mlevMIoViCC3iCxkVWY7N7$Hs9ug78RJIMHoORM5k4YzX52IkUubzlzOzXpMDAG5/k=	2025-11-23 12:57:16.773509+00	f	映雪				f	t	2025-11-19 08:12:00+00
5	pbkdf2_sha256$1000000$6QzgwlV3m9j08p5c6TimM6$dYqey1tpxL2fIuJj+qKVl2z5Dc41BrvHuZlQShmgIM4=	\N	f	testuser_5599			testuser_5599@example.com	f	t	2025-11-24 05:45:22.629483+00
6	pbkdf2_sha256$1000000$Gc8ss3NEXAAO5mK1nQ51l2$/DOLtcYC+F+dG1LVSuvWvyrLVNR9qViopLL9ntjqojo=	\N	f	apitest2				f	t	2025-11-24 06:08:19.098505+00
7	pbkdf2_sha256$1000000$gXVjPP0SD9cgTNxOOsTPbG$/dtOlfY+1WsASF/pW+EtompccUEORJMTMyhL9YebZxo=	\N	f	apitest666				f	t	2025-11-24 06:16:49.620831+00
1	pbkdf2_sha256$1000000$NyR8RyN6CWu3xEJP4rXclZ$vKH5DuApHqxxHaxiWd/b6Ek0BTozUZ+ZaJXcxtfRkiA=	2025-11-25 07:53:54.390262+00	t	admin				t	t	2025-11-18 05:58:19.271303+00
\.


--
-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auth_user_groups (id, user_id, group_id) FROM stdin;
\.


--
-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.auth_user_user_permissions (id, user_id, permission_id) FROM stdin;
1	2	101
2	2	102
3	2	103
4	2	104
5	2	105
6	2	106
7	2	107
8	2	108
9	2	109
10	2	110
11	2	111
12	2	112
13	2	113
14	2	114
15	2	115
16	2	116
17	3	101
18	3	102
19	3	103
20	3	104
21	3	105
22	3	106
23	3	107
24	3	108
25	3	109
26	3	110
27	3	111
28	3	112
29	3	113
30	3	114
31	3	115
32	3	116
33	2	16
34	2	13
35	2	153
36	2	40
37	2	37
38	2	38
39	2	39
\.


--
-- Data for Name: basic_info_bankaccount; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_bankaccount (created_at, updated_at, id, name, auto_number, description, attachment, merchant_id) FROM stdin;
\.


--
-- Data for Name: basic_info_customer; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_customer (created_at, updated_at, id, name, mobile, area, email, contact, description, merchant_id, created_by_id) FROM stdin;
2025-11-18 08:20:30.133277+00	2025-11-18 08:20:30.133288+00	4	黄花鱼报	1235565	\N	\N	\N	\N	1	1
2025-11-23 13:08:03.63937+00	2025-11-23 13:08:03.639378+00	5	福兴	15361280510	\N	\N	\N	\N	1	2
2025-11-23 13:08:17.625385+00	2025-11-23 13:08:17.625392+00	6	张晓鹏	15361280510	\N	\N	\N	\N	1	2
2025-11-23 13:08:36.458555+00	2025-11-23 13:08:36.458562+00	7	王杰敏	15361280510	\N	\N	\N	\N	1	2
2025-11-18 08:20:18.652207+00	2025-11-25 06:54:53.355892+00	3	测试123	123	\N	\N	\N	\N	1	1
\.


--
-- Data for Name: basic_info_customer_visible_employees; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_customer_visible_employees (id, customer_id, employee_id) FROM stdin;
1	3	6
\.


--
-- Data for Name: basic_info_deviceinfo; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_deviceinfo (created_at, updated_at, id, name, type, status, start_working_at, stop_working_at, is_occupied, description, merchant_id) FROM stdin;
\.


--
-- Data for Name: basic_info_employee; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_employee (created_at, updated_at, id, name, mobile, area, description, status, sys_user_id, merchant_id, position_id) FROM stdin;
2025-11-18 06:00:44.202474+00	2025-11-20 06:10:09.963599+00	1	左威	\N	\N		在职	2	1	2
2025-11-19 08:14:37.879581+00	2025-11-20 06:10:14.371773+00	2	映雪	15361280510	\N		在职	3	1	2
2025-11-24 09:25:06.187356+00	2025-11-24 09:25:06.187366+00	4	123	\N	\N	\N	在职	5	1	\N
2025-11-24 09:25:22.570921+00	2025-11-24 09:25:22.570928+00	5	312	\N	\N	\N	在职	7	1	2
2025-11-24 09:25:34.682437+00	2025-11-24 09:25:34.682449+00	6	威左	\N	\N	\N	在职	6	1	\N
\.


--
-- Data for Name: basic_info_employeetype; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_employeetype (created_at, updated_at, id, title, description, reverse, merchant_id) FROM stdin;
2025-11-20 06:10:02.467608+00	2025-11-20 06:10:02.467618+00	2	设计师	设计师	\N	1
2025-11-20 06:39:12.672087+00	2025-11-20 06:39:12.672099+00	3	跟单员	\N	\N	1
2025-11-20 06:39:22.85184+00	2025-11-20 06:39:22.851853+00	4	运营员	\N	\N	1
2025-11-20 06:39:34.031356+00	2025-11-20 06:39:41.998153+00	5	打纸员	\N	\N	1
2025-11-20 06:39:48.043445+00	2025-11-20 06:39:48.043455+00	6	滚筒工	\N	\N	1
2025-11-20 06:39:54.142622+00	2025-11-20 06:39:54.14263+00	7	业务员	\N	\N	1
\.


--
-- Data for Name: basic_info_merchant; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_merchant (created_at, updated_at, id, name, type, area, email, mobile, contact, description, auto_complete_stock_change) FROM stdin;
2025-11-18 06:00:31.465397+00	2025-11-18 06:00:31.465405+00	1	瑞彩印花	2	\N	\N	\N			f
2025-11-20 06:02:58.795363+00	2025-11-20 06:02:58.795382+00	2	测试商户2	1	\N	\N	\N	\N	\N	f
2025-11-24 05:45:09.309332+00	2025-11-24 05:45:09.309344+00	3	测试商户	1	\N	\N	\N	\N	\N	f
\.


--
-- Data for Name: basic_info_product; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_product (created_at, updated_at, id, name, human_id, color, width_size, single_price_in, single_price_out, unit, spec, description, image, transform_rate, merchant_id, category_id, minimum_quantity) FROM stdin;
2025-11-18 08:21:51.521625+00	2025-11-18 08:21:51.521633+00	1	Tj602#V领19号色-25码	RC00001	\N	\N	\N	\N	1	\N	\N	product_images/Tj602V领19号色-25码LWQ15-幅宽151-双层四面弹-一段一件-151cmX274cm-印好不能低于147cmX269cm__佩_preview.jpg	\N	1	1	\N
2025-11-18 08:22:17.694033+00	2025-11-18 08:22:17.694041+00	2	Tj602#V领19号色-24码	RC00002	\N	\N	\N	\N	1	\N	\N	product_images/Tj602V领19号色-24码LWQ15-幅宽151-双层四面弹-一段一件-151cmX268cm-印好不能低于147cmX253cm__佩_preview.jpg	\N	1	1	\N
\.


--
-- Data for Name: basic_info_productcategory; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_productcategory (created_at, updated_at, id, name, description, product_prefix, merchant_id) FROM stdin;
2025-11-18 08:21:39.444624+00	2025-11-18 08:21:39.444631+00	1	印花	\N	RC	1
\.


--
-- Data for Name: basic_info_quickinput; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_quickinput (created_at, updated_at, id, name, value, "group") FROM stdin;
2025-11-18 08:23:24.813225+00	2025-11-18 08:23:24.813234+00	1	四面弹	四面弹	布料
2025-11-18 09:48:48.101462+00	2025-11-18 09:48:48.10147+00	2	中大	中大	地区
2025-11-18 15:31:25.825228+00	2025-11-18 15:31:25.825236+00	3	牛奶丝	牛奶丝	布料
2025-11-18 15:31:40.483308+00	2025-11-18 15:31:40.483315+00	4	1.5米	1.5米	幅宽
2025-11-19 04:41:28.625384+00	2025-11-19 04:41:28.625402+00	5	批布	批布	工艺
2025-11-19 04:46:07.968444+00	2025-11-19 04:46:07.968452+00	6	仓库布	仓库布	布源
2025-11-19 06:09:13.561928+00	2025-11-19 06:09:13.561936+00	7	测试	测试	曲线
2025-11-19 06:09:18.26355+00	2025-11-19 06:09:18.263558+00	8	3124123	3124123	新加曲线
2025-11-19 08:25:56.851308+00	2025-11-19 08:25:56.851316+00	9	测试	测试	布料
2025-11-20 06:13:06.17721+00	2025-11-20 06:13:06.177218+00	10	画图难度1	画图难度1	画图评级
2025-11-20 06:13:20.783887+00	2025-11-20 06:13:20.783896+00	11	调色难度1	调色难度1	调色评级
2025-11-20 06:13:34.886151+00	2025-11-20 06:13:34.886159+00	12	套样难度1	套样难度1	套样评级
2025-11-20 06:13:57.754838+00	2025-11-20 06:13:57.75485+00	13	难度1	难度1	难度评级
2025-11-20 06:17:51.458274+00	2025-11-20 06:17:51.458287+00	14	首版	首版	起版情况
2025-11-20 06:18:08.574225+00	2025-11-20 06:18:08.574233+00	15	加急	加急	紧急程度
2025-11-20 06:18:21.724272+00	2025-11-20 06:18:21.724285+00	16	匹布	匹布	做货方式
2025-11-20 06:18:34.280577+00	2025-11-20 06:18:34.280585+00	17	图片开版	图片开版	开版方式
2025-11-21 08:42:37.687031+00	2025-11-21 08:42:37.687043+00	18	样衣开版	样衣开版	开版方式
2025-11-21 08:42:43.58409+00	2025-11-21 08:42:43.584103+00	19	文件开版	文件开版	开版方式
2025-11-21 08:42:47.910144+00	2025-11-21 08:42:47.910152+00	20	定位	定位	做货方式
2025-11-21 08:43:02.652536+00	2025-11-21 08:43:02.652544+00	21	紧急已下单	紧急已下单	紧急程度
2025-11-23 13:09:39.526104+00	2025-11-23 13:09:39.526113+00	22	修改单	修改单	起版情况
2025-11-24 11:29:21.156305+00	2025-11-24 11:29:21.156323+00	23	周边	周边	地区
\.


--
-- Data for Name: basic_info_supplier; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_supplier (created_at, updated_at, id, name, area, email, mobile, contact, description, merchant_id) FROM stdin;
2025-11-26 03:14:51.868499+00	2025-11-26 03:14:51.868508+00	1	测试	123	\N	\N	\N	\N	1
\.


--
-- Data for Name: basic_info_userprofile; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_userprofile (created_at, updated_at, id, description, merchant_id, user_id) FROM stdin;
2025-11-24 03:12:45.2506+00	2025-11-24 03:12:45.250611+00	1		1	2
2025-11-24 05:45:22.720006+00	2025-11-24 05:45:22.720012+00	3	测试用户资料	1	5
2025-11-24 06:08:19.191142+00	2025-11-24 06:08:19.191149+00	4	supersuper111	1	6
2025-11-24 06:16:49.714832+00	2025-11-24 06:16:49.714838+00	5	supersuper111	1	7
\.


--
-- Data for Name: basic_info_vehicletransportrecord; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_vehicletransportrecord (created_at, updated_at, id, driver_name, contact_number, license_plate, delivery_date, merchant_id, vehicle_type_id) FROM stdin;
\.


--
-- Data for Name: basic_info_vehicletype; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_vehicletype (created_at, updated_at, id, name, description, merchant_id) FROM stdin;
\.


--
-- Data for Name: basic_info_warehouse; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.basic_info_warehouse (created_at, updated_at, id, name, location, contact, mobile, area, description, merchant_id, mode, type) FROM stdin;
2025-11-20 06:43:01.759659+00	2025-11-20 06:43:01.75967+00	3	中大（散）	中大2号	老铁	13310001999	\N		1	1	2
2025-11-25 09:11:29.252782+00	2025-11-25 09:11:29.252792+00	4	测试	\N	\N	\N	\N	\N	1	2	1
2025-11-20 06:42:36.740923+00	2025-11-25 10:18:01.333513+00	2	中大	中大1号	老铁	13310001999	\N		1	2	1
\.


--
-- Data for Name: business_object; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.business_object (id, created_at, updated_at, name, description, process_id, content_type_id, object_id) FROM stdin;
1	2025-11-18 09:55:35.336835+00	2025-11-18 09:55:35.336842+00			1	\N	\N
2	2025-11-18 09:58:01.451306+00	2025-11-18 09:58:01.451311+00			1	\N	\N
3	2025-11-18 09:58:20.381316+00	2025-11-18 09:58:20.38132+00			1	\N	\N
4	2025-11-18 10:03:03.629943+00	2025-11-18 10:03:03.629948+00	PrintingJob-1	印染任务 1 的流程实例	1	\N	\N
5	2025-11-18 10:09:47.339798+00	2025-11-18 10:09:47.339803+00			2	\N	\N
6	2025-11-18 10:10:04.823874+00	2025-11-18 10:10:04.823879+00			2	\N	\N
7	2025-11-18 10:10:55.526526+00	2025-11-18 10:10:55.526533+00			2	\N	\N
8	2025-11-18 10:15:58.290203+00	2025-11-18 10:15:58.290207+00	PrintingJob-2	印染任务 2 的流程实例	1	\N	\N
9	2025-11-18 10:35:25.880305+00	2025-11-18 10:35:25.880312+00			2	\N	\N
10	2025-11-18 10:42:48.817571+00	2025-11-18 10:42:48.817579+00	PrintingJob-3	印染任务 3 的流程实例	1	\N	\N
11	2025-11-18 10:42:48.848235+00	2025-11-18 10:42:48.84824+00	PrintingJob-4	印染任务 4 的流程实例	1	\N	\N
12	2025-11-19 01:44:43.687468+00	2025-11-19 01:44:43.687472+00			2	\N	\N
13	2025-11-19 02:00:49.486776+00	2025-11-19 02:00:49.486782+00			2	\N	\N
14	2025-11-19 02:00:59.586971+00	2025-11-19 02:00:59.586976+00			2	\N	\N
15	2025-11-19 02:04:48.934697+00	2025-11-19 02:04:48.934703+00			2	\N	\N
16	2025-11-19 05:10:28.186858+00	2025-11-19 05:10:28.186863+00	PrintingJob-5	印染任务 5 的流程实例	1	\N	\N
17	2025-11-19 06:16:00.259932+00	2025-11-19 06:16:00.259937+00	PrintingJob-6	印染任务 6 的流程实例	1	\N	\N
18	2025-11-19 08:21:50.459601+00	2025-11-19 08:21:50.459608+00	PrintingJob-7	印染任务 7 的流程实例	1	\N	\N
19	2025-11-19 09:28:09.461746+00	2025-11-19 09:28:09.461752+00			2	\N	\N
20	2025-11-19 09:28:40.842389+00	2025-11-19 09:28:40.842394+00			2	\N	\N
21	2025-11-20 01:52:49.286921+00	2025-11-20 01:52:49.286927+00			2	\N	\N
22	2025-11-20 03:48:01.385016+00	2025-11-20 03:48:01.385022+00			2	\N	\N
23	2025-11-20 03:49:28.254688+00	2025-11-20 03:49:28.254694+00			2	\N	\N
24	2025-11-20 03:49:37.951494+00	2025-11-20 03:49:37.951499+00			1	\N	\N
25	2025-11-20 06:55:48.528541+00	2025-11-20 06:55:48.528548+00			2	\N	\N
26	2025-11-21 03:10:15.020199+00	2025-11-21 03:10:15.020203+00	PrintingJob-8	印染任务 8 的流程实例	1	\N	\N
27	2025-11-21 08:45:33.732267+00	2025-11-21 08:45:33.732274+00			2	\N	\N
28	2025-11-22 02:39:05.939841+00	2025-11-22 02:39:05.939847+00			2	\N	\N
29	2025-11-23 13:11:03.642075+00	2025-11-23 13:11:03.642082+00			2	\N	\N
30	2025-11-24 11:33:15.711916+00	2025-11-24 11:33:15.711922+00			2	\N	\N
\.


--
-- Data for Name: business_purchaseorder; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.business_purchaseorder (created_at, updated_at, id, order_date, total_amount, remarks, merchant_id, supplier_id) FROM stdin;
\.


--
-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin;
1	2025-11-18 05:59:33.764516+00	2	jimi	1	[{"added": {}}]	4	1
2	2025-11-18 05:59:53.386691+00	2	jimi	2	[{"changed": {"fields": ["User permissions"]}}]	4	1
3	2025-11-18 06:00:31.466055+00	1	瑞彩印花	1	[{"added": {}}]	7	1
4	2025-11-18 06:00:44.202936+00	1	左威	1	[{"added": {}}]	8	1
5	2025-11-18 06:15:00.809879+00	1	(印染厂生产)生产记录	1	[{"added": {}}]	31	1
6	2025-11-18 06:17:56.054095+00	2	(印染厂生产)生产订单详情	1	[{"added": {}}]	31	1
7	2025-11-18 06:18:26.252531+00	3	(印染厂生产)打印米数	1	[{"added": {}}]	31	1
8	2025-11-18 06:18:36.506619+00	4	(印染厂生产)设备	1	[{"added": {}}]	31	1
9	2025-11-18 06:18:51.697773+00	5	(印染厂生产)日期	1	[{"added": {}}]	31	1
10	2025-11-18 06:36:14.719914+00	6	(印染厂生产)提交人	1	[{"added": {}}]	31	1
11	2025-11-18 06:37:41.608909+00	7	(印染厂滚筒)生产记录	1	[{"added": {}}]	31	1
12	2025-11-18 06:37:53.386955+00	8	(印染厂滚筒)生产记录明细	1	[{"added": {}}]	31	1
13	2025-11-18 06:38:45.857424+00	9	(印染厂滚筒)生产单上传	1	[{"added": {}}]	31	1
14	2025-11-18 06:39:07.772669+00	10	(印染厂滚筒)温度转速	1	[{"added": {}}]	31	1
15	2025-11-18 06:41:38.316225+00	11	(印染厂滚筒)设备	1	[{"added": {}}]	31	1
16	2025-11-18 06:41:46.718822+00	12	(印染厂滚筒)日期	1	[{"added": {}}]	31	1
17	2025-11-18 06:41:52.441714+00	13	(印染厂滚筒)提交人	1	[{"added": {}}]	31	1
18	2025-11-18 06:42:24.13544+00	1	待打纸	1	[{"added": {}}]	29	1
19	2025-11-18 06:42:40.876823+00	2	待滚筒	1	[{"added": {}}]	29	1
20	2025-11-18 06:42:51.439077+00	3	待送货	1	[{"added": {}}]	29	1
21	2025-11-18 06:43:03.132987+00	4	送货完成	1	[{"added": {}}]	29	1
22	2025-11-18 06:43:09.832876+00	5	待开单	1	[{"added": {}}]	29	1
23	2025-11-18 06:43:24.578356+00	6	订单完结	1	[{"added": {}}]	29	1
24	2025-11-18 06:44:18.308781+00	1	工厂印染	1	[{"added": {}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5de5\\u5382\\u5370\\u67d3 -> \\u5f85\\u6253\\u7eb8 (1)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5de5\\u5382\\u5370\\u67d3 -> \\u5f85\\u6eda\\u7b52 (2)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5de5\\u5382\\u5370\\u67d3 -> \\u5f85\\u9001\\u8d27 (3)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5de5\\u5382\\u5370\\u67d3 -> \\u9001\\u8d27\\u5b8c\\u6210 (4)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5de5\\u5382\\u5370\\u67d3 -> \\u5f85\\u5f00\\u5355 (5)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5de5\\u5382\\u5370\\u67d3 -> \\u8ba2\\u5355\\u5b8c\\u7ed3 (6)"}}]	30	1
25	2025-11-18 07:03:18.962392+00	14	(印染厂开版画图)开版编号	1	[{"added": {}}]	31	1
26	2025-11-18 07:04:21.326366+00	15	(印染厂开版画图)时间	1	[{"added": {}}]	31	1
27	2025-11-18 07:04:40.367528+00	16	(印染厂开版画图)状态	1	[{"added": {}}]	31	1
28	2025-11-18 07:04:50.258605+00	17	设计师名称	1	[{"added": {}}]	31	1
29	2025-11-18 07:05:16.159648+00	17	(印染厂开版画图)设计师名称	2	[{"changed": {"fields": ["\\u53c2\\u6570\\u952e", "\\u53c2\\u6570\\u503c"]}}]	31	1
30	2025-11-18 07:06:26.838863+00	18	(印染厂开版画图)电脑位置	1	[{"added": {}}]	31	1
31	2025-11-18 07:06:40.088982+00	19	(印染厂开版画图)描述	1	[{"added": {}}]	31	1
32	2025-11-18 07:07:20.127062+00	20	(印染厂开版画图)附件	1	[{"added": {}}]	31	1
33	2025-11-18 07:07:31.519147+00	21	(印染厂开版画图)完成时间	1	[{"added": {}}]	31	1
34	2025-11-18 07:09:18.686085+00	15	(印染厂开版画图)开始时间	2	[{"changed": {"fields": ["\\u53c2\\u6570\\u952e", "\\u53c2\\u6570\\u503c"]}}]	31	1
35	2025-11-18 07:10:11.825565+00	22	(印染厂开版画图)完成数量	1	[{"added": {}}]	31	1
36	2025-11-18 07:33:51.375829+00	23	test_param_001	3		31	1
37	2025-11-18 07:58:28.856338+00	24	test_param_002	3		31	1
38	2025-11-18 08:05:17.209889+00	51	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)开版编号	3		31	1
39	2025-11-18 08:05:17.20991+00	50	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)开始时间	3		31	1
40	2025-11-18 08:05:17.209918+00	49	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)状态	3		31	1
41	2025-11-18 08:05:17.209925+00	48	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)设计师名称	3		31	1
42	2025-11-18 08:05:17.209931+00	47	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)电脑位置	3		31	1
43	2025-11-18 08:05:17.209937+00	46	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)描述	3		31	1
44	2025-11-18 08:05:17.209943+00	45	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)附件	3		31	1
45	2025-11-18 08:05:17.209949+00	44	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)完成时间	3		31	1
46	2025-11-18 08:05:17.209955+00	43	(印染厂开版套样, 印染厂开版改图, 印染厂开版配色)完成数量	3		31	1
47	2025-11-18 08:08:01.156317+00	27	(印染厂开版调色)附件	2	[{"changed": {"fields": ["\\u662f\\u5426\\u56fe\\u7247\\u8def\\u5f84"]}}]	31	1
48	2025-11-18 08:08:06.425919+00	36	(印染厂开版找图)附件	2	[{"changed": {"fields": ["\\u662f\\u5426\\u56fe\\u7247\\u8def\\u5f84"]}}]	31	1
49	2025-11-18 08:08:10.055754+00	54	(印染厂开版套样)附件	2	[{"changed": {"fields": ["\\u662f\\u5426\\u56fe\\u7247\\u8def\\u5f84"]}}]	31	1
50	2025-11-18 08:08:14.833679+00	63	(印染厂开版配色)附件	2	[{"changed": {"fields": ["\\u662f\\u5426\\u56fe\\u7247\\u8def\\u5f84"]}}]	31	1
51	2025-11-18 08:08:18.605846+00	72	(印染厂开版改图)附件	2	[{"changed": {"fields": ["\\u662f\\u5426\\u56fe\\u7247\\u8def\\u5f84"]}}]	31	1
52	2025-11-18 08:08:51.909492+00	81	(印染厂开版P图)附件	2	[{"changed": {"fields": ["\\u662f\\u5426\\u56fe\\u7247\\u8def\\u5f84"]}}]	31	1
53	2025-11-18 08:12:38.122506+00	7	画图	1	[{"added": {}}]	29	1
54	2025-11-18 08:12:47.851618+00	8	调色	1	[{"added": {}}]	29	1
55	2025-11-18 08:13:08.01894+00	9	套样	1	[{"added": {}}]	29	1
56	2025-11-18 08:13:23.681664+00	10	改图	1	[{"added": {}}]	29	1
57	2025-11-18 08:13:31.884636+00	11	P图	1	[{"added": {}}]	29	1
58	2025-11-18 08:13:40.578384+00	12	配色	1	[{"added": {}}]	29	1
59	2025-11-18 08:13:49.183222+00	13	找图	1	[{"added": {}}]	29	1
60	2025-11-18 08:14:45.362321+00	12	配色	2	[{"changed": {"fields": ["\\u5173\\u8054\\u53c2\\u6570"]}}]	29	1
61	2025-11-18 08:15:12.813968+00	13	找图	2	[{"changed": {"fields": ["\\u5173\\u8054\\u53c2\\u6570"]}}]	29	1
62	2025-11-18 10:09:07.215232+00	2	开版	1	[{"added": {}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5f00\\u7248 -> \\u753b\\u56fe (1)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5f00\\u7248 -> \\u8c03\\u8272 (2)"}}, {"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5f00\\u7248 -> \\u5957\\u6837 (3)"}}]	30	1
63	2025-11-18 10:13:04.721271+00	2	开版	2	[]	30	1
64	2025-11-18 10:13:23.903652+00	2	开版	2	[{"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5f00\\u7248 -> \\u627e\\u56fe (4)"}}]	30	1
65	2025-11-19 01:45:36.045179+00	8	待调色	2	[{"changed": {"fields": ["\\u72b6\\u6001\\u540d\\u79f0"]}}]	29	1
66	2025-11-19 01:45:39.684091+00	2	开版	2	[]	30	1
67	2025-11-19 02:13:50.033205+00	14	任务完成	1	[{"added": {}}]	29	1
68	2025-11-19 02:14:21.623907+00	2	开版	2	[{"added": {"name": "\\u6d41\\u7a0b\\u8282\\u70b9\\u5173\\u8054", "object": "\\u5f00\\u7248 -> \\u4efb\\u52a1\\u5b8c\\u6210 (5)"}}]	30	1
69	2025-11-19 08:12:47.374521+00	3	映雪	1	[{"added": {}}]	4	1
70	2025-11-19 08:14:04.719762+00	3	映雪	2	[{"changed": {"fields": ["User permissions"]}}]	4	1
71	2025-11-19 08:14:37.879969+00	2	映雪	1	[{"added": {}}]	8	1
72	2025-11-20 05:39:43.3355+00	1	设计师	1	[{"added": {}}]	3	1
73	2025-11-20 06:06:12.752762+00	1	设计师	3		3	1
74	2025-11-20 06:10:02.468122+00	2	设计师	1	[{"added": {}}]	36	1
75	2025-11-20 06:10:09.964149+00	1	左威	2	[{"changed": {"fields": ["\\u804c\\u4f4d"]}}]	8	1
76	2025-11-20 06:10:14.372307+00	2	映雪	2	[{"changed": {"fields": ["\\u804c\\u4f4d"]}}]	8	1
77	2025-11-20 06:42:36.741573+00	2	中大	1	[{"added": {}}]	17	1
78	2025-11-20 06:43:01.760474+00	3	中大（散）	1	[{"added": {}}]	17	1
79	2025-11-20 07:53:27.081642+00	1	出入库记录 1 - 仓库：中大	1	[{"added": {}}]	20	1
80	2025-11-20 07:53:51.401153+00	1	出入库记录 1 - 仓库：中大	3		20	1
81	2025-11-20 07:54:03.431107+00	2	出入库记录 2 - 仓库：中大	1	[{"added": {}}]	20	1
82	2025-11-20 07:54:28.235099+00	1	库存变动明细 1 - 记录ID: 2	1	[{"added": {}}]	21	1
83	2025-11-20 08:00:58.976268+00	3	出入库记录 3 - 仓库：中大	1	[{"added": {}}]	20	1
84	2025-11-20 08:01:23.823488+00	2	库存变动明细 2 - 记录ID: 3	1	[{"added": {}}]	21	1
85	2025-11-20 08:02:18.095284+00	4	出入库记录 4 - 仓库：中大（散）	1	[{"added": {}}]	20	1
86	2025-11-20 08:02:47.394849+00	3	库存变动明细 3 - 记录ID: 4	1	[{"added": {}}]	21	1
87	2025-11-24 03:12:45.251366+00	1	jimi's Profile	1	[{"added": {}}]	37	1
88	2025-11-24 03:13:33.181153+00	2	映雪's Profile	1	[{"added": {}}]	37	1
89	2025-11-24 03:16:35.368619+00	2	映雪's Profile	3		37	1
90	2025-11-24 06:15:31.40043+00	2	jimi	2	[{"changed": {"fields": ["User permissions", "Last login"]}}]	4	1
91	2025-11-24 09:16:10.732374+00	2	jimi	2	[{"changed": {"fields": ["User permissions"]}}]	4	1
92	2025-11-25 06:12:23.660069+00	2	jimi	2	[{"changed": {"fields": ["User permissions"]}}]	4	1
93	2025-11-25 09:20:41.470473+00	9	出入库记录 9 - 仓库：中大	1	[{"added": {}}]	20	1
94	2025-11-25 09:21:02.981897+00	25	库存变动明细 25 - 记录ID: 9	1	[{"added": {}}]	21	1
95	2025-11-25 09:28:40.652361+00	10	出入库记录 10 - 仓库：中大	1	[{"added": {}}]	20	1
96	2025-11-25 09:28:55.964661+00	26	库存变动明细 26 - 记录ID: 10	1	[{"added": {}}]	21	1
97	2025-11-25 10:12:01.371549+00	11	出入库记录 11 - 仓库：中大	1	[{"added": {}}]	20	1
98	2025-11-25 10:12:41.75256+00	27	库存变动明细 27 - 记录ID: 11	1	[{"added": {}}]	21	1
99	2025-11-25 10:12:59.643169+00	27	库存变动明细 27 - 记录ID: 11	2	[{"changed": {"fields": ["\\u6240\\u6d88\\u8017\\u7684\\u5165\\u5e93\\u660e\\u7ec6"]}}]	21	1
\.


--
-- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.django_content_type (id, app_label, model) FROM stdin;
1	admin	logentry
2	auth	permission
3	auth	group
4	auth	user
5	contenttypes	contenttype
6	sessions	session
7	basic_info	merchant
8	basic_info	employee
9	basic_info	deviceinfo
10	basic_info	customer
11	basic_info	bankaccount
12	basic_info	productcategory
13	basic_info	product
14	basic_info	supplier
15	basic_info	vehicletype
16	basic_info	vehicletransportrecord
17	basic_info	warehouse
18	basic_info	quickinput
19	stock	purchaseorder
20	stock	stockchangerecord
21	stock	stockchangedetail
22	stock	stocksnapshot
23	stock	inventory
24	stock	stockfreeze
25	api_v1	uploadedfile
26	printing	printingorder
27	printing	printingjob
28	printing	plateorder
29	stateflow	state
30	stateflow	process
31	stateflow	stateparameter
32	stateflow	processnode
33	stateflow	businessobject
34	stateflow	stateflowrecord
35	stateflow	statelogparameterrecord
36	basic_info	employeetype
37	basic_info	userprofile
38	business	purchaseorder
\.


--
-- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.django_migrations (id, app, name, applied) FROM stdin;
1	contenttypes	0001_initial	2025-11-18 05:57:57.606096+00
2	auth	0001_initial	2025-11-18 05:57:57.649887+00
3	admin	0001_initial	2025-11-18 05:57:57.661912+00
4	admin	0002_logentry_remove_auto_add	2025-11-18 05:57:57.665247+00
5	admin	0003_logentry_add_action_flag_choices	2025-11-18 05:57:57.668422+00
6	api_v1	0001_initial	2025-11-18 05:57:57.678425+00
7	contenttypes	0002_remove_content_type_name	2025-11-18 05:57:57.685116+00
8	auth	0002_alter_permission_name_max_length	2025-11-18 05:57:57.688996+00
9	auth	0003_alter_user_email_max_length	2025-11-18 05:57:57.692915+00
10	auth	0004_alter_user_username_opts	2025-11-18 05:57:57.696222+00
11	auth	0005_alter_user_last_login_null	2025-11-18 05:57:57.700191+00
12	auth	0006_require_contenttypes_0002	2025-11-18 05:57:57.701563+00
13	auth	0007_alter_validators_add_error_messages	2025-11-18 05:57:57.705386+00
14	auth	0008_alter_user_username_max_length	2025-11-18 05:57:57.713231+00
15	auth	0009_alter_user_last_name_max_length	2025-11-18 05:57:57.718913+00
16	auth	0010_alter_group_name_max_length	2025-11-18 05:57:57.724371+00
17	auth	0011_update_proxy_permissions	2025-11-18 05:57:57.728075+00
18	auth	0012_alter_user_first_name_max_length	2025-11-18 05:57:57.731791+00
19	basic_info	0001_initial	2025-11-18 05:57:57.853129+00
20	basic_info	0002_quickinput	2025-11-18 05:57:57.858206+00
21	basic_info	0003_alter_quickinput_unique_together	2025-11-18 05:57:57.861506+00
22	basic_info	0004_customer_visible_employees	2025-11-18 05:57:57.878024+00
23	basic_info	0005_customer_created_by	2025-11-18 05:57:57.887911+00
24	basic_info	0006_alter_product_merchant	2025-11-18 05:57:57.895034+00
25	basic_info	0007_warehouse_mode	2025-11-18 05:57:57.901277+00
26	basic_info	0008_merchant_auto_complete_stock_change	2025-11-18 05:57:57.90704+00
27	basic_info	0009_product_minimum_quantity	2025-11-18 05:57:57.912464+00
28	stateflow	0001_initial	2025-11-18 05:57:57.926089+00
29	stateflow	0002_remove_state_data_stateparameter	2025-11-18 05:57:57.9356+00
30	stateflow	0003_alter_process_options_alter_state_options_and_more	2025-11-18 05:57:57.951752+00
31	stateflow	0004_remove_state_previous	2025-11-18 05:57:57.9565+00
32	stateflow	0005_alter_state_description_and_more	2025-11-18 05:57:57.967543+00
33	stateflow	0006_remove_process_state_nodes_processnode_and_more	2025-11-18 05:57:57.983497+00
34	stateflow	0007_alter_process_current_state	2025-11-18 05:57:57.989058+00
35	stateflow	0008_remove_process_current_state_order	2025-11-18 05:57:58.005641+00
36	stateflow	0009_remove_order_current_state_orderstatelog	2025-11-18 05:57:58.032921+00
37	stateflow	0010_remove_orderstatelog_notes_and_more	2025-11-18 05:57:58.069827+00
38	stateflow	0011_rename_order_to_business_object	2025-11-18 05:57:58.150215+00
39	stateflow	0012_alter_businessobject_content_type_and_more	2025-11-18 05:57:58.17801+00
40	stateflow	0013_alter_stateflowrecord_unique_together	2025-11-18 05:57:58.187343+00
41	stateflow	0014_alter_process_options	2025-11-18 05:57:58.190803+00
42	stateflow	0015_stateparameter_attachment	2025-11-18 05:57:58.193874+00
43	printing	0001_initial	2025-11-18 05:57:58.231485+00
44	printing	0002_alter_printingorder_craft_and_more	2025-11-18 05:57:58.237799+00
45	printing	0003_remove_printingjob_status	2025-11-18 05:57:58.248458+00
46	printing	0004_printingorder_is_invalid	2025-11-18 05:57:58.252566+00
47	printing	0005_alter_printingorder_options	2025-11-18 05:57:58.256683+00
48	printing	0006_printingjob_business_object_printingorder_process	2025-11-18 05:57:58.282396+00
49	printing	0007_alter_printingjob_description_and_more	2025-11-18 05:57:58.295621+00
50	printing	0008_plateorder	2025-11-18 05:57:58.324365+00
51	printing	0009_remove_plateorder_development_status	2025-11-18 05:57:58.331238+00
52	printing	0010_remove_plateorder_plate_code	2025-11-18 05:57:58.338116+00
53	printing	0011_alter_plateorder_options_plateorder_is_invalid	2025-11-18 05:57:58.350452+00
54	printing	0012_plateorder_process	2025-11-18 05:57:58.357239+00
55	sessions	0001_initial	2025-11-18 05:57:58.365556+00
56	stateflow	0016_alter_stateparameter_key_alter_stateparameter_value	2025-11-18 05:57:58.370806+00
57	stateflow	0017_state_parameter_many_to_many	2025-11-18 05:57:58.427689+00
58	stateflow	0018_remove_stateparameter_name	2025-11-18 05:57:58.430207+00
59	stateflow	0019_stateparameter_is_required	2025-11-18 05:57:58.433063+00
60	stateflow	0020_stateparameter_is_image_path	2025-11-18 05:57:58.435565+00
61	stateflow	0021_statelogparameterrecord	2025-11-18 05:57:58.454384+00
62	stock	0001_initial	2025-11-18 05:57:58.565539+00
63	stock	0002_stockfreeze	2025-11-18 05:57:58.605245+00
64	stock	0003_remove_inventory_minimum_quantity	2025-11-18 05:57:58.614748+00
65	printing	0013_plateorder_fabric_source_alter_plateorder_process	2025-11-20 03:24:40.935777+00
66	printing	0014_auto_20251120_1144	2025-11-20 03:47:32.344205+00
67	basic_info	0010_warehouse_type	2025-11-20 05:11:33.321558+00
68	basic_info	0011_remove_employee_job_type_employeetype_and_more	2025-11-20 05:56:35.088569+00
69	printing	0015_plateorder_designer	2025-11-20 06:48:57.234756+00
70	api_v1	0002_alter_uploadedfile_path	2025-11-24 03:07:15.613802+00
71	basic_info	0012_userprofile	2025-11-24 03:07:15.640816+00
72	stock	0004_alter_stockchangerecord_source_type	2025-11-24 03:07:15.658993+00
73	basic_info	0013_alter_customer_options	2025-11-24 09:06:44.27194+00
74	stock	0005_stockchangedetail_consume_fields	2025-11-24 09:06:44.307805+00
75	business	0001_initial	2025-11-25 06:08:12.742536+00
76	stock	0006_remove_purchaseorder	2025-11-25 06:08:12.745336+00
\.


--
-- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.django_session (session_key, session_data, expire_date) FROM stdin;
pbsoimfkt3qhp2caalbpzzfmnoia4ary	.eJzNmktz4ygQgP9Kyuck1guB5rj3Pe5pPZXiaSuRJa0emcpO5b8vIMeRCbER8pZ8CQ40DXzNoxv0e_WE-2731Le8ecrZ6scqXN2P8wimL7xUBewZl9vqkVZl1-TkUYk8Hkrbxz8rxos_DrInCna43cnaHKU0RSlJeUqzFDJEMIwTIHic0jATUZwBGCNA05hEGZQp53EcZDhFAWdhBJTSPS_7Vur6-_dmVeI936x-3G1Wm02fcEFkAiIcyiRliUogDshmdS8lctnnQVbg5k7gB5o3tOBD4V71vFXFFrUh_lQLiMhkgmgaOqjtm2IoW2O2z8t12-GOi6L6tSZ9m5e8bSvyzGm3HsQxY3-51pCyh1qk4ZjRpt-T7wbgx-X9_u5aLN5_qmKeM1UaBkFk0Q0YB0pbBHUTMY1UbwEMZnHWv2rcyJY63rhwNmoswtmXhck5tuged0wmIkxVZpxFszjXTUXl5HQB_CG6CFnf0Ztkk4u6UYSU1WBAsvkz2Hni3gJV95GbVMEk3bLvIYxVZgCSa8zeUp4CE2awFr8x3lOYmPRTS0swInqFBMGo00ik1NiXZCYhKgECgPnzvai2xy244bRqmPMKsFRdxEb_BznTYnBiu1e1kfo10TajKjdnE38rIDMjtB3psba1dHrV6oREDwYmQTrPOz1Vm5KY6zEEQv2XBuo_yKlLI6a16yYvu7zcHn88V-R7Q1ul3W3sS-ciaF8ihknD4GJLMpaJdKbX2vrCT66Rc_7qN_I3QNydg8nYumxEEOiFm6ArMi7kXuQM-FN4GbqeBEy6kblLZbbGoFARB0SJPphYkuhjKnNxYc_G0Bgq7QnVHCgcNvTIJTQ3rUhwm9OnvBSV8sNYTzsqDSTn_9v3xjxTZ4JNPdlY42g_HqZNbVHIqe5pJrzMegrjW2A7QZXB1haLJFyvZ8Cz-Jpsf-GG76q-PRN8WKUX4uvHwORrizYSkZFBt1IKQOLjuIxQtX1dF_m5bd4mvAzWqUM3edpiARALpI-hGA-OrvZ-SeRzdzki9cp3uZTrGly2ddV0l6KAy1UXQe5LxySPbLoToHR_XORda6fg-7qo3rjbRnEUXoauJwGTrtVNUctDaotieE26e97QHS7dDrmj8DJ0PQkYdCNrXDP4mNemS_u2q_aOm_FReBm6ngRMuvaIhquNPo2h1i30MQrC1CeiGQH7p8_pS17WvdvsHYkvQ9iTgknY9pKECNExfxZcdf4y_ppTrn-6EB6JL0LYl4JJ2PaGdDgrkUDpKH6BaGY89-EcvNVuB9xYfhnGnhxMxrY4LkuE1o0SfTvJouN-P4sxweULprTqHY-5sfwijH05mIyB6VjYJvYhqgFE-y4w1Q6iflGZd0sbahx6f_sMnWZexlf0Zfir3JAtv3wVb68wwaiecGyc5wExbWuNfUa99cWbl6-87M5eLZmCy-B0HqtJzhq7nHQMhEQ_lauwf9Y0FQ3n_559XzVFF2c5ZfQmWWvccqo7ZjqJsA5DZ73WfFndjHc4LyZsB4cKt8Dck4thgdga25y2NHihMEx9TtURwrbEdburvh6pZV8Uy8J0HqKJzxa8ZCEdvMmIbbzfYQZuda_i5_bSO4xNeJE5OnnoJk_zASay3YAighOd6NtrkCCqoyQ0XFQlln63qs12l_OCPeCiu-iLQBCh8x6U-mLTbjn1QedaFX9vr08RdytdYdC2x37HgZp2sjnjcvexfE3TfihpH2i1PYNs21R9fYHZILM4NKeBmshM3zq2B40IDNu6_kwpytSLPAoEm_u2GChXMhGRfnEFCOpM4XOK4jp_eg3XfV1UmHEm8uKMv2ITnmA-TxrWFxk_AqbRoJmRvv9cvf8He7uCiw:1vLuTn:9mpos00LpzQqh1_HZUVfRUBLxHwEHsQ2fAFkpQ7KweM	2025-12-04 02:33:03.066594+00
h4nbxaigtax9cnxud2hb4sd0uexilmw7	.eJzNmklz6ygQgP9KyucsWkCgd5z7HOc0mUqxxkpkSaMlrzKv8t8HUBaZYBshv5IvwUFNA1-Lphv0a_NAhn77MHSifSj45scm3lxP6yhhz6LSD_gTqR7rW1ZXfVvQWy1y-_60u_2z5qL84112T8GWdFvVWuCMZTijmchYniGOKUEpgFKkGYtzmaQ5RCmGLEtpkiNVCpGmUU4yHAkeJ1Ar3Ylq6JSuv3_dbyqyE_ebH1f3m_v7AYiYqAImJFZFRhJdQATR_eZaSRRqzKOsJO2VJDesaFkpxoc7PfJOP_6mNo8ZUgXmCdf6Ugg99A1tOT67I3xXVHd06IpKdN1dM7RMwRB1y0V7NwoTzv_yk1eS721oKwhn7bCj7lGHwni7vloM4O0f_VgUXD-NoyixK2JHL0BIOhkwB7pAJKLLrLfPAVKZ66mwLA4wYteTXsiy_vlpnpo-CdYfNuPBFnMMGcbFiTiMhW0-4NANuYBaW4JMFylL9GghihZxNr8a0qqe-mPL5WCLVTiHsrA5Q4fu6cBUIeNMV6Z5sohz09ZMexsPwB-iq5ANnb1NNjupGydYWw1FNF_-Bnu_uJdA1X_mNlU0S7cae4xSXRlBcI63t1K7wIw32IhfGO85TGz62NETSqhZIWrL_eoXy4xZfklVUqoLKIPCG-s1LuvHTxfcCqZiF-8V4Gi6io1-BznbYvnMfs9qI_1rpm0mTS7OJsFWiCPbLKlrS0-NrVXKolcnomYyCETZsuh0X21GU2HmEEn9Xxbp_5BgPp3Y1m7aouqL6vHzx1NNDxvaKe1v41A6J0GHErFtnJzsSWWiiV9240X7RHp3QP4CiPtzsBk7l42MIrNwAT4j41L5Im_AX8Lr0A0kYNMFdoUrh4ZI6owDYWA2Jg6A2aZynxD2aA5N9AEABMxwYGh06IlPav7tIIR0BXsoKlnrOIwPrGfKQOr9fz1yGHK4zQybBrJx5tFhPGwTurKQfd3zTHia9RzGl8B2hiqLrSsXAcKsZyjy9Jxsf5JWbOuhO5J8OKVX4hvGwObryjaAzOmoWyuFEIQELhNU3dA0ZXH0mNQhvA7WuVO3ebpyAZhKbLahlIyBrol-aRJydjkh9SK2hZLrW1J1Td32p7KA001XQR5KxyKfRC7dAGrdHwd5EWDGxoBP_D3CC_c_sWvK-lWI_rXxcx17DdZhfhYutgWcocx-T-fy1R8IZ_G-CNahnjpx5j7aQSltSYrOSXcn9GVV5RdmfAqvQzeQgE3XmfWMUf656bKh6-ud53b4KbwO3UACNl3nTZMU2s9kKTK6pQlkYJwFXct-Aft3KNhzUTWD39s7EV-HcCAFm7DrjgnBBLutpyszc0zNwq7BvwDqzwJUpiGL0s8ZT-VXIX4eKjZ_Vw6IKTWnXnl0Vv_BxUvBhPnpA3wivgrvUAo2YVcm-B4tYomzc0Z0H-Gxb0A3lV-HcSAHm7ErG8yBNLqxCRIxTz7320WMKameCWP14BlmTOVXYRzKwWac2ymjy3W_5_WQmtgRZSZFMneKy-4pYoPD7C9fhwcLr6Nq9jz-1WHgozh9GeVuMMOogXBcnJcBsUyZOjOgyWhD8RbVi6j6o4ertuA6OL3napNzZjd7A4MxNR-L6IOvRa-pbIX47-gXBrbo6iznzN4m68xs9nWn3BQJMYHRovvKb6ubi54U5Qx38N7gEpgHcrEt4Mx-9nsaswAUZyG76gRhV5Gm29bft9RqKMt1YXpP0cYH7QrXSR-mBJjC3DdAgJnJqvB4tAgcw-90n922ECW_IWV_cu-c5g3uCejUxm0h_QG1yXwOr4MvEf83_wyTPpEgHZuobRZXgK5Wi-P7p-5DSXfD6scjyB7bemhOMBtlVofmNVEbGbYrnGmkxHB0QyY3TXL9DQWOJF8WCwIR6dAHyMTckUOMTKUM8fqkKR5e4ruhKWvCBT9-GOASnmG-QBrOO7QwApbRgP3lUapC_M3b_4NBlrY:1vNpQw:JJKhKn0v0UW9V6_rJqP1yuhP01rBLH7J3y9JvZbBFK8	2025-12-09 09:34:02.767355+00
nie1ws9ihz1c2tlxhfbz47rmvgtv4p6c	.eJzNmklz6ygQgP9KyucsWkCgd5z7HOc0mUqxxkpkSaMlrzKv8t8HUBaZYBshv5IvwUFNA1-Lphv0a_NAhn77MHSifSj45scm3lxP6yhhz6LSD_gTqR7rW1ZXfVvQWy1y-_60u_2z5qL84112T8GWdFvVWuCMZTijmchYniGOKUEpgFKkGYtzmaQ5RCmGLEtpkiNVCpGmUU4yHAkeJ1Ar3Ylq6JSuv3_dbyqyE_ebH1f3m_v7AYiYqAImJFZFRhJdQATR_eZaSRRqzKOsJO2VJDesaFkpxoc7PfJOP_6mNo8ZUgXmCdf6Ugg99A1tOT67I3xXVHd06IpKdN1dM7RMwRB1y0V7NwoTzv_yk1eS721oKwhn7bCj7lGHwni7vloM4O0f_VgUXD-NoyixK2JHL0BIOhkwB7pAJKLLrLfPAVKZ66mwLA4wYteTXsiy_vlpnpo-CdYfNuPBFnMMGcbFiTiMhW0-4NANuYBaW4JMFylL9GghihZxNr8a0qqe-mPL5WCLVTiHsrA5Q4fu6cBUIeNMV6Z5sohz09ZMexsPwB-iq5ANnb1NNjupGydYWw1FNF_-Bnu_uJdA1X_mNlU0S7cae4xSXRlBcI63t1K7wIw32IhfGO85TGz62NETSqhZIWrL_eoXy4xZfklVUqoLKIPCG-s1LuvHTxfcCqZiF-8V4Gi6io1-BznbYvnMfs9qI_1rpm0mTS7OJsFWiCPbLKlrS0-NrVXKolcnomYyCETZsuh0X21GU2HmEEn9Xxbp_5BgPp3Y1m7aouqL6vHzx1NNDxvaKe1v41A6J0GHErFtnJzsSWWiiV9240X7RHp3QP4CiPtzsBk7l42MIrNwAT4j41L5Im_AX8Lr0A0kYNMFdoUrh4ZI6owDYWA2Jg6A2aZynxD2aA5N9AEABMxwYGh06IlPav7tIIR0BXsoKlnrOIwPrGfKQOr9fz1yGHK4zQybBrJx5tFhPGwTurKQfd3zTHia9RzGl8B2hiqLrSsXAcKsZyjy9Jxsf5JWbOuhO5J8OKVX4hvGwObryjaAzOmoWyuFEIQELhNU3dA0ZXH0mNQhvA7WuVO3ebpyAZhKbLahlIyBrol-aRJydjkh9SK2hZLrW1J1Td32p7KA001XQR5KxyKfRC7dAGrdHwd5EWDGxoBP_D3CC_c_sWvK-lWI_rXxcx17DdZhfhYutgWcocx-T-fy1R8IZ_G-CNahnjpx5j7aQSltSYrOSXcn9GVV5RdmfAqvQzeQgE3XmfWMUf656bKh6-ud53b4KbwO3UACNl3nTZMU2s9kKTK6pQlkYJwFXct-Aft3KNhzUTWD39s7EV-HcCAFm7DrjgnBBLutpyszc0zNwq7BvwDqzwJUpiGL0s8ZT-VXIX4eKjZ_Vw6IKTWnXnl0Vv_BxUvBhPnpA3wivgrvUAo2YVcm-B4tYomzc0Z0H-Gxb0A3lV-HcSAHm7ErG8yBNLqxCRIxTz7320WMKameCWP14BlmTOVXYRzKwWac2ymjy3W_5_WQmtgRZSZFMneKy-4pYoPD7C9fhwcLr6Nq9jz-1WHgozh9GeVuMMOogXBcnJcBsUyZOjOgyWhD8RbVi6j6o4ertuA6OL3napNzZjd7A4MxNR-L6IOvRa-pbIX47-gXBrbo6iznzN4m68xs9nWn3BQJMYHRovvKb6ubi54U5Qx38N7gEpgHcrEt4Mx-9nsaswAUZyG76gRhV5Gm29bft9RqKMt1YXpP0cYH7QrXSR-mBJjC3DdAgJnJqvB4tAgcw-90n922ECW_IWV_cu-c5g3uCejUxm0h_QG1yXwOr4MvEf83_wyTPpEgHZuobRZXgK5Wi-P7p-5DSXfD6scjyB7bemhOMBtlVofmNVEbGbYrnGmkxHB0QyY3TXL9DQWOJF8WCwIR6dAHyMTckUOMTKUM8fqkKR5e4ruhKWvCBT9-GOASnmG-QBrOO7QwApbRgP3lUapC_M3b_4NBlrY:1vNnsc:A97uezglXSc0c9SooQ51Ya2whoGFmD_LkLGlbrTqyKk	2025-12-09 07:54:30.634534+00
ntf30dd3of18gsyba1risn3yscoj0t6y	.eJzNmktz4ygQgP9Kyuck1guB5rj3Pe5pPZXiaSuRJa0emcpO5b8vIMeRCbER8pZ8CQ40DXzNoxv0e_WE-2731Le8ecrZ6scqXN2P8wimL7xUBewZl9vqkVZl1-TkUYk8Hkrbxz8rxos_DrInCna43cnaHKU0RSlJeUqzFDJEMIwTIHic0jATUZwBGCNA05hEGZQp53EcZDhFAWdhBJTSPS_7Vur6-_dmVeI936x-3G1Wm02fcEFkAiIcyiRliUogDshmdS8lctnnQVbg5k7gB5o3tOBD4V71vFXFFrUh_lQLiMhkgmgaOqjtm2IoW2O2z8t12-GOi6L6tSZ9m5e8bSvyzGm3HsQxY3-51pCyh1qk4ZjRpt-T7wbgx-X9_u5aLN5_qmKeM1UaBkFk0Q0YB0pbBHUTMY1UbwEMZnHWv2rcyJY63rhwNmoswtmXhck5tuged0wmIkxVZpxFszjXTUXl5HQB_CG6CFnf0Ztkk4u6UYSU1WBAsvkz2Hni3gJV95GbVMEk3bLvIYxVZgCSa8zeUp4CE2awFr8x3lOYmPRTS0swInqFBMGo00ik1NiXZCYhKgECgPnzvai2xy244bRqmPMKsFRdxEb_BznTYnBiu1e1kfo10TajKjdnE38rIDMjtB3psba1dHrV6oREDwYmQTrPOz1Vm5KY6zEEQv2XBuo_yKlLI6a16yYvu7zcHn88V-R7Q1ul3W3sS-ciaF8ihknD4GJLMpaJdKbX2vrCT66Rc_7qN_I3QNydg8nYumxEEOiFm6ArMi7kXuQM-FN4GbqeBEy6kblLZbbGoFARB0SJPphYkuhjKnNxYc_G0Bgq7QnVHCgcNvTIJTQ3rUhwm9OnvBSV8sNYTzsqDSTn_9v3xjxTZ4JNPdlY42g_HqZNbVHIqe5pJrzMegrjW2A7QZXB1haLJFyvZ8Cz-Jpsf-GG76q-PRN8WKUX4uvHwORrizYSkZFBt1IKQOLjuIxQtX1dF_m5bd4mvAzWqUM3edpiARALpI-hGA-OrvZ-SeRzdzki9cp3uZTrGly2ddV0l6KAy1UXQe5LxySPbLoToHR_XORda6fg-7qo3rjbRnEUXoauJwGTrtVNUctDaotieE26e97QHS7dDrmj8DJ0PQkYdCNrXDP4mNemS_u2q_aOm_FReBm6ngRMuvaIhquNPo2h1i30MQrC1CeiGQH7p8_pS17WvdvsHYkvQ9iTgknY9pKECNExfxZcdf4y_ppTrn-6EB6JL0LYl4JJ2PaGdDgrkUDpKH6BaGY89-EcvNVuB9xYfhnGnhxMxrY4LkuE1o0SfTvJouN-P4sxweULprTqHY-5sfwijH05mIyB6VjYJvYhqgFE-y4w1Q6iflGZd0sbahx6f_sMnWZexlf0Zfir3JAtv3wVb68wwaiecGyc5wExbWuNfUa99cWbl6-87M5eLZmCy-B0HqtJzhq7nHQMhEQ_lauwf9Y0FQ3n_559XzVFF2c5ZfQmWWvccqo7ZjqJsA5DZ73WfFndjHc4LyZsB4cKt8Dck4thgdga25y2NHihMEx9TtURwrbEdburvh6pZV8Uy8J0HqKJzxa8ZCEdvMmIbbzfYQZuda_i5_bSO4xNeJE5OnnoJk_zASay3YAighOd6NtrkCCqoyQ0XFQlln63qs12l_OCPeCiu-iLQBCh8x6U-mLTbjn1QedaFX9vr08RdytdYdC2x37HgZp2sjnjcvexfE3TfihpH2i1PYNs21R9fYHZILM4NKeBmshM3zq2B40IDNu6_kwpytSLPAoEm_u2GChXMhGRfnEFCOpM4XOK4jp_eg3XfV1UmHEm8uKMv2ITnmA-TxrWFxk_AqbRoJmRvv9cvf8He7uCiw:1vLId5:n8_xdalAfSPyiCi7SJPZLr1CI1IGxTC-WpvvN_z9NHQ	2025-12-02 10:08:07.630045+00
8g6qqs5ssg2zi3dlvoj8dmvskek2nues	.eJzNmktz4ygQgP9Kyuck1guB5rj3Pe5pPZXiaSuRJa0emcpO5b8vIMeRCbER8pZ8CQ40DXzNoxv0e_WE-2731Le8ecrZ6scqXN2P8wimL7xUBewZl9vqkVZl1-TkUYk8Hkrbxz8rxos_DrInCna43cnaHKU0RSlJeUqzFDJEMIwTIHic0jATUZwBGCNA05hEGZQp53EcZDhFAWdhBJTSPS_7Vur6-_dmVeI936x-3G1Wm02fcEFkAiIcyiRliUogDshmdS8lctnnQVbg5k7gB5o3tOBD4V71vFXFFrUh_lQLiMhkgmgaOqjtm2IoW2O2z8t12-GOi6L6tSZ9m5e8bSvyzGm3HsQxY3-51pCyh1qk4ZjRpt-T7wbgx-X9_u5aLN5_qmKeM1UaBkFk0Q0YB0pbBHUTMY1UbwEMZnHWv2rcyJY63rhwNmoswtmXhck5tuged0wmIkxVZpxFszjXTUXl5HQB_CG6CFnf0Ztkk4u6UYSU1WBAsvkz2Hni3gJV95GbVMEk3bLvIYxVZgCSa8zeUp4CE2awFr8x3lOYmPRTS0swInqFBMGo00ik1NiXZCYhKgECgPnzvai2xy244bRqmPMKsFRdxEb_BznTYnBiu1e1kfo10TajKjdnE38rIDMjtB3psba1dHrV6oREDwYmQTrPOz1Vm5KY6zEEQv2XBuo_yKlLI6a16yYvu7zcHn88V-R7Q1ul3W3sS-ciaF8ihknD4GJLMpaJdKbX2vrCT66Rc_7qN_I3QNydg8nYumxEEOiFm6ArMi7kXuQM-FN4GbqeBEy6kblLZbbGoFARB0SJPphYkuhjKnNxYc_G0Bgq7QnVHCgcNvTIJTQ3rUhwm9OnvBSV8sNYTzsqDSTn_9v3xjxTZ4JNPdlY42g_HqZNbVHIqe5pJrzMegrjW2A7QZXB1haLJFyvZ8Cz-Jpsf-GG76q-PRN8WKUX4uvHwORrizYSkZFBt1IKQOLjuIxQtX1dF_m5bd4mvAzWqUM3edpiARALpI-hGA-OrvZ-SeRzdzki9cp3uZTrGly2ddV0l6KAy1UXQe5LxySPbLoToHR_XORda6fg-7qo3rjbRnEUXoauJwGTrtVNUctDaotieE26e97QHS7dDrmj8DJ0PQkYdCNrXDP4mNemS_u2q_aOm_FReBm6ngRMuvaIhquNPo2h1i30MQrC1CeiGQH7p8_pS17WvdvsHYkvQ9iTgknY9pKECNExfxZcdf4y_ppTrn-6EB6JL0LYl4JJ2PaGdDgrkUDpKH6BaGY89-EcvNVuB9xYfhnGnhxMxrY4LkuE1o0SfTvJouN-P4sxweULprTqHY-5sfwijH05mIyB6VjYJvYhqgFE-y4w1Q6iflGZd0sbahx6f_sMnWZexlf0Zfir3JAtv3wVb68wwaiecGyc5wExbWuNfUa99cWbl6-87M5eLZmCy-B0HqtJzhq7nHQMhEQ_lauwf9Y0FQ3n_559XzVFF2c5ZfQmWWvccqo7ZjqJsA5DZ73WfFndjHc4LyZsB4cKt8Dck4thgdga25y2NHihMEx9TtURwrbEdburvh6pZV8Uy8J0HqKJzxa8ZCEdvMmIbbzfYQZuda_i5_bSO4xNeJE5OnnoJk_zASay3YAighOd6NtrkCCqoyQ0XFQlln63qs12l_OCPeCiu-iLQBCh8x6U-mLTbjn1QedaFX9vr08RdytdYdC2x37HgZp2sjnjcvexfE3TfihpH2i1PYNs21R9fYHZILM4NKeBmshM3zq2B40IDNu6_kwpytSLPAoEm_u2GChXMhGRfnEFCOpM4XOK4jp_eg3XfV1UmHEm8uKMv2ITnmA-TxrWFxk_AqbRoJmRvv9cvf8He7uCiw:1vLYyA:AD0u5F-mNfMwOsOq-xELhPG46cKCAbcOeMXQfrwkvng	2025-12-03 03:34:58.965151+00
\.


--
-- Data for Name: printing_plateorder; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.printing_plateorder (id, created_at, updated_at, design_code, plate_type, plate_date, plate_method, plate_image, plate_notes, reprint_reason, urgency_level, area, default_address, is_mark_frame, drawing_rating, color_matching_rating, sample_rating, difficulty_rating, required_completion_date, completion_date, fabric, width, style_name, production_method, sample_meter, required_sample_meters, approval_result, is_ordered, customer_feedback, business_object_id, customer_id, merchandiser_id, salesperson_id, is_invalid, process, fabric_source, designer_id) FROM stdin;
1	2025-11-18 09:55:35.334641+00	2025-11-18 09:55:35.334647+00	\N	首版	2025-11-17 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	1	3	\N	\N	f	1	\N	\N
2	2025-11-18 09:58:01.444122+00	2025-11-18 09:58:01.444129+00	123	首版	2025-11-17 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	123123	\N	\N	\N	\N	\N	\N	f	\N	2	3	\N	\N	f	1	\N	\N
3	2025-11-18 09:58:20.379338+00	2025-11-18 09:58:20.379345+00	123	复版	2025-11-17 16:00:00+00	\N		123	123	正常	213	\N	f	\N	\N	\N	\N	\N	\N	123	123	\N	\N	\N	\N	\N	f	\N	3	3	\N	1	f	1	\N	\N
5	2025-11-18 10:10:04.816531+00	2025-11-18 10:10:04.816538+00	\N	首版	2025-11-17 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	6	3	\N	\N	f	2	\N	\N
6	2025-11-18 10:10:55.523408+00	2025-11-18 10:10:55.523419+00	\N	首版	2025-11-17 16:00:00+00	\N		123	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	7	3	\N	\N	f	2	\N	\N
7	2025-11-18 10:35:25.877134+00	2025-11-18 10:35:25.877145+00	\N	首版	2025-11-17 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	9	4	\N	\N	f	2	\N	\N
8	2025-11-19 01:44:43.685246+00	2025-11-19 01:52:40.560325+00	\N	复版	2025-11-18 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	12	3	\N	\N	f	2	\N	\N
9	2025-11-19 02:00:49.484416+00	2025-11-19 02:00:49.484427+00	\N	首版	2025-11-18 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	13	3	\N	\N	f	2	\N	\N
4	2025-11-18 10:09:47.337719+00	2025-11-19 02:29:58.260464+00	\N	首版	2025-11-17 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	5	3	\N	\N	t	2	\N	\N
80004	2025-11-21 08:45:33.728595+00	2025-11-21 08:45:33.728604+00	\N	首版	2025-11-20 16:00:00+00	图片开版		\N	\N	加急	中大	\N	f	画图难度1	调色难度1	\N	\N	2025-11-21	2025-11-21 16:00:00+00	四面弹	1.5米	\N	定位	\N	\N	\N	f	\N	27	3	1	1	f	2	仓库布	\N
80005	2025-11-22 02:39:05.937858+00	2025-11-22 02:39:05.937868+00	\N	首版	2025-11-21 16:00:00+00	图片开版		\N	\N	加急		\N	f	\N	\N	\N	\N	2025-11-22	2025-11-22 16:00:00+00	四面弹	1.5米	\N	匹布	\N	\N	\N	f	\N	28	3	\N	\N	f	2	仓库布	\N
10	2025-11-19 02:00:59.58389+00	2025-11-19 03:54:21.995604+00	\N	复版	2025-11-18 16:00:00+00	\N	plate_images/QQ浏览器截图20250609233935_XYYq9Lt.png	\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	14	3	\N	\N	f	2	\N	\N
11	2025-11-19 02:04:48.932631+00	2025-11-19 09:27:56.024307+00	123123	首版	2025-11-18 16:00:00+00	样衣开版	plate_images/QQ浏览器截图20250609233935_ARgZcEm.png	123	123123	正常	123	213	f	A	A	A	\N	2025-11-19	\N	123	123	3123	32	\N	123.00	\N	f	\N	15	3	2	1	f	2	\N	\N
12	2025-11-19 09:28:09.459625+00	2025-11-19 09:28:09.459634+00	\N	复版	2025-11-18 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	19	3	\N	\N	f	2	\N	\N
80006	2025-11-23 13:11:02.777704+00	2025-11-23 13:11:02.777711+00	\N	修改单	2025-11-22 16:00:00+00	\N	plate_images/5cab1e39605388041cf59ea15a2177c7.jpg	改颜色，	\N	加急	中大	\N	f	\N	\N	\N	\N	\N	2025-11-23 16:00:00+00	四面弹	1.5米	\N	匹布	\N	3.00	\N	f	\N	29	5	2	2	f	2	仓库布	\N
13	2025-11-19 09:28:40.840111+00	2025-11-19 09:42:26.990677+00	\N	首版	2025-11-18 16:00:00+00	样衣开版	plate_images/QQ浏览器截图20250609233935_y9vJ9LT.png	123	213	正常	312312	321	f	A	A	A	\N	2025-11-19	\N	3123	312	312	批布	\N	123.00	\N	f	\N	20	3	1	1	f	2	\N	\N
14	2025-11-20 01:52:49.284672+00	2025-11-20 01:52:49.284679+00	\N	首版	2025-11-19 16:00:00+00	\N		\N	\N	正常		123	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	21	3	\N	\N	f	2	\N	\N
80000	2025-11-20 03:48:01.383018+00	2025-11-20 03:48:01.383027+00	\N	首版	2025-11-19 16:00:00+00	\N		\N	\N	正常	123	\N	f	\N	\N	\N	\N	\N	\N	123	123	123	\N	\N	\N	\N	f	\N	22	3	1	1	f	2	123	\N
80001	2025-11-20 03:49:28.25281+00	2025-11-20 03:49:28.252817+00	\N	首版	2025-11-19 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	23	4	\N	1	f	2	\N	\N
80002	2025-11-20 03:49:37.949557+00	2025-11-20 03:49:37.949565+00	\N	首版	2025-11-19 16:00:00+00	\N		\N	\N	正常		\N	f	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	\N	f	\N	24	4	\N	\N	f	1	\N	\N
80003	2025-11-20 06:55:47.636958+00	2025-11-20 07:08:53.430169+00	80003	首版	2025-11-19 16:00:00+00	图片开版	plate_images/微信图片_2025-11-20_145534_377.png	123	123	加急	中大	\N	f	画图难度1	调色难度1	套样难度1	难度1	2025-11-20	2025-11-19 16:00:00+00	四面弹	1.5米	\N	匹布	\N	123.00	待审批	f	123	25	3	1	1	f	2	仓库布	\N
80007	2025-11-24 11:33:15.702111+00	2025-11-24 11:33:15.702118+00	\N	首版	2025-11-23 16:00:00+00	图片开版		\N	\N	加急	周边	\N	f	\N	\N	\N	\N	2025-11-24	2025-11-24 16:00:00+00	四面弹	1.5米	\N	匹布	\N	3.00	\N	f	\N	30	6	2	2	f	2	仓库布	\N
\.


--
-- Data for Name: printing_printingjob; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.printing_printingjob (id, created_at, updated_at, quantity, unit, size, pieces, description, product_id, printing_order_id, business_object_id) FROM stdin;
1	2025-11-18 10:03:03.628899+00	2025-11-18 10:03:03.630299+00	123	米	123	0	123	1	1	4
2	2025-11-18 10:15:58.28923+00	2025-11-18 10:15:58.290546+00	456	米	456	0	456	1	2	8
3	2025-11-18 10:42:48.816111+00	2025-11-18 10:42:48.818357+00	4	米	3	23	23	1	5	10
4	2025-11-18 10:42:48.847294+00	2025-11-18 10:42:48.848577+00	32	米	23	23	23	2	5	11
5	2025-11-19 05:10:28.185845+00	2025-11-19 05:10:28.187238+00	46	米		0	\N	1	7	16
6	2025-11-19 06:16:00.258989+00	2025-11-19 06:16:00.260276+00	23	米		0	\N	1	8	17
7	2025-11-19 08:21:50.457892+00	2025-11-19 08:21:50.460214+00	53	米		0	\N	1	9	18
8	2025-11-21 03:10:15.018605+00	2025-11-21 03:10:15.020737+00	312	米	32	0	23	1	10	26
\.


--
-- Data for Name: printing_printingorder; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.printing_printingorder (id, created_at, updated_at, fabric, width, is_urgent, area, address, fabric_source, is_fabric_received, craft, description, outgoing_date, curve, new_curve, "position", printing_warn, rolling_warn, production_warn, customer_id, is_invalid, process_id) FROM stdin;
1	2025-11-18 10:03:03.512062+00	2025-11-18 10:03:03.512073+00	123214	123	f	中大		3123	f	4213	\N	2025-11-18	3213	321	123	312	312	321	3	f	1
2	2025-11-18 10:15:58.06474+00	2025-11-18 10:15:58.064748+00	456	456	f	中大		456	f	456	\N	2025-11-18	645	645	6456	456	456	456	3	f	1
3	2025-11-18 10:42:09.201812+00	2025-11-18 10:42:09.20182+00	123	3213123	f	\N		123	f	23123	\N	\N	123	213	123	123	123	213	3	f	1
5	2025-11-18 10:42:48.781191+00	2025-11-18 16:29:16.270004+00	123	123	f	\N		\N	t	\N	\N	\N	\N	\N	\N	\N	\N	\N	4	f	1
4	2025-11-18 10:42:09.764532+00	2025-11-18 16:29:38.034391+00	123	3213123	f	\N		123	t	23123	\N	\N	123	213	123	123	123	213	3	f	1
6	2025-11-19 01:59:30.596405+00	2025-11-19 01:59:30.596416+00	123	23	f	中大		\N	f	\N	\N	2025-11-19	\N	\N	\N	\N	\N	\N	3	f	1
7	2025-11-19 05:10:28.027246+00	2025-11-19 05:10:28.027259+00	四面弹	1.5米	f	中大		仓库布	f	批布	\N	2025-11-20	\N	\N	\N	\N	\N	\N	3	f	1
8	2025-11-19 06:16:00.11043+00	2025-11-19 06:16:00.110438+00	123	23	f	中大		\N	f	\N	\N	2025-11-19	\N	\N	\N	\N	\N	\N	3	f	1
9	2025-11-19 08:21:50.42566+00	2025-11-19 08:21:50.425668+00	123	23	f	中大		\N	f	\N	\N	2025-11-19	\N	\N	\N	\N	\N	\N	3	f	1
10	2025-11-21 03:10:14.707335+00	2025-11-21 03:10:14.707343+00	四面弹	1.5米	f	中大		仓库布	f	批布	\N	2025-11-22	测试	3124123	\N	\N	\N	\N	3	f	1
\.


--
-- Data for Name: state_flow_record; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.state_flow_record (id, created_at, updated_at, completed_at, completed_by_id, business_object_id, state_id, cancelled_at, is_cancelled) FROM stdin;
1	2025-11-18 09:58:46.228909+00	2025-11-18 09:58:46.228916+00	2025-11-18 09:58:46.228922+00	2	3	1	\N	f
2	2025-11-18 10:01:34.15756+00	2025-11-18 10:01:34.157567+00	2025-11-18 10:01:34.157573+00	2	3	2	\N	f
3	2025-11-18 10:01:35.677197+00	2025-11-18 10:01:35.677205+00	2025-11-18 10:01:35.677211+00	2	3	3	\N	f
4	2025-11-18 10:01:36.99464+00	2025-11-18 10:01:36.994647+00	2025-11-18 10:01:36.994653+00	2	3	4	\N	f
5	2025-11-18 10:01:38.319629+00	2025-11-18 10:01:38.319637+00	2025-11-18 10:01:38.319642+00	2	3	5	\N	f
6	2025-11-18 10:01:39.955294+00	2025-11-18 10:01:39.955302+00	2025-11-18 10:01:39.955307+00	2	3	6	\N	f
7	2025-11-18 10:01:46.861557+00	2025-11-18 10:01:46.861564+00	2025-11-18 10:01:46.86157+00	2	2	1	\N	f
8	2025-11-18 10:01:48.658461+00	2025-11-18 10:01:48.658469+00	2025-11-18 10:01:48.658475+00	2	2	2	\N	f
9	2025-11-18 10:01:50.173885+00	2025-11-18 10:01:50.173893+00	2025-11-18 10:01:50.173899+00	2	2	3	\N	f
10	2025-11-18 10:01:52.545328+00	2025-11-18 10:01:52.545336+00	2025-11-18 10:01:52.545342+00	2	2	4	\N	f
11	2025-11-18 10:01:57.787351+00	2025-11-18 10:01:57.787358+00	2025-11-18 10:01:57.787364+00	2	1	1	\N	f
12	2025-11-18 10:01:59.345255+00	2025-11-18 10:01:59.345264+00	2025-11-18 10:01:59.34527+00	2	1	2	\N	f
13	2025-11-18 10:09:49.997167+00	2025-11-18 10:09:49.997174+00	2025-11-18 10:09:49.997181+00	2	5	7	\N	f
14	2025-11-18 10:09:52.586971+00	2025-11-18 10:09:52.58698+00	2025-11-18 10:09:52.586989+00	2	5	8	\N	f
15	2025-11-18 10:09:54.553201+00	2025-11-18 10:09:54.553209+00	2025-11-18 10:09:54.553215+00	2	5	9	\N	f
16	2025-11-18 10:10:07.994049+00	2025-11-18 10:10:07.994057+00	2025-11-18 10:10:07.994062+00	2	6	7	\N	f
17	2025-11-18 10:11:01.556394+00	2025-11-18 10:11:01.556401+00	2025-11-18 10:11:01.556407+00	2	7	7	2025-11-18 10:12:15.089061+00	t
18	2025-11-18 10:12:29.524144+00	2025-11-18 10:12:29.524151+00	2025-11-18 10:12:29.524157+00	2	7	7	2025-11-18 10:12:40.839687+00	t
19	2025-11-18 10:12:44.940612+00	2025-11-18 10:12:44.94062+00	2025-11-18 10:12:44.940628+00	1	7	7	2025-11-18 10:13:33.151024+00	t
21	2025-11-18 10:14:30.398411+00	2025-11-18 10:14:30.39842+00	2025-11-18 10:14:30.398426+00	2	4	1	\N	f
22	2025-11-18 10:18:26.785459+00	2025-11-18 10:18:26.785471+00	2025-11-18 10:18:26.785482+00	1	8	1	2025-11-18 10:18:41.280544+00	t
20	2025-11-18 10:13:35.858114+00	2025-11-18 10:13:35.85812+00	2025-11-18 10:13:35.858126+00	1	7	7	2025-11-18 10:23:22.848587+00	t
23	2025-11-18 10:18:48.568608+00	2025-11-18 10:18:48.568615+00	2025-11-18 10:18:48.568622+00	1	8	1	2025-11-18 10:24:21.224924+00	t
24	2025-11-18 10:24:27.361927+00	2025-11-18 10:24:27.361935+00	2025-11-18 10:24:27.361944+00	1	8	1	2025-11-18 10:25:12.155197+00	t
26	2025-11-18 10:25:26.794891+00	2025-11-18 10:25:26.794897+00	2025-11-18 10:25:26.794904+00	1	8	1	2025-11-18 10:29:49.223123+00	t
25	2025-11-18 10:24:33.486794+00	2025-11-18 10:24:33.486805+00	2025-11-18 10:24:33.486816+00	2	4	2	2025-11-18 10:30:07.11929+00	t
29	2025-11-18 10:30:13.309787+00	2025-11-18 10:30:13.309793+00	2025-11-18 10:30:13.309799+00	1	7	8	2025-11-18 10:30:17.03601+00	t
27	2025-11-18 10:26:59.40634+00	2025-11-18 10:26:59.406347+00	2025-11-18 10:26:59.406353+00	1	7	7	2025-11-18 10:30:19.302114+00	t
30	2025-11-18 10:30:21.79143+00	2025-11-18 10:30:21.79144+00	2025-11-18 10:30:21.791451+00	1	7	7	2025-11-18 10:30:27.468441+00	t
31	2025-11-18 10:30:30.989324+00	2025-11-18 10:30:30.989331+00	2025-11-18 10:30:30.989337+00	1	7	7	2025-11-18 10:31:00.732261+00	t
32	2025-11-18 10:31:17.422396+00	2025-11-18 10:31:17.422403+00	2025-11-18 10:31:17.422409+00	1	7	7	2025-11-18 10:34:10.27213+00	t
33	2025-11-18 10:34:27.057723+00	2025-11-18 10:34:27.05773+00	2025-11-18 10:34:27.057736+00	1	7	7	2025-11-18 10:34:35.804028+00	t
34	2025-11-18 10:35:31.360908+00	2025-11-18 10:35:31.360915+00	2025-11-18 10:35:31.360921+00	2	9	7	2025-11-18 10:36:25.879966+00	t
35	2025-11-18 10:36:44.149491+00	2025-11-18 10:36:44.149497+00	2025-11-18 10:36:44.149503+00	1	9	7	2025-11-18 10:43:32.002901+00	t
39	2025-11-18 15:34:46.83697+00	2025-11-18 15:34:46.836979+00	2025-11-18 15:34:46.836986+00	2	10	1	\N	f
41	2025-11-18 15:35:13.447338+00	2025-11-18 15:35:13.447345+00	2025-11-18 15:35:13.447351+00	2	10	2	\N	f
40	2025-11-18 15:35:08.177599+00	2025-11-18 15:35:08.177606+00	2025-11-18 15:35:08.177612+00	2	11	2	2025-11-19 01:43:15.822758+00	t
38	2025-11-18 10:48:46.506927+00	2025-11-18 10:48:46.506934+00	2025-11-18 10:48:46.506942+00	1	11	1	2025-11-19 01:43:18.26932+00	t
42	2025-11-19 01:43:35.225802+00	2025-11-19 01:43:35.225811+00	2025-11-19 01:43:35.225822+00	2	11	1	\N	f
43	2025-11-19 01:44:46.93038+00	2025-11-19 01:44:46.930387+00	2025-11-19 01:44:46.930394+00	2	12	7	\N	f
37	2025-11-18 10:44:46.98388+00	2025-11-18 10:44:46.983888+00	2025-11-18 10:44:46.983894+00	1	7	7	2025-11-19 01:46:12.629407+00	t
28	2025-11-18 10:29:54.025783+00	2025-11-18 10:29:54.02579+00	2025-11-18 10:29:54.025798+00	1	8	1	2025-11-19 01:46:28.824246+00	t
36	2025-11-18 10:43:37.46066+00	2025-11-18 10:43:37.460671+00	2025-11-18 10:43:37.460676+00	1	9	7	2025-11-19 01:46:41.823225+00	t
44	2025-11-19 01:47:10.945666+00	2025-11-19 01:47:10.945674+00	2025-11-19 01:47:10.945679+00	2	9	7	\N	f
45	2025-11-19 02:02:07.518988+00	2025-11-19 02:02:07.518996+00	2025-11-19 02:02:07.519001+00	2	14	7	\N	f
46	2025-11-19 02:04:56.055193+00	2025-11-19 02:04:56.0552+00	2025-11-19 02:04:56.055207+00	2	15	7	2025-11-19 02:10:15.110689+00	t
47	2025-11-20 02:15:53.773349+00	2025-11-20 02:15:53.773357+00	2025-11-20 02:15:53.773364+00	2	21	7	\N	f
49	2025-11-21 02:46:32.322897+00	2025-11-21 02:46:32.322906+00	2025-11-21 02:46:32.322915+00	2	25	8	2025-11-21 03:02:09.35063+00	t
48	2025-11-20 07:42:53.260205+00	2025-11-20 07:42:53.260217+00	2025-11-20 07:42:53.260228+00	3	25	7	2025-11-21 03:02:14.054159+00	t
50	2025-11-21 03:02:26.250283+00	2025-11-21 03:02:26.250291+00	2025-11-21 03:02:26.250297+00	2	25	7	2025-11-21 06:10:39.775117+00	t
51	2025-11-21 07:39:38.586689+00	2025-11-21 07:39:38.586696+00	2025-11-21 07:39:38.586702+00	2	25	7	\N	f
\.


--
-- Data for Name: state_log_parameter_record; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.state_log_parameter_record (id, updated_at, parameters, created_at, remark, state_log_id) FROM stdin;
1	2025-11-18 10:14:30.398807+00	{"(印染厂生产)日期": "3", "(印染厂生产)设备": "3", "(印染厂生产)提交人": "3", "(印染厂生产)打印米数": "2", "(印染厂生产)生产记录": "2", "(印染厂生产)生产订单详情": "2"}	2025-11-18 10:14:30.398822+00		21
2	2025-11-18 10:24:33.487419+00	{"(印染厂滚筒)生产记录": "421"}	2025-11-18 10:24:33.487439+00		25
3	2025-11-18 15:34:46.837353+00	{"(印染厂生产)日期": "123", "(印染厂生产)设备": "123", "(印染厂生产)提交人": "123", "(印染厂生产)打印米数": "123", "(印染厂生产)生产记录": "123", "(印染厂生产)生产订单详情": "213"}	2025-11-18 15:34:46.837366+00		39
4	2025-11-18 15:35:08.177999+00	{"(印染厂滚筒)生产记录": "123", "(印染厂滚筒)生产记录明细": "123"}	2025-11-18 15:35:08.178013+00		40
5	2025-11-19 01:43:35.22624+00	{"(印染厂生产)日期": "3213", "(印染厂生产)设备": "123", "(印染厂生产)提交人": "421", "(印染厂生产)打印米数": "123", "(印染厂生产)生产记录": "123", "(印染厂生产)生产订单详情": "213"}	2025-11-19 01:43:35.226252+00		42
6	2025-11-20 07:42:53.260881+00	{"(印染厂开版画图)描述": "123", "(印染厂开版画图)状态": "123", "(印染厂开版画图)完成数量": "123", "(印染厂开版画图)完成时间": "123", "(印染厂开版画图)开始时间": "123", "(印染厂开版画图)开版编号": "123", "(印染厂开版画图)电脑位置": "123", "(印染厂开版画图)设计师名称": "123"}	2025-11-20 07:42:53.260897+00		48
7	2025-11-21 02:46:32.323845+00	{"(印染厂开版调色)附件": "http://t5510mjho.hn-bkt.clouddn.com/uploads/2025/11/21/21aed50ea13146c68d20b4ae3e1b3079.png"}	2025-11-21 02:46:32.323859+00		49
8	2025-11-21 03:02:26.25063+00	{"(印染厂开版画图)描述": "123", "(印染厂开版画图)状态": "123", "(印染厂开版画图)开版编号": "12123", "(印染厂开版画图)电脑位置": "123", "(印染厂开版画图)设计师名称": "123"}	2025-11-21 03:02:26.250641+00		50
9	2025-11-21 07:39:38.587038+00	{"(印染厂开版画图)状态": "123", "(印染厂开版画图)开版编号": "123", "(印染厂开版画图)电脑位置": "123", "(印染厂开版画图)设计师名称": "123"}	2025-11-21 07:39:38.587048+00		51
\.


--
-- Data for Name: stateflow_process; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stateflow_process (id, created_at, updated_at, name, description) FROM stdin;
1	2025-11-18 06:44:18.307114+00	2025-11-18 06:44:18.307121+00	工厂印染	工厂印染
2	2025-11-18 10:09:07.214001+00	2025-11-19 02:14:21.623166+00	开版	开版
\.


--
-- Data for Name: stateflow_processnode; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stateflow_processnode (id, created_at, updated_at, "order", process_id, state_id) FROM stdin;
1	2025-11-18 06:44:18.3076+00	2025-11-18 06:44:18.307604+00	1	1	1
2	2025-11-18 06:44:18.308102+00	2025-11-18 06:44:18.308105+00	2	1	2
3	2025-11-18 06:44:18.308263+00	2025-11-18 06:44:18.308265+00	3	1	3
4	2025-11-18 06:44:18.308391+00	2025-11-18 06:44:18.308393+00	4	1	4
5	2025-11-18 06:44:18.308509+00	2025-11-18 06:44:18.308511+00	5	1	5
6	2025-11-18 06:44:18.308622+00	2025-11-18 06:44:18.308624+00	6	1	6
7	2025-11-18 10:09:07.214444+00	2025-11-18 10:09:07.214448+00	1	2	7
8	2025-11-18 10:09:07.214896+00	2025-11-18 10:09:07.214899+00	2	2	8
9	2025-11-18 10:09:07.215051+00	2025-11-18 10:09:07.215054+00	3	2	9
10	2025-11-18 10:13:23.903321+00	2025-11-18 10:13:23.903325+00	4	2	13
11	2025-11-19 02:14:21.623562+00	2025-11-19 02:14:21.623566+00	5	2	14
\.


--
-- Data for Name: stateflow_state; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stateflow_state (id, created_at, updated_at, name, description) FROM stdin;
1	2025-11-18 06:42:24.133555+00	2025-11-18 06:42:24.133562+00	待打纸	待打纸
2	2025-11-18 06:42:40.875192+00	2025-11-18 06:42:40.875199+00	待滚筒	
3	2025-11-18 06:42:51.437497+00	2025-11-18 06:42:51.437505+00	待送货	待送货
4	2025-11-18 06:43:03.131203+00	2025-11-18 06:43:03.13121+00	送货完成	送货完成
5	2025-11-18 06:43:09.83042+00	2025-11-18 06:43:09.830426+00	待开单	待开单
6	2025-11-18 06:43:24.576632+00	2025-11-18 06:43:24.576639+00	订单完结	
7	2025-11-18 08:12:38.120754+00	2025-11-18 08:12:38.12076+00	画图	画图
9	2025-11-18 08:13:08.015847+00	2025-11-18 08:13:08.015857+00	套样	套样
10	2025-11-18 08:13:23.679914+00	2025-11-18 08:13:23.679922+00	改图	
11	2025-11-18 08:13:31.882922+00	2025-11-18 08:13:31.882929+00	P图	
12	2025-11-18 08:13:40.576658+00	2025-11-18 08:14:45.360859+00	配色	
13	2025-11-18 08:13:49.180348+00	2025-11-18 08:15:12.812601+00	找图	
8	2025-11-18 08:12:47.849927+00	2025-11-19 01:45:36.044362+00	待调色	
14	2025-11-19 02:13:50.031495+00	2025-11-19 02:13:50.031504+00	任务完成	
\.


--
-- Data for Name: stateflow_state_parameters; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stateflow_state_parameters (id, state_id, stateparameter_id) FROM stdin;
1	1	1
2	1	2
3	1	3
4	1	4
5	1	5
6	1	6
7	2	7
8	2	8
9	2	9
10	2	10
11	2	11
12	2	12
13	2	13
14	7	14
15	7	15
16	7	16
17	7	17
18	7	18
19	7	19
20	7	20
21	7	21
22	7	22
23	8	32
24	8	33
25	8	25
26	8	26
27	8	27
28	8	28
29	8	29
30	8	30
31	8	31
32	9	52
33	9	53
34	9	54
35	9	55
36	9	56
37	9	57
38	9	58
39	9	59
40	9	60
41	10	70
42	10	71
43	10	72
44	10	73
45	10	74
46	10	75
47	10	76
48	10	77
49	10	78
50	11	79
51	11	80
52	11	81
53	11	82
54	11	83
55	11	84
56	11	85
57	11	86
58	11	87
59	12	64
60	12	65
61	12	66
62	12	67
63	12	68
64	12	69
65	12	61
66	12	62
67	12	63
68	13	34
69	13	35
70	13	36
71	13	37
72	13	38
73	13	39
74	13	40
75	13	41
76	13	42
\.


--
-- Data for Name: stateflow_stateparameter; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stateflow_stateparameter (id, created_at, updated_at, key, value, description, attachment, is_required, is_image_path) FROM stdin;
1	2025-11-18 06:15:00.809393+00	2025-11-18 06:15:00.8094+00	(印染厂生产)生产记录	(印染厂生产)生产记录			f	f
2	2025-11-18 06:17:56.053737+00	2025-11-18 06:17:56.053743+00	(印染厂生产)生产订单详情	(印染厂生产)生产订单详情			f	f
3	2025-11-18 06:18:26.25185+00	2025-11-18 06:18:26.251858+00	(印染厂生产)打印米数	(印染厂生产)打印米数			f	f
4	2025-11-18 06:18:36.506182+00	2025-11-18 06:18:36.506189+00	(印染厂生产)设备	(印染厂生产)设备			f	f
5	2025-11-18 06:18:51.697164+00	2025-11-18 06:18:51.697173+00	(印染厂生产)日期	(印染厂生产)日期			f	f
6	2025-11-18 06:36:14.719497+00	2025-11-18 06:36:14.719504+00	(印染厂生产)提交人	(印染厂生产)提交人			f	f
7	2025-11-18 06:37:41.608509+00	2025-11-18 06:37:41.608516+00	(印染厂滚筒)生产记录	(印染厂滚筒)生产记录			f	f
8	2025-11-18 06:37:53.386596+00	2025-11-18 06:37:53.386602+00	(印染厂滚筒)生产记录明细	(印染厂滚筒)生产记录明细			f	f
9	2025-11-18 06:38:45.85707+00	2025-11-18 06:38:45.857077+00	(印染厂滚筒)生产单上传	(印染厂滚筒)生产单上传			f	t
10	2025-11-18 06:39:07.772314+00	2025-11-18 06:39:07.772321+00	(印染厂滚筒)温度转速	(印染厂滚筒)温度转速			f	f
11	2025-11-18 06:41:38.315857+00	2025-11-18 06:41:38.315863+00	(印染厂滚筒)设备	(印染厂滚筒)设备			f	f
12	2025-11-18 06:41:46.718423+00	2025-11-18 06:41:46.71843+00	(印染厂滚筒)日期	(印染厂滚筒)日期			f	f
13	2025-11-18 06:41:52.441374+00	2025-11-18 06:41:52.44138+00	(印染厂滚筒)提交人	(印染厂滚筒)提交人			f	f
14	2025-11-18 07:03:18.962028+00	2025-11-18 07:03:18.962034+00	(印染厂开版画图)开版编号	(印染厂开版画图)开版编号			f	f
16	2025-11-18 07:04:40.367137+00	2025-11-18 07:04:40.367144+00	(印染厂开版画图)状态	(印染厂开版画图)状态			f	f
17	2025-11-18 07:04:50.258244+00	2025-11-18 07:05:16.15894+00	(印染厂开版画图)设计师名称	(印染厂开版画图)设计师名称			f	f
18	2025-11-18 07:06:26.838519+00	2025-11-18 07:06:26.838526+00	(印染厂开版画图)电脑位置	(印染厂开版画图)电脑位置			f	f
19	2025-11-18 07:06:40.088596+00	2025-11-18 07:06:40.088602+00	(印染厂开版画图)描述	(印染厂开版画图)描述			f	f
20	2025-11-18 07:07:20.126468+00	2025-11-18 07:07:20.126479+00	(印染厂开版画图)附件	(印染厂开版画图)附件			f	t
21	2025-11-18 07:07:31.518786+00	2025-11-18 07:07:31.518792+00	(印染厂开版画图)完成时间	(印染厂开版画图)完成时间			f	f
15	2025-11-18 07:04:21.325932+00	2025-11-18 07:09:18.685697+00	(印染厂开版画图)开始时间	(印染厂开版画图)开始时间			f	f
22	2025-11-18 07:10:11.825216+00	2025-11-18 07:10:11.825223+00	(印染厂开版画图)完成数量	(印染厂开版画图)完成数量			f	f
25	2025-11-18 08:04:06.826847+00	2025-11-18 08:04:06.826855+00	(印染厂开版调色)完成数量	\N	(印染厂开版调色)完成数量		f	f
26	2025-11-18 08:04:06.893984+00	2025-11-18 08:04:06.893993+00	(印染厂开版调色)完成时间	\N	(印染厂开版调色)完成时间		f	f
28	2025-11-18 08:04:07.043351+00	2025-11-18 08:04:07.043359+00	(印染厂开版调色)描述	\N	(印染厂开版调色)描述		f	f
29	2025-11-18 08:04:07.123119+00	2025-11-18 08:04:07.123127+00	(印染厂开版调色)电脑位置	\N	(印染厂开版调色)电脑位置		f	f
30	2025-11-18 08:04:07.200354+00	2025-11-18 08:04:07.200362+00	(印染厂开版调色)设计师名称	\N	(印染厂开版调色)设计师名称		f	f
31	2025-11-18 08:04:07.27682+00	2025-11-18 08:04:07.276829+00	(印染厂开版调色)状态	\N	(印染厂开版调色)状态		f	f
32	2025-11-18 08:04:07.351926+00	2025-11-18 08:04:07.351933+00	(印染厂开版调色)开始时间	\N	(印染厂开版调色)开始时间		f	f
33	2025-11-18 08:04:07.431118+00	2025-11-18 08:04:07.431127+00	(印染厂开版调色)开版编号	\N	(印染厂开版调色)开版编号		f	f
34	2025-11-18 08:04:07.758474+00	2025-11-18 08:04:07.758484+00	(印染厂开版找图)完成数量	\N	(印染厂开版找图)完成数量		f	f
35	2025-11-18 08:04:07.836584+00	2025-11-18 08:04:07.836593+00	(印染厂开版找图)完成时间	\N	(印染厂开版找图)完成时间		f	f
37	2025-11-18 08:04:07.988476+00	2025-11-18 08:04:07.988484+00	(印染厂开版找图)描述	\N	(印染厂开版找图)描述		f	f
38	2025-11-18 08:04:08.070932+00	2025-11-18 08:04:08.070943+00	(印染厂开版找图)电脑位置	\N	(印染厂开版找图)电脑位置		f	f
39	2025-11-18 08:04:08.14465+00	2025-11-18 08:04:08.14466+00	(印染厂开版找图)设计师名称	\N	(印染厂开版找图)设计师名称		f	f
40	2025-11-18 08:04:08.227005+00	2025-11-18 08:04:08.227019+00	(印染厂开版找图)状态	\N	(印染厂开版找图)状态		f	f
41	2025-11-18 08:04:08.301492+00	2025-11-18 08:04:08.301503+00	(印染厂开版找图)开始时间	\N	(印染厂开版找图)开始时间		f	f
42	2025-11-18 08:04:08.378264+00	2025-11-18 08:04:08.378271+00	(印染厂开版找图)开版编号	\N	(印染厂开版找图)开版编号		f	f
52	2025-11-18 08:06:23.545251+00	2025-11-18 08:06:23.545259+00	(印染厂开版套样)完成数量	\N	(印染厂开版套样)完成数量		f	f
53	2025-11-18 08:06:23.622055+00	2025-11-18 08:06:23.622062+00	(印染厂开版套样)完成时间	\N	(印染厂开版套样)完成时间		f	f
55	2025-11-18 08:06:23.775737+00	2025-11-18 08:06:23.775748+00	(印染厂开版套样)描述	\N	(印染厂开版套样)描述		f	f
56	2025-11-18 08:06:23.848947+00	2025-11-18 08:06:23.848956+00	(印染厂开版套样)电脑位置	\N	(印染厂开版套样)电脑位置		f	f
57	2025-11-18 08:06:23.929306+00	2025-11-18 08:06:23.929317+00	(印染厂开版套样)设计师名称	\N	(印染厂开版套样)设计师名称		f	f
58	2025-11-18 08:06:24.004115+00	2025-11-18 08:06:24.004123+00	(印染厂开版套样)状态	\N	(印染厂开版套样)状态		f	f
59	2025-11-18 08:06:24.078659+00	2025-11-18 08:06:24.078666+00	(印染厂开版套样)开始时间	\N	(印染厂开版套样)开始时间		f	f
60	2025-11-18 08:06:24.157041+00	2025-11-18 08:06:24.15705+00	(印染厂开版套样)开版编号	\N	(印染厂开版套样)开版编号		f	f
61	2025-11-18 08:07:09.998372+00	2025-11-18 08:07:09.99838+00	(印染厂开版配色)完成数量	\N	(印染厂开版配色)完成数量		f	f
62	2025-11-18 08:07:10.083424+00	2025-11-18 08:07:10.083434+00	(印染厂开版配色)完成时间	\N	(印染厂开版配色)完成时间		f	f
64	2025-11-18 08:07:10.232919+00	2025-11-18 08:07:10.232927+00	(印染厂开版配色)描述	\N	(印染厂开版配色)描述		f	f
65	2025-11-18 08:07:10.311549+00	2025-11-18 08:07:10.311561+00	(印染厂开版配色)电脑位置	\N	(印染厂开版配色)电脑位置		f	f
66	2025-11-18 08:07:10.387778+00	2025-11-18 08:07:10.387787+00	(印染厂开版配色)设计师名称	\N	(印染厂开版配色)设计师名称		f	f
67	2025-11-18 08:07:10.462353+00	2025-11-18 08:07:10.462361+00	(印染厂开版配色)状态	\N	(印染厂开版配色)状态		f	f
68	2025-11-18 08:07:10.541327+00	2025-11-18 08:07:10.541337+00	(印染厂开版配色)开始时间	\N	(印染厂开版配色)开始时间		f	f
69	2025-11-18 08:07:10.614664+00	2025-11-18 08:07:10.614671+00	(印染厂开版配色)开版编号	\N	(印染厂开版配色)开版编号		f	f
70	2025-11-18 08:07:24.736408+00	2025-11-18 08:07:24.736416+00	(印染厂开版改图)完成数量	\N	(印染厂开版改图)完成数量		f	f
71	2025-11-18 08:07:24.814028+00	2025-11-18 08:07:24.814036+00	(印染厂开版改图)完成时间	\N	(印染厂开版改图)完成时间		f	f
36	2025-11-18 08:04:07.913709+00	2025-11-18 08:08:06.425557+00	(印染厂开版找图)附件	\N	(印染厂开版找图)附件		f	t
54	2025-11-18 08:06:23.6976+00	2025-11-18 08:08:10.055142+00	(印染厂开版套样)附件	\N	(印染厂开版套样)附件		f	t
63	2025-11-18 08:07:10.156413+00	2025-11-18 08:08:14.833088+00	(印染厂开版配色)附件	\N	(印染厂开版配色)附件		f	t
73	2025-11-18 08:07:24.970837+00	2025-11-18 08:07:24.970848+00	(印染厂开版改图)描述	\N	(印染厂开版改图)描述		f	f
74	2025-11-18 08:07:25.045797+00	2025-11-18 08:07:25.045806+00	(印染厂开版改图)电脑位置	\N	(印染厂开版改图)电脑位置		f	f
75	2025-11-18 08:07:25.119207+00	2025-11-18 08:07:25.119215+00	(印染厂开版改图)设计师名称	\N	(印染厂开版改图)设计师名称		f	f
76	2025-11-18 08:07:25.197472+00	2025-11-18 08:07:25.197481+00	(印染厂开版改图)状态	\N	(印染厂开版改图)状态		f	f
77	2025-11-18 08:07:25.280098+00	2025-11-18 08:07:25.280106+00	(印染厂开版改图)开始时间	\N	(印染厂开版改图)开始时间		f	f
78	2025-11-18 08:07:25.350011+00	2025-11-18 08:07:25.350018+00	(印染厂开版改图)开版编号	\N	(印染厂开版改图)开版编号		f	f
27	2025-11-18 08:04:06.967852+00	2025-11-18 08:08:01.155911+00	(印染厂开版调色)附件	\N	(印染厂开版调色)附件		f	t
72	2025-11-18 08:07:24.892672+00	2025-11-18 08:08:18.605401+00	(印染厂开版改图)附件	\N	(印染厂开版改图)附件		f	t
79	2025-11-18 08:08:38.664863+00	2025-11-18 08:08:38.664879+00	(印染厂开版P图)完成数量	\N	(印染厂开版P图)完成数量		f	f
80	2025-11-18 08:08:38.743771+00	2025-11-18 08:08:38.74378+00	(印染厂开版P图)完成时间	\N	(印染厂开版P图)完成时间		f	f
82	2025-11-18 08:08:38.902216+00	2025-11-18 08:08:38.902227+00	(印染厂开版P图)描述	\N	(印染厂开版P图)描述		f	f
83	2025-11-18 08:08:38.972609+00	2025-11-18 08:08:38.972615+00	(印染厂开版P图)电脑位置	\N	(印染厂开版P图)电脑位置		f	f
84	2025-11-18 08:08:39.047021+00	2025-11-18 08:08:39.047034+00	(印染厂开版P图)设计师名称	\N	(印染厂开版P图)设计师名称		f	f
85	2025-11-18 08:08:39.122499+00	2025-11-18 08:08:39.122507+00	(印染厂开版P图)状态	\N	(印染厂开版P图)状态		f	f
86	2025-11-18 08:08:39.191187+00	2025-11-18 08:08:39.191194+00	(印染厂开版P图)开始时间	\N	(印染厂开版P图)开始时间		f	f
87	2025-11-18 08:08:39.267321+00	2025-11-18 08:08:39.267329+00	(印染厂开版P图)开版编号	\N	(印染厂开版P图)开版编号		f	f
81	2025-11-18 08:08:38.820486+00	2025-11-18 08:08:51.9089+00	(印染厂开版P图)附件	\N	(印染厂开版P图)附件		f	t
\.


--
-- Data for Name: stock_inventory; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stock_inventory (created_at, updated_at, id, quantity, num_of_rolls, spec, description, merchant_id, product_id, warehouse_id) FROM stdin;
2025-11-20 08:03:02.167396+00	2025-11-20 08:03:02.167403+00	2	25.00	1	\N	\N	1	1	3
2025-11-25 10:10:50.074909+00	2025-11-25 10:10:52.768415+00	3	-1602.00	-12	\N	\N	1	2	2
2025-11-20 07:54:45.864074+00	2025-11-25 10:13:09.762694+00	1	1712.00	10	\N	\N	1	1	2
\.


--
-- Data for Name: stock_stockchangedetail; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stock_stockchangedetail (created_at, updated_at, id, quantity, unit, merchant_id, product_id, stock_change_record_id, is_consumed, consume_with_id) FROM stdin;
2025-11-20 07:54:28.234159+00	2025-11-20 07:54:28.234167+00	1	50.00	1	1	1	2	f	\N
2025-11-20 08:01:23.822874+00	2025-11-20 08:01:23.822882+00	2	25.00	1	1	1	3	f	\N
2025-11-20 08:02:47.394261+00	2025-11-20 08:02:47.394267+00	3	25.00	1	1	1	4	f	\N
2025-11-25 08:23:25.704772+00	2025-11-25 08:23:25.704776+00	4	45.00	1	1	1	5	f	\N
2025-11-25 08:23:25.706869+00	2025-11-25 08:23:25.706873+00	5	45.00	1	1	1	5	f	\N
2025-11-25 08:23:25.707105+00	2025-11-25 08:23:25.707108+00	6	54.00	1	1	1	5	f	\N
2025-11-25 08:23:25.707312+00	2025-11-25 08:23:25.707315+00	7	46.00	1	1	1	5	f	\N
2025-11-25 08:23:25.707497+00	2025-11-25 08:23:25.7075+00	8	64.00	1	1	1	5	f	\N
2025-11-25 08:23:25.70768+00	2025-11-25 08:23:25.707683+00	9	46.00	1	1	1	5	f	\N
2025-11-25 08:49:42.447165+00	2025-11-25 08:49:42.44717+00	10	45.00	1	1	2	6	f	\N
2025-11-25 08:49:42.447659+00	2025-11-25 08:49:42.447663+00	11	456.00	1	1	2	6	f	\N
2025-11-25 08:49:42.447844+00	2025-11-25 08:49:42.447848+00	12	57.00	1	1	2	6	f	\N
2025-11-25 08:49:42.448005+00	2025-11-25 08:49:42.448008+00	13	78.00	1	1	2	6	f	\N
2025-11-25 08:49:42.448169+00	2025-11-25 08:49:42.448173+00	14	78.00	1	1	2	6	f	\N
2025-11-25 08:49:42.448333+00	2025-11-25 08:49:42.448336+00	15	87.00	1	1	2	6	f	\N
2025-11-25 08:49:45.15512+00	2025-11-25 08:49:45.155124+00	16	45.00	1	1	2	7	f	\N
2025-11-25 08:49:45.155571+00	2025-11-25 08:49:45.155574+00	17	456.00	1	1	2	7	f	\N
2025-11-25 08:49:45.155746+00	2025-11-25 08:49:45.15575+00	18	57.00	1	1	2	7	f	\N
2025-11-25 08:49:45.155905+00	2025-11-25 08:49:45.155908+00	19	78.00	1	1	2	7	f	\N
2025-11-25 08:49:45.156062+00	2025-11-25 08:49:45.156065+00	20	78.00	1	1	2	7	f	\N
2025-11-25 08:49:45.156227+00	2025-11-25 08:49:45.15623+00	21	87.00	1	1	2	7	f	\N
2025-11-25 09:10:28.070164+00	2025-11-25 09:10:28.070168+00	22	465.00	1	1	1	8	f	\N
2025-11-25 09:10:28.070615+00	2025-11-25 09:10:28.070619+00	23	78.00	1	1	1	8	f	\N
2025-11-25 09:10:28.070802+00	2025-11-25 09:10:28.070806+00	24	789.00	1	1	1	8	f	\N
2025-11-25 09:21:02.981242+00	2025-11-25 09:21:02.981252+00	25	55.00	1	1	1	9	f	\N
2025-11-25 09:28:55.964056+00	2025-11-25 09:28:55.964062+00	26	22.00	1	1	1	10	f	\N
2025-11-25 10:12:41.752146+00	2025-11-25 10:12:59.642704+00	27	22.00	1	1	1	11	f	26
\.


--
-- Data for Name: stock_stockchangerecord; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stock_stockchangerecord (created_at, updated_at, id, type, source_type, source_id, is_finished, finished_at, remarks, created_by_id, merchant_id, warehouse_id) FROM stdin;
2025-11-20 07:54:03.430455+00	2025-11-20 07:54:45.867681+00	2	1	4	\N	t	2025-11-20 07:54:45.866469+00		1	1	2
2025-11-20 08:00:58.975687+00	2025-11-20 08:02:59.822363+00	3	2	10	\N	t	2025-11-20 08:02:59.82082+00		1	1	2
2025-11-20 08:02:18.094174+00	2025-11-20 08:03:02.172741+00	4	1	3	\N	t	2025-11-20 08:03:02.171627+00		1	1	3
2025-11-25 08:23:25.703137+00	2025-11-25 08:26:59.598906+00	5	1	1	\N	t	2025-11-25 08:26:59.598104+00	\N	2	1	2
2025-11-25 09:28:40.651817+00	2025-11-25 10:10:43.514322+00	10	1	3	\N	t	2025-11-25 10:10:43.513447+00		1	1	2
2025-11-25 09:20:41.469745+00	2025-11-25 10:10:46.644773+00	9	1	4	\N	t	2025-11-25 10:10:46.643786+00		1	1	2
2025-11-25 09:10:28.069309+00	2025-11-25 10:10:48.427132+00	8	1	1	\N	t	2025-11-25 10:10:48.426187+00	\N	2	1	2
2025-11-25 08:49:45.154243+00	2025-11-25 10:10:50.088642+00	7	2	6	\N	t	2025-11-25 10:10:50.087782+00	\N	2	1	2
2025-11-25 08:49:42.446213+00	2025-11-25 10:10:52.770383+00	6	2	6	\N	t	2025-11-25 10:10:52.769618+00	\N	2	1	2
2025-11-25 10:12:01.37053+00	2025-11-25 10:13:09.76617+00	11	2	9	\N	t	2025-11-25 10:13:09.765158+00		1	1	2
\.


--
-- Data for Name: stock_stockfreeze; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stock_stockfreeze (created_at, updated_at, id, quantity, unit, status, frozen_with, completed_at, completed_with, cancelled_at, reason, cancelled_by_id, completed_by_id, frozen_by_id, merchant_id, product_id, stock_detail_id, warehouse_id) FROM stdin;
\.


--
-- Data for Name: stock_stocksnapshot; Type: TABLE DATA; Schema: public; Owner: postgres
--

COPY public.stock_stocksnapshot (created_at, updated_at, id, delta, quantity_before, quantity_after, unit, num_of_rolls, offset_to, offset_at, cancelled, cancelled_at, offset_id, merchant_id, product_id, stock_change_record_id, warehouse_id) FROM stdin;
2025-11-20 07:54:45.865438+00	2025-11-20 07:54:45.865443+00	1	50.00	0.00	50.00	1	2	\N	\N	f	\N	\N	1	1	2	2
2025-11-20 08:02:59.81919+00	2025-11-20 08:02:59.819199+00	2	-25.00	50.00	25.00	1	-1	\N	\N	f	\N	\N	1	1	3	2
2025-11-20 08:03:02.170296+00	2025-11-20 08:03:02.170306+00	3	25.00	0.00	25.00	1	2	\N	\N	f	\N	\N	1	1	4	3
2025-11-25 08:26:59.585488+00	2025-11-25 08:26:59.585496+00	4	45.00	25.00	70.00	1	2	\N	\N	f	\N	\N	1	1	5	2
2025-11-25 08:26:59.589092+00	2025-11-25 08:26:59.589097+00	5	45.00	70.00	115.00	1	3	\N	\N	f	\N	\N	1	1	5	2
2025-11-25 08:26:59.59076+00	2025-11-25 08:26:59.590764+00	6	54.00	115.00	169.00	1	4	\N	\N	f	\N	\N	1	1	5	2
2025-11-25 08:26:59.592872+00	2025-11-25 08:26:59.592876+00	7	46.00	169.00	215.00	1	5	\N	\N	f	\N	\N	1	1	5	2
2025-11-25 08:26:59.595099+00	2025-11-25 08:26:59.595104+00	8	64.00	215.00	279.00	1	6	\N	\N	f	\N	\N	1	1	5	2
2025-11-25 08:26:59.597258+00	2025-11-25 08:26:59.597262+00	9	46.00	279.00	325.00	1	7	\N	\N	f	\N	\N	1	1	5	2
2025-11-25 10:10:43.512086+00	2025-11-25 10:10:43.512093+00	10	22.00	325.00	347.00	1	8	\N	\N	f	\N	\N	1	1	10	2
2025-11-25 10:10:46.642532+00	2025-11-25 10:10:46.642538+00	11	55.00	347.00	402.00	1	9	\N	\N	f	\N	\N	1	1	9	2
2025-11-25 10:10:48.421374+00	2025-11-25 10:10:48.421379+00	12	465.00	402.00	867.00	1	10	\N	\N	f	\N	\N	1	1	8	2
2025-11-25 10:10:48.423686+00	2025-11-25 10:10:48.42369+00	13	78.00	867.00	945.00	1	11	\N	\N	f	\N	\N	1	1	8	2
2025-11-25 10:10:48.425271+00	2025-11-25 10:10:48.425277+00	14	789.00	945.00	1734.00	1	12	\N	\N	f	\N	\N	1	1	8	2
2025-11-25 10:10:50.076648+00	2025-11-25 10:10:50.076654+00	15	-45.00	0.00	-45.00	1	-2	\N	\N	f	\N	\N	1	2	7	2
2025-11-25 10:10:50.079262+00	2025-11-25 10:10:50.079266+00	16	-456.00	-45.00	-501.00	1	-3	\N	\N	f	\N	\N	1	2	7	2
2025-11-25 10:10:50.081387+00	2025-11-25 10:10:50.081391+00	17	-57.00	-501.00	-558.00	1	-4	\N	\N	f	\N	\N	1	2	7	2
2025-11-25 10:10:50.083463+00	2025-11-25 10:10:50.083469+00	18	-78.00	-558.00	-636.00	1	-5	\N	\N	f	\N	\N	1	2	7	2
2025-11-25 10:10:50.085389+00	2025-11-25 10:10:50.085393+00	19	-78.00	-636.00	-714.00	1	-6	\N	\N	f	\N	\N	1	2	7	2
2025-11-25 10:10:50.087157+00	2025-11-25 10:10:50.087163+00	20	-87.00	-714.00	-801.00	1	-7	\N	\N	f	\N	\N	1	2	7	2
2025-11-25 10:10:52.760974+00	2025-11-25 10:10:52.760978+00	21	-45.00	-801.00	-846.00	1	-8	\N	\N	f	\N	\N	1	2	6	2
2025-11-25 10:10:52.763084+00	2025-11-25 10:10:52.763088+00	22	-456.00	-846.00	-1302.00	1	-9	\N	\N	f	\N	\N	1	2	6	2
2025-11-25 10:10:52.764538+00	2025-11-25 10:10:52.764542+00	23	-57.00	-1302.00	-1359.00	1	-10	\N	\N	f	\N	\N	1	2	6	2
2025-11-25 10:10:52.765994+00	2025-11-25 10:10:52.765998+00	24	-78.00	-1359.00	-1437.00	1	-11	\N	\N	f	\N	\N	1	2	6	2
2025-11-25 10:10:52.76742+00	2025-11-25 10:10:52.767424+00	25	-78.00	-1437.00	-1515.00	1	-12	\N	\N	f	\N	\N	1	2	6	2
2025-11-25 10:10:52.769042+00	2025-11-25 10:10:52.769047+00	26	-87.00	-1515.00	-1602.00	1	-13	\N	\N	f	\N	\N	1	2	6	2
2025-11-25 10:13:09.763497+00	2025-11-25 10:13:09.763502+00	27	-22.00	1734.00	1712.00	1	9	\N	\N	f	\N	\N	1	1	11	2
\.


--
-- Name: [REDACTED] Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.[REDACTED], 1, true);


--
-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_group_id_seq', 1, true);


--
-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false);


--
-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_permission_id_seq', 157, true);


--
-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 1, false);


--
-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 39, true);


--
-- Name: basic_info_bankaccount_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_bankaccount_id_seq', 1, false);


--
-- Name: basic_info_customer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: basic_info_customer_visible_employees_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_customer_visible_employees_id_seq', 2, true);


--
-- Name: basic_info_deviceinfo_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_deviceinfo_id_seq', 1, false);


--
-- Name: basic_info_employee_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: basic_info_employeetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

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


--
-- Name: basic_info_merchant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_merchant_id_seq', 3, true);


--
-- Name: basic_info_product_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_product_id_seq', 2, true);


--
-- Name: basic_info_productcategory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_productcategory_id_seq', 1, true);


--
-- Name: basic_info_quickinput_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_quickinput_id_seq', 23, true);


--
-- Name: basic_info_supplier_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_supplier_id_seq', 1, true);


--
-- Name: basic_info_userprofile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_userprofile_id_seq', 5, true);


--
-- Name: basic_info_vehicletransportrecord_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_vehicletransportrecord_id_seq', 1, false);


--
-- Name: basic_info_vehicletype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_vehicletype_id_seq', 1, false);


--
-- Name: basic_info_warehouse_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.basic_info_warehouse_id_seq', 4, true);


--
-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_admin_log_id_seq', 99, true);


--
-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_content_type_id_seq', 38, true);


--
-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.django_migrations_id_seq', 76, true);


--
-- Name: printing_plateorder_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.printing_plateorder_id_seq', 80007, true);


--
-- Name: printing_printingjob_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.printing_printingjob_id_seq', 8, true);


--
-- Name: printing_printingorder_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.printing_printingorder_id_seq', 10, true);


--
-- Name: state_log_parameter_record_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.state_log_parameter_record_id_seq', 9, true);


--
-- Name: stateflow_order_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_order_id_seq', 30, true);


--
-- Name: stateflow_orderstatelog_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_orderstatelog_id_seq', 51, true);


--
-- Name: stateflow_process_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_process_id_seq', 2, true);


--
-- Name: stateflow_processnode_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_processnode_id_seq', 11, true);


--
-- Name: stateflow_state_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_state_id_seq', 14, true);


--
-- Name: stateflow_state_parameters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_state_parameters_id_seq', 76, true);


--
-- Name: stateflow_stateparameter_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stateflow_stateparameter_id_seq', 87, true);


--
-- Name: stock_inventory_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stock_inventory_id_seq', 3, true);


--
-- Name: stock_purchaseorder_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stock_purchaseorder_id_seq', 1, false);


--
-- Name: stock_stockchangedetail_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stock_stockchangedetail_id_seq', 27, true);


--
-- Name: stock_stockchangerecord_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stock_stockchangerecord_id_seq', 11, true);


--
-- Name: stock_stockfreeze_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stock_stockfreeze_id_seq', 1, false);


--
-- Name: stock_stocksnapshot_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--

SELECT pg_catalog.setval('public.stock_stocksnapshot_id_seq', 27, true);


--
-- Name: api_uploaded_file [REDACTED] Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.api_uploaded_file
    ADD CONSTRAINT [REDACTED]PRIMARY KEY (id);


--
-- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group
    ADD CONSTRAINT auth_group_name_key UNIQUE (name);


--
-- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id);


--
-- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id);


--
-- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group
    ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id);


--
-- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_permission
    ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename);


--
-- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_permission
    ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id);


--
-- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id);


--
-- Name: auth_user_groups auth_user_groups_user_id_group_id_94350c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_user_id_group_id_94350c0c_uniq UNIQUE (user_id, group_id);


--
-- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user
    ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);


--
-- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id);


--
-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_permission_id_14a6b632_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_14a6b632_uniq UNIQUE (user_id, permission_id);


--
-- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user
    ADD CONSTRAINT auth_user_username_key UNIQUE (username);


--
-- Name: basic_info_bankaccount basic_info_bankaccount_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_bankaccount
    ADD CONSTRAINT basic_info_bankaccount_pkey PRIMARY KEY (id);


--
-- Name: basic_info_customer basic_info_customer_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer
    ADD CONSTRAINT basic_info_customer_pkey PRIMARY KEY (id);


--
-- Name: basic_info_customer_visible_employees basic_info_customer_visi_customer_id_employee_id_7be5046b_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer_visible_employees
    ADD CONSTRAINT basic_info_customer_visi_customer_id_employee_id_7be5046b_uniq UNIQUE (customer_id, employee_id);


--
-- Name: basic_info_customer_visible_employees basic_info_customer_visible_employees_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer_visible_employees
    ADD CONSTRAINT basic_info_customer_visible_employees_pkey PRIMARY KEY (id);


--
-- Name: basic_info_deviceinfo basic_info_deviceinfo_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_deviceinfo
    ADD CONSTRAINT basic_info_deviceinfo_pkey PRIMARY KEY (id);


--
-- Name: basic_info_employee basic_info_employee_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employee
    ADD CONSTRAINT basic_info_employee_pkey PRIMARY KEY (id);


--
-- Name: basic_info_employee basic_info_employee_sys_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employee
    ADD CONSTRAINT basic_info_employee_sys_user_id_key UNIQUE (sys_user_id);


--
-- Name: basic_info_employeetype basic_info_employeetype_merchant_id_title_cdb313e8_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employeetype
    ADD CONSTRAINT basic_info_employeetype_merchant_id_title_cdb313e8_uniq UNIQUE (merchant_id, title);


--
-- Name: basic_info_employeetype basic_info_employeetype_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employeetype
    ADD CONSTRAINT basic_info_employeetype_pkey PRIMARY KEY (id);


--
-- Name: basic_info_merchant basic_info_merchant_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_merchant
    ADD CONSTRAINT basic_info_merchant_pkey PRIMARY KEY (id);


--
-- Name: basic_info_product basic_info_product_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_product
    ADD CONSTRAINT basic_info_product_pkey PRIMARY KEY (id);


--
-- Name: basic_info_productcategory basic_info_productcategory_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_productcategory
    ADD CONSTRAINT basic_info_productcategory_pkey PRIMARY KEY (id);


--
-- Name: basic_info_quickinput basic_info_quickinput_name_group_68f4787a_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_quickinput
    ADD CONSTRAINT basic_info_quickinput_name_group_68f4787a_uniq UNIQUE (name, "group");


--
-- Name: basic_info_quickinput basic_info_quickinput_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_quickinput
    ADD CONSTRAINT basic_info_quickinput_pkey PRIMARY KEY (id);


--
-- Name: basic_info_supplier basic_info_supplier_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_supplier
    ADD CONSTRAINT basic_info_supplier_pkey PRIMARY KEY (id);


--
-- Name: basic_info_userprofile basic_info_userprofile_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_userprofile
    ADD CONSTRAINT basic_info_userprofile_pkey PRIMARY KEY (id);


--
-- Name: basic_info_userprofile basic_info_userprofile_user_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_userprofile
    ADD CONSTRAINT basic_info_userprofile_user_id_key UNIQUE (user_id);


--
-- Name: basic_info_vehicletransportrecord basic_info_vehicletransportrecord_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_vehicletransportrecord
    ADD CONSTRAINT basic_info_vehicletransportrecord_pkey PRIMARY KEY (id);


--
-- Name: basic_info_vehicletype basic_info_vehicletype_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_vehicletype
    ADD CONSTRAINT basic_info_vehicletype_pkey PRIMARY KEY (id);


--
-- Name: basic_info_warehouse basic_info_warehouse_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_warehouse
    ADD CONSTRAINT basic_info_warehouse_pkey PRIMARY KEY (id);


--
-- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_admin_log
    ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id);


--
-- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_content_type
    ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model);


--
-- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_content_type
    ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id);


--
-- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_migrations
    ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id);


--
-- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_session
    ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key);


--
-- Name: printing_plateorder printing_plateorder_business_object_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_business_object_id_key UNIQUE (business_object_id);


--
-- Name: printing_plateorder printing_plateorder_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_pkey PRIMARY KEY (id);


--
-- Name: printing_printingjob printing_printingjob_business_object_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingjob
    ADD CONSTRAINT printing_printingjob_business_object_id_key UNIQUE (business_object_id);


--
-- Name: printing_printingjob printing_printingjob_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingjob
    ADD CONSTRAINT printing_printingjob_pkey PRIMARY KEY (id);


--
-- Name: printing_printingorder printing_printingorder_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingorder
    ADD CONSTRAINT printing_printingorder_pkey PRIMARY KEY (id);


--
-- Name: state_log_parameter_record state_log_parameter_record_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.state_log_parameter_record
    ADD CONSTRAINT state_log_parameter_record_pkey PRIMARY KEY (id);


--
-- Name: business_object stateflow_order_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business_object
    ADD CONSTRAINT stateflow_order_pkey PRIMARY KEY (id);


--
-- Name: state_flow_record stateflow_orderstatelog_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.state_flow_record
    ADD CONSTRAINT stateflow_orderstatelog_pkey PRIMARY KEY (id);


--
-- Name: stateflow_process stateflow_process_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_process
    ADD CONSTRAINT stateflow_process_pkey PRIMARY KEY (id);


--
-- Name: stateflow_processnode stateflow_processnode_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_processnode
    ADD CONSTRAINT stateflow_processnode_pkey PRIMARY KEY (id);


--
-- Name: stateflow_processnode stateflow_processnode_process_id_order_d27bc733_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_processnode
    ADD CONSTRAINT stateflow_processnode_process_id_order_d27bc733_uniq UNIQUE (process_id, "order");


--
-- Name: stateflow_state_parameters stateflow_state_paramete_state_id_stateparameter__91e23688_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_state_parameters
    ADD CONSTRAINT stateflow_state_paramete_state_id_stateparameter__91e23688_uniq UNIQUE (state_id, stateparameter_id);


--
-- Name: stateflow_state_parameters stateflow_state_parameters_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_state_parameters
    ADD CONSTRAINT stateflow_state_parameters_pkey PRIMARY KEY (id);


--
-- Name: stateflow_state stateflow_state_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_state
    ADD CONSTRAINT stateflow_state_pkey PRIMARY KEY (id);


--
-- Name: stateflow_stateparameter stateflow_stateparameter_key_2174542b_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_stateparameter
    ADD CONSTRAINT stateflow_stateparameter_key_2174542b_uniq UNIQUE (key);


--
-- Name: stateflow_stateparameter stateflow_stateparameter_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_stateparameter
    ADD CONSTRAINT stateflow_stateparameter_pkey PRIMARY KEY (id);


--
-- Name: stock_inventory stock_inventory_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_inventory
    ADD CONSTRAINT stock_inventory_pkey PRIMARY KEY (id);


--
-- Name: stock_inventory stock_inventory_product_id_warehouse_id_b146267d_uniq; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_inventory
    ADD CONSTRAINT stock_inventory_product_id_warehouse_id_b146267d_uniq UNIQUE (product_id, warehouse_id);


--
-- Name: business_purchaseorder stock_purchaseorder_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business_purchaseorder
    ADD CONSTRAINT stock_purchaseorder_pkey PRIMARY KEY (id);


--
-- Name: stock_stockchangedetail stock_stockchangedetail_consume_with_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangedetail
    ADD CONSTRAINT stock_stockchangedetail_consume_with_id_key UNIQUE (consume_with_id);


--
-- Name: stock_stockchangedetail stock_stockchangedetail_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangedetail
    ADD CONSTRAINT stock_stockchangedetail_pkey PRIMARY KEY (id);


--
-- Name: stock_stockchangerecord stock_stockchangerecord_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangerecord
    ADD CONSTRAINT stock_stockchangerecord_pkey PRIMARY KEY (id);


--
-- Name: stock_stockfreeze stock_stockfreeze_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_pkey PRIMARY KEY (id);


--
-- Name: stock_stocksnapshot stock_stocksnapshot_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stocksnapshot
    ADD CONSTRAINT stock_stocksnapshot_pkey PRIMARY KEY (id);


--
-- Name: [REDACTED] Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX [REDACTED]ON public.api_uploaded_file USING btree (owner_id);


--
-- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops);


--
-- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id);


--
-- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id);


--
-- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id);


--
-- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id);


--
-- Name: auth_user_groups_user_id_6a12ed8b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_groups_user_id_6a12ed8b ON public.auth_user_groups USING btree (user_id);


--
-- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id);


--
-- Name: auth_user_user_permissions_user_id_a95ead1b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_user_permissions_user_id_a95ead1b ON public.auth_user_user_permissions USING btree (user_id);


--
-- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops);


--
-- Name: basic_info_bankaccount_merchant_id_0dc91094; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_bankaccount_merchant_id_0dc91094 ON public.basic_info_bankaccount USING btree (merchant_id);


--
-- Name: basic_info_customer_created_by_id_e4898d6a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_customer_created_by_id_e4898d6a ON public.basic_info_customer USING btree (created_by_id);


--
-- Name: basic_info_customer_merchant_id_c342572c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_customer_merchant_id_c342572c ON public.basic_info_customer USING btree (merchant_id);


--
-- Name: basic_info_customer_visible_employees_customer_id_a05ec7e2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_customer_visible_employees_customer_id_a05ec7e2 ON public.basic_info_customer_visible_employees USING btree (customer_id);


--
-- Name: basic_info_customer_visible_employees_employee_id_fb51a1e0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_customer_visible_employees_employee_id_fb51a1e0 ON public.basic_info_customer_visible_employees USING btree (employee_id);


--
-- Name: basic_info_deviceinfo_merchant_id_8ba16bd2; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_deviceinfo_merchant_id_8ba16bd2 ON public.basic_info_deviceinfo USING btree (merchant_id);


--
-- Name: basic_info_employee_merchant_id_508e9a14; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_employee_merchant_id_508e9a14 ON public.basic_info_employee USING btree (merchant_id);


--
-- Name: basic_info_employee_position_id_0f790d25; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_employee_position_id_0f790d25 ON public.basic_info_employee USING btree (position_id);


--
-- Name: basic_info_employeetype_merchant_id_cf26fc93; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_employeetype_merchant_id_cf26fc93 ON public.basic_info_employeetype USING btree (merchant_id);


--
-- Name: basic_info_product_category_id_2bbbe6be; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_product_category_id_2bbbe6be ON public.basic_info_product USING btree (category_id);


--
-- Name: basic_info_product_merchant_id_16465f25; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_product_merchant_id_16465f25 ON public.basic_info_product USING btree (merchant_id);


--
-- Name: basic_info_productcategory_merchant_id_026ead5b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_productcategory_merchant_id_026ead5b ON public.basic_info_productcategory USING btree (merchant_id);


--
-- Name: basic_info_supplier_merchant_id_7b0fafc0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_supplier_merchant_id_7b0fafc0 ON public.basic_info_supplier USING btree (merchant_id);


--
-- Name: basic_info_userprofile_merchant_id_4c25789b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_userprofile_merchant_id_4c25789b ON public.basic_info_userprofile USING btree (merchant_id);


--
-- Name: basic_info_vehicletransportrecord_merchant_id_da543289; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_vehicletransportrecord_merchant_id_da543289 ON public.basic_info_vehicletransportrecord USING btree (merchant_id);


--
-- Name: basic_info_vehicletransportrecord_vehicle_type_id_ca9c2c9a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_vehicletransportrecord_vehicle_type_id_ca9c2c9a ON public.basic_info_vehicletransportrecord USING btree (vehicle_type_id);


--
-- Name: basic_info_vehicletype_merchant_id_834e9500; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_vehicletype_merchant_id_834e9500 ON public.basic_info_vehicletype USING btree (merchant_id);


--
-- Name: basic_info_warehouse_merchant_id_d5bb4b76; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX basic_info_warehouse_merchant_id_d5bb4b76 ON public.basic_info_warehouse USING btree (merchant_id);


--
-- Name: business_object_content_type_id_94dccf29; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX business_object_content_type_id_94dccf29 ON public.business_object USING btree (content_type_id);


--
-- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id);


--
-- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id);


--
-- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date);


--
-- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops);


--
-- Name: printing_plateorder_customer_id_920c92fc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_plateorder_customer_id_920c92fc ON public.printing_plateorder USING btree (customer_id);


--
-- Name: printing_plateorder_designer_id_4f94e8c1; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_plateorder_designer_id_4f94e8c1 ON public.printing_plateorder USING btree (designer_id);


--
-- Name: printing_plateorder_merchandiser_id_f85f2095; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_plateorder_merchandiser_id_f85f2095 ON public.printing_plateorder USING btree (merchandiser_id);


--
-- Name: printing_plateorder_salesperson_id_0d75b741; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_plateorder_salesperson_id_0d75b741 ON public.printing_plateorder USING btree (salesperson_id);


--
-- Name: printing_printingjob_printing_order_id_ca5569e7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_printingjob_printing_order_id_ca5569e7 ON public.printing_printingjob USING btree (printing_order_id);


--
-- Name: printing_printingjob_product_id_6c4bda82; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_printingjob_product_id_6c4bda82 ON public.printing_printingjob USING btree (product_id);


--
-- Name: printing_printingorder_customer_id_2f5affa4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_printingorder_customer_id_2f5affa4 ON public.printing_printingorder USING btree (customer_id);


--
-- Name: printing_printingorder_process_id_087e5007; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX printing_printingorder_process_id_087e5007 ON public.printing_printingorder USING btree (process_id);


--
-- Name: state_log_p_state_l_8cc99f_idx; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX state_log_p_state_l_8cc99f_idx ON public.state_log_parameter_record USING btree (state_log_id, created_at);


--
-- Name: state_log_parameter_record_state_log_id_f233799b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX state_log_parameter_record_state_log_id_f233799b ON public.state_log_parameter_record USING btree (state_log_id);


--
-- Name: stateflow_order_process_id_8c0bb6c0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_order_process_id_8c0bb6c0 ON public.business_object USING btree (process_id);


--
-- Name: stateflow_orderstatelog_completed_by_id_2f822f5b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_orderstatelog_completed_by_id_2f822f5b ON public.state_flow_record USING btree (completed_by_id);


--
-- Name: stateflow_orderstatelog_order_id_4d729f58; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_orderstatelog_order_id_4d729f58 ON public.state_flow_record USING btree (business_object_id);


--
-- Name: stateflow_orderstatelog_state_id_70d1101d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_orderstatelog_state_id_70d1101d ON public.state_flow_record USING btree (state_id);


--
-- Name: stateflow_processnode_process_id_146d7cc7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_processnode_process_id_146d7cc7 ON public.stateflow_processnode USING btree (process_id);


--
-- Name: stateflow_processnode_state_id_18e2868e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_processnode_state_id_18e2868e ON public.stateflow_processnode USING btree (state_id);


--
-- Name: stateflow_state_parameters_state_id_1888c236; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_state_parameters_state_id_1888c236 ON public.stateflow_state_parameters USING btree (state_id);


--
-- Name: stateflow_state_parameters_stateparameter_id_2a4745a3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_state_parameters_stateparameter_id_2a4745a3 ON public.stateflow_state_parameters USING btree (stateparameter_id);


--
-- Name: stateflow_stateparameter_key_2174542b_like; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stateflow_stateparameter_key_2174542b_like ON public.stateflow_stateparameter USING btree (key varchar_pattern_ops);


--
-- Name: stock_inventory_merchant_id_474e786a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_inventory_merchant_id_474e786a ON public.stock_inventory USING btree (merchant_id);


--
-- Name: stock_inventory_product_id_87e1d4a4; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_inventory_product_id_87e1d4a4 ON public.stock_inventory USING btree (product_id);


--
-- Name: stock_inventory_warehouse_id_38e88ef3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_inventory_warehouse_id_38e88ef3 ON public.stock_inventory USING btree (warehouse_id);


--
-- Name: stock_purchaseorder_merchant_id_5175381b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_purchaseorder_merchant_id_5175381b ON public.business_purchaseorder USING btree (merchant_id);


--
-- Name: stock_purchaseorder_supplier_id_bc7a300c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_purchaseorder_supplier_id_bc7a300c ON public.business_purchaseorder USING btree (supplier_id);


--
-- Name: stock_stockchangedetail_merchant_id_222521fc; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockchangedetail_merchant_id_222521fc ON public.stock_stockchangedetail USING btree (merchant_id);


--
-- Name: stock_stockchangedetail_product_id_a013d432; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockchangedetail_product_id_a013d432 ON public.stock_stockchangedetail USING btree (product_id);


--
-- Name: stock_stockchangedetail_stock_change_record_id_b388d2f0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockchangedetail_stock_change_record_id_b388d2f0 ON public.stock_stockchangedetail USING btree (stock_change_record_id);


--
-- Name: stock_stockchangerecord_created_by_id_7317d383; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockchangerecord_created_by_id_7317d383 ON public.stock_stockchangerecord USING btree (created_by_id);


--
-- Name: stock_stockchangerecord_merchant_id_777ab07d; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockchangerecord_merchant_id_777ab07d ON public.stock_stockchangerecord USING btree (merchant_id);


--
-- Name: stock_stockchangerecord_warehouse_id_c7a706de; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockchangerecord_warehouse_id_c7a706de ON public.stock_stockchangerecord USING btree (warehouse_id);


--
-- Name: stock_stockfreeze_cancelled_by_id_f36ed57b; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_cancelled_by_id_f36ed57b ON public.stock_stockfreeze USING btree (cancelled_by_id);


--
-- Name: stock_stockfreeze_completed_by_id_feb5742a; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_completed_by_id_feb5742a ON public.stock_stockfreeze USING btree (completed_by_id);


--
-- Name: stock_stockfreeze_frozen_by_id_747bed1c; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_frozen_by_id_747bed1c ON public.stock_stockfreeze USING btree (frozen_by_id);


--
-- Name: stock_stockfreeze_merchant_id_778ecada; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_merchant_id_778ecada ON public.stock_stockfreeze USING btree (merchant_id);


--
-- Name: stock_stockfreeze_product_id_0915f126; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_product_id_0915f126 ON public.stock_stockfreeze USING btree (product_id);


--
-- Name: stock_stockfreeze_stock_detail_id_3c1f49b0; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_stock_detail_id_3c1f49b0 ON public.stock_stockfreeze USING btree (stock_detail_id);


--
-- Name: stock_stockfreeze_warehouse_id_7cd7f629; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stockfreeze_warehouse_id_7cd7f629 ON public.stock_stockfreeze USING btree (warehouse_id);


--
-- Name: stock_stocksnapshot_merchant_id_345af02e; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stocksnapshot_merchant_id_345af02e ON public.stock_stocksnapshot USING btree (merchant_id);


--
-- Name: stock_stocksnapshot_product_id_f6e948d7; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stocksnapshot_product_id_f6e948d7 ON public.stock_stocksnapshot USING btree (product_id);


--
-- Name: stock_stocksnapshot_stock_change_record_id_a12e8dc3; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stocksnapshot_stock_change_record_id_a12e8dc3 ON public.stock_stocksnapshot USING btree (stock_change_record_id);


--
-- Name: stock_stocksnapshot_warehouse_id_469ad069; Type: INDEX; Schema: public; Owner: postgres
--

CREATE INDEX stock_stocksnapshot_warehouse_id_469ad069 ON public.stock_stocksnapshot USING btree (warehouse_id);


--
-- Name: api_uploaded_file [REDACTED] Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.api_uploaded_file
    ADD CONSTRAINT [REDACTED]FOREIGN KEY (owner_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_group_permissions
    ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_permission
    ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_groups auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_groups
    ADD CONSTRAINT auth_user_groups_user_id_6a12ed8b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.auth_user_user_permissions
    ADD CONSTRAINT auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_bankaccount basic_info_bankaccou_merchant_id_0dc91094_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_bankaccount
    ADD CONSTRAINT basic_info_bankaccou_merchant_id_0dc91094_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_customer_visible_employees basic_info_customer__customer_id_a05ec7e2_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer_visible_employees
    ADD CONSTRAINT basic_info_customer__customer_id_a05ec7e2_fk_basic_inf FOREIGN KEY (customer_id) REFERENCES public.basic_info_customer(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_customer_visible_employees basic_info_customer__employee_id_fb51a1e0_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer_visible_employees
    ADD CONSTRAINT basic_info_customer__employee_id_fb51a1e0_fk_basic_inf FOREIGN KEY (employee_id) REFERENCES public.basic_info_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_customer basic_info_customer_created_by_id_e4898d6a_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer
    ADD CONSTRAINT basic_info_customer_created_by_id_e4898d6a_fk_basic_inf FOREIGN KEY (created_by_id) REFERENCES public.basic_info_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_customer basic_info_customer_merchant_id_c342572c_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_customer
    ADD CONSTRAINT basic_info_customer_merchant_id_c342572c_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_deviceinfo basic_info_deviceinf_merchant_id_8ba16bd2_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_deviceinfo
    ADD CONSTRAINT basic_info_deviceinf_merchant_id_8ba16bd2_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_employee basic_info_employee_merchant_id_508e9a14_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employee
    ADD CONSTRAINT basic_info_employee_merchant_id_508e9a14_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_employee basic_info_employee_position_id_0f790d25_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employee
    ADD CONSTRAINT basic_info_employee_position_id_0f790d25_fk_basic_inf FOREIGN KEY (position_id) REFERENCES public.basic_info_employeetype(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_employee basic_info_employee_sys_user_id_ea7739c5_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employee
    ADD CONSTRAINT basic_info_employee_sys_user_id_ea7739c5_fk_auth_user_id FOREIGN KEY (sys_user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_employeetype basic_info_employeet_merchant_id_cf26fc93_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_employeetype
    ADD CONSTRAINT basic_info_employeet_merchant_id_cf26fc93_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_product basic_info_product_category_id_2bbbe6be_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_product
    ADD CONSTRAINT basic_info_product_category_id_2bbbe6be_fk_basic_inf FOREIGN KEY (category_id) REFERENCES public.basic_info_productcategory(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_product basic_info_product_merchant_id_16465f25_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_product
    ADD CONSTRAINT basic_info_product_merchant_id_16465f25_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_productcategory basic_info_productca_merchant_id_026ead5b_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_productcategory
    ADD CONSTRAINT basic_info_productca_merchant_id_026ead5b_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_supplier basic_info_supplier_merchant_id_7b0fafc0_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_supplier
    ADD CONSTRAINT basic_info_supplier_merchant_id_7b0fafc0_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_userprofile basic_info_userprofi_merchant_id_4c25789b_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_userprofile
    ADD CONSTRAINT basic_info_userprofi_merchant_id_4c25789b_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_userprofile basic_info_userprofile_user_id_ed5ab8a5_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_userprofile
    ADD CONSTRAINT basic_info_userprofile_user_id_ed5ab8a5_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_vehicletransportrecord basic_info_vehicletr_merchant_id_da543289_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_vehicletransportrecord
    ADD CONSTRAINT basic_info_vehicletr_merchant_id_da543289_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_vehicletransportrecord basic_info_vehicletr_vehicle_type_id_ca9c2c9a_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_vehicletransportrecord
    ADD CONSTRAINT basic_info_vehicletr_vehicle_type_id_ca9c2c9a_fk_basic_inf FOREIGN KEY (vehicle_type_id) REFERENCES public.basic_info_vehicletype(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_vehicletype basic_info_vehiclety_merchant_id_834e9500_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_vehicletype
    ADD CONSTRAINT basic_info_vehiclety_merchant_id_834e9500_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: basic_info_warehouse basic_info_warehouse_merchant_id_d5bb4b76_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.basic_info_warehouse
    ADD CONSTRAINT basic_info_warehouse_merchant_id_d5bb4b76_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: business_object business_object_content_type_id_94dccf29_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business_object
    ADD CONSTRAINT business_object_content_type_id_94dccf29_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_admin_log
    ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.django_admin_log
    ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: state_flow_record order_state_log_business_object_id_f642bfbd_fk_business_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.state_flow_record
    ADD CONSTRAINT order_state_log_business_object_id_f642bfbd_fk_business_ FOREIGN KEY (business_object_id) REFERENCES public.business_object(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_plateorder printing_plateorder_business_object_id_303b8c81_fk_business_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_business_object_id_303b8c81_fk_business_ FOREIGN KEY (business_object_id) REFERENCES public.business_object(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_plateorder printing_plateorder_customer_id_920c92fc_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_customer_id_920c92fc_fk_basic_inf FOREIGN KEY (customer_id) REFERENCES public.basic_info_customer(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_plateorder printing_plateorder_designer_id_4f94e8c1_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_designer_id_4f94e8c1_fk_basic_inf FOREIGN KEY (designer_id) REFERENCES public.basic_info_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_plateorder printing_plateorder_merchandiser_id_f85f2095_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_merchandiser_id_f85f2095_fk_basic_inf FOREIGN KEY (merchandiser_id) REFERENCES public.basic_info_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_plateorder printing_plateorder_salesperson_id_0d75b741_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_plateorder
    ADD CONSTRAINT printing_plateorder_salesperson_id_0d75b741_fk_basic_inf FOREIGN KEY (salesperson_id) REFERENCES public.basic_info_employee(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_printingjob printing_printingjob_business_object_id_76a7d2fd_fk_business_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingjob
    ADD CONSTRAINT printing_printingjob_business_object_id_76a7d2fd_fk_business_ FOREIGN KEY (business_object_id) REFERENCES public.business_object(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_printingjob printing_printingjob_printing_order_id_ca5569e7_fk_printing_; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingjob
    ADD CONSTRAINT printing_printingjob_printing_order_id_ca5569e7_fk_printing_ FOREIGN KEY (printing_order_id) REFERENCES public.printing_printingorder(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_printingjob printing_printingjob_product_id_6c4bda82_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingjob
    ADD CONSTRAINT printing_printingjob_product_id_6c4bda82_fk_basic_inf FOREIGN KEY (product_id) REFERENCES public.basic_info_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_printingorder printing_printingord_customer_id_2f5affa4_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingorder
    ADD CONSTRAINT printing_printingord_customer_id_2f5affa4_fk_basic_inf FOREIGN KEY (customer_id) REFERENCES public.basic_info_customer(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: printing_printingorder printing_printingord_process_id_087e5007_fk_stateflow; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.printing_printingorder
    ADD CONSTRAINT printing_printingord_process_id_087e5007_fk_stateflow FOREIGN KEY (process_id) REFERENCES public.stateflow_process(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: state_log_parameter_record state_log_parameter__state_log_id_f233799b_fk_state_flo; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.state_log_parameter_record
    ADD CONSTRAINT state_log_parameter__state_log_id_f233799b_fk_state_flo FOREIGN KEY (state_log_id) REFERENCES public.state_flow_record(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: business_object stateflow_order_process_id_8c0bb6c0_fk_stateflow_process_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business_object
    ADD CONSTRAINT stateflow_order_process_id_8c0bb6c0_fk_stateflow_process_id FOREIGN KEY (process_id) REFERENCES public.stateflow_process(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: state_flow_record stateflow_orderstate_completed_by_id_2f822f5b_fk_auth_user; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.state_flow_record
    ADD CONSTRAINT stateflow_orderstate_completed_by_id_2f822f5b_fk_auth_user FOREIGN KEY (completed_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: state_flow_record stateflow_orderstatelog_state_id_70d1101d_fk_stateflow_state_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.state_flow_record
    ADD CONSTRAINT stateflow_orderstatelog_state_id_70d1101d_fk_stateflow_state_id FOREIGN KEY (state_id) REFERENCES public.stateflow_state(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stateflow_processnode stateflow_processnod_process_id_146d7cc7_fk_stateflow; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_processnode
    ADD CONSTRAINT stateflow_processnod_process_id_146d7cc7_fk_stateflow FOREIGN KEY (process_id) REFERENCES public.stateflow_process(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stateflow_processnode stateflow_processnode_state_id_18e2868e_fk_stateflow_state_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_processnode
    ADD CONSTRAINT stateflow_processnode_state_id_18e2868e_fk_stateflow_state_id FOREIGN KEY (state_id) REFERENCES public.stateflow_state(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stateflow_state_parameters stateflow_state_para_state_id_1888c236_fk_stateflow; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_state_parameters
    ADD CONSTRAINT stateflow_state_para_state_id_1888c236_fk_stateflow FOREIGN KEY (state_id) REFERENCES public.stateflow_state(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stateflow_state_parameters stateflow_state_para_stateparameter_id_2a4745a3_fk_stateflow; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stateflow_state_parameters
    ADD CONSTRAINT stateflow_state_para_stateparameter_id_2a4745a3_fk_stateflow FOREIGN KEY (stateparameter_id) REFERENCES public.stateflow_stateparameter(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_inventory stock_inventory_merchant_id_474e786a_fk_basic_info_merchant_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_inventory
    ADD CONSTRAINT stock_inventory_merchant_id_474e786a_fk_basic_info_merchant_id FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_inventory stock_inventory_product_id_87e1d4a4_fk_basic_info_product_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_inventory
    ADD CONSTRAINT stock_inventory_product_id_87e1d4a4_fk_basic_info_product_id FOREIGN KEY (product_id) REFERENCES public.basic_info_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_inventory stock_inventory_warehouse_id_38e88ef3_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_inventory
    ADD CONSTRAINT stock_inventory_warehouse_id_38e88ef3_fk_basic_inf FOREIGN KEY (warehouse_id) REFERENCES public.basic_info_warehouse(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: business_purchaseorder stock_purchaseorder_merchant_id_5175381b_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business_purchaseorder
    ADD CONSTRAINT stock_purchaseorder_merchant_id_5175381b_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: business_purchaseorder stock_purchaseorder_supplier_id_bc7a300c_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.business_purchaseorder
    ADD CONSTRAINT stock_purchaseorder_supplier_id_bc7a300c_fk_basic_inf FOREIGN KEY (supplier_id) REFERENCES public.basic_info_supplier(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangedetail stock_stockchangedet_consume_with_id_3844510b_fk_stock_sto; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangedetail
    ADD CONSTRAINT stock_stockchangedet_consume_with_id_3844510b_fk_stock_sto FOREIGN KEY (consume_with_id) REFERENCES public.stock_stockchangedetail(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangedetail stock_stockchangedet_merchant_id_222521fc_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangedetail
    ADD CONSTRAINT stock_stockchangedet_merchant_id_222521fc_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangedetail stock_stockchangedet_product_id_a013d432_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangedetail
    ADD CONSTRAINT stock_stockchangedet_product_id_a013d432_fk_basic_inf FOREIGN KEY (product_id) REFERENCES public.basic_info_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangedetail stock_stockchangedet_stock_change_record__b388d2f0_fk_stock_sto; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangedetail
    ADD CONSTRAINT stock_stockchangedet_stock_change_record__b388d2f0_fk_stock_sto FOREIGN KEY (stock_change_record_id) REFERENCES public.stock_stockchangerecord(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangerecord stock_stockchangerec_merchant_id_777ab07d_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangerecord
    ADD CONSTRAINT stock_stockchangerec_merchant_id_777ab07d_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangerecord stock_stockchangerec_warehouse_id_c7a706de_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangerecord
    ADD CONSTRAINT stock_stockchangerec_warehouse_id_c7a706de_fk_basic_inf FOREIGN KEY (warehouse_id) REFERENCES public.basic_info_warehouse(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockchangerecord stock_stockchangerecord_created_by_id_7317d383_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockchangerecord
    ADD CONSTRAINT stock_stockchangerecord_created_by_id_7317d383_fk_auth_user_id FOREIGN KEY (created_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_cancelled_by_id_f36ed57b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_cancelled_by_id_f36ed57b_fk_auth_user_id FOREIGN KEY (cancelled_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_completed_by_id_feb5742a_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_completed_by_id_feb5742a_fk_auth_user_id FOREIGN KEY (completed_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_frozen_by_id_747bed1c_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_frozen_by_id_747bed1c_fk_auth_user_id FOREIGN KEY (frozen_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_merchant_id_778ecada_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_merchant_id_778ecada_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_product_id_0915f126_fk_basic_info_product_id; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_product_id_0915f126_fk_basic_info_product_id FOREIGN KEY (product_id) REFERENCES public.basic_info_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_stock_detail_id_3c1f49b0_fk_stock_sto; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_stock_detail_id_3c1f49b0_fk_stock_sto FOREIGN KEY (stock_detail_id) REFERENCES public.stock_stockchangedetail(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stockfreeze stock_stockfreeze_warehouse_id_7cd7f629_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stockfreeze
    ADD CONSTRAINT stock_stockfreeze_warehouse_id_7cd7f629_fk_basic_inf FOREIGN KEY (warehouse_id) REFERENCES public.basic_info_warehouse(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stocksnapshot stock_stocksnapshot_merchant_id_345af02e_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stocksnapshot
    ADD CONSTRAINT stock_stocksnapshot_merchant_id_345af02e_fk_basic_inf FOREIGN KEY (merchant_id) REFERENCES public.basic_info_merchant(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stocksnapshot stock_stocksnapshot_product_id_f6e948d7_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stocksnapshot
    ADD CONSTRAINT stock_stocksnapshot_product_id_f6e948d7_fk_basic_inf FOREIGN KEY (product_id) REFERENCES public.basic_info_product(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stocksnapshot stock_stocksnapshot_stock_change_record__a12e8dc3_fk_stock_sto; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stocksnapshot
    ADD CONSTRAINT stock_stocksnapshot_stock_change_record__a12e8dc3_fk_stock_sto FOREIGN KEY (stock_change_record_id) REFERENCES public.stock_stockchangerecord(id) DEFERRABLE INITIALLY DEFERRED;


--
-- Name: stock_stocksnapshot stock_stocksnapshot_warehouse_id_469ad069_fk_basic_inf; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--

ALTER TABLE ONLY public.stock_stocksnapshot
    ADD CONSTRAINT stock_stocksnapshot_warehouse_id_469ad069_fk_basic_inf FOREIGN KEY (warehouse_id) REFERENCES public.basic_info_warehouse(id) DEFERRABLE INITIALLY DEFERRED;


--
-- PostgreSQL database dump complete
--

\unrestrict lAaLqLBC97fkSperdxYl5fjzjf6qhnkvpVyPWEkZyQ37Mu4fIXbcWZBIFk58Sg7

