sports.pgsql 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143
  1. --
  2. -- PostgreSQL database dump
  3. --
  4. -- Dumped from database version 14.7
  5. -- Dumped by pg_dump version 14.7
  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: achievement; Type: TABLE; Schema: public; Owner: sports
  20. --
  21. CREATE TABLE public.achievement (
  22. id bigint NOT NULL,
  23. time_received timestamp with time zone NOT NULL,
  24. achievement_id bigint NOT NULL,
  25. sportsman_id bigint NOT NULL
  26. );
  27. ALTER TABLE public.achievement OWNER TO sports;
  28. --
  29. -- Name: achievement_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  30. --
  31. ALTER TABLE public.achievement ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  32. SEQUENCE NAME public.achievement_id_seq
  33. START WITH 1
  34. INCREMENT BY 1
  35. NO MINVALUE
  36. NO MAXVALUE
  37. CACHE 1
  38. );
  39. --
  40. -- Name: achievements; Type: TABLE; Schema: public; Owner: sports
  41. --
  42. CREATE TABLE public.achievements (
  43. id bigint NOT NULL,
  44. title character varying(128) NOT NULL,
  45. description character varying(255) NOT NULL,
  46. image character varying(100) NOT NULL,
  47. image_animated character varying(100),
  48. value double precision NOT NULL
  49. );
  50. ALTER TABLE public.achievements OWNER TO sports;
  51. --
  52. -- Name: achievements_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  53. --
  54. ALTER TABLE public.achievements ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  55. SEQUENCE NAME public.achievements_id_seq
  56. START WITH 1
  57. INCREMENT BY 1
  58. NO MINVALUE
  59. NO MAXVALUE
  60. CACHE 1
  61. );
  62. --
  63. -- Name: auth_group; Type: TABLE; Schema: public; Owner: sports
  64. --
  65. CREATE TABLE public.auth_group (
  66. id integer NOT NULL,
  67. name character varying(150) NOT NULL
  68. );
  69. ALTER TABLE public.auth_group OWNER TO sports;
  70. --
  71. -- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  72. --
  73. ALTER TABLE public.auth_group ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  74. SEQUENCE NAME public.auth_group_id_seq
  75. START WITH 1
  76. INCREMENT BY 1
  77. NO MINVALUE
  78. NO MAXVALUE
  79. CACHE 1
  80. );
  81. --
  82. -- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: sports
  83. --
  84. CREATE TABLE public.auth_group_permissions (
  85. id bigint NOT NULL,
  86. group_id integer NOT NULL,
  87. permission_id integer NOT NULL
  88. );
  89. ALTER TABLE public.auth_group_permissions OWNER TO sports;
  90. --
  91. -- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  92. --
  93. ALTER TABLE public.auth_group_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  94. SEQUENCE NAME public.auth_group_permissions_id_seq
  95. START WITH 1
  96. INCREMENT BY 1
  97. NO MINVALUE
  98. NO MAXVALUE
  99. CACHE 1
  100. );
  101. --
  102. -- Name: auth_permission; Type: TABLE; Schema: public; Owner: sports
  103. --
  104. CREATE TABLE public.auth_permission (
  105. id integer NOT NULL,
  106. name character varying(255) NOT NULL,
  107. content_type_id integer NOT NULL,
  108. codename character varying(100) NOT NULL
  109. );
  110. ALTER TABLE public.auth_permission OWNER TO sports;
  111. --
  112. -- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  113. --
  114. ALTER TABLE public.auth_permission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  115. SEQUENCE NAME public.auth_permission_id_seq
  116. START WITH 1
  117. INCREMENT BY 1
  118. NO MINVALUE
  119. NO MAXVALUE
  120. CACHE 1
  121. );
  122. --
  123. -- Name: auth_user; Type: TABLE; Schema: public; Owner: sports
  124. --
  125. CREATE TABLE public.auth_user (
  126. id bigint NOT NULL,
  127. password character varying(128) NOT NULL,
  128. last_login timestamp with time zone,
  129. is_superuser boolean NOT NULL,
  130. username character varying(150) NOT NULL,
  131. first_name character varying(150) NOT NULL,
  132. last_name character varying(150) NOT NULL,
  133. email character varying(254) NOT NULL,
  134. is_staff boolean NOT NULL,
  135. is_active boolean NOT NULL,
  136. date_joined timestamp with time zone NOT NULL,
  137. phone_number character varying(60) NOT NULL
  138. );
  139. ALTER TABLE public.auth_user OWNER TO sports;
  140. --
  141. -- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: sports
  142. --
  143. CREATE TABLE public.auth_user_groups (
  144. id bigint NOT NULL,
  145. sharixuser_id bigint NOT NULL,
  146. group_id integer NOT NULL
  147. );
  148. ALTER TABLE public.auth_user_groups OWNER TO sports;
  149. --
  150. -- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  151. --
  152. ALTER TABLE public.auth_user_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  153. SEQUENCE NAME public.auth_user_groups_id_seq
  154. START WITH 1
  155. INCREMENT BY 1
  156. NO MINVALUE
  157. NO MAXVALUE
  158. CACHE 1
  159. );
  160. --
  161. -- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  162. --
  163. ALTER TABLE public.auth_user ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  164. SEQUENCE NAME public.auth_user_id_seq
  165. START WITH 1
  166. INCREMENT BY 1
  167. NO MINVALUE
  168. NO MAXVALUE
  169. CACHE 1
  170. );
  171. --
  172. -- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: sports
  173. --
  174. CREATE TABLE public.auth_user_user_permissions (
  175. id bigint NOT NULL,
  176. sharixuser_id bigint NOT NULL,
  177. permission_id integer NOT NULL
  178. );
  179. ALTER TABLE public.auth_user_user_permissions OWNER TO sports;
  180. --
  181. -- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  182. --
  183. ALTER TABLE public.auth_user_user_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  184. SEQUENCE NAME public.auth_user_user_permissions_id_seq
  185. START WITH 1
  186. INCREMENT BY 1
  187. NO MINVALUE
  188. NO MAXVALUE
  189. CACHE 1
  190. );
  191. --
  192. -- Name: authtoken_token; Type: TABLE; Schema: public; Owner: sports
  193. --
  194. CREATE TABLE public.authtoken_token (
  195. key character varying(40) NOT NULL,
  196. created timestamp with time zone NOT NULL,
  197. user_id bigint NOT NULL
  198. );
  199. ALTER TABLE public.authtoken_token OWNER TO sports;
  200. --
  201. -- Name: blocked_sportsman; Type: TABLE; Schema: public; Owner: sports
  202. --
  203. CREATE TABLE public.blocked_sportsman (
  204. id bigint NOT NULL,
  205. sportsman_id bigint NOT NULL,
  206. sportsman_blocked_id bigint NOT NULL
  207. );
  208. ALTER TABLE public.blocked_sportsman OWNER TO sports;
  209. --
  210. -- Name: blocked_sportsman_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  211. --
  212. ALTER TABLE public.blocked_sportsman ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  213. SEQUENCE NAME public.blocked_sportsman_id_seq
  214. START WITH 1
  215. INCREMENT BY 1
  216. NO MINVALUE
  217. NO MAXVALUE
  218. CACHE 1
  219. );
  220. --
  221. -- Name: browse_event; Type: TABLE; Schema: public; Owner: sports
  222. --
  223. CREATE TABLE public.browse_event (
  224. id bigint NOT NULL,
  225. time_browsed timestamp with time zone NOT NULL,
  226. event_browseevent_id bigint NOT NULL,
  227. sportsman_id bigint NOT NULL
  228. );
  229. ALTER TABLE public.browse_event OWNER TO sports;
  230. --
  231. -- Name: browse_event_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  232. --
  233. ALTER TABLE public.browse_event ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  234. SEQUENCE NAME public.browse_event_id_seq
  235. START WITH 1
  236. INCREMENT BY 1
  237. NO MINVALUE
  238. NO MAXVALUE
  239. CACHE 1
  240. );
  241. --
  242. -- Name: browse_sportsman; Type: TABLE; Schema: public; Owner: sports
  243. --
  244. CREATE TABLE public.browse_sportsman (
  245. id bigint NOT NULL,
  246. time_browsed timestamp with time zone NOT NULL,
  247. sportsman_id bigint NOT NULL,
  248. sportsman_browsed_id bigint NOT NULL
  249. );
  250. ALTER TABLE public.browse_sportsman OWNER TO sports;
  251. --
  252. -- Name: browse_sportsman_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  253. --
  254. ALTER TABLE public.browse_sportsman ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  255. SEQUENCE NAME public.browse_sportsman_id_seq
  256. START WITH 1
  257. INCREMENT BY 1
  258. NO MINVALUE
  259. NO MAXVALUE
  260. CACHE 1
  261. );
  262. --
  263. -- Name: client; Type: TABLE; Schema: public; Owner: sports
  264. --
  265. CREATE TABLE public.client (
  266. id bigint NOT NULL,
  267. requirements character varying(150) NOT NULL,
  268. status character varying(150) NOT NULL,
  269. id_metaservice bigint,
  270. is_global boolean NOT NULL,
  271. is_visible boolean NOT NULL,
  272. ticket_status_id bigint NOT NULL,
  273. user_id bigint NOT NULL
  274. );
  275. ALTER TABLE public.client OWNER TO sports;
  276. --
  277. -- Name: client_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  278. --
  279. ALTER TABLE public.client ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  280. SEQUENCE NAME public.client_id_seq
  281. START WITH 1
  282. INCREMENT BY 1
  283. NO MINVALUE
  284. NO MAXVALUE
  285. CACHE 1
  286. );
  287. --
  288. -- Name: company; Type: TABLE; Schema: public; Owner: sports
  289. --
  290. CREATE TABLE public.company (
  291. id bigint NOT NULL,
  292. legal_name character varying(150) NOT NULL,
  293. inn character varying(12) NOT NULL,
  294. kpp character varying(9) NOT NULL,
  295. ogrn character varying(13) NOT NULL,
  296. bank_name character varying(150) NOT NULL,
  297. bik character varying(9) NOT NULL,
  298. ks character varying(50) NOT NULL,
  299. rs character varying(50) NOT NULL,
  300. address character varying(150) NOT NULL,
  301. requirements character varying(150) NOT NULL,
  302. status character varying(150) NOT NULL,
  303. id_metaservice bigint,
  304. is_global boolean NOT NULL,
  305. is_visible boolean NOT NULL,
  306. repr_id_id bigint NOT NULL,
  307. ticket_status_id bigint NOT NULL
  308. );
  309. ALTER TABLE public.company OWNER TO sports;
  310. --
  311. -- Name: company_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  312. --
  313. ALTER TABLE public.company ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  314. SEQUENCE NAME public.company_id_seq
  315. START WITH 1
  316. INCREMENT BY 1
  317. NO MINVALUE
  318. NO MAXVALUE
  319. CACHE 1
  320. );
  321. --
  322. -- Name: django_admin_log; Type: TABLE; Schema: public; Owner: sports
  323. --
  324. CREATE TABLE public.django_admin_log (
  325. id integer NOT NULL,
  326. action_time timestamp with time zone NOT NULL,
  327. object_id text,
  328. object_repr character varying(200) NOT NULL,
  329. action_flag smallint NOT NULL,
  330. change_message text NOT NULL,
  331. content_type_id integer,
  332. user_id bigint NOT NULL,
  333. CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0))
  334. );
  335. ALTER TABLE public.django_admin_log OWNER TO sports;
  336. --
  337. -- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  338. --
  339. ALTER TABLE public.django_admin_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  340. SEQUENCE NAME public.django_admin_log_id_seq
  341. START WITH 1
  342. INCREMENT BY 1
  343. NO MINVALUE
  344. NO MAXVALUE
  345. CACHE 1
  346. );
  347. --
  348. -- Name: django_content_type; Type: TABLE; Schema: public; Owner: sports
  349. --
  350. CREATE TABLE public.django_content_type (
  351. id integer NOT NULL,
  352. app_label character varying(100) NOT NULL,
  353. model character varying(100) NOT NULL
  354. );
  355. ALTER TABLE public.django_content_type OWNER TO sports;
  356. --
  357. -- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  358. --
  359. ALTER TABLE public.django_content_type ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  360. SEQUENCE NAME public.django_content_type_id_seq
  361. START WITH 1
  362. INCREMENT BY 1
  363. NO MINVALUE
  364. NO MAXVALUE
  365. CACHE 1
  366. );
  367. --
  368. -- Name: django_flatpage; Type: TABLE; Schema: public; Owner: sports
  369. --
  370. CREATE TABLE public.django_flatpage (
  371. id integer NOT NULL,
  372. url character varying(100) NOT NULL,
  373. title character varying(200) NOT NULL,
  374. content text NOT NULL,
  375. enable_comments boolean NOT NULL,
  376. template_name character varying(70) NOT NULL,
  377. registration_required boolean NOT NULL
  378. );
  379. ALTER TABLE public.django_flatpage OWNER TO sports;
  380. --
  381. -- Name: django_flatpage_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  382. --
  383. ALTER TABLE public.django_flatpage ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  384. SEQUENCE NAME public.django_flatpage_id_seq
  385. START WITH 1
  386. INCREMENT BY 1
  387. NO MINVALUE
  388. NO MAXVALUE
  389. CACHE 1
  390. );
  391. --
  392. -- Name: django_flatpage_sites; Type: TABLE; Schema: public; Owner: sports
  393. --
  394. CREATE TABLE public.django_flatpage_sites (
  395. id bigint NOT NULL,
  396. flatpage_id integer NOT NULL,
  397. site_id integer NOT NULL
  398. );
  399. ALTER TABLE public.django_flatpage_sites OWNER TO sports;
  400. --
  401. -- Name: django_flatpage_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  402. --
  403. ALTER TABLE public.django_flatpage_sites ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  404. SEQUENCE NAME public.django_flatpage_sites_id_seq
  405. START WITH 1
  406. INCREMENT BY 1
  407. NO MINVALUE
  408. NO MAXVALUE
  409. CACHE 1
  410. );
  411. --
  412. -- Name: django_migrations; Type: TABLE; Schema: public; Owner: sports
  413. --
  414. CREATE TABLE public.django_migrations (
  415. id bigint NOT NULL,
  416. app character varying(255) NOT NULL,
  417. name character varying(255) NOT NULL,
  418. applied timestamp with time zone NOT NULL
  419. );
  420. ALTER TABLE public.django_migrations OWNER TO sports;
  421. --
  422. -- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  423. --
  424. ALTER TABLE public.django_migrations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  425. SEQUENCE NAME public.django_migrations_id_seq
  426. START WITH 1
  427. INCREMENT BY 1
  428. NO MINVALUE
  429. NO MAXVALUE
  430. CACHE 1
  431. );
  432. --
  433. -- Name: django_session; Type: TABLE; Schema: public; Owner: sports
  434. --
  435. CREATE TABLE public.django_session (
  436. session_key character varying(40) NOT NULL,
  437. session_data text NOT NULL,
  438. expire_date timestamp with time zone NOT NULL
  439. );
  440. ALTER TABLE public.django_session OWNER TO sports;
  441. --
  442. -- Name: django_site; Type: TABLE; Schema: public; Owner: sports
  443. --
  444. CREATE TABLE public.django_site (
  445. id integer NOT NULL,
  446. domain character varying(100) NOT NULL,
  447. name character varying(50) NOT NULL
  448. );
  449. ALTER TABLE public.django_site OWNER TO sports;
  450. --
  451. -- Name: django_site_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  452. --
  453. ALTER TABLE public.django_site ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  454. SEQUENCE NAME public.django_site_id_seq
  455. START WITH 1
  456. INCREMENT BY 1
  457. NO MINVALUE
  458. NO MAXVALUE
  459. CACHE 1
  460. );
  461. --
  462. -- Name: documents; Type: TABLE; Schema: public; Owner: sports
  463. --
  464. CREATE TABLE public.documents (
  465. id bigint NOT NULL,
  466. check_date timestamp with time zone NOT NULL,
  467. check_level integer NOT NULL,
  468. expire_date timestamp with time zone,
  469. id_metaservice bigint,
  470. requirements character varying(150) NOT NULL,
  471. status character varying(150) NOT NULL,
  472. datalink text NOT NULL,
  473. doc_type character varying(150) NOT NULL,
  474. is_global boolean NOT NULL,
  475. is_visible boolean NOT NULL,
  476. checked_by_id bigint,
  477. company_id_id bigint,
  478. ticket_status_id bigint NOT NULL,
  479. user_id_id bigint NOT NULL
  480. );
  481. ALTER TABLE public.documents OWNER TO sports;
  482. --
  483. -- Name: documents_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  484. --
  485. ALTER TABLE public.documents ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  486. SEQUENCE NAME public.documents_id_seq
  487. START WITH 1
  488. INCREMENT BY 1
  489. NO MINVALUE
  490. NO MAXVALUE
  491. CACHE 1
  492. );
  493. --
  494. -- Name: event; Type: TABLE; Schema: public; Owner: sports
  495. --
  496. CREATE TABLE public.event (
  497. id bigint NOT NULL,
  498. rating_id integer,
  499. attempts integer,
  500. order_place_type character varying(150),
  501. order_place_start character varying(150),
  502. order_place_start_gps character varying(150),
  503. order_place_start_sector integer,
  504. order_place_start_real character varying(150),
  505. order_place_start_real_gps character varying(150),
  506. order_place_finish_predicted character varying(150),
  507. order_place_finish_predicted_gps character varying(150),
  508. order_place_finish_sector integer,
  509. order_place_finish_real character varying(150),
  510. order_place_finish_real_gps character varying(150),
  511. required_gender character varying(1),
  512. description character varying(512) NOT NULL,
  513. time_updated timestamp with time zone,
  514. time_close timestamp with time zone,
  515. max_participants integer NOT NULL,
  516. min_participants integer NOT NULL,
  517. max_age integer NOT NULL,
  518. min_age integer NOT NULL,
  519. is_public boolean NOT NULL,
  520. host_id bigint NOT NULL,
  521. order_synced_id bigint NOT NULL,
  522. resource_id_id bigint,
  523. sport_id bigint NOT NULL,
  524. min_level integer,
  525. max_level integer
  526. );
  527. ALTER TABLE public.event OWNER TO sports;
  528. --
  529. -- Name: event_gallery; Type: TABLE; Schema: public; Owner: sports
  530. --
  531. CREATE TABLE public.event_gallery (
  532. id bigint NOT NULL,
  533. image character varying(100) NOT NULL,
  534. event_id bigint NOT NULL
  535. );
  536. ALTER TABLE public.event_gallery OWNER TO sports;
  537. --
  538. -- Name: event_gallery_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  539. --
  540. ALTER TABLE public.event_gallery ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  541. SEQUENCE NAME public.event_gallery_id_seq
  542. START WITH 1
  543. INCREMENT BY 1
  544. NO MINVALUE
  545. NO MAXVALUE
  546. CACHE 1
  547. );
  548. --
  549. -- Name: event_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  550. --
  551. ALTER TABLE public.event ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  552. SEQUENCE NAME public.event_id_seq
  553. START WITH 1
  554. INCREMENT BY 1
  555. NO MINVALUE
  556. NO MAXVALUE
  557. CACHE 1
  558. );
  559. --
  560. -- Name: orders; Type: TABLE; Schema: public; Owner: sports
  561. --
  562. CREATE TABLE public.orders (
  563. id bigint NOT NULL,
  564. state character varying(150) NOT NULL,
  565. id_metaservice bigint,
  566. time_created timestamp with time zone NOT NULL,
  567. time_placed timestamp with time zone NOT NULL,
  568. time_start timestamp with time zone,
  569. time_start_real timestamp with time zone,
  570. time_start_predicted timestamp with time zone,
  571. time_finish_predicted timestamp with time zone NOT NULL,
  572. time_finish_real timestamp with time zone,
  573. predicted_price double precision NOT NULL,
  574. real_price double precision NOT NULL,
  575. is_global boolean NOT NULL,
  576. is_visible boolean NOT NULL,
  577. client_id_id bigint,
  578. provider_id bigint,
  579. receiver_id bigint,
  580. service_id bigint,
  581. service_type_id bigint,
  582. ticket_id bigint
  583. );
  584. ALTER TABLE public.orders OWNER TO sports;
  585. --
  586. -- Name: orders_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  587. --
  588. ALTER TABLE public.orders ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  589. SEQUENCE NAME public.orders_id_seq
  590. START WITH 1
  591. INCREMENT BY 1
  592. NO MINVALUE
  593. NO MAXVALUE
  594. CACHE 1
  595. );
  596. --
  597. -- Name: participant; Type: TABLE; Schema: public; Owner: sports
  598. --
  599. CREATE TABLE public.participant (
  600. id bigint NOT NULL,
  601. is_finished boolean NOT NULL,
  602. event_participant_id bigint NOT NULL,
  603. sportsman_id bigint NOT NULL
  604. );
  605. ALTER TABLE public.participant OWNER TO sports;
  606. --
  607. -- Name: participant_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  608. --
  609. ALTER TABLE public.participant ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  610. SEQUENCE NAME public.participant_id_seq
  611. START WITH 1
  612. INCREMENT BY 1
  613. NO MINVALUE
  614. NO MAXVALUE
  615. CACHE 1
  616. );
  617. --
  618. -- Name: permissions; Type: TABLE; Schema: public; Owner: sports
  619. --
  620. CREATE TABLE public.permissions (
  621. id bigint NOT NULL,
  622. check_date timestamp with time zone,
  623. id_permissions bigint NOT NULL,
  624. check_level character varying(10) NOT NULL,
  625. status character varying(150) NOT NULL,
  626. id_metaservice bigint NOT NULL,
  627. is_global boolean NOT NULL,
  628. is_visible boolean NOT NULL,
  629. checked_by_id bigint,
  630. ticket_status_id bigint,
  631. user_id_id bigint
  632. );
  633. ALTER TABLE public.permissions OWNER TO sports;
  634. --
  635. -- Name: permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  636. --
  637. ALTER TABLE public.permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  638. SEQUENCE NAME public.permissions_id_seq
  639. START WITH 1
  640. INCREMENT BY 1
  641. NO MINVALUE
  642. NO MAXVALUE
  643. CACHE 1
  644. );
  645. --
  646. -- Name: provider; Type: TABLE; Schema: public; Owner: sports
  647. --
  648. CREATE TABLE public.provider (
  649. id bigint NOT NULL,
  650. type character varying(150) NOT NULL,
  651. id_metaservice bigint,
  652. requirements character varying(300) NOT NULL,
  653. status character varying(150) NOT NULL,
  654. location_type character varying(300) NOT NULL,
  655. default_location character varying(300) NOT NULL,
  656. is_global boolean NOT NULL,
  657. is_visible boolean NOT NULL,
  658. company_id_id bigint,
  659. ticket_status_id bigint,
  660. user_id_id bigint
  661. );
  662. ALTER TABLE public.provider OWNER TO sports;
  663. --
  664. -- Name: provider_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  665. --
  666. ALTER TABLE public.provider ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  667. SEQUENCE NAME public.provider_id_seq
  668. START WITH 1
  669. INCREMENT BY 1
  670. NO MINVALUE
  671. NO MAXVALUE
  672. CACHE 1
  673. );
  674. --
  675. -- Name: relationship; Type: TABLE; Schema: public; Owner: sports
  676. --
  677. CREATE TABLE public.relationship (
  678. id bigint NOT NULL,
  679. neg_type integer NOT NULL,
  680. id_metaservice bigint,
  681. requirements character varying(150) NOT NULL,
  682. status character varying(150) NOT NULL,
  683. is_global boolean NOT NULL,
  684. is_visible boolean NOT NULL,
  685. ticket_status_id bigint NOT NULL,
  686. user_id_who_id bigint NOT NULL,
  687. user_id_whom_id bigint NOT NULL
  688. );
  689. ALTER TABLE public.relationship OWNER TO sports;
  690. --
  691. -- Name: relationship_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  692. --
  693. ALTER TABLE public.relationship ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  694. SEQUENCE NAME public.relationship_id_seq
  695. START WITH 1
  696. INCREMENT BY 1
  697. NO MINVALUE
  698. NO MAXVALUE
  699. CACHE 1
  700. );
  701. --
  702. -- Name: resource; Type: TABLE; Schema: public; Owner: sports
  703. --
  704. CREATE TABLE public.resource (
  705. id bigint NOT NULL,
  706. type_id character varying(10) NOT NULL,
  707. requirements character varying(150) NOT NULL,
  708. status character varying(150) NOT NULL,
  709. id_metaservice bigint,
  710. is_global boolean NOT NULL,
  711. is_visible boolean NOT NULL,
  712. ticket_status_id bigint NOT NULL,
  713. user_id_id bigint NOT NULL
  714. );
  715. ALTER TABLE public.resource OWNER TO sports;
  716. --
  717. -- Name: resource_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  718. --
  719. ALTER TABLE public.resource ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  720. SEQUENCE NAME public.resource_id_seq
  721. START WITH 1
  722. INCREMENT BY 1
  723. NO MINVALUE
  724. NO MAXVALUE
  725. CACHE 1
  726. );
  727. --
  728. -- Name: saved_event; Type: TABLE; Schema: public; Owner: sports
  729. --
  730. CREATE TABLE public.saved_event (
  731. id bigint NOT NULL,
  732. event_savedevent_id bigint NOT NULL,
  733. sportsman_id bigint NOT NULL
  734. );
  735. ALTER TABLE public.saved_event OWNER TO sports;
  736. --
  737. -- Name: saved_event_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  738. --
  739. ALTER TABLE public.saved_event ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  740. SEQUENCE NAME public.saved_event_id_seq
  741. START WITH 1
  742. INCREMENT BY 1
  743. NO MINVALUE
  744. NO MAXVALUE
  745. CACHE 1
  746. );
  747. --
  748. -- Name: saved_sportsman; Type: TABLE; Schema: public; Owner: sports
  749. --
  750. CREATE TABLE public.saved_sportsman (
  751. id bigint NOT NULL,
  752. sportsman_id bigint NOT NULL,
  753. sportsman_saved_id bigint NOT NULL
  754. );
  755. ALTER TABLE public.saved_sportsman OWNER TO sports;
  756. --
  757. -- Name: saved_sportsman_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  758. --
  759. ALTER TABLE public.saved_sportsman ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  760. SEQUENCE NAME public.saved_sportsman_id_seq
  761. START WITH 1
  762. INCREMENT BY 1
  763. NO MINVALUE
  764. NO MAXVALUE
  765. CACHE 1
  766. );
  767. --
  768. -- Name: service; Type: TABLE; Schema: public; Owner: sports
  769. --
  770. CREATE TABLE public.service (
  771. id bigint NOT NULL,
  772. requirements character varying(150) NOT NULL,
  773. id_metaservice bigint,
  774. price_alg character varying(100) NOT NULL,
  775. price_km numeric(9,2) NOT NULL,
  776. price_min numeric(9,2) NOT NULL,
  777. price_amount numeric(9,2) NOT NULL,
  778. service_status character varying(150) NOT NULL,
  779. status character varying(150) NOT NULL,
  780. is_global boolean NOT NULL,
  781. is_visible boolean NOT NULL,
  782. id_provider_id bigint NOT NULL,
  783. resource_id_id bigint,
  784. servicetype_id_id bigint NOT NULL,
  785. ticket_status_id bigint NOT NULL
  786. );
  787. ALTER TABLE public.service OWNER TO sports;
  788. --
  789. -- Name: service_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  790. --
  791. ALTER TABLE public.service ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  792. SEQUENCE NAME public.service_id_seq
  793. START WITH 1
  794. INCREMENT BY 1
  795. NO MINVALUE
  796. NO MAXVALUE
  797. CACHE 1
  798. );
  799. --
  800. -- Name: servicetype; Type: TABLE; Schema: public; Owner: sports
  801. --
  802. CREATE TABLE public.servicetype (
  803. id bigint NOT NULL,
  804. codename character varying(255) NOT NULL,
  805. caption character varying(255) NOT NULL,
  806. description text NOT NULL,
  807. requirements character varying(300) NOT NULL,
  808. price_type character varying(150) NOT NULL,
  809. status character varying(150) NOT NULL,
  810. id_metaservice bigint NOT NULL,
  811. link_agreement character varying(400) NOT NULL,
  812. is_global boolean NOT NULL,
  813. is_visible boolean NOT NULL,
  814. ticket_status_id bigint
  815. );
  816. ALTER TABLE public.servicetype OWNER TO sports;
  817. --
  818. -- Name: servicetype_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  819. --
  820. ALTER TABLE public.servicetype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  821. SEQUENCE NAME public.servicetype_id_seq
  822. START WITH 1
  823. INCREMENT BY 1
  824. NO MINVALUE
  825. NO MAXVALUE
  826. CACHE 1
  827. );
  828. --
  829. -- Name: sport; Type: TABLE; Schema: public; Owner: sports
  830. --
  831. CREATE TABLE public.sport (
  832. id bigint NOT NULL,
  833. title character varying(128) NOT NULL,
  834. image character varying(100) NOT NULL
  835. );
  836. ALTER TABLE public.sport OWNER TO sports;
  837. --
  838. -- Name: sport_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  839. --
  840. ALTER TABLE public.sport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  841. SEQUENCE NAME public.sport_id_seq
  842. START WITH 1
  843. INCREMENT BY 1
  844. NO MINVALUE
  845. NO MAXVALUE
  846. CACHE 1
  847. );
  848. --
  849. -- Name: sport_preferrence; Type: TABLE; Schema: public; Owner: sports
  850. --
  851. CREATE TABLE public.sport_preferrence (
  852. id bigint NOT NULL,
  853. sport_id bigint NOT NULL,
  854. sportsman_id bigint NOT NULL
  855. );
  856. ALTER TABLE public.sport_preferrence OWNER TO sports;
  857. --
  858. -- Name: sport_preferrence_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  859. --
  860. ALTER TABLE public.sport_preferrence ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  861. SEQUENCE NAME public.sport_preferrence_id_seq
  862. START WITH 1
  863. INCREMENT BY 1
  864. NO MINVALUE
  865. NO MAXVALUE
  866. CACHE 1
  867. );
  868. --
  869. -- Name: sportsman; Type: TABLE; Schema: public; Owner: sports
  870. --
  871. CREATE TABLE public.sportsman (
  872. id bigint NOT NULL,
  873. bio character varying(512) NOT NULL,
  874. level double precision NOT NULL,
  875. birthdate date,
  876. active_status character varying(64) NOT NULL,
  877. time_updated timestamp with time zone,
  878. preferred_time character varying(128) NOT NULL,
  879. reliance_rating double precision NOT NULL,
  880. gender character varying(1),
  881. client_id bigint NOT NULL
  882. );
  883. ALTER TABLE public.sportsman OWNER TO sports;
  884. --
  885. -- Name: sportsman_gallery; Type: TABLE; Schema: public; Owner: sports
  886. --
  887. CREATE TABLE public.sportsman_gallery (
  888. id bigint NOT NULL,
  889. image character varying(100) NOT NULL,
  890. sportsman_id bigint NOT NULL
  891. );
  892. ALTER TABLE public.sportsman_gallery OWNER TO sports;
  893. --
  894. -- Name: sportsman_gallery_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  895. --
  896. ALTER TABLE public.sportsman_gallery ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  897. SEQUENCE NAME public.sportsman_gallery_id_seq
  898. START WITH 1
  899. INCREMENT BY 1
  900. NO MINVALUE
  901. NO MAXVALUE
  902. CACHE 1
  903. );
  904. --
  905. -- Name: sportsman_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  906. --
  907. ALTER TABLE public.sportsman ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  908. SEQUENCE NAME public.sportsman_id_seq
  909. START WITH 1
  910. INCREMENT BY 1
  911. NO MINVALUE
  912. NO MAXVALUE
  913. CACHE 1
  914. );
  915. --
  916. -- Name: tickets_attachment; Type: TABLE; Schema: public; Owner: sports
  917. --
  918. CREATE TABLE public.tickets_attachment (
  919. id bigint NOT NULL,
  920. "timestamp" timestamp with time zone NOT NULL,
  921. file character varying(255) NOT NULL,
  922. added_by_id bigint NOT NULL,
  923. task_id bigint NOT NULL
  924. );
  925. ALTER TABLE public.tickets_attachment OWNER TO sports;
  926. --
  927. -- Name: tickets_attachment_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  928. --
  929. ALTER TABLE public.tickets_attachment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  930. SEQUENCE NAME public.tickets_attachment_id_seq
  931. START WITH 1
  932. INCREMENT BY 1
  933. NO MINVALUE
  934. NO MAXVALUE
  935. CACHE 1
  936. );
  937. --
  938. -- Name: tickets_comment; Type: TABLE; Schema: public; Owner: sports
  939. --
  940. CREATE TABLE public.tickets_comment (
  941. id bigint NOT NULL,
  942. date timestamp with time zone NOT NULL,
  943. email_from character varying(320),
  944. email_message_id character varying(255),
  945. body text NOT NULL,
  946. author_id bigint,
  947. task_id bigint NOT NULL
  948. );
  949. ALTER TABLE public.tickets_comment OWNER TO sports;
  950. --
  951. -- Name: tickets_comment_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  952. --
  953. ALTER TABLE public.tickets_comment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  954. SEQUENCE NAME public.tickets_comment_id_seq
  955. START WITH 1
  956. INCREMENT BY 1
  957. NO MINVALUE
  958. NO MAXVALUE
  959. CACHE 1
  960. );
  961. --
  962. -- Name: tickets_task; Type: TABLE; Schema: public; Owner: sports
  963. --
  964. CREATE TABLE public.tickets_task (
  965. id bigint NOT NULL,
  966. status smallint,
  967. created_date date NOT NULL,
  968. status_changed_date timestamp with time zone NOT NULL,
  969. priority smallint NOT NULL,
  970. title character varying(64) NOT NULL,
  971. note text,
  972. due_date date,
  973. assigned_to_id bigint,
  974. created_by_id bigint,
  975. task_list_id bigint NOT NULL,
  976. type_id bigint,
  977. CONSTRAINT tickets_task_priority_check CHECK ((priority >= 0)),
  978. CONSTRAINT tickets_task_status_check CHECK ((status >= 0))
  979. );
  980. ALTER TABLE public.tickets_task OWNER TO sports;
  981. --
  982. -- Name: tickets_task_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  983. --
  984. ALTER TABLE public.tickets_task ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  985. SEQUENCE NAME public.tickets_task_id_seq
  986. START WITH 1
  987. INCREMENT BY 1
  988. NO MINVALUE
  989. NO MAXVALUE
  990. CACHE 1
  991. );
  992. --
  993. -- Name: tickets_tasklist; Type: TABLE; Schema: public; Owner: sports
  994. --
  995. CREATE TABLE public.tickets_tasklist (
  996. id bigint NOT NULL,
  997. name character varying(48) NOT NULL,
  998. slug character varying(50) NOT NULL,
  999. group_id integer NOT NULL
  1000. );
  1001. ALTER TABLE public.tickets_tasklist OWNER TO sports;
  1002. --
  1003. -- Name: tickets_tasklist_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  1004. --
  1005. ALTER TABLE public.tickets_tasklist ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  1006. SEQUENCE NAME public.tickets_tasklist_id_seq
  1007. START WITH 1
  1008. INCREMENT BY 1
  1009. NO MINVALUE
  1010. NO MAXVALUE
  1011. CACHE 1
  1012. );
  1013. --
  1014. -- Name: tickets_tickettype; Type: TABLE; Schema: public; Owner: sports
  1015. --
  1016. CREATE TABLE public.tickets_tickettype (
  1017. id bigint NOT NULL,
  1018. name character varying(32) NOT NULL,
  1019. life_cycle character varying(350) NOT NULL
  1020. );
  1021. ALTER TABLE public.tickets_tickettype OWNER TO sports;
  1022. --
  1023. -- Name: tickets_tickettype_id_seq; Type: SEQUENCE; Schema: public; Owner: sports
  1024. --
  1025. ALTER TABLE public.tickets_tickettype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
  1026. SEQUENCE NAME public.tickets_tickettype_id_seq
  1027. START WITH 1
  1028. INCREMENT BY 1
  1029. NO MINVALUE
  1030. NO MAXVALUE
  1031. CACHE 1
  1032. );
  1033. --
  1034. -- Data for Name: achievement; Type: TABLE DATA; Schema: public; Owner: sports
  1035. --
  1036. COPY public.achievement (id, time_received, achievement_id, sportsman_id) FROM stdin;
  1037. \.
  1038. --
  1039. -- Data for Name: achievements; Type: TABLE DATA; Schema: public; Owner: sports
  1040. --
  1041. COPY public.achievements (id, title, description, image, image_animated, value) FROM stdin;
  1042. \.
  1043. --
  1044. -- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: sports
  1045. --
  1046. COPY public.auth_group (id, name) FROM stdin;
  1047. 1 METASERVICE-ADMIN
  1048. 2 METASERVICE-SUPERVISOR
  1049. 3 METASERVICE-SUPPORT
  1050. 4 METASERVICE-TECHSUPPORT
  1051. 5 PARTNER-ADMIN
  1052. 6 PARTNER-SUPERVISOR
  1053. 7 PARTNER-TECHSUPPORT
  1054. 8 PARTNER-SUPPORT
  1055. 9 GUEST
  1056. 10 CLIENT
  1057. 11 PROVIDER
  1058. \.
  1059. --
  1060. -- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: sports
  1061. --
  1062. COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin;
  1063. \.
  1064. --
  1065. -- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: sports
  1066. --
  1067. COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin;
  1068. 1 Can add log entry 1 add_logentry
  1069. 2 Can change log entry 1 change_logentry
  1070. 3 Can delete log entry 1 delete_logentry
  1071. 4 Can view log entry 1 view_logentry
  1072. 5 Can add permission 2 add_permission
  1073. 6 Can change permission 2 change_permission
  1074. 7 Can delete permission 2 delete_permission
  1075. 8 Can view permission 2 view_permission
  1076. 9 Can add group 3 add_group
  1077. 10 Can change group 3 change_group
  1078. 11 Can delete group 3 delete_group
  1079. 12 Can view group 3 view_group
  1080. 13 Can add content type 4 add_contenttype
  1081. 14 Can change content type 4 change_contenttype
  1082. 15 Can delete content type 4 delete_contenttype
  1083. 16 Can view content type 4 view_contenttype
  1084. 17 Can add session 5 add_session
  1085. 18 Can change session 5 change_session
  1086. 19 Can delete session 5 delete_session
  1087. 20 Can view session 5 view_session
  1088. 21 Can add sharix user 6 add_sharixuser
  1089. 22 Can change sharix user 6 change_sharixuser
  1090. 23 Can delete sharix user 6 delete_sharixuser
  1091. 24 Can view sharix user 6 view_sharixuser
  1092. 25 Can add ticket type 7 add_tickettype
  1093. 26 Can change ticket type 7 change_tickettype
  1094. 27 Can delete ticket type 7 delete_tickettype
  1095. 28 Can view ticket type 7 view_tickettype
  1096. 29 Can add Ticket List 8 add_tasklist
  1097. 30 Can change Ticket List 8 change_tasklist
  1098. 31 Can delete Ticket List 8 delete_tasklist
  1099. 32 Can view Ticket List 8 view_tasklist
  1100. 33 Can add Ticket 9 add_task
  1101. 34 Can change Ticket 9 change_task
  1102. 35 Can delete Ticket 9 delete_task
  1103. 36 Can view Ticket 9 view_task
  1104. 37 Can add attachment 10 add_attachment
  1105. 38 Can change attachment 10 change_attachment
  1106. 39 Can delete attachment 10 delete_attachment
  1107. 40 Can view attachment 10 view_attachment
  1108. 41 Can add Comment 11 add_comment
  1109. 42 Can change Comment 11 change_comment
  1110. 43 Can delete Comment 11 delete_comment
  1111. 44 Can view Comment 11 view_comment
  1112. 45 Can add Клиента 12 add_client
  1113. 46 Can change Клиента 12 change_client
  1114. 47 Can delete Клиента 12 delete_client
  1115. 48 Can view Клиента 12 view_client
  1116. 49 Can add Компания 13 add_company
  1117. 50 Can change Компания 13 change_company
  1118. 51 Can delete Компания 13 delete_company
  1119. 52 Can view Компания 13 view_company
  1120. 53 Can add Документ 14 add_documents
  1121. 54 Can change Документ 14 change_documents
  1122. 55 Can delete Документ 14 delete_documents
  1123. 56 Can view Документ 14 view_documents
  1124. 57 Can add Заказ 15 add_orders
  1125. 58 Can change Заказ 15 change_orders
  1126. 59 Can delete Заказ 15 delete_orders
  1127. 60 Can view Заказ 15 view_orders
  1128. 61 Can add Разрешение 16 add_permissions
  1129. 62 Can change Разрешение 16 change_permissions
  1130. 63 Can delete Разрешение 16 delete_permissions
  1131. 64 Can view Разрешение 16 view_permissions
  1132. 65 Can add Поставщик 17 add_provider
  1133. 66 Can change Поставщик 17 change_provider
  1134. 67 Can delete Поставщик 17 delete_provider
  1135. 68 Can view Поставщик 17 view_provider
  1136. 69 Can add Связь (Договорное отношение) 18 add_relationship
  1137. 70 Can change Связь (Договорное отношение) 18 change_relationship
  1138. 71 Can delete Связь (Договорное отношение) 18 delete_relationship
  1139. 72 Can view Связь (Договорное отношение) 18 view_relationship
  1140. 73 Can add Ресурс 19 add_resource
  1141. 74 Can change Ресурс 19 change_resource
  1142. 75 Can delete Ресурс 19 delete_resource
  1143. 76 Can view Ресурс 19 view_resource
  1144. 77 Can add Услуга 20 add_service
  1145. 78 Can change Услуга 20 change_service
  1146. 79 Can delete Услуга 20 delete_service
  1147. 80 Can view Услуга 20 view_service
  1148. 81 Can add Тип услуги 21 add_servicetype
  1149. 82 Can change Тип услуги 21 change_servicetype
  1150. 83 Can delete Тип услуги 21 delete_servicetype
  1151. 84 Can view Тип услуги 21 view_servicetype
  1152. 85 Can add достижение пользователя 22 add_achievement
  1153. 86 Can change достижение пользователя 22 change_achievement
  1154. 87 Can delete достижение пользователя 22 delete_achievement
  1155. 88 Can view достижение пользователя 22 view_achievement
  1156. 89 Can add достижения 23 add_achievements
  1157. 90 Can change достижения 23 change_achievements
  1158. 91 Can delete достижения 23 delete_achievements
  1159. 92 Can view достижения 23 view_achievements
  1160. 93 Can add заблокированный ползователь 24 add_blockedsportsman
  1161. 94 Can change заблокированный ползователь 24 change_blockedsportsman
  1162. 95 Can delete заблокированный ползователь 24 delete_blockedsportsman
  1163. 96 Can view заблокированный ползователь 24 view_blockedsportsman
  1164. 97 Can add просмотренное мероприятие 25 add_browseevent
  1165. 98 Can change просмотренное мероприятие 25 change_browseevent
  1166. 99 Can delete просмотренное мероприятие 25 delete_browseevent
  1167. 100 Can view просмотренное мероприятие 25 view_browseevent
  1168. 101 Can add просмотренный пользователь 26 add_browsesportsman
  1169. 102 Can change просмотренный пользователь 26 change_browsesportsman
  1170. 103 Can delete просмотренный пользователь 26 delete_browsesportsman
  1171. 104 Can view просмотренный пользователь 26 view_browsesportsman
  1172. 105 Can add мероприятие 27 add_event
  1173. 106 Can change мероприятие 27 change_event
  1174. 107 Can delete мероприятие 27 delete_event
  1175. 108 Can view мероприятие 27 view_event
  1176. 109 Can add участник 28 add_participant
  1177. 110 Can change участник 28 change_participant
  1178. 111 Can delete участник 28 delete_participant
  1179. 112 Can view участник 28 view_participant
  1180. 113 Can add сохранённое мероприятие 29 add_savedevent
  1181. 114 Can change сохранённое мероприятие 29 change_savedevent
  1182. 115 Can delete сохранённое мероприятие 29 delete_savedevent
  1183. 116 Can view сохранённое мероприятие 29 view_savedevent
  1184. 117 Can add сохранённый ползователь 30 add_savedsportsman
  1185. 118 Can change сохранённый ползователь 30 change_savedsportsman
  1186. 119 Can delete сохранённый ползователь 30 delete_savedsportsman
  1187. 120 Can view сохранённый ползователь 30 view_savedsportsman
  1188. 121 Can add вид спорта 31 add_sport
  1189. 122 Can change вид спорта 31 change_sport
  1190. 123 Can delete вид спорта 31 delete_sport
  1191. 124 Can view вид спорта 31 view_sport
  1192. 125 Can add предпочитаемый вид спорта 32 add_sportpreferrence
  1193. 126 Can change предпочитаемый вид спорта 32 change_sportpreferrence
  1194. 127 Can delete предпочитаемый вид спорта 32 delete_sportpreferrence
  1195. 128 Can view предпочитаемый вид спорта 32 view_sportpreferrence
  1196. 129 Can add Спортсмена 33 add_sportsman
  1197. 130 Can change Спортсмена 33 change_sportsman
  1198. 131 Can delete Спортсмена 33 delete_sportsman
  1199. 132 Can view Спортсмена 33 view_sportsman
  1200. 133 Can add фото пользователя 34 add_sportsmangallery
  1201. 134 Can change фото пользователя 34 change_sportsmangallery
  1202. 135 Can delete фото пользователя 34 delete_sportsmangallery
  1203. 136 Can view фото пользователя 34 view_sportsmangallery
  1204. 137 Can add фото мероприятия 35 add_eventgallery
  1205. 138 Can change фото мероприятия 35 change_eventgallery
  1206. 139 Can delete фото мероприятия 35 delete_eventgallery
  1207. 140 Can view фото мероприятия 35 view_eventgallery
  1208. 141 Can add Заказ (local) 36 add_orderslocal
  1209. 142 Can change Заказ (local) 36 change_orderslocal
  1210. 143 Can delete Заказ (local) 36 delete_orderslocal
  1211. 144 Can view Заказ (local) 36 view_orderslocal
  1212. 145 Can add site 37 add_site
  1213. 146 Can change site 37 change_site
  1214. 147 Can delete site 37 delete_site
  1215. 148 Can view site 37 view_site
  1216. 149 Can add flat page 38 add_flatpage
  1217. 150 Can change flat page 38 change_flatpage
  1218. 151 Can delete flat page 38 delete_flatpage
  1219. 152 Can view flat page 38 view_flatpage
  1220. 153 Can add Token 39 add_token
  1221. 154 Can change Token 39 change_token
  1222. 155 Can delete Token 39 delete_token
  1223. 156 Can view Token 39 view_token
  1224. 157 Can add token 40 add_tokenproxy
  1225. 158 Can change token 40 change_tokenproxy
  1226. 159 Can delete token 40 delete_tokenproxy
  1227. 160 Can view token 40 view_tokenproxy
  1228. 161 Can add Заказ (local) 41 add_orderslocal
  1229. 162 Can change Заказ (local) 41 change_orderslocal
  1230. 163 Can delete Заказ (local) 41 delete_orderslocal
  1231. 164 Can view Заказ (local) 41 view_orderslocal
  1232. \.
  1233. --
  1234. -- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: sports
  1235. --
  1236. COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined, phone_number) FROM stdin;
  1237. 5 pbkdf2_sha256$390000$97cCPzGHs8gcPLz2VAydDd$SwUt8EAPmAi5S17ATm6l1unXaDbY7Kh7CyQsenr5u4s= \N t test1 t t 2023-06-24 10:12:03+00 79999999999
  1238. 4 pbkdf2_sha256$390000$dybPsuafHEh06gUzSQ7Fw9$+UpzOKi3Ot3oNoy3ee/sF8YqrWdB/IGDSC4JyoJBZ4k= \N f Test f t 2023-06-24 10:09:04+00 88888888888
  1239. 1 pbkdf2_sha256$390000$PLZqNtiv7ychKYSMaVkI3X$G+tycHSegPGGMmLXFcxfro+xFqCjap7Jgsu/SKa4Gg4= 2023-06-24 13:51:07.010662+00 t 99999999999 Сервис Спортович t t 2023-06-17 13:59:37+00 99999999999
  1240. 15 pbkdf2_sha256$390000$bQdDDgvw2F4D1lnQab2qgW$ExZcPmX3ImSkSGaI5GkVafNnZzme6V1R3uDaAfQE6pg= \N f sports_template_bot f t 2023-06-24 12:36:27.284185+00 sports_template_bot
  1241. 16 pbkdf2_sha256$390000$kekVEGXAXKUluHCpYRDJvf$wivbeOZZqwzT3Y8NX41HCQqqYfzlejVHoKsXGA6sG+w= \N f sports_strequest_assigned f t 2023-06-24 12:36:27.630439+00 sports_strequest_assigned
  1242. 17 pbkdf2_sha256$390000$GleT0WW9fwSAzb4fZU6GZR$3txGLVscE8XUw8Ce5tirerq/byM7bm2eIGn3tq7LuCc= \N f sports_strequest_inprocess f t 2023-06-24 12:36:27.877138+00 sports_strequest_inprocess
  1243. 18 pbkdf2_sha256$390000$zRPekFypKQ9DTueSyykVOD$ukFbRQhbShLG3+kZa5XQ3V8Pf36Zg04a4OXsmB1zJFg= \N f sports_strequest_new f t 2023-06-24 12:36:28.135171+00 sports_strequest_new
  1244. 19 pbkdf2_sha256$390000$oun5Qutuqn4yvN0Dsp5bl8$bTtGmLZHPQK8bd/3AjRDU/LJ7FZrmxPuWR8t5fex3LI= \N f sports_strequest_resportsed f t 2023-06-24 12:36:28.392955+00 sports_strequest_resportsed
  1245. 33 pbkdf2_sha256$390000$0n6Rz6nYJsqeMCiZPpWDOm$CX6YvBSTDusYM2G+clqzsIUN2Y59I7Xk3aAh1tjuBaM= \N f sports_servicerequest_accepted f t 2023-06-24 12:36:31.968282+00 sports_servicerequest_accepted
  1246. 34 pbkdf2_sha256$390000$mJwjx1NrM8kNJcRy40HTMt$zhx1bgJ+gd+WZDQAI4rFGUUheIh9T//J6oNwHJ/Kg9E= \N f sports_servicerequest_pending f t 2023-06-24 12:36:32.214478+00 sports_servicerequest_pending
  1247. 2 pbkdf2_sha256$390000$T4acx0TrRjZNAMTAmLLN1m$IZnqLkTwNGGYDjPfMQrbgpAwOy3r8gLZyMFHw7nRBC0= \N t root t t 2023-06-21 14:52:07.01291+00 12345678910
  1248. 35 pbkdf2_sha256$390000$t81KbTxa5Y49FZpmscZO6u$KiltayWTwnksNbr5qtzo/A9eGq2th5Z9TkfrGzikljM= \N f sports_servicerequest_declined f t 2023-06-24 12:36:32.4434+00 sports_servicerequest_declined
  1249. 20 pbkdf2_sha256$390000$wdoorvumPI762QXTBi3KgI$UuHvXj1FdYA4tKr3ReWP6qMICXdZU4pUZCX3ARWKTuk= \N f sports_strequest_wontfix f t 2023-06-24 12:36:28.643123+00 sports_strequest_wontfix
  1250. 36 pbkdf2_sha256$390000$rCOAqKLOq9l292mGg1ud8y$Zgteq8365mMM4ZzZJ1AgFvpNbM/odAX74NjdkQ5dDwM= \N f sports_servicerequest_prestart f t 2023-06-24 12:36:32.693525+00 sports_servicerequest_prestart
  1251. 3 pbkdf2_sha256$390000$wiip0NdVLDVnulCvlcFQ85$HmPv4OM5unj3wb9FYCLXdQ+fBnajMLwApDnWI6YaTiI= \N t felocS Владислав Шипилов vlad.shipilov.felocs@gmail.com t t 2023-06-21 21:31:15+00 79204641558
  1252. 21 pbkdf2_sha256$390000$cBLRSbMq5yWjr0umIXZuO0$H84um6D391JAxmPPSCFz92e8cDrfs+om9B8Utny8A6c= \N f sports_strequest_done f t 2023-06-24 12:36:28.884348+00 sports_strequest_done
  1253. 22 pbkdf2_sha256$390000$ejjyB0sCQDfAvW3pBkwAeq$ECOW/7TiUONWDqJYqneowcPI+dvFej3A+8AZr/4XPD4= \N f sports_strequest_duplicate f t 2023-06-24 12:36:29.128037+00 sports_strequest_duplicate
  1254. 23 pbkdf2_sha256$390000$uK1sMEIRnucBHNwF9aBwVF$yuIkYCOoX0DPlgvGkBSNc+tnQOWiKSljdxTrmh43gik= \N f sports_strequest_closed f t 2023-06-24 12:36:29.377061+00 sports_strequest_closed
  1255. 24 pbkdf2_sha256$390000$c5JrqWZoKCk7D7gUuoK0Uq$siWs4V9GpCA5LzCzbasjsC8ni+Pa/YzA3lQxNAQllTM= \N f sports_accessrequest_pending f t 2023-06-24 12:36:29.618383+00 sports_accessrequest_pending
  1256. 25 pbkdf2_sha256$390000$ySAURg3FEGd5eUJX4zLEUk$L+/TC8ovufb0BylTzV2QGkFMOe8klSMRAQQ11Q8BssQ= \N f sports_accessrequest_accepted f t 2023-06-24 12:36:29.885654+00 sports_accessrequest_accepted
  1257. 26 pbkdf2_sha256$390000$qEA7iPRnVFQpYxBjC3bYCZ$BNiNQV/sLAPMSzwBupElmrXlim2Ji+5qQ/7V0NaYLZ0= \N f sports_accessrequest_declined f t 2023-06-24 12:36:30.185107+00 sports_accessrequest_declined
  1258. 27 pbkdf2_sha256$390000$WHdjZxBS35WysCVxucuJM5$fEpwUbYgUHcboKDzAUgO4pk7ILjIbAOOjCq5OzNo2SQ= \N f sports_negrequest_pending f t 2023-06-24 12:36:30.459575+00 sports_negrequest_pending
  1259. 28 pbkdf2_sha256$390000$zOcSy0ZA1dSUH5THrFuUQM$DrwfMzJoe3yJyM+1zUKSRsTkF5rbuglIReBd0vUKOvo= \N f sports_negrequest_accepted f t 2023-06-24 12:36:30.733452+00 sports_negrequest_accepted
  1260. 29 pbkdf2_sha256$390000$8cPKZEnwrrhpM5oVsYXFBa$OjoP7W90iEN/qY2/aw7hnu734+FqZrg6PlIAPSl/ZmU= \N f sports_negrequest_declined f t 2023-06-24 12:36:30.97673+00 sports_negrequest_declined
  1261. 30 pbkdf2_sha256$390000$R9zjN05XKCAg7D8z2q2V4t$72HiPPxBwa0gunZkvnGA6jYspSDYOW6HKXS2F9xSd+w= \N f sports_servicerequest_template f t 2023-06-24 12:36:31.234535+00 sports_servicerequest_template
  1262. 31 pbkdf2_sha256$390000$ro2dNC0ivlin9ywwBTb8fC$kSjbEuCroUwgggobD/N/lsnVkUDI4TrnkTQM31//uMk= \N f sports_servicerequest_booked f t 2023-06-24 12:36:31.484782+00 sports_servicerequest_booked
  1263. 32 pbkdf2_sha256$390000$GTFwRLUDdgkoOctnk1fEqb$ckFoUX1fWPDs1i6o2ZJjzZHxosvtq0W+oSFmMZ+V+Wk= \N f sports_servicerequest_assigned f t 2023-06-24 12:36:31.727424+00 sports_servicerequest_assigned
  1264. 37 pbkdf2_sha256$390000$JxK2CF6Pgwy9wKo1Fc0lJH$rkUVHWXLQzb27O8lZhhPewlDJg42+TQLdACRbcFSqkc= \N f sports_servicerequest_process f t 2023-06-24 12:36:32.943394+00 sports_servicerequest_process
  1265. 38 pbkdf2_sha256$390000$tXuLSNhSHwFB75mP0ifgqW$1mJPR1q9QdDe3SxSOwoVsfnmCD4M3cX+UXGyu5lPHEk= \N f sports_servicerequest_forcemajeure f t 2023-06-24 12:36:33.209939+00 sports_servicerequest_forcemajeure
  1266. 39 pbkdf2_sha256$390000$jltzeSu3IINcIYlxOQ5snS$6mg59lbIUvOzkmtmCo0iyU7dIN8kpjoi40BgLqApqPs= \N f sports_servicerequest_forcemajeurecancelled f t 2023-06-24 12:36:33.459965+00 sports_servicerequest_forcemajeurecancelled
  1267. 13 pbkdf2_sha256$390000$JfyYU1EE2xRC3gZXRCgbnM$nz5xlvOb7oDdMRTKxlHimsWwY6ECzaTMpPOVAvojI7Q= \N f 99999999992 Саппорт Спортович f t 2023-06-24 10:18:48+00 99999999992
  1268. 12 pbkdf2_sha256$390000$jMsHV7OAEvQK0Bm76sZCDx$TZJGLiLX+2/s5uyfFOnbhWkc8FkTZj1Xul4wNeSik0I= \N f 99999999993 Техсаппорт Спортович f t 2023-06-24 10:18:18+00 99999999993
  1269. 11 pbkdf2_sha256$390000$svk62Ltyqmx29DTm2yNVay$Pao6M5agIouVikpWa39kO1b9YwVJ64uv4rA9KD4aQnQ= \N f 99999999994 Админ Пспортович f t 2023-06-24 10:17:44+00 99999999994
  1270. 10 pbkdf2_sha256$390000$xP8Pj1KBtDro9O5b0r6eLw$uZx3HF/R8ygoi4q/JFkOFmAW9xdz83XpHy7JxPAfidw= \N f 99999999995 Супервайзор Пспортович f t 2023-06-24 10:16:32+00 99999999995
  1271. 9 pbkdf2_sha256$390000$mAxWgi7SlGlPMwILDNcF0M$qr28v3OUFBQICGF1L+nGGDscimO5E7bzCnrKBstwBcc= \N f 99999999996 Саппорт Пспортович f t 2023-06-24 10:15:52+00 99999999996
  1272. 8 pbkdf2_sha256$390000$RUF3R7d0lblFqMYQXkQr3E$fIY7uy4V+k1hOMGItXOKQYFsMzmd+YOP7TeDo8f9rxU= \N f 99999999997 Техсаппорт Пспортович f t 2023-06-24 10:15:01+00 99999999997
  1273. 7 pbkdf2_sha256$390000$j7GMhD8MmyzJZj01Wxy7RG$4fVK1NMh0Tu433IspV7ysALq3r8Oi5Tkalpz6tAABHc= \N f 99999999998 Поставщик Спортович f t 2023-06-24 10:14:05+00 99999999998
  1274. 40 pbkdf2_sha256$390000$baQYopj6jMmwfXyHIYOiUH$fxCGdolR+Vhki5yQ6JDUktBf7L4V3EqJ5zl0Yb2DVDo= \N f sports_servicerequest_done f t 2023-06-24 12:36:33.709883+00 sports_servicerequest_done
  1275. 41 pbkdf2_sha256$390000$1VVhFknkCsnrd2b6xPThvp$v2v/qAAqkCFiGyB28xgSkQ8Pli2L6NI5g7i3PJdHyRI= \N f sports_servicerequest_cancelled f t 2023-06-24 12:36:33.952072+00 sports_servicerequest_cancelled
  1276. 42 pbkdf2_sha256$390000$ft7cVyxmPqEvUTO0ghCUMW$BaNDNsa9yEkxXnz/dXuW9/8Mw027ewuG9pFMBQfk0Qw= \N f sports_servicerequest_closed f t 2023-06-24 12:36:34.201401+00 sports_servicerequest_closed
  1277. 14 pbkdf2_sha256$390000$IKPtuLyrTBoZ0UTHJ8erYn$2D9uoOpQiHdp5Zyss9o7uAPCad0FyQ2ED4jf/6tGlHY= \N f 99999999991 Супервайзор Спортович f t 2023-06-24 10:19:25+00 99999999991
  1278. 43 pbkdf2_sha256$390000$cYF3tnhc9GdLBFBUpCZnKL$YjYxtTCU48JXujUQU1pPVWYkM8LYaGslZ1LGnc/yPi8= 2023-06-24 13:26:53.362771+00 t admin t t 2023-06-24 13:25:29.783884+00 12345678911
  1279. \.
  1280. --
  1281. -- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: sports
  1282. --
  1283. COPY public.auth_user_groups (id, sharixuser_id, group_id) FROM stdin;
  1284. 1 4 9
  1285. 3 7 11
  1286. 4 8 7
  1287. 5 9 8
  1288. 6 10 6
  1289. 7 11 5
  1290. 8 12 4
  1291. 9 13 3
  1292. 10 14 5
  1293. 11 1 1
  1294. \.
  1295. --
  1296. -- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: sports
  1297. --
  1298. COPY public.auth_user_user_permissions (id, sharixuser_id, permission_id) FROM stdin;
  1299. \.
  1300. --
  1301. -- Data for Name: authtoken_token; Type: TABLE DATA; Schema: public; Owner: sports
  1302. --
  1303. COPY public.authtoken_token (key, created, user_id) FROM stdin;
  1304. f644f9cc48a8f95d98b51f8f41dbf2e6c54d75df 2023-06-17 16:42:47.853245+00 1
  1305. \.
  1306. --
  1307. -- Data for Name: blocked_sportsman; Type: TABLE DATA; Schema: public; Owner: sports
  1308. --
  1309. COPY public.blocked_sportsman (id, sportsman_id, sportsman_blocked_id) FROM stdin;
  1310. \.
  1311. --
  1312. -- Data for Name: browse_event; Type: TABLE DATA; Schema: public; Owner: sports
  1313. --
  1314. COPY public.browse_event (id, time_browsed, event_browseevent_id, sportsman_id) FROM stdin;
  1315. \.
  1316. --
  1317. -- Data for Name: browse_sportsman; Type: TABLE DATA; Schema: public; Owner: sports
  1318. --
  1319. COPY public.browse_sportsman (id, time_browsed, sportsman_id, sportsman_browsed_id) FROM stdin;
  1320. \.
  1321. --
  1322. -- Data for Name: client; Type: TABLE DATA; Schema: public; Owner: sports
  1323. --
  1324. COPY public.client (id, requirements, status, id_metaservice, is_global, is_visible, ticket_status_id, user_id) FROM stdin;
  1325. 1 никаких 1 4 f f 1 2
  1326. 2 фыв фыв 4 t t 1 1
  1327. \.
  1328. --
  1329. -- Data for Name: company; Type: TABLE DATA; Schema: public; Owner: sports
  1330. --
  1331. COPY public.company (id, legal_name, inn, kpp, ogrn, bank_name, bik, ks, rs, address, requirements, status, id_metaservice, is_global, is_visible, repr_id_id, ticket_status_id) FROM stdin;
  1332. 1 фывф фыв фыв фыв фыв фыв фыв фыв фыв фыв фыв 4 f f 1 1
  1333. \.
  1334. --
  1335. -- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: sports
  1336. --
  1337. COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin;
  1338. 1 2023-06-17 16:42:47.854123+00 1 f644f9cc48a8f95d98b51f8f41dbf2e6c54d75df 1 [{"added": {}}] 40 1
  1339. 2 2023-06-17 18:28:19.228093+00 23 Влад 1 [{"added": {}}] 8 1
  1340. 3 2023-06-17 18:28:40.453925+00 1 sdfsdf 1 [{"added": {}}] 9 1
  1341. 4 2023-06-17 18:28:56.103207+00 1 ServiceType object (1) 1 [{"added": {}}] 21 1
  1342. 5 2023-06-17 18:32:19.343202+00 1 Sport object (1) 1 [{"added": {}}] 31 1
  1343. 6 2023-06-17 18:32:52.81919+00 1 Client object (1) 1 [{"added": {}}] 12 1
  1344. 7 2023-06-17 18:33:57.015711+00 1 Sportsman object (1) 1 [{"added": {}}] 33 1
  1345. 8 2023-06-17 18:35:28.207544+00 1 Resource object (1) 1 [{"added": {}}] 19 1
  1346. 9 2023-06-17 18:37:56.187854+00 1 Company object (1) 1 [{"added": {}}] 13 1
  1347. 10 2023-06-17 18:38:10.291374+00 1 Provider object (1) 1 [{"added": {}}] 17 1
  1348. 11 2023-06-17 18:38:27.586864+00 1 Service object (1) 1 [{"added": {}}] 20 1
  1349. 12 2023-06-17 18:38:54.941619+00 2 Provider object (2) 1 [{"added": {}}] 17 1
  1350. 13 2023-06-17 18:39:20.938309+00 1 Orders object (1) 1 [{"added": {}}] 15 1
  1351. 14 2023-06-17 18:39:25.236357+00 1 Event object (1) 1 [{"added": {}}] 27 1
  1352. 15 2023-06-21 15:43:10.077191+00 1 Client object (1) 2 [{"changed": {"fields": ["User"]}}] 12 1
  1353. 16 2023-06-21 15:43:16.616566+00 2 Sportsman object (2) 2 [] 33 1
  1354. 17 2023-06-21 15:43:59.735601+00 2 Client object (2) 1 [{"added": {}}] 12 1
  1355. 18 2023-06-21 15:44:01.937987+00 2 Sportsman object (2) 2 [{"changed": {"fields": ["Client"]}}] 33 1
  1356. 19 2023-06-21 21:33:11.615372+00 3 79204641558 1 [{"added": {}}] 6 1
  1357. 20 2023-06-24 10:11:52.019596+00 4 88888888888 1 [{"added": {}}] 6 1
  1358. 21 2023-06-24 10:12:41.15236+00 4 88888888888 2 [{"changed": {"fields": ["password"]}}] 6 1
  1359. 22 2023-06-24 10:13:08.289544+00 5 79999999999 1 [{"added": {}}] 6 1
  1360. 23 2023-06-24 10:13:57.330854+00 6 799999999999 1 [{"added": {}}] 6 1
  1361. 24 2023-06-24 10:14:43.594172+00 7 799999999998 1 [{"added": {}}] 6 1
  1362. 25 2023-06-24 10:15:40.20164+00 8 799999999997 1 [{"added": {}}] 6 1
  1363. 26 2023-06-24 10:16:26.943709+00 9 799999999996 1 [{"added": {}}] 6 1
  1364. 27 2023-06-24 10:17:16.039777+00 10 799999999995 1 [{"added": {}}] 6 1
  1365. 28 2023-06-24 10:18:11.637058+00 11 799999999994 1 [{"added": {}}] 6 1
  1366. 29 2023-06-24 10:18:42.95427+00 12 799999999993 1 [{"added": {}}] 6 1
  1367. 30 2023-06-24 10:19:19.684636+00 13 799999999992 1 [{"added": {}}] 6 1
  1368. 31 2023-06-24 10:19:51.572667+00 14 799999999991 1 [{"added": {}}] 6 1
  1369. 32 2023-06-24 10:37:21.142492+00 5 79999999999 2 [{"changed": {"fields": ["password"]}}] 6 1
  1370. 33 2023-06-24 10:37:27.575612+00 4 88888888888 2 [{"changed": {"fields": ["password"]}}] 6 1
  1371. 34 2023-06-24 10:37:36.775705+00 6 799999999999 2 [{"changed": {"fields": ["password"]}}] 6 1
  1372. 35 2023-06-24 10:37:41.875039+00 7 799999999998 2 [{"changed": {"fields": ["password"]}}] 6 1
  1373. 36 2023-06-24 10:37:48.825863+00 8 799999999997 2 [{"changed": {"fields": ["password"]}}] 6 1
  1374. 37 2023-06-24 10:37:55.59249+00 9 799999999996 2 [{"changed": {"fields": ["password"]}}] 6 1
  1375. 38 2023-06-24 10:38:01.184168+00 10 799999999995 2 [{"changed": {"fields": ["password"]}}] 6 1
  1376. 39 2023-06-24 10:38:09.40087+00 11 799999999994 2 [{"changed": {"fields": ["password"]}}] 6 1
  1377. 40 2023-06-24 10:38:19.417646+00 9 799999999996 2 [{"changed": {"fields": ["password"]}}] 6 1
  1378. 41 2023-06-24 10:38:24.026682+00 10 799999999995 2 [{"changed": {"fields": ["password"]}}] 6 1
  1379. 42 2023-06-24 10:38:27.767644+00 12 799999999993 2 [{"changed": {"fields": ["password"]}}] 6 1
  1380. 43 2023-06-24 10:38:31.384753+00 13 799999999992 2 [{"changed": {"fields": ["password"]}}] 6 1
  1381. 44 2023-06-24 10:38:35.702301+00 14 799999999991 2 [{"changed": {"fields": ["password"]}}] 6 1
  1382. 45 2023-06-24 12:18:36.370274+00 6 799999999999 3 6 1
  1383. 46 2023-06-24 12:19:21.045151+00 1 99999999999 2 [{"changed": {"fields": ["Username", "First name", "Last name", "Groups"]}}] 6 1
  1384. 47 2023-06-24 12:19:41.005796+00 1 99999999999 2 [] 6 1
  1385. 48 2023-06-24 12:22:58.778241+00 7 99999999998 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1386. 49 2023-06-24 12:24:07.061953+00 8 99999999997 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1387. 50 2023-06-24 12:24:15.375428+00 9 99999999996 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1388. 51 2023-06-24 12:24:35.068383+00 10 99999999995 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1389. 52 2023-06-24 12:24:44.465063+00 11 99999999994 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1390. 53 2023-06-24 12:24:50.899957+00 12 99999999993 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1391. 54 2023-06-24 12:24:56.962259+00 13 99999999992 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1392. 55 2023-06-24 12:25:02.572637+00 14 99999999991 2 [{"changed": {"fields": ["\\u041d\\u043e\\u043c\\u0435\\u0440 \\u0442\\u0435\\u043b\\u0435\\u0444\\u043e\\u043d\\u0430", "Username"]}}] 6 1
  1393. 56 2023-06-24 12:48:27.865937+00 14 99999999991 2 [{"changed": {"fields": ["password"]}}] 6 1
  1394. 57 2023-06-24 12:48:32.239092+00 13 99999999992 2 [{"changed": {"fields": ["password"]}}] 6 1
  1395. 58 2023-06-24 12:48:36.349979+00 12 99999999993 2 [{"changed": {"fields": ["password"]}}] 6 1
  1396. 59 2023-06-24 12:48:39.9092+00 11 99999999994 2 [{"changed": {"fields": ["password"]}}] 6 1
  1397. 60 2023-06-24 12:48:43.923055+00 10 99999999995 2 [{"changed": {"fields": ["password"]}}] 6 1
  1398. 61 2023-06-24 12:48:47.796947+00 9 99999999996 2 [{"changed": {"fields": ["password"]}}] 6 1
  1399. 62 2023-06-24 12:48:51.380877+00 8 99999999997 2 [{"changed": {"fields": ["password"]}}] 6 1
  1400. 63 2023-06-24 12:48:54.732284+00 7 99999999998 2 [{"changed": {"fields": ["password"]}}] 6 1
  1401. 64 2023-06-24 12:48:58.773162+00 1 99999999999 2 [{"changed": {"fields": ["password"]}}] 6 1
  1402. \.
  1403. --
  1404. -- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: sports
  1405. --
  1406. COPY public.django_content_type (id, app_label, model) FROM stdin;
  1407. 1 admin logentry
  1408. 2 auth permission
  1409. 3 auth group
  1410. 4 contenttypes contenttype
  1411. 5 sessions session
  1412. 6 SharixAdmin sharixuser
  1413. 7 tickets tickettype
  1414. 8 tickets tasklist
  1415. 9 tickets task
  1416. 10 tickets attachment
  1417. 11 tickets comment
  1418. 12 metaservicesynced client
  1419. 13 metaservicesynced company
  1420. 14 metaservicesynced documents
  1421. 15 metaservicesynced orders
  1422. 16 metaservicesynced permissions
  1423. 17 metaservicesynced provider
  1424. 18 metaservicesynced relationship
  1425. 19 metaservicesynced resource
  1426. 20 metaservicesynced service
  1427. 21 metaservicesynced servicetype
  1428. 22 webservice_running achievement
  1429. 23 webservice_running achievements
  1430. 24 webservice_running blockedsportsman
  1431. 25 webservice_running browseevent
  1432. 26 webservice_running browsesportsman
  1433. 27 webservice_running event
  1434. 28 webservice_running participant
  1435. 29 webservice_running savedevent
  1436. 30 webservice_running savedsportsman
  1437. 31 webservice_running sport
  1438. 32 webservice_running sportpreferrence
  1439. 33 webservice_running sportsman
  1440. 34 webservice_running sportsmangallery
  1441. 35 webservice_running eventgallery
  1442. 36 openlocal orderslocal
  1443. 37 sites site
  1444. 38 flatpages flatpage
  1445. 39 authtoken token
  1446. 40 authtoken tokenproxy
  1447. 41 webservice_running orderslocal
  1448. \.
  1449. --
  1450. -- Data for Name: django_flatpage; Type: TABLE DATA; Schema: public; Owner: sports
  1451. --
  1452. COPY public.django_flatpage (id, url, title, content, enable_comments, template_name, registration_required) FROM stdin;
  1453. \.
  1454. --
  1455. -- Data for Name: django_flatpage_sites; Type: TABLE DATA; Schema: public; Owner: sports
  1456. --
  1457. COPY public.django_flatpage_sites (id, flatpage_id, site_id) FROM stdin;
  1458. \.
  1459. --
  1460. -- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: sports
  1461. --
  1462. COPY public.django_migrations (id, app, name, applied) FROM stdin;
  1463. 1 contenttypes 0001_initial 2023-06-17 13:58:39.012875+00
  1464. 2 contenttypes 0002_remove_content_type_name 2023-06-17 13:58:39.029653+00
  1465. 3 auth 0001_initial 2023-06-17 13:58:39.697852+00
  1466. 4 auth 0002_alter_permission_name_max_length 2023-06-17 13:58:39.751393+00
  1467. 5 auth 0003_alter_user_email_max_length 2023-06-17 13:58:39.795312+00
  1468. 6 auth 0004_alter_user_username_opts 2023-06-17 13:58:39.864743+00
  1469. 7 auth 0005_alter_user_last_login_null 2023-06-17 13:58:39.954701+00
  1470. 8 auth 0006_require_contenttypes_0002 2023-06-17 13:58:40.011972+00
  1471. 9 auth 0007_alter_validators_add_error_messages 2023-06-17 13:58:40.05181+00
  1472. 10 auth 0008_alter_user_username_max_length 2023-06-17 13:58:40.075176+00
  1473. 11 auth 0009_alter_user_last_name_max_length 2023-06-17 13:58:40.084367+00
  1474. 12 auth 0010_alter_group_name_max_length 2023-06-17 13:58:40.092779+00
  1475. 13 auth 0011_update_proxy_permissions 2023-06-17 13:58:40.146724+00
  1476. 14 auth 0012_alter_user_first_name_max_length 2023-06-17 13:58:40.211411+00
  1477. 15 SharixAdmin 0001_initial 2023-06-17 13:58:40.93159+00
  1478. 16 admin 0001_initial 2023-06-17 13:58:41.205402+00
  1479. 17 admin 0002_logentry_remove_auto_add 2023-06-17 13:58:41.271959+00
  1480. 18 admin 0003_logentry_add_action_flag_choices 2023-06-17 13:58:41.348261+00
  1481. 19 authtoken 0001_initial 2023-06-17 13:58:41.537062+00
  1482. 20 authtoken 0002_auto_20160226_1747 2023-06-17 13:58:41.632055+00
  1483. 21 authtoken 0003_tokenproxy 2023-06-17 13:58:41.686289+00
  1484. 22 sites 0001_initial 2023-06-17 13:58:41.766993+00
  1485. 23 flatpages 0001_initial 2023-06-17 13:58:42.24671+00
  1486. 24 tickets 0001_initial 2023-06-17 13:58:43.957152+00
  1487. 25 metaservicesynced 0001_initial 2023-06-17 13:58:44.892728+00
  1488. 26 metaservicesynced 0002_initial 2023-06-17 13:58:46.892465+00
  1489. 27 sessions 0001_initial 2023-06-17 13:58:47.358235+00
  1490. 28 sites 0002_alter_domain_unique 2023-06-17 13:58:47.895353+00
  1491. 29 webservice_running 0001_initial 2023-06-17 13:58:51.75274+00
  1492. 30 metaservicesynced 0002_alter_company_inn 2023-06-21 15:20:24.538775+00
  1493. 31 tickets 0002_alter_task_created_date 2023-06-21 15:20:24.669077+00
  1494. \.
  1495. --
  1496. -- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: sports
  1497. --
  1498. COPY public.django_session (session_key, session_data, expire_date) FROM stdin;
  1499. f94w32eqb9ynr5t3gsnkinstxj4oonha .eJxVjDsOwjAQBe_iGlkm699S0ucM1q7XxgGUSPlUiLtDpBTQvpl5L5VoW1valjKnQdRFWVCn35EpP8q4E7nTeJt0nsZ1Hljvij7oovtJyvN6uH8HjZb2rWMuDjuMFNADZwlnZz2CREOeHSATG3KusvVsRKgAVMTQGSi5djGo9wcEDzgb:1qD3HV:ZzLYE2Z-_cJq432sIN-uWjQQ1XWvO_SJnS3UEJn6NX0 2023-07-08 13:26:25.126435+00
  1500. 17iori62ctnasosrruh57nlf4kj42f1w .eJxVjDsOwjAQBe_iGlkm699S0ucM1q7XxgGUSPlUiLtDpBTQvpl5L5VoW1valjKnQdRFWVCn35EpP8q4E7nTeJt0nsZ1Hljvij7oovtJyvN6uH8HjZb2rWMuDjuMFNADZwlnZz2CREOeHSATG3KusvVsRKgAVMTQGSi5djGo9wcEDzgb:1qD3Hx:hJyZ-eZwroLSwDoJqNNYjNw9MzTRVtiJ-Pb2eq6i3VI 2023-07-08 13:26:53.372889+00
  1501. uce2yqygm53c57yxg2suelyw1rvbzyoo .eJxVjDsOwjAQBe_iGlmKE6_XlPScIXr2bkgA2VI-FeLuECkFtG9m3sv02Nax3xad-0nM2TTm9Lsl5IeWHcgd5VZtrmWdp2R3xR50sdcq-rwc7t_BiGX81hxIB8oByXlmbtuGI2n2QgFRQpd9BDDESAxy4jtHLGiSupw6Acz7A9_SOFI:1qD3fP:BPxttoTkbsadPOC9qayqXkeK2-8Mzb5T39oPbeLsOHg 2023-07-08 13:51:07.035981+00
  1502. q14ha6slmpwj1ag5hivuyg8w39ip1yyk .eJxVjLsOAiEUBf-F2pDLwhKwtPcbyH1FVg0k-6iM_66bbKHtmZnzMgW3tZZt0blMYs7GmdPvRsgPbTuQO7Zbt9zbOk9kd8UedLHXLvq8HO7fQcWlfmtgjhpSVmXREGh0eYScBEnFRQeYkL2IJxdSEjcQA3qgTJ5SlAHM-wMC9Dh4:1qBbgS:LYA4glGIfAcW19HL1Zx5_VC0FyVnNufvGY_1iejWTpU 2023-07-04 13:46:12.450855+00
  1503. j2jaw8z3udky38qr0earw0490dauqe8a .eJxVjLsOAiEUBf-F2pDLwhKwtPcbyH1FVg0k-6iM_66bbKHtmZnzMgW3tZZt0blMYs7GmdPvRsgPbTuQO7Zbt9zbOk9kd8UedLHXLvq8HO7fQcWlfmtgjhpSVmXREGh0eYScBEnFRQeYkL2IJxdSEjcQA3qgTJ5SlAHM-wMC9Dh4:1qD2Bt:6DKtskx_ZS_jGqFHlesiy-v14iwNEFjp4JbkwP3s7H0 2023-07-08 12:16:33.513068+00
  1504. dekb9oith0dmoftv86gv98v75c1m1z4k .eJxVjDsOwjAQBe_iGlmKE6_XlPScIXr2bkgA2VI-FeLuECkFtG9m3sv02Nax3xad-0nM2TTm9Lsl5IeWHcgd5VZtrmWdp2R3xR50sdcq-rwc7t_BiGX81hxIB8oByXlmbtuGI2n2QgFRQpd9BDDESAxy4jtHLGiSupw6Acz7A9_SOFI:1qD2hG:R5xcfiz1J9afqS3_l2DNfegYOWsUn3soUM3mBbEa-3U 2023-07-08 12:48:58.807965+00
  1505. \.
  1506. --
  1507. -- Data for Name: django_site; Type: TABLE DATA; Schema: public; Owner: sports
  1508. --
  1509. COPY public.django_site (id, domain, name) FROM stdin;
  1510. 1 example.com example.com
  1511. \.
  1512. --
  1513. -- Data for Name: documents; Type: TABLE DATA; Schema: public; Owner: sports
  1514. --
  1515. COPY public.documents (id, check_date, check_level, expire_date, id_metaservice, requirements, status, datalink, doc_type, is_global, is_visible, checked_by_id, company_id_id, ticket_status_id, user_id_id) FROM stdin;
  1516. \.
  1517. --
  1518. -- Data for Name: event; Type: TABLE DATA; Schema: public; Owner: sports
  1519. --
  1520. COPY public.event (id, rating_id, attempts, order_place_type, order_place_start, order_place_start_gps, order_place_start_sector, order_place_start_real, order_place_start_real_gps, order_place_finish_predicted, order_place_finish_predicted_gps, order_place_finish_sector, order_place_finish_real, order_place_finish_real_gps, required_gender, description, time_updated, time_close, max_participants, min_participants, max_age, min_age, is_public, host_id, order_synced_id, resource_id_id, sport_id, min_level, max_level) FROM stdin;
  1521. 1 123 123 кцукцук цукцук цук 123123 1231231 3123123 12 31 23123 12312 1231 M Крутая гитара 2023-06-17 18:39:25.234345+00 2023-06-17 18:34:12+00 124 12 111 11 t 1 1 1 1 \N \N
  1522. \.
  1523. --
  1524. -- Data for Name: event_gallery; Type: TABLE DATA; Schema: public; Owner: sports
  1525. --
  1526. COPY public.event_gallery (id, image, event_id) FROM stdin;
  1527. \.
  1528. --
  1529. -- Data for Name: orders; Type: TABLE DATA; Schema: public; Owner: sports
  1530. --
  1531. COPY public.orders (id, state, id_metaservice, time_created, time_placed, time_start, time_start_real, time_start_predicted, time_finish_predicted, time_finish_real, predicted_price, real_price, is_global, is_visible, client_id_id, provider_id, receiver_id, service_id, service_type_id, ticket_id) FROM stdin;
  1532. 1 фафы 1412 2023-06-17 18:39:20.935503+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1533. 2 фафы 1412 2023-06-22 19:27:12.718264+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1534. 3 фафы 1412 2023-06-22 19:52:29.898908+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1535. 4 фафы 1412 2023-06-22 20:09:53.247779+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1536. 5 фафы 1412 2023-06-23 02:08:18.999768+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1537. 6 фафы 1412 2023-06-23 02:09:25.340735+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1538. 7 фафы 1412 2023-06-23 02:14:51.494085+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1539. 8 фафы 1412 2023-06-23 02:15:53.999044+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1540. 9 фафы 1412 2023-06-23 02:26:12.330622+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1541. 10 фафы 1412 2023-06-23 02:32:56.804625+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1542. 11 фафы 1412 2023-06-23 02:56:37.642191+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1543. 12 фафы 1412 2023-06-23 02:58:13.887705+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1544. 13 фафы 1412 2023-06-23 03:03:17.320921+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1545. 14 фафы 1412 2023-06-23 03:03:17.319335+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1546. 15 new 1 2023-06-24 14:18:25.899294+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 1
  1547. 16 new 1 2023-06-24 14:18:27.620358+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 1
  1548. 17 new 1 2023-06-24 14:18:28.1502+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 1
  1549. 18 new 1 2023-06-24 14:18:28.607785+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 1
  1550. 19 фафы 1412 2023-06-24 14:25:14.87789+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 1
  1551. 20 фафы 1412 2023-06-24 14:27:11.155101+00 2023-06-17 18:38:59+00 2023-06-17 18:39:02+00 2023-06-17 18:39:06+00 2023-06-17 18:39:08+00 2023-06-17 18:39:10+00 2023-06-17 18:39:12+00 21341 124124 f f 1 2 1 1 1 2
  1552. 21 new 1 2023-06-24 14:27:52.342145+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 3
  1553. 22 new 1 2023-06-24 14:27:55.620152+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 4
  1554. 23 new 1 2023-06-24 14:27:56.229278+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 5
  1555. 24 new 1 2023-06-24 14:31:27.845477+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 2023-06-17 18:38:59+00 0 0 t t 1 2 1 1 1 1
  1556. \.
  1557. --
  1558. -- Data for Name: participant; Type: TABLE DATA; Schema: public; Owner: sports
  1559. --
  1560. COPY public.participant (id, is_finished, event_participant_id, sportsman_id) FROM stdin;
  1561. \.
  1562. --
  1563. -- Data for Name: permissions; Type: TABLE DATA; Schema: public; Owner: sports
  1564. --
  1565. COPY public.permissions (id, check_date, id_permissions, check_level, status, id_metaservice, is_global, is_visible, checked_by_id, ticket_status_id, user_id_id) FROM stdin;
  1566. \.
  1567. --
  1568. -- Data for Name: provider; Type: TABLE DATA; Schema: public; Owner: sports
  1569. --
  1570. COPY public.provider (id, type, id_metaservice, requirements, status, location_type, default_location, is_global, is_visible, company_id_id, ticket_status_id, user_id_id) FROM stdin;
  1571. 1 фв 4 фыв фыв фывфв фыв f f 1 1 1
  1572. 2 укецу 234 234 234 234 234 f f 1 1 1
  1573. \.
  1574. --
  1575. -- Data for Name: relationship; Type: TABLE DATA; Schema: public; Owner: sports
  1576. --
  1577. COPY public.relationship (id, neg_type, id_metaservice, requirements, status, is_global, is_visible, ticket_status_id, user_id_who_id, user_id_whom_id) FROM stdin;
  1578. \.
  1579. --
  1580. -- Data for Name: resource; Type: TABLE DATA; Schema: public; Owner: sports
  1581. --
  1582. COPY public.resource (id, type_id, requirements, status, id_metaservice, is_global, is_visible, ticket_status_id, user_id_id) FROM stdin;
  1583. 1 1234 1 23 23423 f f 1 1
  1584. \.
  1585. --
  1586. -- Data for Name: saved_event; Type: TABLE DATA; Schema: public; Owner: sports
  1587. --
  1588. COPY public.saved_event (id, event_savedevent_id, sportsman_id) FROM stdin;
  1589. \.
  1590. --
  1591. -- Data for Name: saved_sportsman; Type: TABLE DATA; Schema: public; Owner: sports
  1592. --
  1593. COPY public.saved_sportsman (id, sportsman_id, sportsman_saved_id) FROM stdin;
  1594. \.
  1595. --
  1596. -- Data for Name: service; Type: TABLE DATA; Schema: public; Owner: sports
  1597. --
  1598. COPY public.service (id, requirements, id_metaservice, price_alg, price_km, price_min, price_amount, service_status, status, is_global, is_visible, id_provider_id, resource_id_id, servicetype_id_id, ticket_status_id) FROM stdin;
  1599. 1 фыв 4 фыв 124.00 124.00 124.00 12 1234 f f 1 1 1 1
  1600. \.
  1601. --
  1602. -- Data for Name: servicetype; Type: TABLE DATA; Schema: public; Owner: sports
  1603. --
  1604. COPY public.servicetype (id, codename, caption, description, requirements, price_type, status, id_metaservice, link_agreement, is_global, is_visible, ticket_status_id) FROM stdin;
  1605. 1 Встреча Встреча Встреча 1 1 1 4 asd f f 1
  1606. \.
  1607. --
  1608. -- Data for Name: sport; Type: TABLE DATA; Schema: public; Owner: sports
  1609. --
  1610. COPY public.sport (id, title, image) FROM stdin;
  1611. 1 Футбол sports/sport/RJEYeJCd5fE.jpg
  1612. \.
  1613. --
  1614. -- Data for Name: sport_preferrence; Type: TABLE DATA; Schema: public; Owner: sports
  1615. --
  1616. COPY public.sport_preferrence (id, sport_id, sportsman_id) FROM stdin;
  1617. \.
  1618. --
  1619. -- Data for Name: sportsman; Type: TABLE DATA; Schema: public; Owner: sports
  1620. --
  1621. COPY public.sportsman (id, bio, level, birthdate, active_status, time_updated, preferred_time, reliance_rating, gender, client_id) FROM stdin;
  1622. 1 укеуке 1 2023-06-17 Active 2023-06-17 18:33:39+00 142124 124 F 1
  1623. 2 gdfg 3.4 2023-06-17 Active 2023-06-17 18:33:39+00 142124 124 F 2
  1624. \.
  1625. --
  1626. -- Data for Name: sportsman_gallery; Type: TABLE DATA; Schema: public; Owner: sports
  1627. --
  1628. COPY public.sportsman_gallery (id, image, sportsman_id) FROM stdin;
  1629. \.
  1630. --
  1631. -- Data for Name: tickets_attachment; Type: TABLE DATA; Schema: public; Owner: sports
  1632. --
  1633. COPY public.tickets_attachment (id, "timestamp", file, added_by_id, task_id) FROM stdin;
  1634. \.
  1635. --
  1636. -- Data for Name: tickets_comment; Type: TABLE DATA; Schema: public; Owner: sports
  1637. --
  1638. COPY public.tickets_comment (id, date, email_from, email_message_id, body, author_id, task_id) FROM stdin;
  1639. \.
  1640. --
  1641. -- Data for Name: tickets_task; Type: TABLE DATA; Schema: public; Owner: sports
  1642. --
  1643. COPY public.tickets_task (id, status, created_date, status_changed_date, priority, title, note, due_date, assigned_to_id, created_by_id, task_list_id, type_id) FROM stdin;
  1644. 1 4 2023-06-17 2023-06-17 18:28:40.45161+00 0 sdfsdf sdfsdf 2023-06-17 1 1 23 1
  1645. 2 \N 2023-06-24 2023-06-24 14:27:11.033196+00 0 New ticket title \N \N \N \N 9 \N
  1646. 3 \N 2023-06-24 2023-06-24 14:27:52.325854+00 0 New ticket title \N \N \N \N 9 \N
  1647. 4 \N 2023-06-24 2023-06-24 14:27:55.578442+00 0 New ticket title \N \N \N \N 9 \N
  1648. 5 \N 2023-06-24 2023-06-24 14:27:56.210404+00 0 New ticket title \N \N \N \N 9 \N
  1649. \.
  1650. --
  1651. -- Data for Name: tickets_tasklist; Type: TABLE DATA; Schema: public; Owner: sports
  1652. --
  1653. COPY public.tickets_tasklist (id, name, slug, group_id) FROM stdin;
  1654. 1 MS-ADMIN Активация партнеров NEG_REQUEST partner_activation 1
  1655. 2 MS-ADMIN права в сервисе ACCESS_REQUEST metaservice_roles 1
  1656. 3 MS-ADMIN проверка документов ST_REQUEST metaservice_partner_docs 1
  1657. 4 MS-SUPER активность пользователей ST_REQUEST activity_control 2
  1658. 5 MS-SUPER оперативный доступ ST_REQUEST operational_control 2
  1659. 6 MS-SUPER опер доступ экстра ACCESS_REQUEST operational_control_extra 2
  1660. 7 MS-SUPER права сервиса ST_REQUEST access_control 2
  1661. 8 MS-SUPER проверка документов ST_REQUEST metaservice_partner_docs 2
  1662. 9 MS-SUP входящие обычные заявки ST_REQUEST service-inbox 3
  1663. 10 MS-SUP Заявки на УСЛУГИ сервиса SERVICE_REQUEST service_request 3
  1664. 11 MS-TSUP входящие тех заявки ST_REQUEST service-inbox-tech 4
  1665. 12 P-ADMIN документы исполнителей ST_REQUEST provider_docs 5
  1666. 13 P-ADMIN документы ресурсов ST_REQUEST resource_docs 5
  1667. 14 P-ADMIN права в партнерке ACCESS_REQUEST partner_roles 5
  1668. 15 P-SUPER активность внутри партнера ST_REQUEST activity_control 6
  1669. 16 P-SUPER документы исполнителей ST_REQUEST provider_docs 6
  1670. 17 P-SUPER документы ресурсов ST_REQUEST resource_docs 6
  1671. 18 P-SUPER доступ внутри партнера ST_REQUEST access_control 6
  1672. 19 P-SUPER оперативный доступ ST_REQUEST operational_control 6
  1673. 20 P-SUPER оперативный доступ экстра ST_REQUEST operational_control_extra 6
  1674. 21 P-SUPER ручной аппрув заявок ACCESS-REQUEST service_request_edit 6
  1675. 22 P-TSUP входящие тех заявки ST_REQUEST partner-inbox-tech 7
  1676. 23 Влад ASS 10
  1677. \.
  1678. --
  1679. -- Data for Name: tickets_tickettype; Type: TABLE DATA; Schema: public; Owner: sports
  1680. --
  1681. COPY public.tickets_tickettype (id, name, life_cycle) FROM stdin;
  1682. 1 ST_REQUEST 111-121-149-159,110-121-149-159,121-131-149-159,131-141-149,141-151-110,149-151-110,159,151
  1683. 2 SERVICE_REQUEST 210-211-251,211-212-220-238-249,212-221-229-238-249,221-222-238-249,220-211-238-249,229-211-251,222-231-238-249,231-241-238-249,238-231-239-211-212-221-220-222-249,239-231-239-211-212-221-220-222-249,241-251,249-251,251
  1684. 3 ACCESS_REQUEST 320-321-359,321,359
  1685. 4 NEG_REQUEST 420-421-459,421,459
  1686. \.
  1687. --
  1688. -- Name: achievement_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1689. --
  1690. SELECT pg_catalog.setval('public.achievement_id_seq', 1, false);
  1691. --
  1692. -- Name: achievements_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1693. --
  1694. SELECT pg_catalog.setval('public.achievements_id_seq', 1, false);
  1695. --
  1696. -- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1697. --
  1698. SELECT pg_catalog.setval('public.auth_group_id_seq', 11, true);
  1699. --
  1700. -- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1701. --
  1702. SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false);
  1703. --
  1704. -- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1705. --
  1706. SELECT pg_catalog.setval('public.auth_permission_id_seq', 164, true);
  1707. --
  1708. -- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1709. --
  1710. SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 11, true);
  1711. --
  1712. -- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1713. --
  1714. SELECT pg_catalog.setval('public.auth_user_id_seq', 43, true);
  1715. --
  1716. -- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1717. --
  1718. SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 1, false);
  1719. --
  1720. -- Name: blocked_sportsman_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1721. --
  1722. SELECT pg_catalog.setval('public.blocked_sportsman_id_seq', 1, false);
  1723. --
  1724. -- Name: browse_event_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1725. --
  1726. SELECT pg_catalog.setval('public.browse_event_id_seq', 1, false);
  1727. --
  1728. -- Name: browse_sportsman_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1729. --
  1730. SELECT pg_catalog.setval('public.browse_sportsman_id_seq', 1, false);
  1731. --
  1732. -- Name: client_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1733. --
  1734. SELECT pg_catalog.setval('public.client_id_seq', 2, true);
  1735. --
  1736. -- Name: company_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1737. --
  1738. SELECT pg_catalog.setval('public.company_id_seq', 1, true);
  1739. --
  1740. -- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1741. --
  1742. SELECT pg_catalog.setval('public.django_admin_log_id_seq', 64, true);
  1743. --
  1744. -- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1745. --
  1746. SELECT pg_catalog.setval('public.django_content_type_id_seq', 41, true);
  1747. --
  1748. -- Name: django_flatpage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1749. --
  1750. SELECT pg_catalog.setval('public.django_flatpage_id_seq', 1, false);
  1751. --
  1752. -- Name: django_flatpage_sites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1753. --
  1754. SELECT pg_catalog.setval('public.django_flatpage_sites_id_seq', 1, false);
  1755. --
  1756. -- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1757. --
  1758. SELECT pg_catalog.setval('public.django_migrations_id_seq', 31, true);
  1759. --
  1760. -- Name: django_site_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1761. --
  1762. SELECT pg_catalog.setval('public.django_site_id_seq', 1, true);
  1763. --
  1764. -- Name: documents_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1765. --
  1766. SELECT pg_catalog.setval('public.documents_id_seq', 1, false);
  1767. --
  1768. -- Name: event_gallery_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1769. --
  1770. SELECT pg_catalog.setval('public.event_gallery_id_seq', 1, false);
  1771. --
  1772. -- Name: event_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1773. --
  1774. SELECT pg_catalog.setval('public.event_id_seq', 1, true);
  1775. --
  1776. -- Name: orders_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1777. --
  1778. SELECT pg_catalog.setval('public.orders_id_seq', 24, true);
  1779. --
  1780. -- Name: participant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1781. --
  1782. SELECT pg_catalog.setval('public.participant_id_seq', 1, false);
  1783. --
  1784. -- Name: permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1785. --
  1786. SELECT pg_catalog.setval('public.permissions_id_seq', 1, false);
  1787. --
  1788. -- Name: provider_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1789. --
  1790. SELECT pg_catalog.setval('public.provider_id_seq', 2, true);
  1791. --
  1792. -- Name: relationship_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1793. --
  1794. SELECT pg_catalog.setval('public.relationship_id_seq', 1, false);
  1795. --
  1796. -- Name: resource_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1797. --
  1798. SELECT pg_catalog.setval('public.resource_id_seq', 1, true);
  1799. --
  1800. -- Name: saved_event_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1801. --
  1802. SELECT pg_catalog.setval('public.saved_event_id_seq', 1, false);
  1803. --
  1804. -- Name: saved_sportsman_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1805. --
  1806. SELECT pg_catalog.setval('public.saved_sportsman_id_seq', 1, false);
  1807. --
  1808. -- Name: service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1809. --
  1810. SELECT pg_catalog.setval('public.service_id_seq', 1, true);
  1811. --
  1812. -- Name: servicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1813. --
  1814. SELECT pg_catalog.setval('public.servicetype_id_seq', 1, true);
  1815. --
  1816. -- Name: sport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1817. --
  1818. SELECT pg_catalog.setval('public.sport_id_seq', 1, true);
  1819. --
  1820. -- Name: sport_preferrence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1821. --
  1822. SELECT pg_catalog.setval('public.sport_preferrence_id_seq', 1, false);
  1823. --
  1824. -- Name: sportsman_gallery_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1825. --
  1826. SELECT pg_catalog.setval('public.sportsman_gallery_id_seq', 1, false);
  1827. --
  1828. -- Name: sportsman_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1829. --
  1830. SELECT pg_catalog.setval('public.sportsman_id_seq', 2, true);
  1831. --
  1832. -- Name: tickets_attachment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1833. --
  1834. SELECT pg_catalog.setval('public.tickets_attachment_id_seq', 1, false);
  1835. --
  1836. -- Name: tickets_comment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1837. --
  1838. SELECT pg_catalog.setval('public.tickets_comment_id_seq', 1, false);
  1839. --
  1840. -- Name: tickets_task_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1841. --
  1842. SELECT pg_catalog.setval('public.tickets_task_id_seq', 5, true);
  1843. --
  1844. -- Name: tickets_tasklist_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1845. --
  1846. SELECT pg_catalog.setval('public.tickets_tasklist_id_seq', 23, true);
  1847. --
  1848. -- Name: tickets_tickettype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: sports
  1849. --
  1850. SELECT pg_catalog.setval('public.tickets_tickettype_id_seq', 4, true);
  1851. --
  1852. -- Name: achievement achievement_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1853. --
  1854. ALTER TABLE ONLY public.achievement
  1855. ADD CONSTRAINT achievement_pkey PRIMARY KEY (id);
  1856. --
  1857. -- Name: achievements achievements_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1858. --
  1859. ALTER TABLE ONLY public.achievements
  1860. ADD CONSTRAINT achievements_pkey PRIMARY KEY (id);
  1861. --
  1862. -- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: sports
  1863. --
  1864. ALTER TABLE ONLY public.auth_group
  1865. ADD CONSTRAINT auth_group_name_key UNIQUE (name);
  1866. --
  1867. -- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  1868. --
  1869. ALTER TABLE ONLY public.auth_group_permissions
  1870. ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id);
  1871. --
  1872. -- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1873. --
  1874. ALTER TABLE ONLY public.auth_group_permissions
  1875. ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id);
  1876. --
  1877. -- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1878. --
  1879. ALTER TABLE ONLY public.auth_group
  1880. ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id);
  1881. --
  1882. -- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  1883. --
  1884. ALTER TABLE ONLY public.auth_permission
  1885. ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename);
  1886. --
  1887. -- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1888. --
  1889. ALTER TABLE ONLY public.auth_permission
  1890. ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id);
  1891. --
  1892. -- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1893. --
  1894. ALTER TABLE ONLY public.auth_user_groups
  1895. ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id);
  1896. --
  1897. -- Name: auth_user_groups auth_user_groups_sharixuser_id_group_id_1c389e1b_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  1898. --
  1899. ALTER TABLE ONLY public.auth_user_groups
  1900. ADD CONSTRAINT auth_user_groups_sharixuser_id_group_id_1c389e1b_uniq UNIQUE (sharixuser_id, group_id);
  1901. --
  1902. -- Name: auth_user auth_user_phone_number_key; Type: CONSTRAINT; Schema: public; Owner: sports
  1903. --
  1904. ALTER TABLE ONLY public.auth_user
  1905. ADD CONSTRAINT auth_user_phone_number_key UNIQUE (phone_number);
  1906. --
  1907. -- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1908. --
  1909. ALTER TABLE ONLY public.auth_user
  1910. ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);
  1911. --
  1912. -- Name: auth_user_user_permissions auth_user_user_permissio_sharixuser_id_permission_d945e8cc_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  1913. --
  1914. ALTER TABLE ONLY public.auth_user_user_permissions
  1915. ADD CONSTRAINT auth_user_user_permissio_sharixuser_id_permission_d945e8cc_uniq UNIQUE (sharixuser_id, permission_id);
  1916. --
  1917. -- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1918. --
  1919. ALTER TABLE ONLY public.auth_user_user_permissions
  1920. ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id);
  1921. --
  1922. -- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: sports
  1923. --
  1924. ALTER TABLE ONLY public.auth_user
  1925. ADD CONSTRAINT auth_user_username_key UNIQUE (username);
  1926. --
  1927. -- Name: authtoken_token authtoken_token_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1928. --
  1929. ALTER TABLE ONLY public.authtoken_token
  1930. ADD CONSTRAINT authtoken_token_pkey PRIMARY KEY (key);
  1931. --
  1932. -- Name: authtoken_token authtoken_token_user_id_key; Type: CONSTRAINT; Schema: public; Owner: sports
  1933. --
  1934. ALTER TABLE ONLY public.authtoken_token
  1935. ADD CONSTRAINT authtoken_token_user_id_key UNIQUE (user_id);
  1936. --
  1937. -- Name: blocked_sportsman blocked_sportsman_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1938. --
  1939. ALTER TABLE ONLY public.blocked_sportsman
  1940. ADD CONSTRAINT blocked_sportsman_pkey PRIMARY KEY (id);
  1941. --
  1942. -- Name: browse_event browse_event_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1943. --
  1944. ALTER TABLE ONLY public.browse_event
  1945. ADD CONSTRAINT browse_event_pkey PRIMARY KEY (id);
  1946. --
  1947. -- Name: browse_sportsman browse_sportsman_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1948. --
  1949. ALTER TABLE ONLY public.browse_sportsman
  1950. ADD CONSTRAINT browse_sportsman_pkey PRIMARY KEY (id);
  1951. --
  1952. -- Name: client client_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1953. --
  1954. ALTER TABLE ONLY public.client
  1955. ADD CONSTRAINT client_pkey PRIMARY KEY (id);
  1956. --
  1957. -- Name: company company_inn_key; Type: CONSTRAINT; Schema: public; Owner: sports
  1958. --
  1959. ALTER TABLE ONLY public.company
  1960. ADD CONSTRAINT company_inn_key UNIQUE (inn);
  1961. --
  1962. -- Name: company company_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1963. --
  1964. ALTER TABLE ONLY public.company
  1965. ADD CONSTRAINT company_pkey PRIMARY KEY (id);
  1966. --
  1967. -- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1968. --
  1969. ALTER TABLE ONLY public.django_admin_log
  1970. ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id);
  1971. --
  1972. -- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  1973. --
  1974. ALTER TABLE ONLY public.django_content_type
  1975. ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model);
  1976. --
  1977. -- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1978. --
  1979. ALTER TABLE ONLY public.django_content_type
  1980. ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id);
  1981. --
  1982. -- Name: django_flatpage django_flatpage_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1983. --
  1984. ALTER TABLE ONLY public.django_flatpage
  1985. ADD CONSTRAINT django_flatpage_pkey PRIMARY KEY (id);
  1986. --
  1987. -- Name: django_flatpage_sites django_flatpage_sites_flatpage_id_site_id_0d29d9d1_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  1988. --
  1989. ALTER TABLE ONLY public.django_flatpage_sites
  1990. ADD CONSTRAINT django_flatpage_sites_flatpage_id_site_id_0d29d9d1_uniq UNIQUE (flatpage_id, site_id);
  1991. --
  1992. -- Name: django_flatpage_sites django_flatpage_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1993. --
  1994. ALTER TABLE ONLY public.django_flatpage_sites
  1995. ADD CONSTRAINT django_flatpage_sites_pkey PRIMARY KEY (id);
  1996. --
  1997. -- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  1998. --
  1999. ALTER TABLE ONLY public.django_migrations
  2000. ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id);
  2001. --
  2002. -- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2003. --
  2004. ALTER TABLE ONLY public.django_session
  2005. ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key);
  2006. --
  2007. -- Name: django_site django_site_domain_a2e37b91_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  2008. --
  2009. ALTER TABLE ONLY public.django_site
  2010. ADD CONSTRAINT django_site_domain_a2e37b91_uniq UNIQUE (domain);
  2011. --
  2012. -- Name: django_site django_site_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2013. --
  2014. ALTER TABLE ONLY public.django_site
  2015. ADD CONSTRAINT django_site_pkey PRIMARY KEY (id);
  2016. --
  2017. -- Name: documents documents_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2018. --
  2019. ALTER TABLE ONLY public.documents
  2020. ADD CONSTRAINT documents_pkey PRIMARY KEY (id);
  2021. --
  2022. -- Name: event_gallery event_gallery_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2023. --
  2024. ALTER TABLE ONLY public.event_gallery
  2025. ADD CONSTRAINT event_gallery_pkey PRIMARY KEY (id);
  2026. --
  2027. -- Name: event event_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2028. --
  2029. ALTER TABLE ONLY public.event
  2030. ADD CONSTRAINT event_pkey PRIMARY KEY (id);
  2031. --
  2032. -- Name: orders orders_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2033. --
  2034. ALTER TABLE ONLY public.orders
  2035. ADD CONSTRAINT orders_pkey PRIMARY KEY (id);
  2036. --
  2037. -- Name: participant participant_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2038. --
  2039. ALTER TABLE ONLY public.participant
  2040. ADD CONSTRAINT participant_pkey PRIMARY KEY (id);
  2041. --
  2042. -- Name: permissions permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2043. --
  2044. ALTER TABLE ONLY public.permissions
  2045. ADD CONSTRAINT permissions_pkey PRIMARY KEY (id);
  2046. --
  2047. -- Name: provider provider_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2048. --
  2049. ALTER TABLE ONLY public.provider
  2050. ADD CONSTRAINT provider_pkey PRIMARY KEY (id);
  2051. --
  2052. -- Name: relationship relationship_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2053. --
  2054. ALTER TABLE ONLY public.relationship
  2055. ADD CONSTRAINT relationship_pkey PRIMARY KEY (id);
  2056. --
  2057. -- Name: resource resource_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2058. --
  2059. ALTER TABLE ONLY public.resource
  2060. ADD CONSTRAINT resource_pkey PRIMARY KEY (id);
  2061. --
  2062. -- Name: saved_event saved_event_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2063. --
  2064. ALTER TABLE ONLY public.saved_event
  2065. ADD CONSTRAINT saved_event_pkey PRIMARY KEY (id);
  2066. --
  2067. -- Name: saved_sportsman saved_sportsman_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2068. --
  2069. ALTER TABLE ONLY public.saved_sportsman
  2070. ADD CONSTRAINT saved_sportsman_pkey PRIMARY KEY (id);
  2071. --
  2072. -- Name: service service_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2073. --
  2074. ALTER TABLE ONLY public.service
  2075. ADD CONSTRAINT service_pkey PRIMARY KEY (id);
  2076. --
  2077. -- Name: servicetype servicetype_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2078. --
  2079. ALTER TABLE ONLY public.servicetype
  2080. ADD CONSTRAINT servicetype_pkey PRIMARY KEY (id);
  2081. --
  2082. -- Name: sport sport_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2083. --
  2084. ALTER TABLE ONLY public.sport
  2085. ADD CONSTRAINT sport_pkey PRIMARY KEY (id);
  2086. --
  2087. -- Name: sport_preferrence sport_preferrence_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2088. --
  2089. ALTER TABLE ONLY public.sport_preferrence
  2090. ADD CONSTRAINT sport_preferrence_pkey PRIMARY KEY (id);
  2091. --
  2092. -- Name: sportsman_gallery sportsman_gallery_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2093. --
  2094. ALTER TABLE ONLY public.sportsman_gallery
  2095. ADD CONSTRAINT sportsman_gallery_pkey PRIMARY KEY (id);
  2096. --
  2097. -- Name: sportsman sportsman_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2098. --
  2099. ALTER TABLE ONLY public.sportsman
  2100. ADD CONSTRAINT sportsman_pkey PRIMARY KEY (id);
  2101. --
  2102. -- Name: tickets_attachment tickets_attachment_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2103. --
  2104. ALTER TABLE ONLY public.tickets_attachment
  2105. ADD CONSTRAINT tickets_attachment_pkey PRIMARY KEY (id);
  2106. --
  2107. -- Name: tickets_comment tickets_comment_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2108. --
  2109. ALTER TABLE ONLY public.tickets_comment
  2110. ADD CONSTRAINT tickets_comment_pkey PRIMARY KEY (id);
  2111. --
  2112. -- Name: tickets_comment tickets_comment_task_id_email_message_id_c2280cd2_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  2113. --
  2114. ALTER TABLE ONLY public.tickets_comment
  2115. ADD CONSTRAINT tickets_comment_task_id_email_message_id_c2280cd2_uniq UNIQUE (task_id, email_message_id);
  2116. --
  2117. -- Name: tickets_task tickets_task_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2118. --
  2119. ALTER TABLE ONLY public.tickets_task
  2120. ADD CONSTRAINT tickets_task_pkey PRIMARY KEY (id);
  2121. --
  2122. -- Name: tickets_tasklist tickets_tasklist_group_id_slug_7aeeac6b_uniq; Type: CONSTRAINT; Schema: public; Owner: sports
  2123. --
  2124. ALTER TABLE ONLY public.tickets_tasklist
  2125. ADD CONSTRAINT tickets_tasklist_group_id_slug_7aeeac6b_uniq UNIQUE (group_id, slug);
  2126. --
  2127. -- Name: tickets_tasklist tickets_tasklist_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2128. --
  2129. ALTER TABLE ONLY public.tickets_tasklist
  2130. ADD CONSTRAINT tickets_tasklist_pkey PRIMARY KEY (id);
  2131. --
  2132. -- Name: tickets_tickettype tickets_tickettype_life_cycle_key; Type: CONSTRAINT; Schema: public; Owner: sports
  2133. --
  2134. ALTER TABLE ONLY public.tickets_tickettype
  2135. ADD CONSTRAINT tickets_tickettype_life_cycle_key UNIQUE (life_cycle);
  2136. --
  2137. -- Name: tickets_tickettype tickets_tickettype_name_key; Type: CONSTRAINT; Schema: public; Owner: sports
  2138. --
  2139. ALTER TABLE ONLY public.tickets_tickettype
  2140. ADD CONSTRAINT tickets_tickettype_name_key UNIQUE (name);
  2141. --
  2142. -- Name: tickets_tickettype tickets_tickettype_pkey; Type: CONSTRAINT; Schema: public; Owner: sports
  2143. --
  2144. ALTER TABLE ONLY public.tickets_tickettype
  2145. ADD CONSTRAINT tickets_tickettype_pkey PRIMARY KEY (id);
  2146. --
  2147. -- Name: achievement unique_achievement; Type: CONSTRAINT; Schema: public; Owner: sports
  2148. --
  2149. ALTER TABLE ONLY public.achievement
  2150. ADD CONSTRAINT unique_achievement UNIQUE (sportsman_id, achievement_id);
  2151. --
  2152. -- Name: blocked_sportsman unique_blocked_sportsman; Type: CONSTRAINT; Schema: public; Owner: sports
  2153. --
  2154. ALTER TABLE ONLY public.blocked_sportsman
  2155. ADD CONSTRAINT unique_blocked_sportsman UNIQUE (sportsman_id, sportsman_blocked_id);
  2156. --
  2157. -- Name: browse_event unique_browse_event; Type: CONSTRAINT; Schema: public; Owner: sports
  2158. --
  2159. ALTER TABLE ONLY public.browse_event
  2160. ADD CONSTRAINT unique_browse_event UNIQUE (sportsman_id, event_browseevent_id);
  2161. --
  2162. -- Name: browse_sportsman unique_browse_sportsman; Type: CONSTRAINT; Schema: public; Owner: sports
  2163. --
  2164. ALTER TABLE ONLY public.browse_sportsman
  2165. ADD CONSTRAINT unique_browse_sportsman UNIQUE (sportsman_id, sportsman_browsed_id);
  2166. --
  2167. -- Name: participant unique_participant; Type: CONSTRAINT; Schema: public; Owner: sports
  2168. --
  2169. ALTER TABLE ONLY public.participant
  2170. ADD CONSTRAINT unique_participant UNIQUE (sportsman_id, event_participant_id);
  2171. --
  2172. -- Name: saved_event unique_saved_event; Type: CONSTRAINT; Schema: public; Owner: sports
  2173. --
  2174. ALTER TABLE ONLY public.saved_event
  2175. ADD CONSTRAINT unique_saved_event UNIQUE (sportsman_id, event_savedevent_id);
  2176. --
  2177. -- Name: saved_sportsman unique_saved_sportsman; Type: CONSTRAINT; Schema: public; Owner: sports
  2178. --
  2179. ALTER TABLE ONLY public.saved_sportsman
  2180. ADD CONSTRAINT unique_saved_sportsman UNIQUE (sportsman_id, sportsman_saved_id);
  2181. --
  2182. -- Name: sport_preferrence unique_sportpreferrence; Type: CONSTRAINT; Schema: public; Owner: sports
  2183. --
  2184. ALTER TABLE ONLY public.sport_preferrence
  2185. ADD CONSTRAINT unique_sportpreferrence UNIQUE (sportsman_id, sport_id);
  2186. --
  2187. -- Name: achievement_achievement_id_f44d8554; Type: INDEX; Schema: public; Owner: sports
  2188. --
  2189. CREATE INDEX achievement_achievement_id_f44d8554 ON public.achievement USING btree (achievement_id);
  2190. --
  2191. -- Name: achievement_sportsman_id_550fd02d; Type: INDEX; Schema: public; Owner: sports
  2192. --
  2193. CREATE INDEX achievement_sportsman_id_550fd02d ON public.achievement USING btree (sportsman_id);
  2194. --
  2195. -- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: sports
  2196. --
  2197. CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops);
  2198. --
  2199. -- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: sports
  2200. --
  2201. CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id);
  2202. --
  2203. -- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: sports
  2204. --
  2205. CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id);
  2206. --
  2207. -- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: sports
  2208. --
  2209. CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id);
  2210. --
  2211. -- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: sports
  2212. --
  2213. CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id);
  2214. --
  2215. -- Name: auth_user_groups_sharixuser_id_772bb15e; Type: INDEX; Schema: public; Owner: sports
  2216. --
  2217. CREATE INDEX auth_user_groups_sharixuser_id_772bb15e ON public.auth_user_groups USING btree (sharixuser_id);
  2218. --
  2219. -- Name: auth_user_phone_number_21846c29_like; Type: INDEX; Schema: public; Owner: sports
  2220. --
  2221. CREATE INDEX auth_user_phone_number_21846c29_like ON public.auth_user USING btree (phone_number varchar_pattern_ops);
  2222. --
  2223. -- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: sports
  2224. --
  2225. CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id);
  2226. --
  2227. -- Name: auth_user_user_permissions_sharixuser_id_31146c79; Type: INDEX; Schema: public; Owner: sports
  2228. --
  2229. CREATE INDEX auth_user_user_permissions_sharixuser_id_31146c79 ON public.auth_user_user_permissions USING btree (sharixuser_id);
  2230. --
  2231. -- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: sports
  2232. --
  2233. CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops);
  2234. --
  2235. -- Name: authtoken_token_key_10f0b77e_like; Type: INDEX; Schema: public; Owner: sports
  2236. --
  2237. CREATE INDEX authtoken_token_key_10f0b77e_like ON public.authtoken_token USING btree (key varchar_pattern_ops);
  2238. --
  2239. -- Name: blocked_sportsman_sportsman_blocked_id_09a28c8f; Type: INDEX; Schema: public; Owner: sports
  2240. --
  2241. CREATE INDEX blocked_sportsman_sportsman_blocked_id_09a28c8f ON public.blocked_sportsman USING btree (sportsman_blocked_id);
  2242. --
  2243. -- Name: blocked_sportsman_sportsman_id_41cf40b7; Type: INDEX; Schema: public; Owner: sports
  2244. --
  2245. CREATE INDEX blocked_sportsman_sportsman_id_41cf40b7 ON public.blocked_sportsman USING btree (sportsman_id);
  2246. --
  2247. -- Name: browse_event_event_browseevent_id_19a81220; Type: INDEX; Schema: public; Owner: sports
  2248. --
  2249. CREATE INDEX browse_event_event_browseevent_id_19a81220 ON public.browse_event USING btree (event_browseevent_id);
  2250. --
  2251. -- Name: browse_event_sportsman_id_ba071710; Type: INDEX; Schema: public; Owner: sports
  2252. --
  2253. CREATE INDEX browse_event_sportsman_id_ba071710 ON public.browse_event USING btree (sportsman_id);
  2254. --
  2255. -- Name: browse_sportsman_sportsman_browsed_id_393ca39b; Type: INDEX; Schema: public; Owner: sports
  2256. --
  2257. CREATE INDEX browse_sportsman_sportsman_browsed_id_393ca39b ON public.browse_sportsman USING btree (sportsman_browsed_id);
  2258. --
  2259. -- Name: browse_sportsman_sportsman_id_007390f0; Type: INDEX; Schema: public; Owner: sports
  2260. --
  2261. CREATE INDEX browse_sportsman_sportsman_id_007390f0 ON public.browse_sportsman USING btree (sportsman_id);
  2262. --
  2263. -- Name: client_ticket_status_id_85e20251; Type: INDEX; Schema: public; Owner: sports
  2264. --
  2265. CREATE INDEX client_ticket_status_id_85e20251 ON public.client USING btree (ticket_status_id);
  2266. --
  2267. -- Name: client_user_id_af1c5063; Type: INDEX; Schema: public; Owner: sports
  2268. --
  2269. CREATE INDEX client_user_id_af1c5063 ON public.client USING btree (user_id);
  2270. --
  2271. -- Name: company_inn_b373e4fd_like; Type: INDEX; Schema: public; Owner: sports
  2272. --
  2273. CREATE INDEX company_inn_b373e4fd_like ON public.company USING btree (inn varchar_pattern_ops);
  2274. --
  2275. -- Name: company_repr_id_id_830e507c; Type: INDEX; Schema: public; Owner: sports
  2276. --
  2277. CREATE INDEX company_repr_id_id_830e507c ON public.company USING btree (repr_id_id);
  2278. --
  2279. -- Name: company_ticket_status_id_3300d57e; Type: INDEX; Schema: public; Owner: sports
  2280. --
  2281. CREATE INDEX company_ticket_status_id_3300d57e ON public.company USING btree (ticket_status_id);
  2282. --
  2283. -- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: sports
  2284. --
  2285. CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id);
  2286. --
  2287. -- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: sports
  2288. --
  2289. CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id);
  2290. --
  2291. -- Name: django_flatpage_sites_flatpage_id_078bbc8b; Type: INDEX; Schema: public; Owner: sports
  2292. --
  2293. CREATE INDEX django_flatpage_sites_flatpage_id_078bbc8b ON public.django_flatpage_sites USING btree (flatpage_id);
  2294. --
  2295. -- Name: django_flatpage_sites_site_id_bfd8ea84; Type: INDEX; Schema: public; Owner: sports
  2296. --
  2297. CREATE INDEX django_flatpage_sites_site_id_bfd8ea84 ON public.django_flatpage_sites USING btree (site_id);
  2298. --
  2299. -- Name: django_flatpage_url_41612362; Type: INDEX; Schema: public; Owner: sports
  2300. --
  2301. CREATE INDEX django_flatpage_url_41612362 ON public.django_flatpage USING btree (url);
  2302. --
  2303. -- Name: django_flatpage_url_41612362_like; Type: INDEX; Schema: public; Owner: sports
  2304. --
  2305. CREATE INDEX django_flatpage_url_41612362_like ON public.django_flatpage USING btree (url varchar_pattern_ops);
  2306. --
  2307. -- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: sports
  2308. --
  2309. CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date);
  2310. --
  2311. -- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: sports
  2312. --
  2313. CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops);
  2314. --
  2315. -- Name: django_site_domain_a2e37b91_like; Type: INDEX; Schema: public; Owner: sports
  2316. --
  2317. CREATE INDEX django_site_domain_a2e37b91_like ON public.django_site USING btree (domain varchar_pattern_ops);
  2318. --
  2319. -- Name: documents_checked_by_id_d2cb7bbf; Type: INDEX; Schema: public; Owner: sports
  2320. --
  2321. CREATE INDEX documents_checked_by_id_d2cb7bbf ON public.documents USING btree (checked_by_id);
  2322. --
  2323. -- Name: documents_company_id_id_ae4b0bd6; Type: INDEX; Schema: public; Owner: sports
  2324. --
  2325. CREATE INDEX documents_company_id_id_ae4b0bd6 ON public.documents USING btree (company_id_id);
  2326. --
  2327. -- Name: documents_ticket_status_id_579c3a79; Type: INDEX; Schema: public; Owner: sports
  2328. --
  2329. CREATE INDEX documents_ticket_status_id_579c3a79 ON public.documents USING btree (ticket_status_id);
  2330. --
  2331. -- Name: documents_user_id_id_3df1ae44; Type: INDEX; Schema: public; Owner: sports
  2332. --
  2333. CREATE INDEX documents_user_id_id_3df1ae44 ON public.documents USING btree (user_id_id);
  2334. --
  2335. -- Name: event_gallery_event_id_fefda20c; Type: INDEX; Schema: public; Owner: sports
  2336. --
  2337. CREATE INDEX event_gallery_event_id_fefda20c ON public.event_gallery USING btree (event_id);
  2338. --
  2339. -- Name: event_host_id_47126ec0; Type: INDEX; Schema: public; Owner: sports
  2340. --
  2341. CREATE INDEX event_host_id_47126ec0 ON public.event USING btree (host_id);
  2342. --
  2343. -- Name: event_order_synced_id_d72e85c1; Type: INDEX; Schema: public; Owner: sports
  2344. --
  2345. CREATE INDEX event_order_synced_id_d72e85c1 ON public.event USING btree (order_synced_id);
  2346. --
  2347. -- Name: event_resource_id_id_e99cc9bf; Type: INDEX; Schema: public; Owner: sports
  2348. --
  2349. CREATE INDEX event_resource_id_id_e99cc9bf ON public.event USING btree (resource_id_id);
  2350. --
  2351. -- Name: event_sport_id_4b9df778; Type: INDEX; Schema: public; Owner: sports
  2352. --
  2353. CREATE INDEX event_sport_id_4b9df778 ON public.event USING btree (sport_id);
  2354. --
  2355. -- Name: orders_client_id_id_bb96bfa3; Type: INDEX; Schema: public; Owner: sports
  2356. --
  2357. CREATE INDEX orders_client_id_id_bb96bfa3 ON public.orders USING btree (client_id_id);
  2358. --
  2359. -- Name: orders_provider_id_374ce07c; Type: INDEX; Schema: public; Owner: sports
  2360. --
  2361. CREATE INDEX orders_provider_id_374ce07c ON public.orders USING btree (provider_id);
  2362. --
  2363. -- Name: orders_receiver_id_c9f26e76; Type: INDEX; Schema: public; Owner: sports
  2364. --
  2365. CREATE INDEX orders_receiver_id_c9f26e76 ON public.orders USING btree (receiver_id);
  2366. --
  2367. -- Name: orders_service_id_a14ad139; Type: INDEX; Schema: public; Owner: sports
  2368. --
  2369. CREATE INDEX orders_service_id_a14ad139 ON public.orders USING btree (service_id);
  2370. --
  2371. -- Name: orders_service_type_id_6389f57c; Type: INDEX; Schema: public; Owner: sports
  2372. --
  2373. CREATE INDEX orders_service_type_id_6389f57c ON public.orders USING btree (service_type_id);
  2374. --
  2375. -- Name: orders_ticket_id_5e864231; Type: INDEX; Schema: public; Owner: sports
  2376. --
  2377. CREATE INDEX orders_ticket_id_5e864231 ON public.orders USING btree (ticket_id);
  2378. --
  2379. -- Name: participant_event_participant_id_8627532c; Type: INDEX; Schema: public; Owner: sports
  2380. --
  2381. CREATE INDEX participant_event_participant_id_8627532c ON public.participant USING btree (event_participant_id);
  2382. --
  2383. -- Name: participant_sportsman_id_5f0e72cd; Type: INDEX; Schema: public; Owner: sports
  2384. --
  2385. CREATE INDEX participant_sportsman_id_5f0e72cd ON public.participant USING btree (sportsman_id);
  2386. --
  2387. -- Name: permissions_checked_by_id_c4ae2d37; Type: INDEX; Schema: public; Owner: sports
  2388. --
  2389. CREATE INDEX permissions_checked_by_id_c4ae2d37 ON public.permissions USING btree (checked_by_id);
  2390. --
  2391. -- Name: permissions_ticket_status_id_ffaa2331; Type: INDEX; Schema: public; Owner: sports
  2392. --
  2393. CREATE INDEX permissions_ticket_status_id_ffaa2331 ON public.permissions USING btree (ticket_status_id);
  2394. --
  2395. -- Name: permissions_user_id_id_5e803886; Type: INDEX; Schema: public; Owner: sports
  2396. --
  2397. CREATE INDEX permissions_user_id_id_5e803886 ON public.permissions USING btree (user_id_id);
  2398. --
  2399. -- Name: provider_company_id_id_cbface41; Type: INDEX; Schema: public; Owner: sports
  2400. --
  2401. CREATE INDEX provider_company_id_id_cbface41 ON public.provider USING btree (company_id_id);
  2402. --
  2403. -- Name: provider_ticket_status_id_1393a2d9; Type: INDEX; Schema: public; Owner: sports
  2404. --
  2405. CREATE INDEX provider_ticket_status_id_1393a2d9 ON public.provider USING btree (ticket_status_id);
  2406. --
  2407. -- Name: provider_user_id_id_f80c97d0; Type: INDEX; Schema: public; Owner: sports
  2408. --
  2409. CREATE INDEX provider_user_id_id_f80c97d0 ON public.provider USING btree (user_id_id);
  2410. --
  2411. -- Name: relationship_ticket_status_id_95154047; Type: INDEX; Schema: public; Owner: sports
  2412. --
  2413. CREATE INDEX relationship_ticket_status_id_95154047 ON public.relationship USING btree (ticket_status_id);
  2414. --
  2415. -- Name: relationship_user_id_who_id_56f216cd; Type: INDEX; Schema: public; Owner: sports
  2416. --
  2417. CREATE INDEX relationship_user_id_who_id_56f216cd ON public.relationship USING btree (user_id_who_id);
  2418. --
  2419. -- Name: relationship_user_id_whom_id_ed5d0b59; Type: INDEX; Schema: public; Owner: sports
  2420. --
  2421. CREATE INDEX relationship_user_id_whom_id_ed5d0b59 ON public.relationship USING btree (user_id_whom_id);
  2422. --
  2423. -- Name: resource_ticket_status_id_fd78cde6; Type: INDEX; Schema: public; Owner: sports
  2424. --
  2425. CREATE INDEX resource_ticket_status_id_fd78cde6 ON public.resource USING btree (ticket_status_id);
  2426. --
  2427. -- Name: resource_user_id_id_f8636fa7; Type: INDEX; Schema: public; Owner: sports
  2428. --
  2429. CREATE INDEX resource_user_id_id_f8636fa7 ON public.resource USING btree (user_id_id);
  2430. --
  2431. -- Name: saved_event_event_savedevent_id_9208645c; Type: INDEX; Schema: public; Owner: sports
  2432. --
  2433. CREATE INDEX saved_event_event_savedevent_id_9208645c ON public.saved_event USING btree (event_savedevent_id);
  2434. --
  2435. -- Name: saved_event_sportsman_id_02a40b11; Type: INDEX; Schema: public; Owner: sports
  2436. --
  2437. CREATE INDEX saved_event_sportsman_id_02a40b11 ON public.saved_event USING btree (sportsman_id);
  2438. --
  2439. -- Name: saved_sportsman_sportsman_id_3a5033e3; Type: INDEX; Schema: public; Owner: sports
  2440. --
  2441. CREATE INDEX saved_sportsman_sportsman_id_3a5033e3 ON public.saved_sportsman USING btree (sportsman_id);
  2442. --
  2443. -- Name: saved_sportsman_sportsman_saved_id_4ab950e0; Type: INDEX; Schema: public; Owner: sports
  2444. --
  2445. CREATE INDEX saved_sportsman_sportsman_saved_id_4ab950e0 ON public.saved_sportsman USING btree (sportsman_saved_id);
  2446. --
  2447. -- Name: service_id_provider_id_1b630b89; Type: INDEX; Schema: public; Owner: sports
  2448. --
  2449. CREATE INDEX service_id_provider_id_1b630b89 ON public.service USING btree (id_provider_id);
  2450. --
  2451. -- Name: service_resource_id_id_0f1f1ca2; Type: INDEX; Schema: public; Owner: sports
  2452. --
  2453. CREATE INDEX service_resource_id_id_0f1f1ca2 ON public.service USING btree (resource_id_id);
  2454. --
  2455. -- Name: service_servicetype_id_id_3a28b055; Type: INDEX; Schema: public; Owner: sports
  2456. --
  2457. CREATE INDEX service_servicetype_id_id_3a28b055 ON public.service USING btree (servicetype_id_id);
  2458. --
  2459. -- Name: service_ticket_status_id_5b6b572d; Type: INDEX; Schema: public; Owner: sports
  2460. --
  2461. CREATE INDEX service_ticket_status_id_5b6b572d ON public.service USING btree (ticket_status_id);
  2462. --
  2463. -- Name: servicetype_ticket_status_id_77b8bfcd; Type: INDEX; Schema: public; Owner: sports
  2464. --
  2465. CREATE INDEX servicetype_ticket_status_id_77b8bfcd ON public.servicetype USING btree (ticket_status_id);
  2466. --
  2467. -- Name: sport_preferrence_sport_id_331b3060; Type: INDEX; Schema: public; Owner: sports
  2468. --
  2469. CREATE INDEX sport_preferrence_sport_id_331b3060 ON public.sport_preferrence USING btree (sport_id);
  2470. --
  2471. -- Name: sport_preferrence_sportsman_id_c85f5d64; Type: INDEX; Schema: public; Owner: sports
  2472. --
  2473. CREATE INDEX sport_preferrence_sportsman_id_c85f5d64 ON public.sport_preferrence USING btree (sportsman_id);
  2474. --
  2475. -- Name: sportsman_client_id_d332b8c0; Type: INDEX; Schema: public; Owner: sports
  2476. --
  2477. CREATE INDEX sportsman_client_id_d332b8c0 ON public.sportsman USING btree (client_id);
  2478. --
  2479. -- Name: sportsman_gallery_sportsman_id_620db12f; Type: INDEX; Schema: public; Owner: sports
  2480. --
  2481. CREATE INDEX sportsman_gallery_sportsman_id_620db12f ON public.sportsman_gallery USING btree (sportsman_id);
  2482. --
  2483. -- Name: tickets_attachment_added_by_id_3c8ddb6f; Type: INDEX; Schema: public; Owner: sports
  2484. --
  2485. CREATE INDEX tickets_attachment_added_by_id_3c8ddb6f ON public.tickets_attachment USING btree (added_by_id);
  2486. --
  2487. -- Name: tickets_attachment_task_id_075d0abc; Type: INDEX; Schema: public; Owner: sports
  2488. --
  2489. CREATE INDEX tickets_attachment_task_id_075d0abc ON public.tickets_attachment USING btree (task_id);
  2490. --
  2491. -- Name: tickets_comment_author_id_92e77b6b; Type: INDEX; Schema: public; Owner: sports
  2492. --
  2493. CREATE INDEX tickets_comment_author_id_92e77b6b ON public.tickets_comment USING btree (author_id);
  2494. --
  2495. -- Name: tickets_comment_task_id_13ac4c64; Type: INDEX; Schema: public; Owner: sports
  2496. --
  2497. CREATE INDEX tickets_comment_task_id_13ac4c64 ON public.tickets_comment USING btree (task_id);
  2498. --
  2499. -- Name: tickets_task_assigned_to_id_5a33e646; Type: INDEX; Schema: public; Owner: sports
  2500. --
  2501. CREATE INDEX tickets_task_assigned_to_id_5a33e646 ON public.tickets_task USING btree (assigned_to_id);
  2502. --
  2503. -- Name: tickets_task_created_by_id_b9c0cd01; Type: INDEX; Schema: public; Owner: sports
  2504. --
  2505. CREATE INDEX tickets_task_created_by_id_b9c0cd01 ON public.tickets_task USING btree (created_by_id);
  2506. --
  2507. -- Name: tickets_task_task_list_id_c1b9fc64; Type: INDEX; Schema: public; Owner: sports
  2508. --
  2509. CREATE INDEX tickets_task_task_list_id_c1b9fc64 ON public.tickets_task USING btree (task_list_id);
  2510. --
  2511. -- Name: tickets_task_type_id_162ca4d2; Type: INDEX; Schema: public; Owner: sports
  2512. --
  2513. CREATE INDEX tickets_task_type_id_162ca4d2 ON public.tickets_task USING btree (type_id);
  2514. --
  2515. -- Name: tickets_tasklist_group_id_1c12657b; Type: INDEX; Schema: public; Owner: sports
  2516. --
  2517. CREATE INDEX tickets_tasklist_group_id_1c12657b ON public.tickets_tasklist USING btree (group_id);
  2518. --
  2519. -- Name: tickets_tasklist_slug_e1f9ff9a; Type: INDEX; Schema: public; Owner: sports
  2520. --
  2521. CREATE INDEX tickets_tasklist_slug_e1f9ff9a ON public.tickets_tasklist USING btree (slug);
  2522. --
  2523. -- Name: tickets_tasklist_slug_e1f9ff9a_like; Type: INDEX; Schema: public; Owner: sports
  2524. --
  2525. CREATE INDEX tickets_tasklist_slug_e1f9ff9a_like ON public.tickets_tasklist USING btree (slug varchar_pattern_ops);
  2526. --
  2527. -- Name: tickets_tickettype_life_cycle_d3f50cd2_like; Type: INDEX; Schema: public; Owner: sports
  2528. --
  2529. CREATE INDEX tickets_tickettype_life_cycle_d3f50cd2_like ON public.tickets_tickettype USING btree (life_cycle varchar_pattern_ops);
  2530. --
  2531. -- Name: tickets_tickettype_name_558f2f80_like; Type: INDEX; Schema: public; Owner: sports
  2532. --
  2533. CREATE INDEX tickets_tickettype_name_558f2f80_like ON public.tickets_tickettype USING btree (name varchar_pattern_ops);
  2534. --
  2535. -- Name: achievement achievement_achievement_id_f44d8554_fk_achievements_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2536. --
  2537. ALTER TABLE ONLY public.achievement
  2538. ADD CONSTRAINT achievement_achievement_id_f44d8554_fk_achievements_id FOREIGN KEY (achievement_id) REFERENCES public.achievements(id) DEFERRABLE INITIALLY DEFERRED;
  2539. --
  2540. -- Name: achievement achievement_sportsman_id_550fd02d_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2541. --
  2542. ALTER TABLE ONLY public.achievement
  2543. ADD CONSTRAINT achievement_sportsman_id_550fd02d_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2544. --
  2545. -- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2546. --
  2547. ALTER TABLE ONLY public.auth_group_permissions
  2548. ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;
  2549. --
  2550. -- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2551. --
  2552. ALTER TABLE ONLY public.auth_group_permissions
  2553. ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;
  2554. --
  2555. -- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2556. --
  2557. ALTER TABLE ONLY public.auth_permission
  2558. ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
  2559. --
  2560. -- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2561. --
  2562. ALTER TABLE ONLY public.auth_user_groups
  2563. ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;
  2564. --
  2565. -- Name: auth_user_groups auth_user_groups_sharixuser_id_772bb15e_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2566. --
  2567. ALTER TABLE ONLY public.auth_user_groups
  2568. ADD CONSTRAINT auth_user_groups_sharixuser_id_772bb15e_fk_auth_user_id FOREIGN KEY (sharixuser_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2569. --
  2570. -- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2571. --
  2572. ALTER TABLE ONLY public.auth_user_user_permissions
  2573. ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;
  2574. --
  2575. -- Name: auth_user_user_permissions auth_user_user_permi_sharixuser_id_31146c79_fk_auth_user; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2576. --
  2577. ALTER TABLE ONLY public.auth_user_user_permissions
  2578. ADD CONSTRAINT auth_user_user_permi_sharixuser_id_31146c79_fk_auth_user FOREIGN KEY (sharixuser_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2579. --
  2580. -- Name: authtoken_token authtoken_token_user_id_35299eff_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2581. --
  2582. ALTER TABLE ONLY public.authtoken_token
  2583. ADD CONSTRAINT authtoken_token_user_id_35299eff_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2584. --
  2585. -- Name: blocked_sportsman blocked_sportsman_sportsman_blocked_id_09a28c8f_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2586. --
  2587. ALTER TABLE ONLY public.blocked_sportsman
  2588. ADD CONSTRAINT blocked_sportsman_sportsman_blocked_id_09a28c8f_fk_sportsman_id FOREIGN KEY (sportsman_blocked_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2589. --
  2590. -- Name: blocked_sportsman blocked_sportsman_sportsman_id_41cf40b7_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2591. --
  2592. ALTER TABLE ONLY public.blocked_sportsman
  2593. ADD CONSTRAINT blocked_sportsman_sportsman_id_41cf40b7_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2594. --
  2595. -- Name: browse_event browse_event_event_browseevent_id_19a81220_fk_event_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2596. --
  2597. ALTER TABLE ONLY public.browse_event
  2598. ADD CONSTRAINT browse_event_event_browseevent_id_19a81220_fk_event_id FOREIGN KEY (event_browseevent_id) REFERENCES public.event(id) DEFERRABLE INITIALLY DEFERRED;
  2599. --
  2600. -- Name: browse_event browse_event_sportsman_id_ba071710_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2601. --
  2602. ALTER TABLE ONLY public.browse_event
  2603. ADD CONSTRAINT browse_event_sportsman_id_ba071710_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2604. --
  2605. -- Name: browse_sportsman browse_sportsman_sportsman_browsed_id_393ca39b_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2606. --
  2607. ALTER TABLE ONLY public.browse_sportsman
  2608. ADD CONSTRAINT browse_sportsman_sportsman_browsed_id_393ca39b_fk_sportsman_id FOREIGN KEY (sportsman_browsed_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2609. --
  2610. -- Name: browse_sportsman browse_sportsman_sportsman_id_007390f0_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2611. --
  2612. ALTER TABLE ONLY public.browse_sportsman
  2613. ADD CONSTRAINT browse_sportsman_sportsman_id_007390f0_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2614. --
  2615. -- Name: client client_ticket_status_id_85e20251_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2616. --
  2617. ALTER TABLE ONLY public.client
  2618. ADD CONSTRAINT client_ticket_status_id_85e20251_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2619. --
  2620. -- Name: client client_user_id_af1c5063_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2621. --
  2622. ALTER TABLE ONLY public.client
  2623. ADD CONSTRAINT client_user_id_af1c5063_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2624. --
  2625. -- Name: company company_repr_id_id_830e507c_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2626. --
  2627. ALTER TABLE ONLY public.company
  2628. ADD CONSTRAINT company_repr_id_id_830e507c_fk_auth_user_id FOREIGN KEY (repr_id_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2629. --
  2630. -- Name: company company_ticket_status_id_3300d57e_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2631. --
  2632. ALTER TABLE ONLY public.company
  2633. ADD CONSTRAINT company_ticket_status_id_3300d57e_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2634. --
  2635. -- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2636. --
  2637. ALTER TABLE ONLY public.django_admin_log
  2638. ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
  2639. --
  2640. -- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2641. --
  2642. ALTER TABLE ONLY public.django_admin_log
  2643. ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2644. --
  2645. -- Name: django_flatpage_sites django_flatpage_site_flatpage_id_078bbc8b_fk_django_fl; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2646. --
  2647. ALTER TABLE ONLY public.django_flatpage_sites
  2648. ADD CONSTRAINT django_flatpage_site_flatpage_id_078bbc8b_fk_django_fl FOREIGN KEY (flatpage_id) REFERENCES public.django_flatpage(id) DEFERRABLE INITIALLY DEFERRED;
  2649. --
  2650. -- Name: django_flatpage_sites django_flatpage_sites_site_id_bfd8ea84_fk_django_site_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2651. --
  2652. ALTER TABLE ONLY public.django_flatpage_sites
  2653. ADD CONSTRAINT django_flatpage_sites_site_id_bfd8ea84_fk_django_site_id FOREIGN KEY (site_id) REFERENCES public.django_site(id) DEFERRABLE INITIALLY DEFERRED;
  2654. --
  2655. -- Name: documents documents_checked_by_id_d2cb7bbf_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2656. --
  2657. ALTER TABLE ONLY public.documents
  2658. ADD CONSTRAINT documents_checked_by_id_d2cb7bbf_fk_auth_user_id FOREIGN KEY (checked_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2659. --
  2660. -- Name: documents documents_company_id_id_ae4b0bd6_fk_company_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2661. --
  2662. ALTER TABLE ONLY public.documents
  2663. ADD CONSTRAINT documents_company_id_id_ae4b0bd6_fk_company_id FOREIGN KEY (company_id_id) REFERENCES public.company(id) DEFERRABLE INITIALLY DEFERRED;
  2664. --
  2665. -- Name: documents documents_ticket_status_id_579c3a79_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2666. --
  2667. ALTER TABLE ONLY public.documents
  2668. ADD CONSTRAINT documents_ticket_status_id_579c3a79_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2669. --
  2670. -- Name: documents documents_user_id_id_3df1ae44_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2671. --
  2672. ALTER TABLE ONLY public.documents
  2673. ADD CONSTRAINT documents_user_id_id_3df1ae44_fk_auth_user_id FOREIGN KEY (user_id_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2674. --
  2675. -- Name: event_gallery event_gallery_event_id_fefda20c_fk_event_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2676. --
  2677. ALTER TABLE ONLY public.event_gallery
  2678. ADD CONSTRAINT event_gallery_event_id_fefda20c_fk_event_id FOREIGN KEY (event_id) REFERENCES public.event(id) DEFERRABLE INITIALLY DEFERRED;
  2679. --
  2680. -- Name: event event_host_id_47126ec0_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2681. --
  2682. ALTER TABLE ONLY public.event
  2683. ADD CONSTRAINT event_host_id_47126ec0_fk_sportsman_id FOREIGN KEY (host_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2684. --
  2685. -- Name: event event_order_synced_id_d72e85c1_fk_orders_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2686. --
  2687. ALTER TABLE ONLY public.event
  2688. ADD CONSTRAINT event_order_synced_id_d72e85c1_fk_orders_id FOREIGN KEY (order_synced_id) REFERENCES public.orders(id) DEFERRABLE INITIALLY DEFERRED;
  2689. --
  2690. -- Name: event event_resource_id_id_e99cc9bf_fk_resource_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2691. --
  2692. ALTER TABLE ONLY public.event
  2693. ADD CONSTRAINT event_resource_id_id_e99cc9bf_fk_resource_id FOREIGN KEY (resource_id_id) REFERENCES public.resource(id) DEFERRABLE INITIALLY DEFERRED;
  2694. --
  2695. -- Name: event event_sport_id_4b9df778_fk_sport_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2696. --
  2697. ALTER TABLE ONLY public.event
  2698. ADD CONSTRAINT event_sport_id_4b9df778_fk_sport_id FOREIGN KEY (sport_id) REFERENCES public.sport(id) DEFERRABLE INITIALLY DEFERRED;
  2699. --
  2700. -- Name: orders orders_client_id_id_bb96bfa3_fk_client_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2701. --
  2702. ALTER TABLE ONLY public.orders
  2703. ADD CONSTRAINT orders_client_id_id_bb96bfa3_fk_client_id FOREIGN KEY (client_id_id) REFERENCES public.client(id) DEFERRABLE INITIALLY DEFERRED;
  2704. --
  2705. -- Name: orders orders_provider_id_374ce07c_fk_provider_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2706. --
  2707. ALTER TABLE ONLY public.orders
  2708. ADD CONSTRAINT orders_provider_id_374ce07c_fk_provider_id FOREIGN KEY (provider_id) REFERENCES public.provider(id) DEFERRABLE INITIALLY DEFERRED;
  2709. --
  2710. -- Name: orders orders_receiver_id_c9f26e76_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2711. --
  2712. ALTER TABLE ONLY public.orders
  2713. ADD CONSTRAINT orders_receiver_id_c9f26e76_fk_auth_user_id FOREIGN KEY (receiver_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2714. --
  2715. -- Name: orders orders_service_id_a14ad139_fk_service_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2716. --
  2717. ALTER TABLE ONLY public.orders
  2718. ADD CONSTRAINT orders_service_id_a14ad139_fk_service_id FOREIGN KEY (service_id) REFERENCES public.service(id) DEFERRABLE INITIALLY DEFERRED;
  2719. --
  2720. -- Name: orders orders_service_type_id_6389f57c_fk_servicetype_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2721. --
  2722. ALTER TABLE ONLY public.orders
  2723. ADD CONSTRAINT orders_service_type_id_6389f57c_fk_servicetype_id FOREIGN KEY (service_type_id) REFERENCES public.servicetype(id) DEFERRABLE INITIALLY DEFERRED;
  2724. --
  2725. -- Name: orders orders_ticket_id_5e864231_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2726. --
  2727. ALTER TABLE ONLY public.orders
  2728. ADD CONSTRAINT orders_ticket_id_5e864231_fk_tickets_task_id FOREIGN KEY (ticket_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2729. --
  2730. -- Name: participant participant_event_participant_id_8627532c_fk_event_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2731. --
  2732. ALTER TABLE ONLY public.participant
  2733. ADD CONSTRAINT participant_event_participant_id_8627532c_fk_event_id FOREIGN KEY (event_participant_id) REFERENCES public.event(id) DEFERRABLE INITIALLY DEFERRED;
  2734. --
  2735. -- Name: participant participant_sportsman_id_5f0e72cd_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2736. --
  2737. ALTER TABLE ONLY public.participant
  2738. ADD CONSTRAINT participant_sportsman_id_5f0e72cd_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2739. --
  2740. -- Name: permissions permissions_checked_by_id_c4ae2d37_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2741. --
  2742. ALTER TABLE ONLY public.permissions
  2743. ADD CONSTRAINT permissions_checked_by_id_c4ae2d37_fk_auth_user_id FOREIGN KEY (checked_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2744. --
  2745. -- Name: permissions permissions_ticket_status_id_ffaa2331_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2746. --
  2747. ALTER TABLE ONLY public.permissions
  2748. ADD CONSTRAINT permissions_ticket_status_id_ffaa2331_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2749. --
  2750. -- Name: permissions permissions_user_id_id_5e803886_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2751. --
  2752. ALTER TABLE ONLY public.permissions
  2753. ADD CONSTRAINT permissions_user_id_id_5e803886_fk_auth_user_id FOREIGN KEY (user_id_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2754. --
  2755. -- Name: provider provider_company_id_id_cbface41_fk_company_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2756. --
  2757. ALTER TABLE ONLY public.provider
  2758. ADD CONSTRAINT provider_company_id_id_cbface41_fk_company_id FOREIGN KEY (company_id_id) REFERENCES public.company(id) DEFERRABLE INITIALLY DEFERRED;
  2759. --
  2760. -- Name: provider provider_ticket_status_id_1393a2d9_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2761. --
  2762. ALTER TABLE ONLY public.provider
  2763. ADD CONSTRAINT provider_ticket_status_id_1393a2d9_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2764. --
  2765. -- Name: provider provider_user_id_id_f80c97d0_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2766. --
  2767. ALTER TABLE ONLY public.provider
  2768. ADD CONSTRAINT provider_user_id_id_f80c97d0_fk_auth_user_id FOREIGN KEY (user_id_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2769. --
  2770. -- Name: relationship relationship_ticket_status_id_95154047_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2771. --
  2772. ALTER TABLE ONLY public.relationship
  2773. ADD CONSTRAINT relationship_ticket_status_id_95154047_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2774. --
  2775. -- Name: relationship relationship_user_id_who_id_56f216cd_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2776. --
  2777. ALTER TABLE ONLY public.relationship
  2778. ADD CONSTRAINT relationship_user_id_who_id_56f216cd_fk_auth_user_id FOREIGN KEY (user_id_who_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2779. --
  2780. -- Name: relationship relationship_user_id_whom_id_ed5d0b59_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2781. --
  2782. ALTER TABLE ONLY public.relationship
  2783. ADD CONSTRAINT relationship_user_id_whom_id_ed5d0b59_fk_auth_user_id FOREIGN KEY (user_id_whom_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2784. --
  2785. -- Name: resource resource_ticket_status_id_fd78cde6_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2786. --
  2787. ALTER TABLE ONLY public.resource
  2788. ADD CONSTRAINT resource_ticket_status_id_fd78cde6_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2789. --
  2790. -- Name: resource resource_user_id_id_f8636fa7_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2791. --
  2792. ALTER TABLE ONLY public.resource
  2793. ADD CONSTRAINT resource_user_id_id_f8636fa7_fk_auth_user_id FOREIGN KEY (user_id_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2794. --
  2795. -- Name: saved_event saved_event_event_savedevent_id_9208645c_fk_event_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2796. --
  2797. ALTER TABLE ONLY public.saved_event
  2798. ADD CONSTRAINT saved_event_event_savedevent_id_9208645c_fk_event_id FOREIGN KEY (event_savedevent_id) REFERENCES public.event(id) DEFERRABLE INITIALLY DEFERRED;
  2799. --
  2800. -- Name: saved_event saved_event_sportsman_id_02a40b11_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2801. --
  2802. ALTER TABLE ONLY public.saved_event
  2803. ADD CONSTRAINT saved_event_sportsman_id_02a40b11_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2804. --
  2805. -- Name: saved_sportsman saved_sportsman_sportsman_id_3a5033e3_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2806. --
  2807. ALTER TABLE ONLY public.saved_sportsman
  2808. ADD CONSTRAINT saved_sportsman_sportsman_id_3a5033e3_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2809. --
  2810. -- Name: saved_sportsman saved_sportsman_sportsman_saved_id_4ab950e0_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2811. --
  2812. ALTER TABLE ONLY public.saved_sportsman
  2813. ADD CONSTRAINT saved_sportsman_sportsman_saved_id_4ab950e0_fk_sportsman_id FOREIGN KEY (sportsman_saved_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2814. --
  2815. -- Name: service service_id_provider_id_1b630b89_fk_provider_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2816. --
  2817. ALTER TABLE ONLY public.service
  2818. ADD CONSTRAINT service_id_provider_id_1b630b89_fk_provider_id FOREIGN KEY (id_provider_id) REFERENCES public.provider(id) DEFERRABLE INITIALLY DEFERRED;
  2819. --
  2820. -- Name: service service_resource_id_id_0f1f1ca2_fk_resource_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2821. --
  2822. ALTER TABLE ONLY public.service
  2823. ADD CONSTRAINT service_resource_id_id_0f1f1ca2_fk_resource_id FOREIGN KEY (resource_id_id) REFERENCES public.resource(id) DEFERRABLE INITIALLY DEFERRED;
  2824. --
  2825. -- Name: service service_servicetype_id_id_3a28b055_fk_servicetype_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2826. --
  2827. ALTER TABLE ONLY public.service
  2828. ADD CONSTRAINT service_servicetype_id_id_3a28b055_fk_servicetype_id FOREIGN KEY (servicetype_id_id) REFERENCES public.servicetype(id) DEFERRABLE INITIALLY DEFERRED;
  2829. --
  2830. -- Name: service service_ticket_status_id_5b6b572d_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2831. --
  2832. ALTER TABLE ONLY public.service
  2833. ADD CONSTRAINT service_ticket_status_id_5b6b572d_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2834. --
  2835. -- Name: servicetype servicetype_ticket_status_id_77b8bfcd_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2836. --
  2837. ALTER TABLE ONLY public.servicetype
  2838. ADD CONSTRAINT servicetype_ticket_status_id_77b8bfcd_fk_tickets_task_id FOREIGN KEY (ticket_status_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2839. --
  2840. -- Name: sport_preferrence sport_preferrence_sport_id_331b3060_fk_sport_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2841. --
  2842. ALTER TABLE ONLY public.sport_preferrence
  2843. ADD CONSTRAINT sport_preferrence_sport_id_331b3060_fk_sport_id FOREIGN KEY (sport_id) REFERENCES public.sport(id) DEFERRABLE INITIALLY DEFERRED;
  2844. --
  2845. -- Name: sport_preferrence sport_preferrence_sportsman_id_c85f5d64_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2846. --
  2847. ALTER TABLE ONLY public.sport_preferrence
  2848. ADD CONSTRAINT sport_preferrence_sportsman_id_c85f5d64_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2849. --
  2850. -- Name: sportsman sportsman_client_id_d332b8c0_fk_client_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2851. --
  2852. ALTER TABLE ONLY public.sportsman
  2853. ADD CONSTRAINT sportsman_client_id_d332b8c0_fk_client_id FOREIGN KEY (client_id) REFERENCES public.client(id) DEFERRABLE INITIALLY DEFERRED;
  2854. --
  2855. -- Name: sportsman_gallery sportsman_gallery_sportsman_id_620db12f_fk_sportsman_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2856. --
  2857. ALTER TABLE ONLY public.sportsman_gallery
  2858. ADD CONSTRAINT sportsman_gallery_sportsman_id_620db12f_fk_sportsman_id FOREIGN KEY (sportsman_id) REFERENCES public.sportsman(id) DEFERRABLE INITIALLY DEFERRED;
  2859. --
  2860. -- Name: tickets_attachment tickets_attachment_added_by_id_3c8ddb6f_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2861. --
  2862. ALTER TABLE ONLY public.tickets_attachment
  2863. ADD CONSTRAINT tickets_attachment_added_by_id_3c8ddb6f_fk_auth_user_id FOREIGN KEY (added_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2864. --
  2865. -- Name: tickets_attachment tickets_attachment_task_id_075d0abc_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2866. --
  2867. ALTER TABLE ONLY public.tickets_attachment
  2868. ADD CONSTRAINT tickets_attachment_task_id_075d0abc_fk_tickets_task_id FOREIGN KEY (task_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2869. --
  2870. -- Name: tickets_comment tickets_comment_author_id_92e77b6b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2871. --
  2872. ALTER TABLE ONLY public.tickets_comment
  2873. ADD CONSTRAINT tickets_comment_author_id_92e77b6b_fk_auth_user_id FOREIGN KEY (author_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2874. --
  2875. -- Name: tickets_comment tickets_comment_task_id_13ac4c64_fk_tickets_task_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2876. --
  2877. ALTER TABLE ONLY public.tickets_comment
  2878. ADD CONSTRAINT tickets_comment_task_id_13ac4c64_fk_tickets_task_id FOREIGN KEY (task_id) REFERENCES public.tickets_task(id) DEFERRABLE INITIALLY DEFERRED;
  2879. --
  2880. -- Name: tickets_task tickets_task_assigned_to_id_5a33e646_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2881. --
  2882. ALTER TABLE ONLY public.tickets_task
  2883. ADD CONSTRAINT tickets_task_assigned_to_id_5a33e646_fk_auth_user_id FOREIGN KEY (assigned_to_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2884. --
  2885. -- Name: tickets_task tickets_task_created_by_id_b9c0cd01_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2886. --
  2887. ALTER TABLE ONLY public.tickets_task
  2888. ADD CONSTRAINT tickets_task_created_by_id_b9c0cd01_fk_auth_user_id FOREIGN KEY (created_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
  2889. --
  2890. -- Name: tickets_task tickets_task_task_list_id_c1b9fc64_fk_tickets_tasklist_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2891. --
  2892. ALTER TABLE ONLY public.tickets_task
  2893. ADD CONSTRAINT tickets_task_task_list_id_c1b9fc64_fk_tickets_tasklist_id FOREIGN KEY (task_list_id) REFERENCES public.tickets_tasklist(id) DEFERRABLE INITIALLY DEFERRED;
  2894. --
  2895. -- Name: tickets_task tickets_task_type_id_162ca4d2_fk_tickets_tickettype_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2896. --
  2897. ALTER TABLE ONLY public.tickets_task
  2898. ADD CONSTRAINT tickets_task_type_id_162ca4d2_fk_tickets_tickettype_id FOREIGN KEY (type_id) REFERENCES public.tickets_tickettype(id) DEFERRABLE INITIALLY DEFERRED;
  2899. --
  2900. -- Name: tickets_tasklist tickets_tasklist_group_id_1c12657b_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: sports
  2901. --
  2902. ALTER TABLE ONLY public.tickets_tasklist
  2903. ADD CONSTRAINT tickets_tasklist_group_id_1c12657b_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;
  2904. --
  2905. -- PostgreSQL database dump complete
  2906. --