What are the internal and external constraints of a database system?