aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/PGSQL/Resources/EstateStore.migrations
blob: 63b70bd555f0426dcda81640afce4685e7dea8d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
:VERSION 12

BEGIN TRANSACTION;

-- ----------------------------
--  Table structure for estate_groups
-- ----------------------------
CREATE TABLE IF NOT EXISTS "public"."estate_groups" (
	"EstateID" int4 NOT NULL,
	"uuid" uuid NOT NULL
)
WITH (OIDS=FALSE);

--  Indexes structure for table estate_groups
-- ----------------------------
CREATE INDEX IF NOT EXISTS "ix_estate_groups" ON "public"."estate_groups" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);

-- ----------------------------
--  Table structure for estate_managers
-- ----------------------------
CREATE TABLE IF NOT EXISTS "public"."estate_managers" (
	"EstateID" int4 NOT NULL,
	"uuid" uuid NOT NULL
)
WITH (OIDS=FALSE);

--  Indexes structure for table estate_managers
-- ----------------------------
CREATE INDEX IF NOT EXISTS "ix_estate_managers" ON "public"."estate_managers" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);

-- ----------------------------
--  Table structure for estate_map
-- ----------------------------
CREATE TABLE IF NOT EXISTS "public"."estate_map" (
	"RegionID" uuid NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000'::uuid,
	"EstateID" int4 NOT NULL
)
WITH (OIDS=FALSE);

--  Primary key structure for table estate_map
-- ----------------------------
ALTER TABLE "public"."estate_map" ADD PRIMARY KEY ("RegionID") NOT DEFERRABLE INITIALLY IMMEDIATE;

-- ----------------------------
--  Table structure for estate_settings
-- ----------------------------
CREATE TABLE IF NOT EXISTS "public"."estate_settings" (
	"EstateID" int4 NOT NULL DEFAULT nextval('estate_settings_id'::regclass),
	"EstateName" varchar(64) DEFAULT NULL::character varying COLLATE "default",
	"AbuseEmailToEstateOwner" bool NOT NULL,
	"DenyAnonymous" bool NOT NULL,
	"ResetHomeOnTeleport" bool NOT NULL,
	"FixedSun" bool NOT NULL,
	"DenyTransacted" bool NOT NULL,
	"BlockDwell" bool NOT NULL,
	"DenyIdentified" bool NOT NULL,
	"AllowVoice" bool NOT NULL,
	"UseGlobalTime" bool NOT NULL,
	"PricePerMeter" int4 NOT NULL,
	"TaxFree" bool NOT NULL,
	"AllowDirectTeleport" bool NOT NULL,
	"RedirectGridX" int4 NOT NULL,
	"RedirectGridY" int4 NOT NULL,
	"ParentEstateID" int4 NOT NULL,
	"SunPosition" float8 NOT NULL,
	"EstateSkipScripts" bool NOT NULL,
	"BillableFactor" float8 NOT NULL,
	"PublicAccess" bool NOT NULL,
	"AbuseEmail" varchar(255) NOT NULL COLLATE "default",
	"EstateOwner" uuid NOT NULL,
	"DenyMinors" bool NOT NULL,
	"AllowLandmark" bool NOT NULL DEFAULT true,
	"AllowParcelChanges" bool NOT NULL DEFAULT true,
	"AllowSetHome" bool NOT NULL DEFAULT true
)
WITH (OIDS=FALSE);

--  Primary key structure for table estate_settings
-- ----------------------------
ALTER TABLE "public"."estate_settings" ADD PRIMARY KEY ("EstateID") NOT DEFERRABLE INITIALLY IMMEDIATE;

-- ----------------------------
--  Table structure for estate_users
-- ----------------------------
CREATE TABLE IF NOT EXISTS "public"."estate_users" (
	"EstateID" int4 NOT NULL,
	"uuid" uuid NOT NULL
)
WITH (OIDS=FALSE);

--  Indexes structure for table estate_users
-- ----------------------------
CREATE INDEX  IF NOT EXISTS "ix_estate_users" ON "public"."estate_users" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);

-- ----------------------------
--  Table structure for estateban
-- ----------------------------
CREATE TABLE IF NOT EXISTS "public"."estateban" (
	"EstateID" int4 NOT NULL,
	"bannedUUID" uuid NOT NULL,
	"bannedIp" varchar(16) COLLATE "default",
	"bannedIpHostMask" varchar(16) COLLATE "default",
	"bannedNameMask" varchar(64) COLLATE "default"
)
WITH (OIDS=FALSE);

--  Indexes structure for table estateban
-- ----------------------------
CREATE INDEX IF NOT EXISTS  "ix_estateban" ON "public"."estateban" USING btree("EstateID" "pg_catalog"."int4_ops" ASC NULLS LAST);

COMMIT;