Skip to main content

database layer for my personal server.

Project description

lapa_database_structure

about

database structure layer for my personal server.

installation

pip install lapa_database_structure

usage

to add a new database

  • create a package with package name as database name.

to add a new schema

  • add package in database_name package with schema name as package name.

to add a new table

  • create /database_name/schema_name/tables.py file if not already created.
  • create class corresponding to your new table add in /database_name/schema_name/tables.py file.

to add default data in table

  • append row objects containing your default data to the data_to_insert list inside the /database_name/schema_name/tables.py file.

do not forget to add new database_names, schema_names and/or table_names to main.py enums to make it accessible through api calls.

do not forget to clone changes to all testing database.

configs

None

env

  • python>=3.12.0

changelog

v0.0.10

  • renamed authentication_username_salt.
  • added local_string_database_name in each database.
  • removed main.py file and its enums.

v0.0.9

  • rename authentication_username_hashed_access_token and authentication_username_hashed_refresh_token.
  • update enum in main.py.

v0.0.8

  • Overhauled authentication schema, again.

v0.0.7

  • Overhauled authentication schema,
  • introducing new tables: User, UsernameAuthentication, UserProfile, AuthenticationType, UserAccountStatus, UserLog, and UserLogStatus.

v0.0.6

  • changed db structure
  • removed game db
  • added testing db which is clone of lapa

v0.0.5

  • file_storage -> public -> File
    • change file_extension to file_content_type.
    • file_system_relative_path default change from "." to "".

v0.0.4

  • authentication database added with the below tables
    • user
    • user_validation_status
    • user_registration
    • hashing_algorithm

v0.0.3

  • Changed package name to lapa_database_structure.

v0.0.2

  • Update table for file_storage -> File.

v0.0.1

  • initial implementation.

Feedback is appreciated. Thank you!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lapa_database_structure-0.0.10.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

lapa_database_structure-0.0.10-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file lapa_database_structure-0.0.10.tar.gz.

File metadata

File hashes

Hashes for lapa_database_structure-0.0.10.tar.gz
Algorithm Hash digest
SHA256 d33a785afc09f8d2a6b22a66ef85d10664f7a008008d3595b113b0ed21129b59
MD5 ac4bb6a00bf6881a83c0c75b4d7c46ce
BLAKE2b-256 33049ecfcbb55f4d9f0920795c54515d9dd8f44c45acd2e367b73e4ef6e47c36

See more details on using hashes here.

File details

Details for the file lapa_database_structure-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for lapa_database_structure-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 eb38493992e7623869a8a1450c2a0f8e92f2507a19b9d1b54811e6875e80c1b7
MD5 319b82593dcf7973f5ffe7088c125322
BLAKE2b-256 50ff82b2c29745fe5ecdcf74128e81ff4d14f150e3bdc7537cbe370e3ef0f8d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page