Bases: BaseModel
Abstract Payload Model.
Common fields implemented by any Object in NetworkNinja Payloads.
ensure_timezone
Ensure a datetime has timezone information.
insert_record
async
insert_record(conn, **kwargs)
Insert Record to Database.
on_sync
async
on_sync(conn, upsert=True)
Sync Current Object with the Database.
save
async
save(conn, pk=None, **kwargs)
Save the Object to the Database.
sync
async
Sync the Object with the Database
update_many
async
update_many(objects, primary_keys=None, **kwargs)
Upsert Several Records in Database.
upsert_record
async
Upsert Record to Database.