mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Structure update
This commit is contained in:
parent
88d1b46094
commit
3c5283b0e2
1 changed files with 22 additions and 26 deletions
|
@ -41,7 +41,7 @@ CREATE FUNCTION generate_zonefile(i_origin character varying) RETURNS text
|
||||||
ret text;
|
ret text;
|
||||||
BEGIN
|
BEGIN
|
||||||
-- define filters
|
-- define filters
|
||||||
include_filter = '%.' || i_origin;
|
include_filter = '%' || i_origin;
|
||||||
|
|
||||||
-- for %.%.%
|
-- for %.%.%
|
||||||
IF i_origin ~ '\.' THEN
|
IF i_origin ~ '\.' THEN
|
||||||
|
@ -198,7 +198,7 @@ CREATE TABLE account_activities (
|
||||||
id integer NOT NULL,
|
id integer NOT NULL,
|
||||||
account_id integer,
|
account_id integer,
|
||||||
invoice_id integer,
|
invoice_id integer,
|
||||||
sum numeric(8,2),
|
sum numeric(10,2),
|
||||||
currency character varying,
|
currency character varying,
|
||||||
bank_transaction_id integer,
|
bank_transaction_id integer,
|
||||||
created_at timestamp without time zone,
|
created_at timestamp without time zone,
|
||||||
|
@ -236,7 +236,7 @@ CREATE TABLE accounts (
|
||||||
id integer NOT NULL,
|
id integer NOT NULL,
|
||||||
registrar_id integer,
|
registrar_id integer,
|
||||||
account_type character varying,
|
account_type character varying,
|
||||||
balance numeric(8,2) DEFAULT 0.0 NOT NULL,
|
balance numeric(10,2) DEFAULT 0 NOT NULL,
|
||||||
created_at timestamp without time zone,
|
created_at timestamp without time zone,
|
||||||
updated_at timestamp without time zone,
|
updated_at timestamp without time zone,
|
||||||
currency character varying,
|
currency character varying,
|
||||||
|
@ -394,7 +394,7 @@ CREATE TABLE bank_transactions (
|
||||||
buyer_name character varying,
|
buyer_name character varying,
|
||||||
document_no character varying,
|
document_no character varying,
|
||||||
description character varying,
|
description character varying,
|
||||||
sum numeric(8,2),
|
sum numeric(10,2),
|
||||||
reference_no character varying,
|
reference_no character varying,
|
||||||
paid_at timestamp without time zone,
|
paid_at timestamp without time zone,
|
||||||
created_at timestamp without time zone,
|
created_at timestamp without time zone,
|
||||||
|
@ -435,7 +435,7 @@ CREATE TABLE banklink_transactions (
|
||||||
vk_rec_id character varying,
|
vk_rec_id character varying,
|
||||||
vk_stamp character varying,
|
vk_stamp character varying,
|
||||||
vk_t_no character varying,
|
vk_t_no character varying,
|
||||||
vk_amount numeric(8,2),
|
vk_amount numeric(10,2),
|
||||||
vk_curr character varying,
|
vk_curr character varying,
|
||||||
vk_rec_acc character varying,
|
vk_rec_acc character varying,
|
||||||
vk_rec_name character varying,
|
vk_rec_name character varying,
|
||||||
|
@ -639,15 +639,6 @@ CREATE SEQUENCE countries_id_seq
|
||||||
ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
|
ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: data_migrations; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE TABLE data_migrations (
|
|
||||||
version character varying NOT NULL
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: delegation_signers; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
-- Name: delegation_signers; Type: TABLE; Schema: public; Owner: -; Tablespace:
|
||||||
--
|
--
|
||||||
|
@ -960,7 +951,7 @@ CREATE TABLE invoice_items (
|
||||||
description character varying NOT NULL,
|
description character varying NOT NULL,
|
||||||
unit character varying,
|
unit character varying,
|
||||||
amount integer,
|
amount integer,
|
||||||
price numeric(8,2),
|
price numeric(10,2),
|
||||||
created_at timestamp without time zone,
|
created_at timestamp without time zone,
|
||||||
updated_at timestamp without time zone,
|
updated_at timestamp without time zone,
|
||||||
creator_str character varying,
|
creator_str character varying,
|
||||||
|
@ -1001,7 +992,7 @@ CREATE TABLE invoices (
|
||||||
currency character varying NOT NULL,
|
currency character varying NOT NULL,
|
||||||
description character varying,
|
description character varying,
|
||||||
reference_no character varying,
|
reference_no character varying,
|
||||||
vat_prc numeric(8,2) NOT NULL,
|
vat_prc numeric(10,2) NOT NULL,
|
||||||
paid_at timestamp without time zone,
|
paid_at timestamp without time zone,
|
||||||
seller_id integer,
|
seller_id integer,
|
||||||
seller_name character varying NOT NULL,
|
seller_name character varying NOT NULL,
|
||||||
|
@ -1034,7 +1025,7 @@ CREATE TABLE invoices (
|
||||||
updator_str character varying,
|
updator_str character varying,
|
||||||
number integer,
|
number integer,
|
||||||
cancelled_at timestamp without time zone,
|
cancelled_at timestamp without time zone,
|
||||||
sum_cache numeric(8,2)
|
sum_cache numeric(10,2)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
@ -2296,7 +2287,7 @@ CREATE TABLE pricelists (
|
||||||
id integer NOT NULL,
|
id integer NOT NULL,
|
||||||
"desc" character varying,
|
"desc" character varying,
|
||||||
category character varying,
|
category character varying,
|
||||||
price_cents numeric(8,2) DEFAULT 0.0 NOT NULL,
|
price_cents numeric(8,2) DEFAULT 0 NOT NULL,
|
||||||
price_currency character varying DEFAULT 'EUR'::character varying NOT NULL,
|
price_currency character varying DEFAULT 'EUR'::character varying NOT NULL,
|
||||||
valid_from timestamp without time zone,
|
valid_from timestamp without time zone,
|
||||||
valid_to timestamp without time zone,
|
valid_to timestamp without time zone,
|
||||||
|
@ -2560,7 +2551,7 @@ CREATE TABLE users (
|
||||||
crt text,
|
crt text,
|
||||||
type character varying,
|
type character varying,
|
||||||
registrant_ident character varying,
|
registrant_ident character varying,
|
||||||
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
|
encrypted_password character varying DEFAULT ''::character varying,
|
||||||
remember_created_at timestamp without time zone,
|
remember_created_at timestamp without time zone,
|
||||||
failed_attempts integer DEFAULT 0 NOT NULL,
|
failed_attempts integer DEFAULT 0 NOT NULL,
|
||||||
locked_at timestamp without time zone
|
locked_at timestamp without time zone
|
||||||
|
@ -4387,13 +4378,6 @@ CREATE INDEX index_whois_records_on_domain_id ON whois_records USING btree (doma
|
||||||
CREATE INDEX index_whois_records_on_registrar_id ON whois_records USING btree (registrar_id);
|
CREATE INDEX index_whois_records_on_registrar_id ON whois_records USING btree (registrar_id);
|
||||||
|
|
||||||
|
|
||||||
--
|
|
||||||
-- Name: unique_data_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
|
||||||
--
|
|
||||||
|
|
||||||
CREATE UNIQUE INDEX unique_data_migrations ON data_migrations USING btree (version);
|
|
||||||
|
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace:
|
||||||
--
|
--
|
||||||
|
@ -4609,6 +4593,8 @@ INSERT INTO schema_migrations (version) VALUES ('20150227092508');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150227113121');
|
INSERT INTO schema_migrations (version) VALUES ('20150227113121');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20150302130224');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150302161712');
|
INSERT INTO schema_migrations (version) VALUES ('20150302161712');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150303130729');
|
INSERT INTO schema_migrations (version) VALUES ('20150303130729');
|
||||||
|
@ -4667,6 +4653,8 @@ INSERT INTO schema_migrations (version) VALUES ('20150417082723');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150421134820');
|
INSERT INTO schema_migrations (version) VALUES ('20150421134820');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20150422090645');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150422092514');
|
INSERT INTO schema_migrations (version) VALUES ('20150422092514');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150422132631');
|
INSERT INTO schema_migrations (version) VALUES ('20150422132631');
|
||||||
|
@ -4711,6 +4699,8 @@ INSERT INTO schema_migrations (version) VALUES ('20150519115050');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150519140853');
|
INSERT INTO schema_migrations (version) VALUES ('20150519140853');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20150519142542');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150519144118');
|
INSERT INTO schema_migrations (version) VALUES ('20150519144118');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150520163237');
|
INSERT INTO schema_migrations (version) VALUES ('20150520163237');
|
||||||
|
@ -4719,6 +4709,12 @@ INSERT INTO schema_migrations (version) VALUES ('20150520164507');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150521120145');
|
INSERT INTO schema_migrations (version) VALUES ('20150521120145');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20150522164020');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20150525075550');
|
||||||
|
|
||||||
|
INSERT INTO schema_migrations (version) VALUES ('20150603141054');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150603141549');
|
INSERT INTO schema_migrations (version) VALUES ('20150603141549');
|
||||||
|
|
||||||
INSERT INTO schema_migrations (version) VALUES ('20150603211318');
|
INSERT INTO schema_migrations (version) VALUES ('20150603211318');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue