Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

gr-schema.sql 833 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  1. --- #dep common-schema
  2. --- #table gr.raw_interaction
  3. --- #table gr.raw_book
  4. --- #table gr.raw_work
  5. --- #table gr.raw_author
  6. --- #table gr.raw_series
  7. --- #table gr.raw_book_genres
  8. DROP SCHEMA IF EXISTS gr CASCADE;
  9. CREATE SCHEMA gr;
  10. CREATE TABLE gr.raw_interaction (
  11. gr_interaction_rid SERIAL NOT NULL,
  12. gr_interaction_data JSONB NOT NULL
  13. );
  14. CREATE TABLE gr.raw_book (
  15. gr_book_rid SERIAL NOT NULL,
  16. gr_book_data JSONB NOT NULL
  17. );
  18. CREATE TABLE gr.raw_work (
  19. gr_work_rid SERIAL NOT NULL,
  20. gr_work_data JSONB NOT NULL
  21. );
  22. CREATE TABLE gr.raw_author (
  23. gr_author_rid SERIAL NOT NULL,
  24. gr_author_data JSONB NOT NULL
  25. );
  26. CREATE TABLE gr.raw_series (
  27. gr_series_rid SERIAL NOT NULL,
  28. gr_series_data JSONB NOT NULL
  29. );
  30. CREATE TABLE gr.raw_book_genres (
  31. gr_book_genres_rid SERIAL NOT NULL,
  32. gr_book_genres_data JSONB NOT NULL
  33. );
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...