21 - Your First Database Model · Brave-Python/full-stack-python@91713b2 · GitHub
Skip to content

Commit 91713b2

Browse files
21 - Your First Database Model
1 parent c49c841 commit 91713b2

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

‎.gitignore‎

Lines changed: 3 additions & 1 deletion

‎full_stack_python/pages/contact.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
from .. import navigation
55
from ..ui.base import base_page
66

7+
class ContactEntryModel(rx.Model, table=True):
8+
first_name: str
9+
last_name: str
10+
email: str
11+
message: str
12+
713

814
class ContactState(rx.State):
915
form_data: dict = {}

‎rxconfig.py‎

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)