2
0

rpfw.0.0a-build9.sql 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 12.1
  5. -- Dumped by pg_dump version 12.1
  6. SET statement_timeout = 0;
  7. SET lock_timeout = 0;
  8. SET idle_in_transaction_session_timeout = 0;
  9. SET client_encoding = 'UTF8';
  10. SET standard_conforming_strings = on;
  11. SELECT pg_catalog.set_config('search_path', '', false);
  12. SET check_function_bodies = false;
  13. SET xmloption = content;
  14. SET client_min_messages = warning;
  15. SET row_security = off;
  16. SET default_tablespace = '';
  17. SET default_table_access_method = heap;
  18. --
  19. -- Name: character; Type: TABLE; Schema: public; Owner: rpfw-dev
  20. --
  21. CREATE TABLE public."character" (
  22. id integer NOT NULL,
  23. user_id integer NOT NULL,
  24. name character varying(24) NOT NULL,
  25. skin_id smallint DEFAULT 134 NOT NULL,
  26. cash integer DEFAULT 0,
  27. health real DEFAULT 100,
  28. armour real DEFAULT 100,
  29. jailed smallint DEFAULT 0,
  30. pos_x real DEFAULT '-144.0328'::numeric,
  31. pos_y real DEFAULT 1225.0564,
  32. pos_z real DEFAULT 19.8992,
  33. rotation real DEFAULT 175.5507,
  34. created timestamp without time zone DEFAULT (now())::timestamp without time zone,
  35. job_id smallint DEFAULT 0 NOT NULL,
  36. world_id smallint DEFAULT 0 NOT NULL,
  37. interior_id smallint DEFAULT 0 NOT NULL
  38. );
  39. ALTER TABLE ONLY public."character" ALTER COLUMN job_id SET (n_distinct=0);
  40. ALTER TABLE public."character" OWNER TO "rpfw-dev";
  41. --
  42. -- Name: TABLE "character"; Type: COMMENT; Schema: public; Owner: rpfw-dev
  43. --
  44. COMMENT ON TABLE public."character" IS 'A character of a user. A user can have multiple characters, limited in the game-mode by the charaterArray size, which is set to the definition MAX_CHARACTERS_PER_USER in the game-mode limits section.';
  45. --
  46. -- Name: COLUMN "character".jailed; Type: COMMENT; Schema: public; Owner: rpfw-dev
  47. --
  48. COMMENT ON COLUMN public."character".jailed IS 'Amount of minutes jailed.
  49. TODO Move to own table for criminal database';
  50. --
  51. -- Name: character_character_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  52. --
  53. CREATE SEQUENCE public.character_character_id_seq
  54. AS integer
  55. START WITH 1
  56. INCREMENT BY 1
  57. NO MINVALUE
  58. NO MAXVALUE
  59. CACHE 1;
  60. ALTER TABLE public.character_character_id_seq OWNER TO "rpfw-dev";
  61. --
  62. -- Name: character_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  63. --
  64. CREATE SEQUENCE public.character_id_seq
  65. AS integer
  66. START WITH 1
  67. INCREMENT BY 1
  68. NO MINVALUE
  69. NO MAXVALUE
  70. CACHE 1;
  71. ALTER TABLE public.character_id_seq OWNER TO "rpfw-dev";
  72. --
  73. -- Name: character_id_seq1; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  74. --
  75. CREATE SEQUENCE public.character_id_seq1
  76. AS integer
  77. START WITH 1
  78. INCREMENT BY 1
  79. NO MINVALUE
  80. NO MAXVALUE
  81. CACHE 1;
  82. ALTER TABLE public.character_id_seq1 OWNER TO "rpfw-dev";
  83. --
  84. -- Name: character_id_seq1; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  85. --
  86. ALTER SEQUENCE public.character_id_seq1 OWNED BY public."character".id;
  87. --
  88. -- Name: ip; Type: TABLE; Schema: public; Owner: rpfw-dev
  89. --
  90. CREATE TABLE public.ip (
  91. id integer NOT NULL,
  92. address character varying(45) NOT NULL,
  93. connections integer DEFAULT 1
  94. );
  95. ALTER TABLE public.ip OWNER TO "rpfw-dev";
  96. --
  97. -- Name: COLUMN ip.address; Type: COMMENT; Schema: public; Owner: rpfw-dev
  98. --
  99. COMMENT ON COLUMN public.ip.address IS 'Even though sa-mp only seems to support IPv4.
  100. It''s not likely to be updated, but if so, the database is ready for the "future".';
  101. --
  102. -- Name: ip_ban; Type: TABLE; Schema: public; Owner: rpfw-dev
  103. --
  104. CREATE TABLE public.ip_ban (
  105. id integer NOT NULL,
  106. ip_id integer NOT NULL,
  107. created timestamp without time zone DEFAULT (now())::timestamp without time zone,
  108. expires timestamp without time zone DEFAULT ((now())::timestamp without time zone + '30 days'::interval),
  109. reason character varying(121) NOT NULL,
  110. banner_id integer
  111. );
  112. ALTER TABLE public.ip_ban OWNER TO "rpfw-dev";
  113. --
  114. -- Name: TABLE ip_ban; Type: COMMENT; Schema: public; Owner: rpfw-dev
  115. --
  116. COMMENT ON TABLE public.ip_ban IS 'Ban records per IP.
  117. Historic bans are kept for administrative purposes & active bans are checked against timestamp.';
  118. --
  119. -- Name: COLUMN ip_ban.reason; Type: COMMENT; Schema: public; Owner: rpfw-dev
  120. --
  121. COMMENT ON COLUMN public.ip_ban.reason IS 'Maximum sa-mp message length = 128.
  122. The shortest possible ban command is "/ban 0 ". (7 characters)
  123. 128 - 7 = 121 as maximum ban reason.';
  124. --
  125. -- Name: ip_bans_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  126. --
  127. CREATE SEQUENCE public.ip_bans_id_seq
  128. AS integer
  129. START WITH 1
  130. INCREMENT BY 1
  131. NO MINVALUE
  132. NO MAXVALUE
  133. CACHE 1;
  134. ALTER TABLE public.ip_bans_id_seq OWNER TO "rpfw-dev";
  135. --
  136. -- Name: ip_bans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  137. --
  138. ALTER SEQUENCE public.ip_bans_id_seq OWNED BY public.ip_ban.id;
  139. --
  140. -- Name: ip_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  141. --
  142. CREATE SEQUENCE public.ip_id_seq
  143. AS integer
  144. START WITH 1
  145. INCREMENT BY 1
  146. NO MINVALUE
  147. NO MAXVALUE
  148. CACHE 1;
  149. ALTER TABLE public.ip_id_seq OWNER TO "rpfw-dev";
  150. --
  151. -- Name: ip_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  152. --
  153. ALTER SEQUENCE public.ip_id_seq OWNED BY public.ip.id;
  154. --
  155. -- Name: ip_ip_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  156. --
  157. CREATE SEQUENCE public.ip_ip_id_seq
  158. AS integer
  159. START WITH 1
  160. INCREMENT BY 1
  161. NO MINVALUE
  162. NO MAXVALUE
  163. CACHE 1;
  164. ALTER TABLE public.ip_ip_id_seq OWNER TO "rpfw-dev";
  165. --
  166. -- Name: ip_kick; Type: TABLE; Schema: public; Owner: rpfw-dev
  167. --
  168. CREATE TABLE public.ip_kick (
  169. id integer NOT NULL,
  170. ip_id integer NOT NULL,
  171. created timestamp without time zone DEFAULT (now())::timestamp without time zone NOT NULL,
  172. reason character varying(121) NOT NULL,
  173. kicker_id integer
  174. );
  175. ALTER TABLE public.ip_kick OWNER TO "rpfw-dev";
  176. --
  177. -- Name: ip_kick_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  178. --
  179. CREATE SEQUENCE public.ip_kick_id_seq
  180. AS integer
  181. START WITH 1
  182. INCREMENT BY 1
  183. NO MINVALUE
  184. NO MAXVALUE
  185. CACHE 1;
  186. ALTER TABLE public.ip_kick_id_seq OWNER TO "rpfw-dev";
  187. --
  188. -- Name: ip_kick_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  189. --
  190. ALTER SEQUENCE public.ip_kick_id_seq OWNED BY public.ip_kick.id;
  191. --
  192. -- Name: pickup; Type: TABLE; Schema: public; Owner: rpfw-dev
  193. --
  194. CREATE TABLE public.pickup (
  195. id integer NOT NULL,
  196. object_id smallint NOT NULL,
  197. pos_x real NOT NULL,
  198. pos_y real NOT NULL,
  199. pos_z real NOT NULL,
  200. world_id smallint NOT NULL,
  201. interior_id smallint NOT NULL,
  202. type_id smallint NOT NULL,
  203. pickup_id smallint
  204. );
  205. ALTER TABLE public.pickup OWNER TO "rpfw-dev";
  206. --
  207. -- Name: pickup_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  208. --
  209. CREATE SEQUENCE public.pickup_id_seq
  210. AS integer
  211. START WITH 1
  212. INCREMENT BY 1
  213. NO MINVALUE
  214. NO MAXVALUE
  215. CACHE 1;
  216. ALTER TABLE public.pickup_id_seq OWNER TO "rpfw-dev";
  217. --
  218. -- Name: pickup_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  219. --
  220. ALTER SEQUENCE public.pickup_id_seq OWNED BY public.pickup.id;
  221. --
  222. -- Name: portal; Type: TABLE; Schema: public; Owner: rpfw-dev
  223. --
  224. CREATE TABLE public.portal (
  225. id integer NOT NULL,
  226. object smallint NOT NULL,
  227. pos_x real NOT NULL,
  228. pos_y real NOT NULL,
  229. pos_z real NOT NULL,
  230. world smallint NOT NULL,
  231. exit_object smallint,
  232. exit_pos_x real,
  233. exit_pos_y real,
  234. exit_pos_z real,
  235. exit_world smallint,
  236. pickup_id smallint,
  237. exit_pickup_id smallint,
  238. interior_id smallint DEFAULT 0 NOT NULL,
  239. exit_interior_id smallint
  240. );
  241. ALTER TABLE public.portal OWNER TO "rpfw-dev";
  242. --
  243. -- Name: portal_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  244. --
  245. CREATE SEQUENCE public.portal_id_seq
  246. AS integer
  247. START WITH 1
  248. INCREMENT BY 1
  249. NO MINVALUE
  250. NO MAXVALUE
  251. CACHE 1;
  252. ALTER TABLE public.portal_id_seq OWNER TO "rpfw-dev";
  253. --
  254. -- Name: portal_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  255. --
  256. ALTER SEQUENCE public.portal_id_seq OWNED BY public.portal.id;
  257. --
  258. -- Name: user; Type: TABLE; Schema: public; Owner: rpfw-dev
  259. --
  260. CREATE TABLE public."user" (
  261. id integer NOT NULL,
  262. name character varying(24) NOT NULL,
  263. level smallint DEFAULT 1,
  264. password character varying(128) NOT NULL,
  265. webaccount_id integer,
  266. jailed smallint DEFAULT 0,
  267. created timestamp without time zone DEFAULT (now())::timestamp without time zone
  268. );
  269. ALTER TABLE public."user" OWNER TO "rpfw-dev";
  270. --
  271. -- Name: TABLE "user"; Type: COMMENT; Schema: public; Owner: rpfw-dev
  272. --
  273. COMMENT ON TABLE public."user" IS 'SA-MP player user records';
  274. --
  275. -- Name: user_ban; Type: TABLE; Schema: public; Owner: rpfw-dev
  276. --
  277. CREATE TABLE public.user_ban (
  278. id integer NOT NULL,
  279. user_id integer NOT NULL,
  280. created timestamp without time zone DEFAULT (now())::timestamp without time zone,
  281. expires timestamp without time zone DEFAULT ((now())::timestamp without time zone + '30 days'::interval),
  282. reason character varying(121) NOT NULL,
  283. banner integer,
  284. ip_ban_id integer
  285. );
  286. ALTER TABLE public.user_ban OWNER TO "rpfw-dev";
  287. --
  288. -- Name: COLUMN user_ban.banner; Type: COMMENT; Schema: public; Owner: rpfw-dev
  289. --
  290. COMMENT ON COLUMN public.user_ban.banner IS 'NOT NULL as users can be banned by automation as well as ingame players.';
  291. --
  292. -- Name: COLUMN user_ban.ip_ban_id; Type: COMMENT; Schema: public; Owner: rpfw-dev
  293. --
  294. COMMENT ON COLUMN public.user_ban.ip_ban_id IS 'Optional, as an IP ban might get removed for another user and we want the offending user to remain banned.';
  295. --
  296. -- Name: user_bans_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  297. --
  298. CREATE SEQUENCE public.user_bans_id_seq
  299. AS integer
  300. START WITH 1
  301. INCREMENT BY 1
  302. NO MINVALUE
  303. NO MAXVALUE
  304. CACHE 1;
  305. ALTER TABLE public.user_bans_id_seq OWNER TO "rpfw-dev";
  306. --
  307. -- Name: user_bans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  308. --
  309. ALTER SEQUENCE public.user_bans_id_seq OWNED BY public.user_ban.id;
  310. --
  311. -- Name: user_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  312. --
  313. CREATE SEQUENCE public.user_id_seq
  314. AS integer
  315. START WITH 1
  316. INCREMENT BY 1
  317. NO MINVALUE
  318. NO MAXVALUE
  319. CACHE 1;
  320. ALTER TABLE public.user_id_seq OWNER TO "rpfw-dev";
  321. --
  322. -- Name: user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  323. --
  324. ALTER SEQUENCE public.user_id_seq OWNED BY public."user".id;
  325. --
  326. -- Name: user_ip; Type: TABLE; Schema: public; Owner: rpfw-dev
  327. --
  328. CREATE TABLE public.user_ip (
  329. ip_id integer NOT NULL,
  330. user_id integer NOT NULL,
  331. updated timestamp without time zone DEFAULT (now())::timestamp without time zone NOT NULL,
  332. created timestamp without time zone NOT NULL
  333. );
  334. ALTER TABLE public.user_ip OWNER TO "rpfw-dev";
  335. --
  336. -- Name: COLUMN user_ip.updated; Type: COMMENT; Schema: public; Owner: rpfw-dev
  337. --
  338. COMMENT ON COLUMN public.user_ip.updated IS 'For administration purposes it might be usefull to see when a user last used an IP.';
  339. --
  340. -- Name: COLUMN user_ip.created; Type: COMMENT; Schema: public; Owner: rpfw-dev
  341. --
  342. COMMENT ON COLUMN public.user_ip.created IS 'For administration purposes it might be usefull to see when a user started using an IP.';
  343. --
  344. -- Name: user_kick; Type: TABLE; Schema: public; Owner: rpfw-dev
  345. --
  346. CREATE TABLE public.user_kick (
  347. id integer NOT NULL,
  348. user_id integer NOT NULL,
  349. created timestamp without time zone DEFAULT (now())::timestamp without time zone,
  350. reason character varying(121) NOT NULL,
  351. kicker_id integer,
  352. ip_kick_id integer NOT NULL
  353. );
  354. ALTER TABLE public.user_kick OWNER TO "rpfw-dev";
  355. --
  356. -- Name: user_kicks_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  357. --
  358. CREATE SEQUENCE public.user_kicks_id_seq
  359. AS integer
  360. START WITH 1
  361. INCREMENT BY 1
  362. NO MINVALUE
  363. NO MAXVALUE
  364. CACHE 1;
  365. ALTER TABLE public.user_kicks_id_seq OWNER TO "rpfw-dev";
  366. --
  367. -- Name: user_kicks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: rpfw-dev
  368. --
  369. ALTER SEQUENCE public.user_kicks_id_seq OWNED BY public.user_kick.id;
  370. --
  371. -- Name: user_user_id_seq; Type: SEQUENCE; Schema: public; Owner: rpfw-dev
  372. --
  373. CREATE SEQUENCE public.user_user_id_seq
  374. AS integer
  375. START WITH 1
  376. INCREMENT BY 1
  377. NO MINVALUE
  378. NO MAXVALUE
  379. CACHE 1;
  380. ALTER TABLE public.user_user_id_seq OWNER TO "rpfw-dev";
  381. --
  382. -- Name: character id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  383. --
  384. ALTER TABLE ONLY public."character" ALTER COLUMN id SET DEFAULT nextval('public.character_id_seq1'::regclass);
  385. --
  386. -- Name: ip id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  387. --
  388. ALTER TABLE ONLY public.ip ALTER COLUMN id SET DEFAULT nextval('public.ip_id_seq'::regclass);
  389. --
  390. -- Name: ip_ban id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  391. --
  392. ALTER TABLE ONLY public.ip_ban ALTER COLUMN id SET DEFAULT nextval('public.ip_bans_id_seq'::regclass);
  393. --
  394. -- Name: ip_kick id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  395. --
  396. ALTER TABLE ONLY public.ip_kick ALTER COLUMN id SET DEFAULT nextval('public.ip_kick_id_seq'::regclass);
  397. --
  398. -- Name: pickup id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  399. --
  400. ALTER TABLE ONLY public.pickup ALTER COLUMN id SET DEFAULT nextval('public.pickup_id_seq'::regclass);
  401. --
  402. -- Name: portal id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  403. --
  404. ALTER TABLE ONLY public.portal ALTER COLUMN id SET DEFAULT nextval('public.portal_id_seq'::regclass);
  405. --
  406. -- Name: user id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  407. --
  408. ALTER TABLE ONLY public."user" ALTER COLUMN id SET DEFAULT nextval('public.user_id_seq'::regclass);
  409. --
  410. -- Name: user_ban id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  411. --
  412. ALTER TABLE ONLY public.user_ban ALTER COLUMN id SET DEFAULT nextval('public.user_bans_id_seq'::regclass);
  413. --
  414. -- Name: user_kick id; Type: DEFAULT; Schema: public; Owner: rpfw-dev
  415. --
  416. ALTER TABLE ONLY public.user_kick ALTER COLUMN id SET DEFAULT nextval('public.user_kicks_id_seq'::regclass);
  417. --
  418. -- Data for Name: character; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  419. --
  420. COPY public."character" (id, user_id, name, skin_id, cash, health, armour, jailed, pos_x, pos_y, pos_z, rotation, created, job_id, world_id, interior_id) FROM stdin;
  421. 33 10 Di_Do 197 0 100 0 0 -202.69702 1023.15125 19.58983 66.14459 2020-02-24 18:59:23.497334 0 -1 0
  422. 24 10 Jo_Bo 134 0 100 0 0 -199.87857 1022.3615 19.58164 355.57407 2020-02-17 17:09:01.880547 0 -1 0
  423. 34 10 Test_Do 134 0 100 0 0 -193.46033 1000.64325 19.772333 234.97531 2020-02-24 19:26:17.662659 0 0 0
  424. 31 11 Do_Do 239 0 100 0 0 -26 -55 967.53326 0 2020-02-19 00:55:47.737857 0 0 0
  425. 30 11 Test_Boy 162 0 100 0 0 -124 1224 18.715376 181.99998 2020-02-18 20:12:49.737771 0 0 0
  426. 26 11 Cybernetic_Organism 239 0 100 0 0 633.4422 -572.36035 16.335938 77.659065 2020-02-17 20:54:28.806242 0 0 0
  427. \.
  428. --
  429. -- Data for Name: ip; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  430. --
  431. COPY public.ip (id, address, connections) FROM stdin;
  432. 49 127.0.0.1 199
  433. \.
  434. --
  435. -- Data for Name: ip_ban; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  436. --
  437. COPY public.ip_ban (id, ip_id, created, expires, reason, banner_id) FROM stdin;
  438. \.
  439. --
  440. -- Data for Name: ip_kick; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  441. --
  442. COPY public.ip_kick (id, ip_id, created, reason, kicker_id) FROM stdin;
  443. 12 49 2020-02-18 02:29:56.536483 Banned: \N
  444. 13 49 2020-02-18 02:39:55.916765 Banned: \N
  445. 14 49 2020-02-18 02:42:51.436805 Test \N
  446. 15 49 2020-02-18 03:24:18.315046 Logged in with banned account: 10 \N
  447. 16 49 2020-02-18 03:33:37.433026 Logged in with banned account: 10 \N
  448. 17 49 2020-02-18 03:51:26.905196 Logged in with banned account: 10 \N
  449. 18 49 2020-02-18 03:55:31.348177 Logged in with banned account: 10 \N
  450. 19 49 2020-02-18 04:01:07.793421 Logged in with banned account: 10 \N
  451. \.
  452. --
  453. -- Data for Name: pickup; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  454. --
  455. COPY public.pickup (id, object_id, pos_x, pos_y, pos_z, world_id, interior_id, type_id, pickup_id) FROM stdin;
  456. \.
  457. --
  458. -- Data for Name: portal; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  459. --
  460. COPY public.portal (id, object, pos_x, pos_y, pos_z, world, exit_object, exit_pos_x, exit_pos_y, exit_pos_z, exit_world, pickup_id, exit_pickup_id, interior_id, exit_interior_id) FROM stdin;
  461. \.
  462. --
  463. -- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  464. --
  465. COPY public."user" (id, name, level, password, webaccount_id, jailed, created) FROM stdin;
  466. 10 Player 6 DF3210C97BB5895B32A09C3CD9A905248FD2F34720711152C92EE6D1828E3122B0844C565536C5214B5F2C137FF638BD86F03EBC412DDDDD4018F968819BEEC0 \N 0 2020-02-17 17:09:01.874546
  467. 11 tBKwtWS 10 DF3210C97BB5895B32A09C3CD9A905248FD2F34720711152C92EE6D1828E3122B0844C565536C5214B5F2C137FF638BD86F03EBC412DDDDD4018F968819BEEC0 \N 0 2020-02-17 20:54:28.754239
  468. \.
  469. --
  470. -- Data for Name: user_ban; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  471. --
  472. COPY public.user_ban (id, user_id, created, expires, reason, banner, ip_ban_id) FROM stdin;
  473. \.
  474. --
  475. -- Data for Name: user_ip; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  476. --
  477. COPY public.user_ip (ip_id, user_id, updated, created) FROM stdin;
  478. \.
  479. --
  480. -- Data for Name: user_kick; Type: TABLE DATA; Schema: public; Owner: rpfw-dev
  481. --
  482. COPY public.user_kick (id, user_id, created, reason, kicker_id, ip_kick_id) FROM stdin;
  483. 10 10 2020-02-18 04:01:07.841424 Logged in with banned account: 10 \N 19
  484. \.
  485. --
  486. -- Name: character_character_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  487. --
  488. SELECT pg_catalog.setval('public.character_character_id_seq', 1, false);
  489. --
  490. -- Name: character_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  491. --
  492. SELECT pg_catalog.setval('public.character_id_seq', 1, false);
  493. --
  494. -- Name: character_id_seq1; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  495. --
  496. SELECT pg_catalog.setval('public.character_id_seq1', 34, true);
  497. --
  498. -- Name: ip_bans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  499. --
  500. SELECT pg_catalog.setval('public.ip_bans_id_seq', 8, true);
  501. --
  502. -- Name: ip_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  503. --
  504. SELECT pg_catalog.setval('public.ip_id_seq', 247, true);
  505. --
  506. -- Name: ip_ip_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  507. --
  508. SELECT pg_catalog.setval('public.ip_ip_id_seq', 133, true);
  509. --
  510. -- Name: ip_kick_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  511. --
  512. SELECT pg_catalog.setval('public.ip_kick_id_seq', 19, true);
  513. --
  514. -- Name: pickup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  515. --
  516. SELECT pg_catalog.setval('public.pickup_id_seq', 29, true);
  517. --
  518. -- Name: portal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  519. --
  520. SELECT pg_catalog.setval('public.portal_id_seq', 42, true);
  521. --
  522. -- Name: user_bans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  523. --
  524. SELECT pg_catalog.setval('public.user_bans_id_seq', 5, true);
  525. --
  526. -- Name: user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  527. --
  528. SELECT pg_catalog.setval('public.user_id_seq', 12, true);
  529. --
  530. -- Name: user_kicks_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  531. --
  532. SELECT pg_catalog.setval('public.user_kicks_id_seq', 10, true);
  533. --
  534. -- Name: user_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: rpfw-dev
  535. --
  536. SELECT pg_catalog.setval('public.user_user_id_seq', 19, true);
  537. --
  538. -- Name: character character_name_key; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  539. --
  540. ALTER TABLE ONLY public."character"
  541. ADD CONSTRAINT character_name_key UNIQUE (name);
  542. --
  543. -- Name: character character_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  544. --
  545. ALTER TABLE ONLY public."character"
  546. ADD CONSTRAINT character_pkey PRIMARY KEY (id);
  547. --
  548. -- Name: ip ip_address_key; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  549. --
  550. ALTER TABLE ONLY public.ip
  551. ADD CONSTRAINT ip_address_key UNIQUE (address);
  552. --
  553. -- Name: ip_ban ip_bans_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  554. --
  555. ALTER TABLE ONLY public.ip_ban
  556. ADD CONSTRAINT ip_bans_pkey PRIMARY KEY (id);
  557. --
  558. -- Name: ip_kick ip_kick_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  559. --
  560. ALTER TABLE ONLY public.ip_kick
  561. ADD CONSTRAINT ip_kick_pkey PRIMARY KEY (id);
  562. --
  563. -- Name: ip ip_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  564. --
  565. ALTER TABLE ONLY public.ip
  566. ADD CONSTRAINT ip_pkey PRIMARY KEY (id);
  567. --
  568. -- Name: pickup pickup_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  569. --
  570. ALTER TABLE ONLY public.pickup
  571. ADD CONSTRAINT pickup_pkey PRIMARY KEY (id);
  572. --
  573. -- Name: portal portal_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  574. --
  575. ALTER TABLE ONLY public.portal
  576. ADD CONSTRAINT portal_pkey PRIMARY KEY (id);
  577. --
  578. -- Name: portal unique_location; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  579. --
  580. ALTER TABLE ONLY public.portal
  581. ADD CONSTRAINT unique_location UNIQUE (pos_x, pos_y, pos_z, world);
  582. --
  583. -- Name: user_ban user_bans_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  584. --
  585. ALTER TABLE ONLY public.user_ban
  586. ADD CONSTRAINT user_bans_pkey PRIMARY KEY (id);
  587. --
  588. -- Name: user_ip user_ip_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  589. --
  590. ALTER TABLE ONLY public.user_ip
  591. ADD CONSTRAINT user_ip_pkey PRIMARY KEY (ip_id, user_id);
  592. --
  593. -- Name: user_kick user_kicks_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  594. --
  595. ALTER TABLE ONLY public.user_kick
  596. ADD CONSTRAINT user_kicks_pkey PRIMARY KEY (id);
  597. --
  598. -- Name: user user_name_key; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  599. --
  600. ALTER TABLE ONLY public."user"
  601. ADD CONSTRAINT user_name_key UNIQUE (name);
  602. --
  603. -- Name: user user_pkey; Type: CONSTRAINT; Schema: public; Owner: rpfw-dev
  604. --
  605. ALTER TABLE ONLY public."user"
  606. ADD CONSTRAINT user_pkey PRIMARY KEY (id);
  607. --
  608. -- Name: character character_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  609. --
  610. ALTER TABLE ONLY public."character"
  611. ADD CONSTRAINT character_user_id_fkey FOREIGN KEY (user_id) REFERENCES public."user"(id) ON UPDATE CASCADE ON DELETE CASCADE;
  612. --
  613. -- Name: user_ban ip_ban_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  614. --
  615. ALTER TABLE ONLY public.user_ban
  616. ADD CONSTRAINT ip_ban_id_fkey FOREIGN KEY (ip_ban_id) REFERENCES public.ip_ban(id) ON UPDATE CASCADE NOT VALID;
  617. --
  618. -- Name: CONSTRAINT ip_ban_id_fkey ON user_ban; Type: COMMENT; Schema: public; Owner: rpfw-dev
  619. --
  620. COMMENT ON CONSTRAINT ip_ban_id_fkey ON public.user_ban IS 'IP ban can be removed while character ban remains';
  621. --
  622. -- Name: ip_ban ip_bans_banner_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  623. --
  624. ALTER TABLE ONLY public.ip_ban
  625. ADD CONSTRAINT ip_bans_banner_fkey FOREIGN KEY (banner_id) REFERENCES public."user"(id) ON UPDATE CASCADE;
  626. --
  627. -- Name: ip_ban ip_bans_ip_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  628. --
  629. ALTER TABLE ONLY public.ip_ban
  630. ADD CONSTRAINT ip_bans_ip_id_fkey FOREIGN KEY (ip_id) REFERENCES public.ip(id) ON UPDATE CASCADE ON DELETE CASCADE;
  631. --
  632. -- Name: ip_kick ip_kick_ip_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  633. --
  634. ALTER TABLE ONLY public.ip_kick
  635. ADD CONSTRAINT ip_kick_ip_id_fkey FOREIGN KEY (ip_id) REFERENCES public.ip(id) ON UPDATE CASCADE ON DELETE CASCADE;
  636. --
  637. -- Name: ip_kick ip_kick_kicker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  638. --
  639. ALTER TABLE ONLY public.ip_kick
  640. ADD CONSTRAINT ip_kick_kicker_id_fkey FOREIGN KEY (kicker_id) REFERENCES public."user"(id) ON UPDATE CASCADE;
  641. --
  642. -- Name: user_ban user_bans_banner_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  643. --
  644. ALTER TABLE ONLY public.user_ban
  645. ADD CONSTRAINT user_bans_banner_fkey FOREIGN KEY (banner) REFERENCES public."user"(id) ON UPDATE CASCADE;
  646. --
  647. -- Name: user_ban user_bans_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  648. --
  649. ALTER TABLE ONLY public.user_ban
  650. ADD CONSTRAINT user_bans_user_id_fkey FOREIGN KEY (user_id) REFERENCES public."user"(id) ON UPDATE CASCADE ON DELETE CASCADE;
  651. --
  652. -- Name: user_ip user_ip_ip_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  653. --
  654. ALTER TABLE ONLY public.user_ip
  655. ADD CONSTRAINT user_ip_ip_id_fkey FOREIGN KEY (ip_id) REFERENCES public.ip(id) ON UPDATE CASCADE ON DELETE CASCADE;
  656. --
  657. -- Name: user_ip user_ip_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  658. --
  659. ALTER TABLE ONLY public.user_ip
  660. ADD CONSTRAINT user_ip_user_id_fkey FOREIGN KEY (user_id) REFERENCES public."user"(id) ON UPDATE CASCADE ON DELETE CASCADE;
  661. --
  662. -- Name: user_kick user_kick_ip_kick_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  663. --
  664. ALTER TABLE ONLY public.user_kick
  665. ADD CONSTRAINT user_kick_ip_kick_id_fkey FOREIGN KEY (ip_kick_id) REFERENCES public.ip_kick(id) NOT VALID;
  666. --
  667. -- Name: user_kick user_kick_kicker_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  668. --
  669. ALTER TABLE ONLY public.user_kick
  670. ADD CONSTRAINT user_kick_kicker_id_fkey FOREIGN KEY (kicker_id) REFERENCES public."user"(id) ON UPDATE CASCADE;
  671. --
  672. -- Name: user_kick user_kick_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: rpfw-dev
  673. --
  674. ALTER TABLE ONLY public.user_kick
  675. ADD CONSTRAINT user_kick_user_id_fkey FOREIGN KEY (user_id) REFERENCES public."user"(id) ON UPDATE CASCADE ON DELETE CASCADE;
  676. --
  677. -- PostgreSQL database dump complete
  678. --