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

ol-schema.sql 626 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
  1. -- Initial table creation with no constraints or indexes
  2. DROP TABLE IF EXISTS ol_author;
  3. CREATE TABLE ol_author (
  4. author_id SERIAL NOT NULL,
  5. author_key VARCHAR(100) NOT NULL,
  6. author_name VARCHAR,
  7. author_data JSONB NOT NULL
  8. );
  9. DROP TABLE IF EXISTS ol_work CASCADE;
  10. CREATE TABLE ol_work (
  11. work_id SERIAL NOT NULL,
  12. work_key VARCHAR(100) NOT NULL,
  13. work_title VARCHAR,
  14. work_data JSONB NOT NULL
  15. );
  16. DROP TABLE IF EXISTS ol_edition CASCADE;
  17. CREATE TABLE ol_edition (
  18. edition_id SERIAL NOT NULL,
  19. edition_key VARCHAR(100) NOT NULL,
  20. edition_title VARCHAR,
  21. edition_data JSONB NOT NULL
  22. );
Tip!

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

Comments

Loading...