PRAGMA foreign_keys = ON;

PRAGMA writable_schema = 1;
DELETE FROM sqlite_master WHERE type IN ("table", "index", "trigger");
PRAGMA writable_schema = 0;
VACUUM;

CREATE TABLE "Documents" (
"Document_ID" INT UNIQUE,
"Template_ID" INT,
"Document_Name" VARCHAR(255),
PRIMARY KEY ("Document_ID")
);

CREATE TABLE "Paragraphs" (
"Paragraph_ID" INT,
"Document_ID" INT,
"Paragraph_Text" VARCHAR(255),
PRIMARY KEY ("Paragraph_ID"),
FOREIGN KEY ("Document_ID") REFERENCES "Documents"("Document_ID")
);





INSERT INTO "Documents" VALUES ("1", "101", "Meeting Minutes 2023-01-15");
INSERT INTO "Documents" VALUES ("2", "102", "Project Proposal Alpha");
INSERT INTO "Documents" VALUES ("3", "101", "Meeting Minutes 2023-01-22");
INSERT INTO "Documents" VALUES ("4", "103", "Research Paper Draft 1");
INSERT INTO "Documents" VALUES ("5", "102", "Project Proposal Beta");
INSERT INTO "Documents" VALUES ("6", "104", "Company Policy Update");
INSERT INTO "Documents" VALUES ("7", "101", "Meeting Minutes 2023-01-29");
INSERT INTO "Documents" VALUES ("8", "105", "User Manual v1.0");
INSERT INTO "Documents" VALUES ("9", "103", "Research Paper Final");
INSERT INTO "Documents" VALUES ("10", "106", "Marketing Brochure");
INSERT INTO "Paragraphs" VALUES ("1", "1", "Attendees: John, Jane, Bob.");
INSERT INTO "Paragraphs" VALUES ("2", "1", "Discussion: Q1 performance review.");
INSERT INTO "Paragraphs" VALUES ("3", "1", "Action Items: Follow up on sales figures.");
INSERT INTO "Paragraphs" VALUES ("4", "2", "Introduction to Project Alpha.");
INSERT INTO "Paragraphs" VALUES ("5", "2", "Goals and Objectives.");
INSERT INTO "Paragraphs" VALUES ("6", "2", "Proposed Timeline.");
INSERT INTO "Paragraphs" VALUES ("7", "2", "Budget Allocation.");
INSERT INTO "Paragraphs" VALUES ("8", "3", "Attendees: Sarah, Mike, Emily.");
INSERT INTO "Paragraphs" VALUES ("9", "3", "Discussion: New product features.");
INSERT INTO "Paragraphs" VALUES ("10", "4", "Abstract: This paper explores...");
INSERT INTO "Paragraphs" VALUES ("11", "4", "Methodology: Data collected from...");
INSERT INTO "Paragraphs" VALUES ("12", "4", "Results: Key findings include...");
INSERT INTO "Paragraphs" VALUES ("13", "5", "Overview of Project Beta.");
INSERT INTO "Paragraphs" VALUES ("14", "6", "Section 1: General Conduct.");
INSERT INTO "Paragraphs" VALUES ("15", "6", "Section 2: Data Privacy.");
INSERT INTO "Paragraphs" VALUES ("16", "6", "Section 3: Remote Work Policy.");
INSERT INTO "Paragraphs" VALUES ("17", "7", "Attendees: All team members.");
INSERT INTO "Paragraphs" VALUES ("18", "8", "Chapter 1: Getting Started.");
INSERT INTO "Paragraphs" VALUES ("19", "8", "Chapter 2: Basic Operations.");
INSERT INTO "Paragraphs" VALUES ("20", "8", "Chapter 3: Advanced Features.");
INSERT INTO "Paragraphs" VALUES ("21", "8", "Chapter 4: Troubleshooting.");
INSERT INTO "Paragraphs" VALUES ("22", "9", "Conclusion: Summary of research.");
INSERT INTO "Paragraphs" VALUES ("23", "10", "Headline: Discover our new service!");
INSERT INTO "Paragraphs" VALUES ("24", "10", "Body: Learn more about...");
INSERT INTO "Paragraphs" VALUES ("25", "10", "Call to Action: Visit our website.");
INSERT INTO "Paragraphs" VALUES ("26", "1", "Next Steps: Schedule follow-up.");
INSERT INTO "Paragraphs" VALUES ("27", "2", "Team Members.");
INSERT INTO "Paragraphs" VALUES ("28", "4", "Future Work.");
INSERT INTO "Paragraphs" VALUES ("29", "5", "Risks and Mitigation.");
INSERT INTO "Paragraphs" VALUES ("30", "6", "Effective Date.");
INSERT INTO "Paragraphs" VALUES ("31", "7", "Action Items: Review budget.");
INSERT INTO "Paragraphs" VALUES ("32", "8", "Appendix.");
INSERT INTO "Paragraphs" VALUES ("33", "9", "References.");
INSERT INTO "Paragraphs" VALUES ("34", "10", "Contact Information.");