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 606 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. --- #dep common-schema
  2. -- Initial table creation with no constraints or indexes
  3. CREATE SCHEMA IF NOT EXISTS ol;
  4. DROP TABLE IF EXISTS ol.author;
  5. CREATE TABLE ol.author (
  6. author_id SERIAL NOT NULL,
  7. author_key VARCHAR(100) NOT NULL,
  8. author_data JSONB NOT NULL
  9. );
  10. DROP TABLE IF EXISTS ol.work CASCADE;
  11. CREATE TABLE ol.work (
  12. work_id SERIAL NOT NULL,
  13. work_key VARCHAR(100) NOT NULL,
  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_data JSONB NOT NULL
  21. );
Tip!

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

Comments

Loading...