-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconsole.py
More file actions
57 lines (40 loc) · 1.99 KB
/
Copy pathconsole.py
File metadata and controls
57 lines (40 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import pdb
from models.image import Image
from models.garment import Garment
from models.type import Type
from models.brand import Brand
import repositories.image_repository as image_repository
import repositories.garment_repository as garment_repository
import repositories.type_repository as type_repository
import repositories.brand_repository as brand_repository
garment_repository.delete_all()
brand_repository.delete_all()
image_repository.delete_all()
brand1 = Brand("Asim Jofa", False)
brand_repository.save(brand1)
brand2 = Brand("Sana Safinaz", False)
brand_repository.save(brand2)
type1 = Type("Dress")
type_repository.save(type1)
type2 = Type("Shalwar Kameez")
type_repository.save(type2)
type3 = Type("Sharara")
type_repository.save(type3)
garment1 = Garment("Mint and gold dress", brand1, type1, "Celestial mint and gold dress with embroidered chiffon and silk.", 15, 100.00, 165.00)
garment_repository.save(garment1)
garment2 = Garment("Coral pink shalwar kameez", brand2, type2, "A classic silhouette with embellishments provides a beautiful coral-pink look.", 16, 95.00, 150.00)
garment_repository.save(garment2)
garment3 = Garment("Black and gold dress", brand1, type1, "A dreamy noir dress with delicate embroidery details on chiffon. A mix of thread combined with golden zari and sequins weaves a magic to create this flawless heavenly design.", 16, 90.00, 120.00)
garment_repository.save(garment3)
garment4 = Garment("Organza yellow sharara", brand2, type3, "A stunningly accentuated shirt with beautiful florals. With an off white sharara trousers", 25, 110.00, 200.00)
garment_repository.save(garment4)
brands = brand_repository.select_all()
image1 = Image("Mint-and-gold-dress.webp", garment1)
image_repository.save(image1)
image2 = Image("Coral-pink-shalwar-kameez.webp", garment2)
image_repository.save(image2)
image3 = Image("Black-and-gold-dress.webp", garment3)
image_repository.save(image3)
image4 = Image("Organza-yellow-sharara.webp", garment4)
image_repository.save(image4)
breakpoint