AymenSe / Travel-Agency-CRUD-Django

0 stars 0 forks source link

Fill database with Country, Region, City #2

Open youneshenni opened 4 years ago

youneshenni commented 4 years ago

Add three Tables: Country, Region and City Each has attributes: id, name, booleans: visa_rdv, hotel, visa, organized_trip

AymenSe commented 4 years ago

Ok, but in these three table what i will do inside their ! just id ?

youneshenni commented 4 years ago

id: Integer, name: VARCHAR, visa_rdv: boolean (enum aka oneof(true, false)), visa: boolean, organized_trip: boolean all booleans default to false id and name are required

AymenSe commented 4 years ago

id will generate automatically by Django !! shall i create another one ?

youneshenni commented 4 years ago

no, let it automatic

AymenSe commented 4 years ago

Ok !

AymenSe commented 4 years ago

i didn't got this ? visa_rdv: boolean (enum aka oneof(true, false))

AymenSe commented 4 years ago

hint: I've been created the tables! But I didn't understand what we would do with these tables? Is there a relationship between it and other tables!

AymenSe commented 4 years ago

done !

youneshenni commented 4 years ago

There's no relationship, only we'll fill those with countries list so we can then select from them

AymenSe commented 4 years ago

i got it

AymenSe commented 4 years ago

done !