new api service and logic implemented
This commit is contained in:
424
ApiLayers/LanguageModels/Database/identity/identity.py
Normal file
424
ApiLayers/LanguageModels/Database/identity/identity.py
Normal file
@@ -0,0 +1,424 @@
|
||||
from LanguageModels.Database.Mixins.crud_mixin import CrudCollectionLanguageModel
|
||||
|
||||
UsersTokensLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"user_id": "Kullanıcı ID",
|
||||
"token_type": "Token Türü",
|
||||
"token": "Token",
|
||||
"domain": "Domain",
|
||||
"expires_at": "Bitiş Tarihi",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"user_id": "User ID",
|
||||
"token_type": "Token Type",
|
||||
"token": "Token",
|
||||
"domain": "Domain",
|
||||
"expires_at": "Expires At",
|
||||
},
|
||||
)
|
||||
|
||||
UsersLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"user_tag": "Kullanıcı Etiketi",
|
||||
"email": "E-posta",
|
||||
"phone_number": "Telefon Numarası",
|
||||
"via": "Via",
|
||||
"avatar": "Avatar",
|
||||
"hash_password": "Şifre",
|
||||
"password_token": "Şifre Token",
|
||||
"remember_me": "Beni Hatırla",
|
||||
"password_expires_day": "Şifre Son Kullanma Günü",
|
||||
"password_expiry_begins": "Şifre Son Kullanma Başlangıç",
|
||||
"related_company": "İlgili Şirket",
|
||||
"person_id": "Kişi ID",
|
||||
"person_uu_id": "Kişi UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"user_tag": "User Tag",
|
||||
"email": "Email",
|
||||
"phone_number": "Phone Number",
|
||||
"via": "Via",
|
||||
"avatar": "Avatar",
|
||||
"hash_password": "Password",
|
||||
"password_token": "Password Token",
|
||||
"remember_me": "Remember Me",
|
||||
"password_expires_day": "Password Expires Day",
|
||||
"password_expiry_begins": "Password Expiry Begins",
|
||||
"related_company": "Related Company",
|
||||
"person_id": "Person ID",
|
||||
"person_uu_id": "Person UUID",
|
||||
},
|
||||
)
|
||||
|
||||
RelationshipDutyPeopleLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"company_id": "Şirket ID",
|
||||
"duties_id": "Görev ID",
|
||||
"member_id": "Üye ID",
|
||||
"relationship_type": "İlişki Türü",
|
||||
"show_only": "Sadece Göster",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"company_id": "Company ID",
|
||||
"duties_id": "Duty ID",
|
||||
"member_id": "Member ID",
|
||||
"relationship_type": "Relationship Type",
|
||||
"show_only": "Show Only",
|
||||
},
|
||||
)
|
||||
|
||||
PeopleLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"firstname": "Ad",
|
||||
"surname": "Soyad",
|
||||
"middle_name": "Orta Ad",
|
||||
"sex_code": "Cinsiyet Kodu",
|
||||
"person_ref": "Kişi Referansı",
|
||||
"person_tag": "Kişi Etiketi",
|
||||
"father_name": "Baba Adı",
|
||||
"mother_name": "Anne Adı",
|
||||
"country_code": "Ülke Kodu",
|
||||
"national_identity_id": "Kimlik Numarası",
|
||||
"birth_place": "Doğum Yeri",
|
||||
"birth_date": "Doğum Tarihi",
|
||||
"tax_no": "Vergi Numarası",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"firstname": "First Name",
|
||||
"surname": "Last Name",
|
||||
"middle_name": "Middle Name",
|
||||
"sex_code": "Gender",
|
||||
"person_ref": "Person Reference",
|
||||
"person_tag": "Person Tag",
|
||||
"father_name": "Father Name",
|
||||
"mother_name": "Mother Name",
|
||||
"country_code": "Country Code",
|
||||
"national_identity_id": "National Identity ID",
|
||||
"birth_place": "Birth Place",
|
||||
"birth_date": "Birth Date",
|
||||
"tax_no": "Tax No",
|
||||
},
|
||||
)
|
||||
|
||||
RelationshipEmployee2PostCodeLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"company_id": "Şirket ID",
|
||||
"employee_id": "Çalışan ID",
|
||||
"member_id": "Üye ID",
|
||||
"relationship_type": "İlişki Türü",
|
||||
"show_only": "Sadece Göster",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"company_id": "Company ID",
|
||||
"employee_id": "Employee ID",
|
||||
"member_id": "Member ID",
|
||||
"relationship_type": "Relationship Type",
|
||||
"show_only": "Show Only",
|
||||
},
|
||||
)
|
||||
|
||||
AddressPostcodeLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"street_id": "Sokak ID",
|
||||
"street_uu_id": "Sokak UUID",
|
||||
"postcode": "Posta Kodu",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"street_id": "Street ID",
|
||||
"street_uu_id": "Street UUID",
|
||||
"postcode": "Postcode",
|
||||
},
|
||||
)
|
||||
|
||||
AddressesLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"build_number": "Bina Numarası",
|
||||
"door_number": "Kapı Numarası",
|
||||
"floor_number": "Kat Numarası",
|
||||
"comment_address": "Adres",
|
||||
"letter_address": "Adres",
|
||||
"short_letter_address": "Adres",
|
||||
"latitude": "Enlem",
|
||||
"longitude": "Boylam",
|
||||
"street_id": "Sokak ID",
|
||||
"street_uu_id": "Sokak UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"build_number": "Build Number",
|
||||
"door_number": "Door Number",
|
||||
"floor_number": "Floor Number",
|
||||
"comment_address": "Address",
|
||||
"letter_address": "Address",
|
||||
"short_letter_address": "Address",
|
||||
"latitude": "Latitude",
|
||||
"longitude": "Longitude",
|
||||
"street_id": "Street ID",
|
||||
"street_uu_id": "Street UUID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressGeographicLocationsLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"geo_table": "Tablo Adı",
|
||||
"geo_id": "ID",
|
||||
"geo_name": "Ad",
|
||||
"geo_latitude": "Enlem",
|
||||
"geo_longitude": "Boylam",
|
||||
"geo_altitude": "Yükseklik",
|
||||
"geo_description": "Açıklama",
|
||||
"geo_area_size": "Alan",
|
||||
"geo_population": "Nüfus",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"geo_table": "Table Name",
|
||||
"geo_id": "ID",
|
||||
"geo_name": "Name",
|
||||
"geo_latitude": "Latitude",
|
||||
"geo_longitude": "Longitude",
|
||||
"geo_altitude": "Altitude",
|
||||
"geo_description": "Description",
|
||||
"geo_area_size": "Area",
|
||||
"geo_population": "Population",
|
||||
},
|
||||
)
|
||||
|
||||
AddressCountryLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"country_code": "Ülke Kodu",
|
||||
"country_name": "Ülke Adı",
|
||||
"money_code": "Para Kodu",
|
||||
"language": "Dil Kodu",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"country_code": "Country Code",
|
||||
"country_name": "Country Name",
|
||||
"money_code": "Money Code",
|
||||
"language": "Language Code",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressStateLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"state_code": "Eyalet Kodu",
|
||||
"state_name": "Eyalet Adı",
|
||||
"licence_plate": "Plaka Kodu",
|
||||
"phone_code": "Telefon Kodu",
|
||||
"gov_code": "Hükümet Kodu",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
"country_id": "Ülke ID",
|
||||
"country_uu_id": "Ülke UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"state_code": "State Code",
|
||||
"state_name": "State Name",
|
||||
"licence_plate": "Licence Plate",
|
||||
"phone_code": "Phone Code",
|
||||
"gov_code": "Government Code",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
"country_id": "Country ID",
|
||||
"country_uu_id": "Country UUID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressCityLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"city_code": "Şehir Kodu",
|
||||
"city_name": "Şehir Adı",
|
||||
"licence_plate": "Plaka Kodu",
|
||||
"phone_code": "Telefon Kodu",
|
||||
"gov_code": "Hükümet Kodu",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
"state_id": "Eyalet ID",
|
||||
"state_uu_id": "Eyalet UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"city_code": "City Code",
|
||||
"city_name": "City Name",
|
||||
"licence_plate": "Licence Plate",
|
||||
"phone_code": "Phone Code",
|
||||
"gov_code": "Government Code",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
"state_id": "State ID",
|
||||
"state_uu_id": "State UUID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressDistrictLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"district_code": "İlçe Kodu",
|
||||
"district_name": "İlçe Adı",
|
||||
"phone_code": "Telefon Kodu",
|
||||
"gov_code": "Hükümet Kodu",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
"city_id": "Şehir ID",
|
||||
"city_uu_id": "Şehir UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"district_code": "District Code",
|
||||
"district_name": "District Name",
|
||||
"phone_code": "Phone Code",
|
||||
"gov_code": "Government Code",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
"city_id": "City ID",
|
||||
"city_uu_id": "City UUID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressLocalityLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"locality_code": "Mahalle Kodu",
|
||||
"locality_name": "Mahalle Adı",
|
||||
"type_code": "Tip Kodu",
|
||||
"type_description": "Tip Açıklaması",
|
||||
"gov_code": "Hükümet Kodu",
|
||||
"address_show": "Adres Göster",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
"district_id": "İlçe ID",
|
||||
"district_uu_id": "İlçe UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"locality_code": "Locality Code",
|
||||
"locality_name": "Locality Name",
|
||||
"type_code": "Type Code",
|
||||
"type_description": "Type Description",
|
||||
"gov_code": "Government Code",
|
||||
"address_show": "Address Show",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
"district_id": "District ID",
|
||||
"district_uu_id": "District UUID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressNeighborhoodLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"neighborhood_code": "Mahalle Kodu",
|
||||
"neighborhood_name": "Mahalle Adı",
|
||||
"type_code": "Tip Kodu",
|
||||
"type_description": "Tip Açıklaması",
|
||||
"gov_code": "Hükümet Kodu",
|
||||
"address_show": "Adres Göster",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
"district_id": "İlçe ID",
|
||||
"district_uu_id": "İlçe UUID",
|
||||
"locality_id": "Mahalle ID",
|
||||
"locality_uu_id": "Mahalle UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"neighborhood_code": "Neighborhood Code",
|
||||
"neighborhood_name": "Neighborhood Name",
|
||||
"type_code": "Type Code",
|
||||
"type_description": "Type Description",
|
||||
"gov_code": "Government Code",
|
||||
"address_show": "Address Show",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
"district_id": "District ID",
|
||||
"district_uu_id": "District UUID",
|
||||
"locality_id": "Locality ID",
|
||||
"locality_uu_id": "Locality UUID",
|
||||
},
|
||||
)
|
||||
|
||||
AddressStreetLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"street_code": "Sokak Kodu",
|
||||
"street_name": "Sokak Adı",
|
||||
"type_code": "Tip Kodu",
|
||||
"type_description": "Tip Açıklaması",
|
||||
"gov_code": "Hükümet Kodu",
|
||||
"address_geographic_id": "Adres Coğrafi ID",
|
||||
"neighborhood_id": "Mahalle ID",
|
||||
"neighborhood_uu_id": "Mahalle UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"street_code": "Street Code",
|
||||
"street_name": "Street Name",
|
||||
"type_code": "Type Code",
|
||||
"type_description": "Type Description",
|
||||
"gov_code": "Government Code",
|
||||
"address_geographic_id": "Address Geographic ID",
|
||||
"neighborhood_id": "Neighborhood ID",
|
||||
"neighborhood_uu_id": "Neighborhood UUID",
|
||||
},
|
||||
)
|
||||
|
||||
OccupantTypesLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"occupant_type": "Kişi Türü",
|
||||
"occupant_description": "Kişi Açıklaması",
|
||||
"occupant_code": "Kişi Kodu",
|
||||
"occupant_category": "Kişi Kategori",
|
||||
"occupant_category_type": "Kişi Kategori Türü",
|
||||
"occupant_is_unique": "Kişi Benzersiz",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"occupant_type": "Occupant Type",
|
||||
"occupant_description": "Occupant Description",
|
||||
"occupant_code": "Occupant Code",
|
||||
"occupant_category": "Occupant Category",
|
||||
"occupant_category_type": "Occupant Category Type",
|
||||
"occupant_is_unique": "Occupant Unique",
|
||||
},
|
||||
)
|
||||
|
||||
ContractsLanguageModel = dict(
|
||||
tr={
|
||||
**CrudCollectionLanguageModel["tr"],
|
||||
"contract_type": "Sözleşme Türü",
|
||||
"contract_title": "Sözleşme Başlığı",
|
||||
"contract_details": "Sözleşme Detayları",
|
||||
"contract_terms": "Sözleşme Şartları",
|
||||
"contract_code": "Sözleşme Kodu",
|
||||
"contract_date": "Sözleşme Tarihi",
|
||||
"company_id": "Şirket ID",
|
||||
"company_uu_id": "Şirket UUID",
|
||||
"person_id": "Kişi ID",
|
||||
"person_uu_id": "Kişi UUID",
|
||||
},
|
||||
en={
|
||||
**CrudCollectionLanguageModel["en"],
|
||||
"contract_type": "Contract Type",
|
||||
"contract_title": "Contract Title",
|
||||
"contract_details": "Contract Details",
|
||||
"contract_terms": "Contract Terms",
|
||||
"contract_code": "Contract Code",
|
||||
"contract_date": "Contract Date",
|
||||
"company_id": "Company ID",
|
||||
"company_uu_id": "Company UUID",
|
||||
"person_id": "Person ID",
|
||||
"person_uu_id": "Person UUID",
|
||||
},
|
||||
)
|
||||
Reference in New Issue
Block a user