Pengguna
Keizinan
Bases: BaseStrictDataTable
Role model for controlling access types
Fields
peranan
(TextField): name of role- null: False
- unique: True
tambah
(BooleanField): can create- null: False
baca
(BooleanField): can read- null: False
ubah
(BooleanField): can update- null: False
buang
(BooleanField): can delete- null: False
Source code in samudra/models/auth/pengguna.py
Pengguna
Bases: BaseDataTable
User model to store users.
Fields
nama
(TextField): username- null: False
kunci
(TextField): hashed password- null: False
peranan
(ForeignKeyField): foreign key toKeizinan
- field: Keizinan.peranan
- backref: Keizinan.pengguna
- on delete: set default
- default:
RoleEnum.DEFAULT