I am wondering whether there exists some way to insert data into database (Postgres in my case but the question is meant more generally towards SQL databases) ignoring any restrictions given by the scheme of the database. Some specific keyword to say "just put these data there I am completly aware of what they are don't modify them anyhow".
I have a trigger that restricts updates of dates in ceratin tables + I force default values via trigger BEFORE INSERT
and I am wondering if it is a good idea to restrict it database-side because I won't be able to "superuser" modify it later or if I should rely the data integrity on the app without the option to rely that the date in the database hasen't been messed with.
This is just a school project and there will be only one app connecting to that database so I don't need that hardcore data integrity but I was interested in the problem of how to solve it.
Thanks
Edit: I dont mean to mess with the core data integrity such as two rows with same primary keys