- Edited
By default when a new ticket is created, the ticket 'detail' is written to ost_ticket the body (text) of the ticket is written to ost_ticket_message
Both of these tables share similar fields and the data is joined between the two.
Where you write to and how you do it will depend on what you ultimately want to achieve !
For my multi company mod I created a new table called ost_company and created the fields I needed in their. I then added the field comp_id to ost_company, ost_ticket and ost_ticket_message.
My MySQL queries can then pull the correct data using the comp_id fields.
I run a test version of OSticket locally so I can edit and change the code and database to suit quickly. I also use HeidiSQL to look at the database structure.
Hope this helps :)