rpfw.0.0a-build8.sql 26 KB

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