rpfw.0.0a-build7.sql 26 KB

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