@@ -627,6 +627,36 @@ CREATE SEQUENCE public.blocks_id_seq
627627ALTER SEQUENCE public .blocks_id_seq OWNED BY public .blocks .id;
628628
629629
630+ --
631+ -- Name: btc_account_books; Type: TABLE; Schema: public; Owner: -
632+ --
633+
634+ CREATE TABLE public .btc_account_books (
635+ id bigint NOT NULL ,
636+ ckb_transaction_id bigint ,
637+ bitcoin_address_id bigint
638+ );
639+
640+
641+ --
642+ -- Name: btc_account_books_id_seq; Type: SEQUENCE; Schema: public; Owner: -
643+ --
644+
645+ CREATE SEQUENCE public .btc_account_books_id_seq
646+ START WITH 1
647+ INCREMENT BY 1
648+ NO MINVALUE
649+ NO MAXVALUE
650+ CACHE 1 ;
651+
652+
653+ --
654+ -- Name: btc_account_books_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
655+ --
656+
657+ ALTER SEQUENCE public .btc_account_books_id_seq OWNED BY public .btc_account_books .id;
658+
659+
630660--
631661-- Name: cell_data; Type: TABLE; Schema: public; Owner: -
632662--
@@ -2832,6 +2862,13 @@ ALTER TABLE ONLY public.block_statistics ALTER COLUMN id SET DEFAULT nextval('pu
28322862ALTER TABLE ONLY public .blocks ALTER COLUMN id SET DEFAULT nextval(' public.blocks_id_seq' ::regclass);
28332863
28342864
2865+ --
2866+ -- Name: btc_account_books id; Type: DEFAULT; Schema: public; Owner: -
2867+ --
2868+
2869+ ALTER TABLE ONLY public .btc_account_books ALTER COLUMN id SET DEFAULT nextval(' public.btc_account_books_id_seq' ::regclass);
2870+
2871+
28352872--
28362873-- Name: cell_data cell_output_id; Type: DEFAULT; Schema: public; Owner: -
28372874--
@@ -3274,6 +3311,14 @@ ALTER TABLE ONLY public.blocks
32743311 ADD CONSTRAINT blocks_pkey PRIMARY KEY (id);
32753312
32763313
3314+ --
3315+ -- Name: btc_account_books btc_account_books_pkey; Type: CONSTRAINT; Schema: public; Owner: -
3316+ --
3317+
3318+ ALTER TABLE ONLY public .btc_account_books
3319+ ADD CONSTRAINT btc_account_books_pkey PRIMARY KEY (id);
3320+
3321+
32773322--
32783323-- Name: cell_data cell_data_pkey; Type: CONSTRAINT; Schema: public; Owner: -
32793324--
@@ -4527,6 +4572,13 @@ CREATE INDEX index_blocks_on_number ON public.blocks USING btree (number);
45274572CREATE INDEX index_blocks_on_timestamp ON public .blocks USING btree (" timestamp" DESC NULLS LAST);
45284573
45294574
4575+ --
4576+ -- Name: index_btc_account_books_on_bitcoin_address_id; Type: INDEX; Schema: public; Owner: -
4577+ --
4578+
4579+ CREATE INDEX index_btc_account_books_on_bitcoin_address_id ON public .btc_account_books USING btree (bitcoin_address_id);
4580+
4581+
45304582--
45314583-- Name: index_cell_dependencies_on_block_number_and_tx_index; Type: INDEX; Schema: public; Owner: -
45324584--
@@ -5937,6 +5989,7 @@ INSERT INTO "schema_migrations" (version) VALUES
59375989(' 20250715043211' ),
59385990(' 20250826022054' ),
59395991(' 20250827065749' ),
5940- (' 20250930015526' );
5992+ (' 20250930015526' ),
5993+ (' 20251011011714' );
59415994
59425995
0 commit comments