- Jun 13, 2004
- 740
- 0
- 76
Hello everyone,
I'm working on an android project and I can't see how the database needs to be setup. I currently have an idea on how it should function, but I would love to get some input so I can setup the database and not worry about that aspect. I'm not sure how I format this since it's just text, so please forgive the wall.
For the project I'm trying to have two main parts: 1. Users joining Groups and creating Events to participate in. 2. Communication of the different sections, so User-to-User, Group-to-ManyUsers, Events-to-ManyUsers. I'm thinking of the latter as sort of like a Group message board where every user sees the messages provided in the groups. Same with Events so everyone at the Event could see that group of messages. I'd also love to implement a check-in style system for the Events, but that's not really a priority.
Thank you for your time
I'm working on an android project and I can't see how the database needs to be setup. I currently have an idea on how it should function, but I would love to get some input so I can setup the database and not worry about that aspect. I'm not sure how I format this since it's just text, so please forgive the wall.
For the project I'm trying to have two main parts: 1. Users joining Groups and creating Events to participate in. 2. Communication of the different sections, so User-to-User, Group-to-ManyUsers, Events-to-ManyUsers. I'm thinking of the latter as sort of like a Group message board where every user sees the messages provided in the groups. Same with Events so everyone at the Event could see that group of messages. I'd also love to implement a check-in style system for the Events, but that's not really a priority.
Code:
Database Schema
Users:
UserID PK int(auto increment)
Name varchar(50)
Pass
Email
Member_Groups:
UserID FK
GroupdID FK
Groups:
GroupID PK int(auto increment)
GroupName varchar(50)
GroupAdmin (UserID?)
GroupDescription varchar(100)
GroupType
GroupType2
GroupType3
GroupType4
Events:
EventID PK int(auto increment)
EventName varchar(50)
EventAdmin (UserID?)
EventDescription varchar(100)
EventAddress varchar(50)
EventDate
EventTime
Group_Messages:
GroupID
MsgID
Messages:
MsgID int(auto increment)
Sender (UserID) FK
GroupID FK
MsgTitle varchar(20)
Content varchar(255)
Date
Time
Thank you for your time