Skip to content

Commit e8ee237

Browse files
committed
fix Sample_AI prompt
1 parent a73fc30 commit e8ee237

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/Sample-AI.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,21 @@ The Sample-AI page includes the Natural Language Text to supply to Copilot; past
5050

5151
!!! pied-piper "Create database schemas from ChatGPT -- provide this prompt"
5252

53-
Create a sqlite database for customers, orders, items and product
54-
53+
Use SQLAlchemy to create a sqlite database named sample_ai.sqlite, with customers, orders, items and product
54+
5555
Hints: use autonum keys, allow nulls, Decimal types, foreign keys, no check constraints.
5656

5757
Include a notes field for orders.
5858

5959
Create a few rows of only customer and product data.
6060

61-
Use Logic Bank to enforce the Check Credit requirement:
61+
Enforce the Check Credit requirement (do not generate check constraints):
6262

6363
1. Customer.Balance <= CreditLimit
6464
2. Customer.Balance = Sum(Order.AmountTotal where date shipped is null)
6565
3. Order.AmountTotal = Sum(Items.Amount)
6666
4. Items.Amount = Quantity * UnitPrice
67-
5. Store the Items.UnitPrice as a copy from Product.UnitPrice
68-
&nbsp;
67+
5. Store the Items.UnitPrice as a copy from Product.UnitPrice&nbsp;
6968

7069
Copilot creates the SQLAlchemy model code.
7170

0 commit comments

Comments
 (0)