git.sql 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206
  1. CREATE DATABASE git DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
  2. use git;
  3. -- phpMyAdmin SQL Dump
  4. -- version 5.1.0
  5. -- https://www.phpmyadmin.net/
  6. --
  7. -- Host: localhost
  8. -- Generation Time: Apr 20, 2022 at 11:24 PM
  9. -- Server version: 5.7.37-0ubuntu0.18.04.1
  10. -- PHP Version: 7.2.24-0ubuntu0.18.04.11
  11. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  12. START TRANSACTION;
  13. SET time_zone = "+00:00";
  14. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  15. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  16. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  17. /*!40101 SET NAMES utf8mb4 */;
  18. --
  19. -- Database: `git`
  20. --
  21. -- --------------------------------------------------------
  22. --
  23. -- Table structure for table `access`
  24. --
  25. CREATE TABLE `access` (
  26. `id` bigint(20) NOT NULL,
  27. `user_id` bigint(20) DEFAULT NULL,
  28. `repo_id` bigint(20) DEFAULT NULL,
  29. `mode` int(11) DEFAULT NULL
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  31. -- --------------------------------------------------------
  32. --
  33. -- Table structure for table `access_token`
  34. --
  35. CREATE TABLE `access_token` (
  36. `id` bigint(20) NOT NULL,
  37. `uid` bigint(20) DEFAULT NULL,
  38. `name` varchar(255) DEFAULT NULL,
  39. `sha1` varchar(40) DEFAULT NULL,
  40. `created_unix` bigint(20) DEFAULT NULL,
  41. `updated_unix` bigint(20) DEFAULT NULL
  42. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  43. -- --------------------------------------------------------
  44. --
  45. -- Table structure for table `action`
  46. --
  47. CREATE TABLE `action` (
  48. `id` bigint(20) NOT NULL,
  49. `user_id` bigint(20) DEFAULT NULL,
  50. `op_type` int(11) DEFAULT NULL,
  51. `act_user_id` bigint(20) DEFAULT NULL,
  52. `act_user_name` varchar(255) DEFAULT NULL,
  53. `repo_id` bigint(20) DEFAULT NULL,
  54. `repo_user_name` varchar(255) DEFAULT NULL,
  55. `repo_name` varchar(255) DEFAULT NULL,
  56. `ref_name` varchar(255) DEFAULT NULL,
  57. `is_private` tinyint(1) NOT NULL DEFAULT '0',
  58. `content` text,
  59. `created_unix` bigint(20) DEFAULT NULL
  60. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  61. --
  62. -- Dumping data for table `action`
  63. --
  64. INSERT INTO `action` (`id`, `user_id`, `op_type`, `act_user_id`, `act_user_name`, `repo_id`, `repo_user_name`, `repo_name`, `ref_name`, `is_private`, `content`, `created_unix`) VALUES
  65. (1, 1, 1, 1, 'admin1', 1, 'admin1', 'sh', '', 0, '', 1650520679),
  66. (2, 1, 5, 1, 'admin1', 1, 'admin1', 'sh', 'master', 0, '{\"Len\":1,\"Commits\":[{\"Sha1\":\"63356f1021d32243fbb0a8904c7044ddaf6fa8cf\",\"Message\":\"Add \'coffeesystem.sh\'\\n\",\"AuthorEmail\":\"admin@yahoo.com\",\"AuthorName\":\"admin1\",\"CommitterEmail\":\"admin@yahoo.com\",\"CommitterName\":\"admin1\",\"Timestamp\":\"2022-04-20T23:18:07-07:00\"}],\"CompareURL\":\"admin1/sh/compare/752762ee93104e7ead471fb9ddc22e84b6390342...63356f1021d32243fbb0a8904c7044ddaf6fa8cf\"}', 1650521887);
  67. -- --------------------------------------------------------
  68. --
  69. -- Table structure for table `attachment`
  70. --
  71. CREATE TABLE `attachment` (
  72. `id` bigint(20) NOT NULL,
  73. `uuid` varchar(40) DEFAULT NULL,
  74. `issue_id` bigint(20) DEFAULT NULL,
  75. `comment_id` bigint(20) DEFAULT NULL,
  76. `release_id` bigint(20) DEFAULT NULL,
  77. `name` varchar(255) DEFAULT NULL,
  78. `created_unix` bigint(20) DEFAULT NULL
  79. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  80. -- --------------------------------------------------------
  81. --
  82. -- Table structure for table `collaboration`
  83. --
  84. CREATE TABLE `collaboration` (
  85. `id` bigint(20) NOT NULL,
  86. `repo_id` bigint(20) NOT NULL,
  87. `user_id` bigint(20) NOT NULL,
  88. `mode` int(11) NOT NULL DEFAULT '2'
  89. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  90. -- --------------------------------------------------------
  91. --
  92. -- Table structure for table `comment`
  93. --
  94. CREATE TABLE `comment` (
  95. `id` bigint(20) NOT NULL,
  96. `type` int(11) DEFAULT NULL,
  97. `poster_id` bigint(20) DEFAULT NULL,
  98. `issue_id` bigint(20) DEFAULT NULL,
  99. `commit_id` bigint(20) DEFAULT NULL,
  100. `line` bigint(20) DEFAULT NULL,
  101. `content` text,
  102. `created_unix` bigint(20) DEFAULT NULL,
  103. `updated_unix` bigint(20) DEFAULT NULL,
  104. `commit_sha` varchar(40) DEFAULT NULL
  105. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  106. -- --------------------------------------------------------
  107. --
  108. -- Table structure for table `deploy_key`
  109. --
  110. CREATE TABLE `deploy_key` (
  111. `id` bigint(20) NOT NULL,
  112. `key_id` bigint(20) DEFAULT NULL,
  113. `repo_id` bigint(20) DEFAULT NULL,
  114. `name` varchar(255) DEFAULT NULL,
  115. `fingerprint` varchar(255) DEFAULT NULL,
  116. `created_unix` bigint(20) DEFAULT NULL,
  117. `updated_unix` bigint(20) DEFAULT NULL
  118. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  119. -- --------------------------------------------------------
  120. --
  121. -- Table structure for table `email_address`
  122. --
  123. CREATE TABLE `email_address` (
  124. `id` bigint(20) NOT NULL,
  125. `uid` bigint(20) NOT NULL,
  126. `email` varchar(255) NOT NULL,
  127. `is_activated` tinyint(1) DEFAULT NULL
  128. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  129. -- --------------------------------------------------------
  130. --
  131. -- Table structure for table `follow`
  132. --
  133. CREATE TABLE `follow` (
  134. `id` bigint(20) NOT NULL,
  135. `user_id` bigint(20) DEFAULT NULL,
  136. `follow_id` bigint(20) DEFAULT NULL
  137. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  138. -- --------------------------------------------------------
  139. --
  140. -- Table structure for table `hook_task`
  141. --
  142. CREATE TABLE `hook_task` (
  143. `id` bigint(20) NOT NULL,
  144. `repo_id` bigint(20) DEFAULT NULL,
  145. `hook_id` bigint(20) DEFAULT NULL,
  146. `uuid` varchar(255) DEFAULT NULL,
  147. `type` int(11) DEFAULT NULL,
  148. `url` text,
  149. `signature` text,
  150. `payload_content` text,
  151. `content_type` int(11) DEFAULT NULL,
  152. `event_type` varchar(255) DEFAULT NULL,
  153. `is_ssl` tinyint(1) DEFAULT NULL,
  154. `is_delivered` tinyint(1) DEFAULT NULL,
  155. `delivered` bigint(20) DEFAULT NULL,
  156. `is_succeed` tinyint(1) DEFAULT NULL,
  157. `request_content` text,
  158. `response_content` text
  159. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  160. -- --------------------------------------------------------
  161. --
  162. -- Table structure for table `issue`
  163. --
  164. CREATE TABLE `issue` (
  165. `id` bigint(20) NOT NULL,
  166. `repo_id` bigint(20) DEFAULT NULL,
  167. `index` bigint(20) DEFAULT NULL,
  168. `poster_id` bigint(20) DEFAULT NULL,
  169. `name` varchar(255) DEFAULT NULL,
  170. `content` text,
  171. `milestone_id` bigint(20) DEFAULT NULL,
  172. `priority` int(11) DEFAULT NULL,
  173. `assignee_id` bigint(20) DEFAULT NULL,
  174. `is_closed` tinyint(1) DEFAULT NULL,
  175. `is_pull` tinyint(1) DEFAULT NULL,
  176. `num_comments` int(11) DEFAULT NULL,
  177. `deadline_unix` bigint(20) DEFAULT NULL,
  178. `created_unix` bigint(20) DEFAULT NULL,
  179. `updated_unix` bigint(20) DEFAULT NULL
  180. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  181. -- --------------------------------------------------------
  182. --
  183. -- Table structure for table `issue_label`
  184. --
  185. CREATE TABLE `issue_label` (
  186. `id` bigint(20) NOT NULL,
  187. `issue_id` bigint(20) DEFAULT NULL,
  188. `label_id` bigint(20) DEFAULT NULL
  189. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  190. -- --------------------------------------------------------
  191. --
  192. -- Table structure for table `issue_user`
  193. --
  194. CREATE TABLE `issue_user` (
  195. `id` bigint(20) NOT NULL,
  196. `uid` bigint(20) DEFAULT NULL,
  197. `issue_id` bigint(20) DEFAULT NULL,
  198. `repo_id` bigint(20) DEFAULT NULL,
  199. `milestone_id` bigint(20) DEFAULT NULL,
  200. `is_read` tinyint(1) DEFAULT NULL,
  201. `is_assigned` tinyint(1) DEFAULT NULL,
  202. `is_mentioned` tinyint(1) DEFAULT NULL,
  203. `is_poster` tinyint(1) DEFAULT NULL,
  204. `is_closed` tinyint(1) DEFAULT NULL
  205. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  206. -- --------------------------------------------------------
  207. --
  208. -- Table structure for table `label`
  209. --
  210. CREATE TABLE `label` (
  211. `id` bigint(20) NOT NULL,
  212. `repo_id` bigint(20) DEFAULT NULL,
  213. `name` varchar(255) DEFAULT NULL,
  214. `color` varchar(7) DEFAULT NULL,
  215. `num_issues` int(11) DEFAULT NULL,
  216. `num_closed_issues` int(11) DEFAULT NULL
  217. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  218. -- --------------------------------------------------------
  219. --
  220. -- Table structure for table `lfs_object`
  221. --
  222. CREATE TABLE `lfs_object` (
  223. `repo_id` bigint(20) NOT NULL,
  224. `oid` varchar(255) NOT NULL,
  225. `size` bigint(20) NOT NULL,
  226. `storage` varchar(255) NOT NULL,
  227. `created_at` datetime NOT NULL
  228. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  229. -- --------------------------------------------------------
  230. --
  231. -- Table structure for table `login_source`
  232. --
  233. CREATE TABLE `login_source` (
  234. `id` bigint(20) NOT NULL,
  235. `type` int(11) DEFAULT NULL,
  236. `name` varchar(255) DEFAULT NULL,
  237. `is_actived` tinyint(1) NOT NULL,
  238. `is_default` tinyint(1) DEFAULT NULL,
  239. `cfg` text,
  240. `created_unix` bigint(20) DEFAULT NULL,
  241. `updated_unix` bigint(20) DEFAULT NULL
  242. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  243. -- --------------------------------------------------------
  244. --
  245. -- Table structure for table `milestone`
  246. --
  247. CREATE TABLE `milestone` (
  248. `id` bigint(20) NOT NULL,
  249. `repo_id` bigint(20) DEFAULT NULL,
  250. `name` varchar(255) DEFAULT NULL,
  251. `content` text,
  252. `is_closed` tinyint(1) DEFAULT NULL,
  253. `num_issues` int(11) DEFAULT NULL,
  254. `num_closed_issues` int(11) DEFAULT NULL,
  255. `completeness` int(11) DEFAULT NULL,
  256. `deadline_unix` bigint(20) DEFAULT NULL,
  257. `closed_date_unix` bigint(20) DEFAULT NULL
  258. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  259. -- --------------------------------------------------------
  260. --
  261. -- Table structure for table `mirror`
  262. --
  263. CREATE TABLE `mirror` (
  264. `id` bigint(20) NOT NULL,
  265. `repo_id` bigint(20) DEFAULT NULL,
  266. `interval` int(11) DEFAULT NULL,
  267. `enable_prune` tinyint(1) NOT NULL DEFAULT '1',
  268. `updated_unix` bigint(20) DEFAULT NULL,
  269. `next_update_unix` bigint(20) DEFAULT NULL
  270. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  271. -- --------------------------------------------------------
  272. --
  273. -- Table structure for table `notice`
  274. --
  275. CREATE TABLE `notice` (
  276. `id` bigint(20) NOT NULL,
  277. `type` int(11) DEFAULT NULL,
  278. `description` text,
  279. `created_unix` bigint(20) DEFAULT NULL
  280. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  281. -- --------------------------------------------------------
  282. --
  283. -- Table structure for table `org_user`
  284. --
  285. CREATE TABLE `org_user` (
  286. `id` bigint(20) NOT NULL,
  287. `uid` bigint(20) DEFAULT NULL,
  288. `org_id` bigint(20) DEFAULT NULL,
  289. `is_public` tinyint(1) DEFAULT NULL,
  290. `is_owner` tinyint(1) DEFAULT NULL,
  291. `num_teams` int(11) DEFAULT NULL
  292. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  293. -- --------------------------------------------------------
  294. --
  295. -- Table structure for table `protect_branch`
  296. --
  297. CREATE TABLE `protect_branch` (
  298. `id` bigint(20) NOT NULL,
  299. `repo_id` bigint(20) DEFAULT NULL,
  300. `name` varchar(255) DEFAULT NULL,
  301. `protected` tinyint(1) DEFAULT NULL,
  302. `require_pull_request` tinyint(1) DEFAULT NULL,
  303. `enable_whitelist` tinyint(1) DEFAULT NULL,
  304. `whitelist_user_i_ds` text,
  305. `whitelist_team_i_ds` text
  306. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  307. -- --------------------------------------------------------
  308. --
  309. -- Table structure for table `protect_branch_whitelist`
  310. --
  311. CREATE TABLE `protect_branch_whitelist` (
  312. `id` bigint(20) NOT NULL,
  313. `protect_branch_id` bigint(20) DEFAULT NULL,
  314. `repo_id` bigint(20) DEFAULT NULL,
  315. `name` varchar(255) DEFAULT NULL,
  316. `user_id` bigint(20) DEFAULT NULL
  317. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  318. -- --------------------------------------------------------
  319. --
  320. -- Table structure for table `public_key`
  321. --
  322. CREATE TABLE `public_key` (
  323. `id` bigint(20) NOT NULL,
  324. `owner_id` bigint(20) NOT NULL,
  325. `name` varchar(255) NOT NULL,
  326. `fingerprint` varchar(255) NOT NULL,
  327. `content` text NOT NULL,
  328. `mode` int(11) NOT NULL DEFAULT '2',
  329. `type` int(11) NOT NULL DEFAULT '1',
  330. `created_unix` bigint(20) DEFAULT NULL,
  331. `updated_unix` bigint(20) DEFAULT NULL
  332. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  333. -- --------------------------------------------------------
  334. --
  335. -- Table structure for table `pull_request`
  336. --
  337. CREATE TABLE `pull_request` (
  338. `id` bigint(20) NOT NULL,
  339. `type` int(11) DEFAULT NULL,
  340. `status` int(11) DEFAULT NULL,
  341. `issue_id` bigint(20) DEFAULT NULL,
  342. `index` bigint(20) DEFAULT NULL,
  343. `head_repo_id` bigint(20) DEFAULT NULL,
  344. `base_repo_id` bigint(20) DEFAULT NULL,
  345. `head_user_name` varchar(255) DEFAULT NULL,
  346. `head_branch` varchar(255) DEFAULT NULL,
  347. `base_branch` varchar(255) DEFAULT NULL,
  348. `merge_base` varchar(40) DEFAULT NULL,
  349. `has_merged` tinyint(1) DEFAULT NULL,
  350. `merged_commit_id` varchar(40) DEFAULT NULL,
  351. `merger_id` bigint(20) DEFAULT NULL,
  352. `merged_unix` bigint(20) DEFAULT NULL
  353. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  354. -- --------------------------------------------------------
  355. --
  356. -- Table structure for table `release`
  357. --
  358. CREATE TABLE `release` (
  359. `id` bigint(20) NOT NULL,
  360. `repo_id` bigint(20) DEFAULT NULL,
  361. `publisher_id` bigint(20) DEFAULT NULL,
  362. `tag_name` varchar(255) DEFAULT NULL,
  363. `lower_tag_name` varchar(255) DEFAULT NULL,
  364. `target` varchar(255) DEFAULT NULL,
  365. `title` varchar(255) DEFAULT NULL,
  366. `sha1` varchar(40) DEFAULT NULL,
  367. `num_commits` bigint(20) DEFAULT NULL,
  368. `note` text,
  369. `is_draft` tinyint(1) NOT NULL DEFAULT '0',
  370. `is_prerelease` tinyint(1) DEFAULT NULL,
  371. `created_unix` bigint(20) DEFAULT NULL
  372. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  373. -- --------------------------------------------------------
  374. --
  375. -- Table structure for table `repository`
  376. --
  377. CREATE TABLE `repository` (
  378. `id` bigint(20) NOT NULL,
  379. `owner_id` bigint(20) DEFAULT NULL,
  380. `lower_name` varchar(255) NOT NULL,
  381. `name` varchar(255) NOT NULL,
  382. `description` varchar(512) DEFAULT NULL,
  383. `website` varchar(255) DEFAULT NULL,
  384. `default_branch` varchar(255) DEFAULT NULL,
  385. `size` bigint(20) NOT NULL DEFAULT '0',
  386. `use_custom_avatar` tinyint(1) DEFAULT NULL,
  387. `num_watches` int(11) DEFAULT NULL,
  388. `num_stars` int(11) DEFAULT NULL,
  389. `num_forks` int(11) DEFAULT NULL,
  390. `num_issues` int(11) DEFAULT NULL,
  391. `num_closed_issues` int(11) DEFAULT NULL,
  392. `num_pulls` int(11) DEFAULT NULL,
  393. `num_closed_pulls` int(11) DEFAULT NULL,
  394. `num_milestones` int(11) NOT NULL DEFAULT '0',
  395. `num_closed_milestones` int(11) NOT NULL DEFAULT '0',
  396. `is_private` tinyint(1) DEFAULT NULL,
  397. `is_bare` tinyint(1) DEFAULT NULL,
  398. `is_mirror` tinyint(1) DEFAULT NULL,
  399. `enable_wiki` tinyint(1) NOT NULL DEFAULT '1',
  400. `allow_public_wiki` tinyint(1) DEFAULT NULL,
  401. `enable_external_wiki` tinyint(1) DEFAULT NULL,
  402. `external_wiki_url` varchar(255) DEFAULT NULL,
  403. `enable_issues` tinyint(1) NOT NULL DEFAULT '1',
  404. `allow_public_issues` tinyint(1) DEFAULT NULL,
  405. `enable_external_tracker` tinyint(1) DEFAULT NULL,
  406. `external_tracker_url` varchar(255) DEFAULT NULL,
  407. `external_tracker_format` varchar(255) DEFAULT NULL,
  408. `external_tracker_style` varchar(255) DEFAULT NULL,
  409. `enable_pulls` tinyint(1) NOT NULL DEFAULT '1',
  410. `pulls_ignore_whitespace` tinyint(1) NOT NULL DEFAULT '0',
  411. `pulls_allow_rebase` tinyint(1) NOT NULL DEFAULT '0',
  412. `is_fork` tinyint(1) NOT NULL DEFAULT '0',
  413. `fork_id` bigint(20) DEFAULT NULL,
  414. `created_unix` bigint(20) DEFAULT NULL,
  415. `updated_unix` bigint(20) DEFAULT NULL
  416. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  417. --
  418. -- Dumping data for table `repository`
  419. --
  420. INSERT INTO `repository` (`id`, `owner_id`, `lower_name`, `name`, `description`, `website`, `default_branch`, `size`, `use_custom_avatar`, `num_watches`, `num_stars`, `num_forks`, `num_issues`, `num_closed_issues`, `num_pulls`, `num_closed_pulls`, `num_milestones`, `num_closed_milestones`, `is_private`, `is_bare`, `is_mirror`, `enable_wiki`, `allow_public_wiki`, `enable_external_wiki`, `external_wiki_url`, `enable_issues`, `allow_public_issues`, `enable_external_tracker`, `external_tracker_url`, `external_tracker_format`, `external_tracker_style`, `enable_pulls`, `pulls_ignore_whitespace`, `pulls_allow_rebase`, `is_fork`, `fork_id`, `created_unix`, `updated_unix`) VALUES
  421. (1, 1, 'sh', 'sh', '', '', 'master', 24576, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, '', 1, 0, 0, '', '', 'numeric', 1, 0, 0, 0, 0, 1650520679, 1650521887);
  422. -- --------------------------------------------------------
  423. --
  424. -- Table structure for table `star`
  425. --
  426. CREATE TABLE `star` (
  427. `id` bigint(20) NOT NULL,
  428. `uid` bigint(20) DEFAULT NULL,
  429. `repo_id` bigint(20) DEFAULT NULL
  430. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  431. -- --------------------------------------------------------
  432. --
  433. -- Table structure for table `team`
  434. --
  435. CREATE TABLE `team` (
  436. `id` bigint(20) NOT NULL,
  437. `org_id` bigint(20) DEFAULT NULL,
  438. `lower_name` varchar(255) DEFAULT NULL,
  439. `name` varchar(255) DEFAULT NULL,
  440. `description` varchar(255) DEFAULT NULL,
  441. `authorize` int(11) DEFAULT NULL,
  442. `num_repos` int(11) DEFAULT NULL,
  443. `num_members` int(11) DEFAULT NULL
  444. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  445. -- --------------------------------------------------------
  446. --
  447. -- Table structure for table `team_repo`
  448. --
  449. CREATE TABLE `team_repo` (
  450. `id` bigint(20) NOT NULL,
  451. `org_id` bigint(20) DEFAULT NULL,
  452. `team_id` bigint(20) DEFAULT NULL,
  453. `repo_id` bigint(20) DEFAULT NULL
  454. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  455. -- --------------------------------------------------------
  456. --
  457. -- Table structure for table `team_user`
  458. --
  459. CREATE TABLE `team_user` (
  460. `id` bigint(20) NOT NULL,
  461. `org_id` bigint(20) DEFAULT NULL,
  462. `team_id` bigint(20) DEFAULT NULL,
  463. `uid` bigint(20) DEFAULT NULL
  464. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  465. -- --------------------------------------------------------
  466. --
  467. -- Table structure for table `two_factor`
  468. --
  469. CREATE TABLE `two_factor` (
  470. `id` bigint(20) NOT NULL,
  471. `user_id` bigint(20) DEFAULT NULL,
  472. `secret` varchar(255) DEFAULT NULL,
  473. `created_unix` bigint(20) DEFAULT NULL
  474. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  475. -- --------------------------------------------------------
  476. --
  477. -- Table structure for table `two_factor_recovery_code`
  478. --
  479. CREATE TABLE `two_factor_recovery_code` (
  480. `id` bigint(20) NOT NULL,
  481. `user_id` bigint(20) DEFAULT NULL,
  482. `code` varchar(11) DEFAULT NULL,
  483. `is_used` tinyint(1) DEFAULT NULL
  484. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  485. -- --------------------------------------------------------
  486. --
  487. -- Table structure for table `upload`
  488. --
  489. CREATE TABLE `upload` (
  490. `id` bigint(20) NOT NULL,
  491. `uuid` varchar(40) DEFAULT NULL,
  492. `name` varchar(255) DEFAULT NULL
  493. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  494. -- --------------------------------------------------------
  495. --
  496. -- Table structure for table `user`
  497. --
  498. CREATE TABLE `user` (
  499. `id` bigint(20) NOT NULL,
  500. `lower_name` varchar(255) NOT NULL,
  501. `name` varchar(255) NOT NULL,
  502. `full_name` varchar(255) DEFAULT NULL,
  503. `email` varchar(255) NOT NULL,
  504. `passwd` varchar(255) NOT NULL,
  505. `login_source` bigint(20) NOT NULL DEFAULT '0',
  506. `login_name` varchar(255) DEFAULT NULL,
  507. `type` int(11) DEFAULT NULL,
  508. `location` varchar(255) DEFAULT NULL,
  509. `website` varchar(255) DEFAULT NULL,
  510. `rands` varchar(10) DEFAULT NULL,
  511. `salt` varchar(10) DEFAULT NULL,
  512. `created_unix` bigint(20) DEFAULT NULL,
  513. `updated_unix` bigint(20) DEFAULT NULL,
  514. `last_repo_visibility` tinyint(1) DEFAULT NULL,
  515. `max_repo_creation` int(11) NOT NULL DEFAULT '-1',
  516. `is_active` tinyint(1) DEFAULT NULL,
  517. `is_admin` tinyint(1) DEFAULT NULL,
  518. `allow_git_hook` tinyint(1) DEFAULT NULL,
  519. `allow_import_local` tinyint(1) DEFAULT NULL,
  520. `prohibit_login` tinyint(1) DEFAULT NULL,
  521. `avatar` varchar(2048) NOT NULL,
  522. `avatar_email` varchar(255) NOT NULL,
  523. `use_custom_avatar` tinyint(1) DEFAULT NULL,
  524. `num_followers` int(11) DEFAULT NULL,
  525. `num_following` int(11) NOT NULL DEFAULT '0',
  526. `num_stars` int(11) DEFAULT NULL,
  527. `num_repos` int(11) DEFAULT NULL,
  528. `description` varchar(255) DEFAULT NULL,
  529. `num_teams` int(11) DEFAULT NULL,
  530. `num_members` int(11) DEFAULT NULL
  531. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  532. --
  533. -- Dumping data for table `user`
  534. --
  535. INSERT INTO `user` (`id`, `lower_name`, `name`, `full_name`, `email`, `passwd`, `login_source`, `login_name`, `type`, `location`, `website`, `rands`, `salt`, `created_unix`, `updated_unix`, `last_repo_visibility`, `max_repo_creation`, `is_active`, `is_admin`, `allow_git_hook`, `allow_import_local`, `prohibit_login`, `avatar`, `avatar_email`, `use_custom_avatar`, `num_followers`, `num_following`, `num_stars`, `num_repos`, `description`, `num_teams`, `num_members`) VALUES
  536. (1, 'admin1', 'admin1', '', 'admin@yahoo.com', '28ce87da20d032905f2792f55d8e6df28cff94e0dcf39e568c93d9b7cccf2bda81d741dc9bdf6a79e6ccb713c0f57fbc2cf2', 0, '', 0, '', '', 'XSMaeibCnL', '0G0bfeo07q', 1650520634, 1650520679, 0, -1, 1, 1, 0, 0, 0, '3325b3371681e9381a2c8610f34aaae7', 'admin@yahoo.com', 0, 0, 0, 0, 1, '', 0, 0);
  537. -- --------------------------------------------------------
  538. --
  539. -- Table structure for table `version`
  540. --
  541. CREATE TABLE `version` (
  542. `id` bigint(20) NOT NULL,
  543. `version` bigint(20) DEFAULT NULL
  544. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  545. --
  546. -- Dumping data for table `version`
  547. --
  548. INSERT INTO `version` (`id`, `version`) VALUES
  549. (1, 19);
  550. -- --------------------------------------------------------
  551. --
  552. -- Table structure for table `watch`
  553. --
  554. CREATE TABLE `watch` (
  555. `id` bigint(20) NOT NULL,
  556. `user_id` bigint(20) DEFAULT NULL,
  557. `repo_id` bigint(20) DEFAULT NULL
  558. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  559. --
  560. -- Dumping data for table `watch`
  561. --
  562. INSERT INTO `watch` (`id`, `user_id`, `repo_id`) VALUES
  563. (1, 1, 1);
  564. -- --------------------------------------------------------
  565. --
  566. -- Table structure for table `webhook`
  567. --
  568. CREATE TABLE `webhook` (
  569. `id` bigint(20) NOT NULL,
  570. `repo_id` bigint(20) DEFAULT NULL,
  571. `org_id` bigint(20) DEFAULT NULL,
  572. `url` text,
  573. `content_type` int(11) DEFAULT NULL,
  574. `secret` text,
  575. `events` text,
  576. `is_ssl` tinyint(1) DEFAULT NULL,
  577. `is_active` tinyint(1) DEFAULT NULL,
  578. `hook_task_type` int(11) DEFAULT NULL,
  579. `meta` text,
  580. `last_status` int(11) DEFAULT NULL,
  581. `created_unix` bigint(20) DEFAULT NULL,
  582. `updated_unix` bigint(20) DEFAULT NULL
  583. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
  584. --
  585. -- Indexes for dumped tables
  586. --
  587. --
  588. -- Indexes for table `access`
  589. --
  590. ALTER TABLE `access`
  591. ADD PRIMARY KEY (`id`),
  592. ADD UNIQUE KEY `UQE_access_s` (`user_id`,`repo_id`);
  593. --
  594. -- Indexes for table `access_token`
  595. --
  596. ALTER TABLE `access_token`
  597. ADD PRIMARY KEY (`id`),
  598. ADD UNIQUE KEY `sha1` (`sha1`),
  599. ADD KEY `idx_access_token_uid` (`uid`);
  600. --
  601. -- Indexes for table `action`
  602. --
  603. ALTER TABLE `action`
  604. ADD PRIMARY KEY (`id`),
  605. ADD KEY `IDX_action_repo_id` (`repo_id`);
  606. --
  607. -- Indexes for table `attachment`
  608. --
  609. ALTER TABLE `attachment`
  610. ADD PRIMARY KEY (`id`),
  611. ADD UNIQUE KEY `UQE_attachment_uuid` (`uuid`),
  612. ADD KEY `IDX_attachment_issue_id` (`issue_id`),
  613. ADD KEY `IDX_attachment_release_id` (`release_id`);
  614. --
  615. -- Indexes for table `collaboration`
  616. --
  617. ALTER TABLE `collaboration`
  618. ADD PRIMARY KEY (`id`),
  619. ADD UNIQUE KEY `UQE_collaboration_s` (`repo_id`,`user_id`),
  620. ADD KEY `IDX_collaboration_repo_id` (`repo_id`),
  621. ADD KEY `IDX_collaboration_user_id` (`user_id`);
  622. --
  623. -- Indexes for table `comment`
  624. --
  625. ALTER TABLE `comment`
  626. ADD PRIMARY KEY (`id`),
  627. ADD KEY `IDX_comment_issue_id` (`issue_id`);
  628. --
  629. -- Indexes for table `deploy_key`
  630. --
  631. ALTER TABLE `deploy_key`
  632. ADD PRIMARY KEY (`id`),
  633. ADD UNIQUE KEY `UQE_deploy_key_s` (`key_id`,`repo_id`),
  634. ADD KEY `IDX_deploy_key_key_id` (`key_id`),
  635. ADD KEY `IDX_deploy_key_repo_id` (`repo_id`);
  636. --
  637. -- Indexes for table `email_address`
  638. --
  639. ALTER TABLE `email_address`
  640. ADD PRIMARY KEY (`id`),
  641. ADD UNIQUE KEY `UQE_email_address_email` (`email`),
  642. ADD KEY `IDX_email_address_uid` (`uid`);
  643. --
  644. -- Indexes for table `follow`
  645. --
  646. ALTER TABLE `follow`
  647. ADD PRIMARY KEY (`id`),
  648. ADD UNIQUE KEY `UQE_follow_follow` (`user_id`,`follow_id`);
  649. --
  650. -- Indexes for table `hook_task`
  651. --
  652. ALTER TABLE `hook_task`
  653. ADD PRIMARY KEY (`id`),
  654. ADD KEY `IDX_hook_task_repo_id` (`repo_id`);
  655. --
  656. -- Indexes for table `issue`
  657. --
  658. ALTER TABLE `issue`
  659. ADD PRIMARY KEY (`id`),
  660. ADD UNIQUE KEY `UQE_issue_repo_index` (`repo_id`,`index`),
  661. ADD KEY `IDX_issue_repo_id` (`repo_id`);
  662. --
  663. -- Indexes for table `issue_label`
  664. --
  665. ALTER TABLE `issue_label`
  666. ADD PRIMARY KEY (`id`),
  667. ADD UNIQUE KEY `UQE_issue_label_s` (`issue_id`,`label_id`);
  668. --
  669. -- Indexes for table `issue_user`
  670. --
  671. ALTER TABLE `issue_user`
  672. ADD PRIMARY KEY (`id`),
  673. ADD KEY `IDX_issue_user_uid` (`uid`),
  674. ADD KEY `IDX_issue_user_repo_id` (`repo_id`);
  675. --
  676. -- Indexes for table `label`
  677. --
  678. ALTER TABLE `label`
  679. ADD PRIMARY KEY (`id`),
  680. ADD KEY `IDX_label_repo_id` (`repo_id`);
  681. --
  682. -- Indexes for table `lfs_object`
  683. --
  684. ALTER TABLE `lfs_object`
  685. ADD PRIMARY KEY (`repo_id`,`oid`);
  686. --
  687. -- Indexes for table `login_source`
  688. --
  689. ALTER TABLE `login_source`
  690. ADD PRIMARY KEY (`id`),
  691. ADD UNIQUE KEY `name` (`name`);
  692. --
  693. -- Indexes for table `milestone`
  694. --
  695. ALTER TABLE `milestone`
  696. ADD PRIMARY KEY (`id`),
  697. ADD KEY `IDX_milestone_repo_id` (`repo_id`);
  698. --
  699. -- Indexes for table `mirror`
  700. --
  701. ALTER TABLE `mirror`
  702. ADD PRIMARY KEY (`id`);
  703. --
  704. -- Indexes for table `notice`
  705. --
  706. ALTER TABLE `notice`
  707. ADD PRIMARY KEY (`id`);
  708. --
  709. -- Indexes for table `org_user`
  710. --
  711. ALTER TABLE `org_user`
  712. ADD PRIMARY KEY (`id`),
  713. ADD UNIQUE KEY `UQE_org_user_s` (`uid`,`org_id`),
  714. ADD KEY `IDX_org_user_uid` (`uid`),
  715. ADD KEY `IDX_org_user_org_id` (`org_id`);
  716. --
  717. -- Indexes for table `protect_branch`
  718. --
  719. ALTER TABLE `protect_branch`
  720. ADD PRIMARY KEY (`id`),
  721. ADD UNIQUE KEY `UQE_protect_branch_protect_branch` (`repo_id`,`name`);
  722. --
  723. -- Indexes for table `protect_branch_whitelist`
  724. --
  725. ALTER TABLE `protect_branch_whitelist`
  726. ADD PRIMARY KEY (`id`),
  727. ADD UNIQUE KEY `UQE_protect_branch_whitelist_protect_branch_whitelist` (`repo_id`,`name`,`user_id`);
  728. --
  729. -- Indexes for table `public_key`
  730. --
  731. ALTER TABLE `public_key`
  732. ADD PRIMARY KEY (`id`),
  733. ADD KEY `IDX_public_key_owner_id` (`owner_id`);
  734. --
  735. -- Indexes for table `pull_request`
  736. --
  737. ALTER TABLE `pull_request`
  738. ADD PRIMARY KEY (`id`),
  739. ADD KEY `IDX_pull_request_issue_id` (`issue_id`);
  740. --
  741. -- Indexes for table `release`
  742. --
  743. ALTER TABLE `release`
  744. ADD PRIMARY KEY (`id`);
  745. --
  746. -- Indexes for table `repository`
  747. --
  748. ALTER TABLE `repository`
  749. ADD PRIMARY KEY (`id`),
  750. ADD UNIQUE KEY `UQE_repository_s` (`owner_id`,`lower_name`),
  751. ADD KEY `IDX_repository_lower_name` (`lower_name`),
  752. ADD KEY `IDX_repository_name` (`name`);
  753. --
  754. -- Indexes for table `star`
  755. --
  756. ALTER TABLE `star`
  757. ADD PRIMARY KEY (`id`),
  758. ADD UNIQUE KEY `UQE_star_s` (`uid`,`repo_id`);
  759. --
  760. -- Indexes for table `team`
  761. --
  762. ALTER TABLE `team`
  763. ADD PRIMARY KEY (`id`),
  764. ADD KEY `IDX_team_org_id` (`org_id`);
  765. --
  766. -- Indexes for table `team_repo`
  767. --
  768. ALTER TABLE `team_repo`
  769. ADD PRIMARY KEY (`id`),
  770. ADD UNIQUE KEY `UQE_team_repo_s` (`team_id`,`repo_id`),
  771. ADD KEY `IDX_team_repo_org_id` (`org_id`);
  772. --
  773. -- Indexes for table `team_user`
  774. --
  775. ALTER TABLE `team_user`
  776. ADD PRIMARY KEY (`id`),
  777. ADD UNIQUE KEY `UQE_team_user_s` (`team_id`,`uid`),
  778. ADD KEY `IDX_team_user_org_id` (`org_id`);
  779. --
  780. -- Indexes for table `two_factor`
  781. --
  782. ALTER TABLE `two_factor`
  783. ADD PRIMARY KEY (`id`),
  784. ADD UNIQUE KEY `UQE_two_factor_user_id` (`user_id`);
  785. --
  786. -- Indexes for table `two_factor_recovery_code`
  787. --
  788. ALTER TABLE `two_factor_recovery_code`
  789. ADD PRIMARY KEY (`id`);
  790. --
  791. -- Indexes for table `upload`
  792. --
  793. ALTER TABLE `upload`
  794. ADD PRIMARY KEY (`id`),
  795. ADD UNIQUE KEY `UQE_upload_uuid` (`uuid`);
  796. --
  797. -- Indexes for table `user`
  798. --
  799. ALTER TABLE `user`
  800. ADD PRIMARY KEY (`id`),
  801. ADD UNIQUE KEY `UQE_user_lower_name` (`lower_name`),
  802. ADD UNIQUE KEY `UQE_user_name` (`name`);
  803. --
  804. -- Indexes for table `version`
  805. --
  806. ALTER TABLE `version`
  807. ADD PRIMARY KEY (`id`);
  808. --
  809. -- Indexes for table `watch`
  810. --
  811. ALTER TABLE `watch`
  812. ADD PRIMARY KEY (`id`),
  813. ADD UNIQUE KEY `UQE_watch_watch` (`user_id`,`repo_id`);
  814. --
  815. -- Indexes for table `webhook`
  816. --
  817. ALTER TABLE `webhook`
  818. ADD PRIMARY KEY (`id`);
  819. --
  820. -- AUTO_INCREMENT for dumped tables
  821. --
  822. --
  823. -- AUTO_INCREMENT for table `access`
  824. --
  825. ALTER TABLE `access`
  826. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  827. --
  828. -- AUTO_INCREMENT for table `access_token`
  829. --
  830. ALTER TABLE `access_token`
  831. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  832. --
  833. -- AUTO_INCREMENT for table `action`
  834. --
  835. ALTER TABLE `action`
  836. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  837. --
  838. -- AUTO_INCREMENT for table `attachment`
  839. --
  840. ALTER TABLE `attachment`
  841. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  842. --
  843. -- AUTO_INCREMENT for table `collaboration`
  844. --
  845. ALTER TABLE `collaboration`
  846. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  847. --
  848. -- AUTO_INCREMENT for table `comment`
  849. --
  850. ALTER TABLE `comment`
  851. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  852. --
  853. -- AUTO_INCREMENT for table `deploy_key`
  854. --
  855. ALTER TABLE `deploy_key`
  856. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  857. --
  858. -- AUTO_INCREMENT for table `email_address`
  859. --
  860. ALTER TABLE `email_address`
  861. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  862. --
  863. -- AUTO_INCREMENT for table `follow`
  864. --
  865. ALTER TABLE `follow`
  866. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  867. --
  868. -- AUTO_INCREMENT for table `hook_task`
  869. --
  870. ALTER TABLE `hook_task`
  871. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  872. --
  873. -- AUTO_INCREMENT for table `issue`
  874. --
  875. ALTER TABLE `issue`
  876. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  877. --
  878. -- AUTO_INCREMENT for table `issue_label`
  879. --
  880. ALTER TABLE `issue_label`
  881. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  882. --
  883. -- AUTO_INCREMENT for table `issue_user`
  884. --
  885. ALTER TABLE `issue_user`
  886. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  887. --
  888. -- AUTO_INCREMENT for table `label`
  889. --
  890. ALTER TABLE `label`
  891. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  892. --
  893. -- AUTO_INCREMENT for table `login_source`
  894. --
  895. ALTER TABLE `login_source`
  896. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  897. --
  898. -- AUTO_INCREMENT for table `milestone`
  899. --
  900. ALTER TABLE `milestone`
  901. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  902. --
  903. -- AUTO_INCREMENT for table `mirror`
  904. --
  905. ALTER TABLE `mirror`
  906. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  907. --
  908. -- AUTO_INCREMENT for table `notice`
  909. --
  910. ALTER TABLE `notice`
  911. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  912. --
  913. -- AUTO_INCREMENT for table `org_user`
  914. --
  915. ALTER TABLE `org_user`
  916. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  917. --
  918. -- AUTO_INCREMENT for table `protect_branch`
  919. --
  920. ALTER TABLE `protect_branch`
  921. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  922. --
  923. -- AUTO_INCREMENT for table `protect_branch_whitelist`
  924. --
  925. ALTER TABLE `protect_branch_whitelist`
  926. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  927. --
  928. -- AUTO_INCREMENT for table `public_key`
  929. --
  930. ALTER TABLE `public_key`
  931. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  932. --
  933. -- AUTO_INCREMENT for table `pull_request`
  934. --
  935. ALTER TABLE `pull_request`
  936. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  937. --
  938. -- AUTO_INCREMENT for table `release`
  939. --
  940. ALTER TABLE `release`
  941. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  942. --
  943. -- AUTO_INCREMENT for table `repository`
  944. --
  945. ALTER TABLE `repository`
  946. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  947. --
  948. -- AUTO_INCREMENT for table `star`
  949. --
  950. ALTER TABLE `star`
  951. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  952. --
  953. -- AUTO_INCREMENT for table `team`
  954. --
  955. ALTER TABLE `team`
  956. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  957. --
  958. -- AUTO_INCREMENT for table `team_repo`
  959. --
  960. ALTER TABLE `team_repo`
  961. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  962. --
  963. -- AUTO_INCREMENT for table `team_user`
  964. --
  965. ALTER TABLE `team_user`
  966. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  967. --
  968. -- AUTO_INCREMENT for table `two_factor`
  969. --
  970. ALTER TABLE `two_factor`
  971. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  972. --
  973. -- AUTO_INCREMENT for table `two_factor_recovery_code`
  974. --
  975. ALTER TABLE `two_factor_recovery_code`
  976. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  977. --
  978. -- AUTO_INCREMENT for table `upload`
  979. --
  980. ALTER TABLE `upload`
  981. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  982. --
  983. -- AUTO_INCREMENT for table `user`
  984. --
  985. ALTER TABLE `user`
  986. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  987. --
  988. -- AUTO_INCREMENT for table `version`
  989. --
  990. ALTER TABLE `version`
  991. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  992. --
  993. -- AUTO_INCREMENT for table `watch`
  994. --
  995. ALTER TABLE `watch`
  996. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
  997. --
  998. -- AUTO_INCREMENT for table `webhook`
  999. --
  1000. ALTER TABLE `webhook`
  1001. MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
  1002. COMMIT;
  1003. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  1004. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  1005. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;