schema.sql 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 11.5
  5. -- Dumped by pg_dump version 11.5
  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_with_oids = false;
  18. --
  19. -- Name: char_images; Type: TABLE; Schema: public; Owner: -
  20. --
  21. CREATE TABLE public.char_images (
  22. id integer NOT NULL,
  23. char_id integer NOT NULL,
  24. url character varying NOT NULL,
  25. category character varying,
  26. keyword character varying
  27. );
  28. --
  29. -- Name: char_images_id_seq; Type: SEQUENCE; Schema: public; Owner: -
  30. --
  31. CREATE SEQUENCE public.char_images_id_seq
  32. AS integer
  33. START WITH 1
  34. INCREMENT BY 1
  35. NO MINVALUE
  36. NO MAXVALUE
  37. CACHE 1;
  38. --
  39. -- Name: char_images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
  40. --
  41. ALTER SEQUENCE public.char_images_id_seq OWNED BY public.char_images.id;
  42. --
  43. -- Name: characters; Type: TABLE; Schema: public; Owner: -
  44. --
  45. CREATE TABLE public.characters (
  46. id integer NOT NULL,
  47. user_id character varying(50),
  48. name character varying NOT NULL,
  49. species character varying NOT NULL,
  50. types character varying NOT NULL,
  51. age character varying,
  52. weight character varying,
  53. height character varying,
  54. gender character varying,
  55. orientation character varying,
  56. relationship character varying,
  57. attacks character varying,
  58. likes character varying,
  59. dislikes character varying,
  60. personality character varying,
  61. backstory character varying,
  62. other character varying,
  63. edit_url character varying,
  64. active character varying,
  65. dm_notes character varying,
  66. location character varying,
  67. rumors character varying,
  68. hometown character varying,
  69. warnings character varying,
  70. rating character varying
  71. );
  72. --
  73. -- Name: characters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
  74. --
  75. CREATE SEQUENCE public.characters_id_seq
  76. AS integer
  77. START WITH 1
  78. INCREMENT BY 1
  79. NO MINVALUE
  80. NO MAXVALUE
  81. CACHE 1;
  82. --
  83. -- Name: characters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
  84. --
  85. ALTER SEQUENCE public.characters_id_seq OWNED BY public.characters.id;
  86. --
  87. -- Name: types; Type: TABLE; Schema: public; Owner: -
  88. --
  89. CREATE TABLE public.types (
  90. id integer NOT NULL,
  91. name character varying(25) NOT NULL,
  92. color character varying(7)
  93. );
  94. --
  95. -- Name: types_id_seq; Type: SEQUENCE; Schema: public; Owner: -
  96. --
  97. CREATE SEQUENCE public.types_id_seq
  98. AS integer
  99. START WITH 1
  100. INCREMENT BY 1
  101. NO MINVALUE
  102. NO MAXVALUE
  103. CACHE 1;
  104. --
  105. -- Name: types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
  106. --
  107. ALTER SEQUENCE public.types_id_seq OWNED BY public.types.id;
  108. --
  109. -- Name: users; Type: TABLE; Schema: public; Owner: -
  110. --
  111. CREATE TABLE public.users (
  112. id character varying(25) NOT NULL,
  113. level integer DEFAULT 1,
  114. next_level integer DEFAULT 22,
  115. boosted_xp integer DEFAULT 0,
  116. unboosted_xp integer DEFAULT 0,
  117. evs character varying(50) NOT NULL,
  118. hp integer NOT NULL,
  119. attack integer NOT NULL,
  120. defense integer NOT NULL,
  121. sp_attack integer NOT NULL,
  122. sp_defense integer NOT NULL,
  123. speed integer NOT NULL
  124. );
  125. --
  126. -- Name: char_images id; Type: DEFAULT; Schema: public; Owner: -
  127. --
  128. ALTER TABLE ONLY public.char_images ALTER COLUMN id SET DEFAULT nextval('public.char_images_id_seq'::regclass);
  129. --
  130. -- Name: characters id; Type: DEFAULT; Schema: public; Owner: -
  131. --
  132. ALTER TABLE ONLY public.characters ALTER COLUMN id SET DEFAULT nextval('public.characters_id_seq'::regclass);
  133. --
  134. -- Name: types id; Type: DEFAULT; Schema: public; Owner: -
  135. --
  136. ALTER TABLE ONLY public.types ALTER COLUMN id SET DEFAULT nextval('public.types_id_seq'::regclass);
  137. --
  138. -- Data for Name: char_images; Type: TABLE DATA; Schema: public; Owner: -
  139. --
  140. COPY public.char_images (id, char_id, url, category, keyword) FROM stdin;
  141. 2 1 https://i.pinimg.com/originals/e1/af/36/e1af3607885c7bbd3812706bfe9cbafc.jpg SFW Neiro's Nightmare
  142. 4 1 https://i.pinimg.com/originals/53/0a/32/530a3267c68dcf5711855d4329e3bbee.png SFW Hero
  143. 3 1 https://i.imgur.com/CqtkxMr.png SFW Default
  144. \.
  145. --
  146. -- Data for Name: characters; Type: TABLE DATA; Schema: public; Owner: -
  147. --
  148. COPY public.characters (id, user_id, name, species, types, age, weight, height, gender, orientation, relationship, attacks, likes, dislikes, personality, backstory, other, edit_url, active, dm_notes, location, rumors, hometown, warnings, rating) FROM stdin;
  149. 1 215240568245190656 Mizukyu Mimikyu Ghost/Fairy Old 1.5 lbs 0'8" Female Pansexual Married Shadow Claw | Play Rough | Psychic | Shadow Sneak Cuddles, soft things, spooky stories, horror Bullies, rejection, being exposed I am shy and a bit recluse, but warm when you take the time to get to know me. I don't like when people try to see under my disguise, I've lost many friends that way (to death) including my spouse. Really, really really likes to dress up as other pokemon Has existed more years than she cares to count. She is immortal, due to being a ghost. She has learned to carefully hide her appearance as to make sure not to accidentally kill more friends. Took up tailoring to make multiple disguises, because pretending to be a Pikachu forever is boring. Switches disguising with moods. Has made them for all pokemon. Also a master shadow bender ?edit2=2_ABaOnuc3HZEyhI9EeApXcJtsBmDzqtzDGH5De46CfuRBxwVavQKAfTT_LZy_kMH0sz5H7gk Active \N \N Loves children | Hates washing and tailoring disguises | Surprisingly soft | Steals children | Wishes to be admired \N Horrific Eldritch Abomination \N
  150. \.
  151. --
  152. -- Data for Name: types; Type: TABLE DATA; Schema: public; Owner: -
  153. --
  154. COPY public.types (id, name, color) FROM stdin;
  155. 1 Normal #a8a878
  156. 2 Fire #f08030
  157. 3 Fighting #c03028
  158. 4 Water #6890f0
  159. 5 Flying #a890f0
  160. 6 Grass #78c850
  161. 7 Poison #a040a0
  162. 8 Electric #f8d030
  163. 9 Ground #e0c068
  164. 10 Psychic #f85888
  165. 11 Rock #b8a038
  166. 12 Ice #98d8d8
  167. 13 Bug #a8b820
  168. 14 Dragon #7038f8
  169. 15 Ghost #705898
  170. 16 Dark #705848
  171. 17 Steel #b8b8d0
  172. 18 Fairy #ee99ac
  173. 19 Unknown #68a090
  174. \.
  175. --
  176. -- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: -
  177. --
  178. COPY public.users (id, level, next_level, boosted_xp, unboosted_xp, evs, hp, attack, defense, sp_attack, sp_defense, speed) FROM stdin;
  179. 271741998321369088 70 25550 25285 18368 24, 4, 5, 5, 6, 5 432 127 128 143 145 136
  180. 215240568245190656 30 4950 4686 984 23, 4, 6, 6, 4, 5 201 67 67 69 62 64
  181. 263878163975634947 17 1702 1675 1227 19, 5, 4, 5, 6, 4 113 39 41 39 42 38
  182. \.
  183. --
  184. -- Name: char_images_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
  185. --
  186. SELECT pg_catalog.setval('public.char_images_id_seq', 6, true);
  187. --
  188. -- Name: characters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
  189. --
  190. SELECT pg_catalog.setval('public.characters_id_seq', 1, true);
  191. --
  192. -- Name: types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
  193. --
  194. SELECT pg_catalog.setval('public.types_id_seq', 19, true);
  195. --
  196. -- Name: char_images char_images_pkey; Type: CONSTRAINT; Schema: public; Owner: -
  197. --
  198. ALTER TABLE ONLY public.char_images
  199. ADD CONSTRAINT char_images_pkey PRIMARY KEY (id);
  200. --
  201. -- Name: characters characters_pkey; Type: CONSTRAINT; Schema: public; Owner: -
  202. --
  203. ALTER TABLE ONLY public.characters
  204. ADD CONSTRAINT characters_pkey PRIMARY KEY (id);
  205. --
  206. -- Name: types types_name_key; Type: CONSTRAINT; Schema: public; Owner: -
  207. --
  208. ALTER TABLE ONLY public.types
  209. ADD CONSTRAINT types_name_key UNIQUE (name);
  210. --
  211. -- Name: types types_pkey; Type: CONSTRAINT; Schema: public; Owner: -
  212. --
  213. ALTER TABLE ONLY public.types
  214. ADD CONSTRAINT types_pkey PRIMARY KEY (id);
  215. --
  216. -- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: -
  217. --
  218. ALTER TABLE ONLY public.users
  219. ADD CONSTRAINT users_pkey PRIMARY KEY (id);
  220. --
  221. -- Name: characters character_user_id; Type: FK CONSTRAINT; Schema: public; Owner: -
  222. --
  223. ALTER TABLE ONLY public.characters
  224. ADD CONSTRAINT character_user_id FOREIGN KEY (user_id) REFERENCES public.users(id);
  225. --
  226. -- Name: char_images url_character_id; Type: FK CONSTRAINT; Schema: public; Owner: -
  227. --
  228. ALTER TABLE ONLY public.char_images
  229. ADD CONSTRAINT url_character_id FOREIGN KEY (char_id) REFERENCES public.characters(id);
  230. --
  231. -- PostgreSQL database dump complete
  232. --