Advertisement
Guest User

Untitled

a guest
Feb 15th, 2018
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 2.31 KB | None | 0 0
  1. -- ----------------------------
  2. -- -------- INSERTS E2 --------
  3. -- ----------------------------
  4.  
  5. Delete From InvoiceDetails Where id >= 1;
  6. Delete From Invoices Where id >= 1;
  7. Delete From Payments Where id >= 1;
  8. Delete From Customers Where id >= 1;
  9. Delete From CustomerTypes Where id >= 1;
  10.  
  11. ALTER TABLE InvoiceDetails AUTO_INCREMENT = 1;
  12. ALTER TABLE Invoices AUTO_INCREMENT = 1;
  13. ALTER TABLE Payments AUTO_INCREMENT = 1;
  14. ALTER TABLE Customers AUTO_INCREMENT = 1;
  15. ALTER TABLE CustomerTypes AUTO_INCREMENT = 1;
  16.  
  17. INSERT CustomerTypes (__CreationTime, __ModificationTime, __CreationUser, __ModificationUser, _UUID, Notes, Type)
  18. VALUES
  19. (now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '', 'VIP'),
  20. (now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '', 'Critic'),
  21. (now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '', 'Regular');
  22.  
  23. INSERT Customers (id_CustomerTypes, __CreationTime, __ModificationTime, __CreationUser, __ModificationUser, _UUID, Notes, PhoneNumber, PostalCode, Name, Address, Province, Appartment, Email)
  24. VALUES
  25. (1, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '','8195370549', 'G9N1A4', 'Charles Brouard', '333 10eRue', 'QC', '', 'charles.brouard@hotmail.com'),
  26. (2, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '','8199854267', 'G9N1Y8', 'Rachel Forest', '1558 Cote des Neiges', 'QC', '5', 'rachel.forest@gmail.com'),
  27. (3, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '','8198524697', 'G9N3f5', 'Mathieu Alain', '9898 Ave Fleurs', 'QC', '', 'DAS_NAIN@hotmail.com');
  28.  
  29. INSERT Invoices (id_Customer, id_Employee, __CreationTime, __ModificationTime, __CreationUser, __ModificationUser, _UUID, Notes, Status, Total)
  30. VALUES
  31. (1, 1, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '', 'Completed', 0.00),
  32. (2, 2, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '', 'Completed', 0.00),
  33. (3, 3, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '', 'Completed', 0.00);
  34.  
  35. INSERT InvoiceDetails (id_Invoice, id_Product, __CreationTime, __ModificationTime, __CreationUser, __ModificationUser, _UUID, Notes)
  36. VALUES
  37. (1, 1, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), ''),
  38. (1, 2, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), ''),
  39. (2, 3, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), ''),
  40. (3, 4, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), ''),
  41. (3, 5, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), ''),
  42. (3, 6, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), ''),
  43. (3, 7, now(), now(), 'SYSTEM', 'SYSTEM',UUID(), '');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement