Advertisement
noam76

table transaction

May 10th, 2023
893
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.40 KB | None | 0 0
  1. CREATE TABLE transactions (
  2.     id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  3.     date DATETIME NOT NULL,
  4.     type ENUM('entrée', 'sortie') NOT NULL,
  5.     numero_appart VARCHAR(255) NOT NULL,
  6.     service VARCHAR(255),
  7.     moyen_paiement ENUM('cash', 'chèque', 'application') NOT NULL,
  8.     montant DECIMAL(10,2) NOT NULL,
  9.     FOREIGN KEY (numero_appart) REFERENCES appartements(numero_appart)
  10. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement