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 677 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
  1. --- #dep common-schema
  2. --- #table ol.author
  3. --- #table ol.work
  4. --- #table ol.edition
  5. -- Initial table creation with no constraints or indexes
  6. CREATE SCHEMA IF NOT EXISTS ol;
  7. DROP TABLE IF EXISTS ol.author CASCADE;
  8. CREATE TABLE ol.author (
  9. author_id SERIAL NOT NULL,
  10. author_key VARCHAR(100) NOT NULL,
  11. author_data JSONB NOT NULL
  12. );
  13. DROP TABLE IF EXISTS ol.work CASCADE;
  14. CREATE TABLE ol.work (
  15. work_id SERIAL NOT NULL,
  16. work_key VARCHAR(100) NOT NULL,
  17. work_data JSONB NOT NULL
  18. );
  19. DROP TABLE IF EXISTS ol.edition CASCADE;
  20. CREATE TABLE ol.edition (
  21. edition_id SERIAL NOT NULL,
  22. edition_key VARCHAR(100) NOT NULL,
  23. edition_data JSONB NOT NULL
  24. );
Tip!

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

Comments

Loading...